@evrotrust/et-react-native-wl-sdk

中文文档
2.0.45发布于 2026/10/29SEE LICENSE IN LICENSETypeScriptESM + CJS近 30 天下载 2984

Evrotrust React Native WL SDK

原始使用文档
文档目录5 节
  1. Usage
  2. Included SDKs
  3. React-Native setup instructions
  4. Android setup instructions
  5. iOS setup instructions

Evrotrust React Native WL SDK

Usage

See the provided file

Evrotrust SDK React Native 1.4.pdf

Included SDKs

Android WL SDK - 1.1.8
iOS WL SDK - 1.1.1232
FaceTec SDK (Android & iOS) - 10.1.9
Regula DocumentReader - iOS 9.7.6818 (MRZRFID 9.7.19696) / Android 9.7.13216 (MRZRFID 9.7.16470)

React-Native setup instructions

  1. Set registry
  "npm config set registry https://registry.npmjs.org/"
  1. Create a new workspace
  "npx [email protected]"

  Where would you like to create your workspace?            - org
  Which stack do you want to use?                           - none:
      Configures a TypeScript/JavaScript monorepo.
  Would you like to use Prettier for code formatting?       - no
  Which CI provider would you like to use?                  - skip
  Would you like remote caching to make your build faster?  - skip
  1. Enter in the new workspace
  "cd org"
  1. Install react-native for Nx 18+
  "npx nx add @nx/react-native"
  1. Generate react-native:init
  "npx nx generate @nx/react-native:app myapp"
  1. Generating @nx/react-native:application
  Run 'pod install' for native modules? (Y/n) › true
  Which bundler do you want to use to build the application?  - vite
  1. In "org/myapp/package.json" add dependencies
  before changes:

  {
    "name": "@org/myapp",
    "version": "0.0.1",
    "private": true,
  }

  after changes:

  {
    "name": "@org/myapp",
    "version": "0.0.1",
    "private": true,
    "dependencies": {
      "react": "19.1.1",
      "react-native": "0.82.0",
      "@react-native/metro-config": "^0.82.0",
      "react-native-svg": "*",
      "metro-config": "*"
    }
  }
  1. Enter in the project folder
  "cd myapp"
  1. Install react library
  "npm i @evrotrust/[email protected]"

Android setup instructions

  1. Modify myapp/android/gradle.properties to have the following
  - "android.enableJetifier=true"
  - "android.useAndroidX=true"
  - (Optional) increase memory "org.gradle.jvmargs=-Xmx4608m"
  1. Modify myapp/android/app/build.gradle to have the following
  allprojects {
    repositories {
      maven {
        url "https://maven.regulaforensics.com/RegulaDocumentReader"
      }
      google()
      mavenCentral()
      maven { url 'https://www.jitpack.io' }
      maven {
        name = "github"
        url = uri("https://maven.pkg.github.com/Evrotrust/maven")
        credentials {
          username System.getenv("EVROTRUST_MAVEN_USERNAME")
          password System.getenv("EVROTRUST_MAVEN_PASSWORD")
        }
      }
    }
  }
  1. Add your environment variable depends your OS:
EVROTRUST_MAVEN_USERNAME=your_username
EVROTRUST_MAVEN_PASSWORD=your_password
  1. Add to dependencies in myapp/android/app/build.gradle
  implementation 'com.evrotrust:evrotrust-wl-sdk:1.1.8'
  implementation 'com.evrotrust:facetec-sdk:10.1.9'
  1. (Optional) If you received un error
  "Unable to make progress running work. There are items queued for
      execution but none of them can be started"

  Add this to myapp/android/build.gradle

  gradle.startParameter.excludedTaskNames.addAll(
    gradle.startParameter.taskNames.findAll { it.contains("testClasses") }
  )
  1. (Optional) If you received crash after change locale, add this to myapp/android/app/src/main/AndroidManifest.xml
  android:configChanges="locale|layoutDirection"
  1. Run the project
  "npx nx run-android myapp"

iOS setup instructions

  1. Add "regula.license" file somewhere in the project. From Xcode in "Build Phases > Copy Bundle Resources" add the "regula.license" file.
  2. Select your target -> Build Settings -> Always Embedded Swift Standard Libraries -> set YES
  3. Select your target -> Build Settings -> Always Enable Bitcode -> set NO
  4. Open project_name/ios/project_name_likes/Info.plist
  Add in .plist file:
  - key NSCameraUsageDescription with some description
  - key NSMicrophoneUsageDescription with some description
  - key NFCReaderUsageDescription with some description
  - key com.apple.developer.nfc.readersession.iso7816.select-identifiers - an array with
    the following string elements:
    * A00000045645444C2D3031
    * A0000002480300
    * A0000002480200
    * A0000002480100
    * A000000167455349474E
    * E80704007F00070302
    * A0000002471001
  - key UIDesignRequiresCompatibility with Boolean YES (required to use the
    pre-iOS 26 design, since the SDK doesn't support the new design introduced
    in iOS 26)
  1. AFNetworking (4.0.1) is bundled with the SDK as a prebuilt dynamic xcframework and embedded automatically by pod install — no action needed. (EvrotrustSDK.framework loads it via @rpath/AFNetworking.framework, so it must be a dynamic framework; adding it as a source pod would break the build with duplicate/static-linkage errors.)

  2. Add FaceTec.strings as localization file in XCode for English(EN), Bulgarian(BG), German(DE), Hungarian(HU), Albanian(SQ), Macedonian(MK), Romanian(RO), Italian(IT) and French(FR)

  3. Run the project

  "npx nx run-ios myapp"

版本与发布记录

@evrotrust/et-react-native-wl-sdk 共发布 34 个版本,首次发布于 2025/07/11;过去 12 个月发布了 12 个版本。

版本发布日期距今
2.0.45latest2026/10/2915 天前
2.0.442026/10/021 个月前
2.0.432026/10/021 个月前
2.0.422026/08/242 个月前
2.0.412026/08/053 个月前
2.0.402026/07/303 个月前

关于 @evrotrust/et-react-native-wl-sdk 的常见问题

@evrotrust/et-react-native-wl-sdk 是什么?

Evrotrust React Native WL SDK

如何安装 @evrotrust/et-react-native-wl-sdk?

在项目目录运行 npm install @evrotrust/et-react-native-wl-sdk,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react(*)、react-native(*)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@evrotrust/et-react-native-wl-sdk 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@evrotrust/et-react-native-wl-sdk 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@evrotrust/et-react-native-wl-sdk 可以商用吗?

@evrotrust/et-react-native-wl-sdk 使用 SEE LICENSE IN LICENSE 许可。许可条款写在包内的独立文件中,请阅读该文件确认可否商用。以上为概括,不构成法律意见,请以许可原文为准。

@evrotrust/et-react-native-wl-sdk 的下载量有多少?

根据 npm 官方下载统计,@evrotrust/et-react-native-wl-sdk 在 2026/10/14 – 2026/11/12 这 30 天内被下载 2,984 次,日均约 99 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@evrotrust/et-react-native-wl-sdk 还在维护吗?

最新版本 2.0.45 发布于 2026/10/29(15 天前);至今共发布 34 个版本,其中过去 12 个月发布了 12 个;首次发布于 2025/07/11。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。