@finos_sdk/sdk-ekyc 1.2.1 → 1.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +13 -10
- package/README.md +41 -42
- package/android/build.gradle +53 -20
- package/android/gradle.properties +7 -1
- package/android/settings.gradle +53 -0
- package/android/src/main/java/finos/sdk/ekyc/EKYCModule.kt +790 -82
- package/dist/EKYCModule.d.ts +72 -0
- package/dist/EKYCModule.js +650 -71
- package/dist/finos_sdk-sdk-ekyc-1.2.8.tgz +0 -0
- package/dist/index.d.ts +6 -1
- package/dist/index.js +5 -1
- package/dist/package.json +31 -21
- package/dist/src/modules/FinosEKYCModule.d.ts +147 -2
- package/dist/src/modules/FinosEKYCModule.js +476 -4
- package/dist/src/modules/FinosESignModule.d.ts +270 -0
- package/dist/src/modules/FinosESignModule.js +752 -0
- package/dist/src/types/ekycESignType.d.ts +67 -0
- package/dist/src/types/ekycESignType.js +2 -0
- package/dist/src/types/ekycLivenessType.d.ts +1 -0
- package/dist/src/types/ekycSmsOtpType.d.ts +52 -0
- package/dist/src/types/ekycSmsOtpType.js +2 -0
- package/package.json +31 -21
- package/src/modules/FinosEKYCModule.ts +563 -4
- package/src/modules/FinosESignModule.ts +919 -0
- package/src/modules/README.md +3 -3
- package/src/types/ekycESignType.ts +76 -0
- package/src/types/ekycLivenessType.ts +1 -0
- package/src/types/ekycSmsOtpType.ts +59 -0
- package/android/SDKeKYC/finos/sdk/ekyc/c06/1.2.0/c06-1.2.0-javadoc.jar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/c06/1.2.0/c06-1.2.0-sources.jar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/c06/1.2.0/c06-1.2.0.aar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/c06/1.2.0/c06-1.2.0.module +0 -130
- package/android/SDKeKYC/finos/sdk/ekyc/c06/1.2.0/c06-1.2.0.pom +0 -37
- package/android/SDKeKYC/finos/sdk/ekyc/c06/maven-metadata-local.xml +0 -13
- package/android/SDKeKYC/finos/sdk/ekyc/ekyc/1.2.0/ekyc-1.2.0-javadoc.jar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/ekyc/1.2.0/ekyc-1.2.0-sources.jar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/ekyc/1.2.0/ekyc-1.2.0.aar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/ekyc/1.2.0/ekyc-1.2.0.module +0 -221
- package/android/SDKeKYC/finos/sdk/ekyc/ekyc/1.2.0/ekyc-1.2.0.pom +0 -73
- package/android/SDKeKYC/finos/sdk/ekyc/ekyc/maven-metadata-local.xml +0 -13
- package/android/SDKeKYC/finos/sdk/ekyc/ekycui/1.2.0/ekycui-1.2.0-javadoc.jar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/ekycui/1.2.0/ekycui-1.2.0-sources.jar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/ekycui/1.2.0/ekycui-1.2.0.aar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/ekycui/1.2.0/ekycui-1.2.0.module +0 -151
- package/android/SDKeKYC/finos/sdk/ekyc/ekycui/1.2.0/ekycui-1.2.0.pom +0 -43
- package/android/SDKeKYC/finos/sdk/ekyc/ekycui/maven-metadata-local.xml +0 -13
- package/android/SDKeKYC/finos/sdk/ekyc/faceservice/1.2.0/faceservice-1.2.0-javadoc.jar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/faceservice/1.2.0/faceservice-1.2.0-sources.jar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/faceservice/1.2.0/faceservice-1.2.0.aar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/faceservice/1.2.0/faceservice-1.2.0.module +0 -130
- package/android/SDKeKYC/finos/sdk/ekyc/faceservice/1.2.0/faceservice-1.2.0.pom +0 -37
- package/android/SDKeKYC/finos/sdk/ekyc/faceservice/maven-metadata-local.xml +0 -13
- package/android/SDKeKYC/finos/sdk/ekyc/liveness/1.2.0/liveness-1.2.0-javadoc.jar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/liveness/1.2.0/liveness-1.2.0-sources.jar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/liveness/1.2.0/liveness-1.2.0.aar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/liveness/1.2.0/liveness-1.2.0.module +0 -158
- package/android/SDKeKYC/finos/sdk/ekyc/liveness/1.2.0/liveness-1.2.0.pom +0 -55
- package/android/SDKeKYC/finos/sdk/ekyc/liveness/maven-metadata-local.xml +0 -13
- package/android/SDKeKYC/finos/sdk/ekyc/nfc/1.2.0/nfc-1.2.0-javadoc.jar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/nfc/1.2.0/nfc-1.2.0-sources.jar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/nfc/1.2.0/nfc-1.2.0.aar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/nfc/1.2.0/nfc-1.2.0.module +0 -151
- package/android/SDKeKYC/finos/sdk/ekyc/nfc/1.2.0/nfc-1.2.0.pom +0 -55
- package/android/SDKeKYC/finos/sdk/ekyc/nfc/maven-metadata-local.xml +0 -13
- package/android/SDKeKYC/finos/sdk/ekyc/ocr/1.2.0/ocr-1.2.0-javadoc.jar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/ocr/1.2.0/ocr-1.2.0-sources.jar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/ocr/1.2.0/ocr-1.2.0.aar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/ocr/1.2.0/ocr-1.2.0.module +0 -144
- package/android/SDKeKYC/finos/sdk/ekyc/ocr/1.2.0/ocr-1.2.0.pom +0 -43
- package/android/SDKeKYC/finos/sdk/ekyc/ocr/maven-metadata-local.xml +0 -13
- package/android/SDKeKYC/finos/sdk/ekyc/qrcode/1.2.0/qrcode-1.2.0-javadoc.jar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/qrcode/1.2.0/qrcode-1.2.0-sources.jar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/qrcode/1.2.0/qrcode-1.2.0.aar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/qrcode/1.2.0/qrcode-1.2.0.module +0 -158
- package/android/SDKeKYC/finos/sdk/ekyc/qrcode/1.2.0/qrcode-1.2.0.pom +0 -55
- package/android/SDKeKYC/finos/sdk/ekyc/qrcode/maven-metadata-local.xml +0 -13
- package/android/SDKeKYC/finos/sdk/ekyc/sdkcore/1.2.0/sdkcore-1.2.0-javadoc.jar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/sdkcore/1.2.0/sdkcore-1.2.0-sources.jar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/sdkcore/1.2.0/sdkcore-1.2.0.aar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/sdkcore/1.2.0/sdkcore-1.2.0.module +0 -361
- package/android/SDKeKYC/finos/sdk/ekyc/sdkcore/1.2.0/sdkcore-1.2.0.pom +0 -139
- package/android/SDKeKYC/finos/sdk/ekyc/sdkcore/maven-metadata-local.xml +0 -13
- package/android/SDKeKYC/finos/sdk/ekyc/sdkcorecamera/1.2.0/sdkcorecamera-1.2.0-javadoc.jar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/sdkcorecamera/1.2.0/sdkcorecamera-1.2.0-sources.jar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/sdkcorecamera/1.2.0/sdkcorecamera-1.2.0.aar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/sdkcorecamera/1.2.0/sdkcorecamera-1.2.0.module +0 -221
- package/android/SDKeKYC/finos/sdk/ekyc/sdkcorecamera/1.2.0/sdkcorecamera-1.2.0.pom +0 -85
- package/android/SDKeKYC/finos/sdk/ekyc/sdkcorecamera/maven-metadata-local.xml +0 -13
- package/android/SDKeKYC/finos/sdk/ekyc/sdkui/1.2.0/sdkui-1.2.0-javadoc.jar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/sdkui/1.2.0/sdkui-1.2.0-sources.jar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/sdkui/1.2.0/sdkui-1.2.0.aar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/sdkui/1.2.0/sdkui-1.2.0.module +0 -228
- package/android/SDKeKYC/finos/sdk/ekyc/sdkui/1.2.0/sdkui-1.2.0.pom +0 -103
- package/android/SDKeKYC/finos/sdk/ekyc/sdkui/maven-metadata-local.xml +0 -13
- package/android/src/main/AndroidManifest.xml +0 -22
- package/android/src/main/build.gradle +0 -31
- package/dist/App.d.ts +0 -3
- package/dist/App.js +0 -497
package/LICENSE
CHANGED
|
@@ -4,18 +4,21 @@ Copyright (c) 2024 FinOS
|
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software
|
|
7
|
+
in the Software **for both personal and commercial purposes**, including without limitation the rights
|
|
8
8
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is furnished
|
|
10
|
+
to do so, subject to the following conditions:
|
|
11
11
|
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
copies or substantial portions of the Software.
|
|
12
|
+
1. The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
2. The name “FinOS” or any related trademarks shall not be used to promote or
|
|
16
|
+
endorse products derived from this Software without prior written permission
|
|
17
|
+
from FinOS.
|
|
14
18
|
|
|
15
19
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
20
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
SOFTWARE.
|
|
21
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL FinOS
|
|
22
|
+
OR ITS CONTRIBUTORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
23
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
|
24
|
+
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
React Native SDK for eKYC (electronic Know Your Customer) - Vietnamese CCCD NFC reading, OCR, Liveness detection, Face matching, and C06 residence verification.
|
|
7
7
|
|
|
8
|
-
**Version**: 1.2.
|
|
8
|
+
**Version**: 1.2.8
|
|
9
9
|
|
|
10
10
|
## 🚀 Features
|
|
11
11
|
|
|
@@ -20,7 +20,7 @@ React Native SDK for eKYC (electronic Know Your Customer) - Vietnamese CCCD NFC
|
|
|
20
20
|
|
|
21
21
|
## 📱 Requirements
|
|
22
22
|
|
|
23
|
-
- React Native 0.
|
|
23
|
+
- React Native 0.77.0+
|
|
24
24
|
- Android 24+ / API Level 24+ (Android platform only)
|
|
25
25
|
- NFC and/or Camera hardware depending on modules used
|
|
26
26
|
- Runtime permissions for Camera and/or NFC
|
|
@@ -28,9 +28,9 @@ React Native SDK for eKYC (electronic Know Your Customer) - Vietnamese CCCD NFC
|
|
|
28
28
|
## 🛠️ Installation
|
|
29
29
|
|
|
30
30
|
```bash
|
|
31
|
-
npm install @finos_sdk/sdk-ekyc
|
|
31
|
+
npm install @finos_sdk/sdk-ekyc
|
|
32
32
|
# or
|
|
33
|
-
yarn add @finos_sdk/sdk-ekyc
|
|
33
|
+
yarn add @finos_sdk/sdk-ekyc
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
## 📖 Quick Start
|
|
@@ -145,39 +145,37 @@ Add permissions to `android/app/src/main/AndroidManifest.xml`:
|
|
|
145
145
|
|
|
146
146
|
#### 3.2. Configure Gradle
|
|
147
147
|
|
|
148
|
-
|
|
148
|
+
The SDK automatically includes the GitHub Packages Maven repository. If using private Maven packages, configure GitHub credentials:
|
|
149
149
|
|
|
150
|
-
|
|
151
|
-
buildscript {
|
|
152
|
-
ext {
|
|
153
|
-
buildToolsVersion = "35.0.0"
|
|
154
|
-
minSdkVersion = 24
|
|
155
|
-
compileSdkVersion = 35
|
|
156
|
-
targetSdkVersion = 34
|
|
157
|
-
ndkVersion = "26.1.10909125"
|
|
158
|
-
kotlinVersion = "1.9.25"
|
|
159
|
-
}
|
|
160
|
-
repositories {
|
|
161
|
-
google()
|
|
162
|
-
mavenCentral()
|
|
163
|
-
maven { url "https://www.jitpack.io" }
|
|
164
|
-
}
|
|
165
|
-
dependencies {
|
|
166
|
-
classpath("com.android.tools.build:gradle")
|
|
167
|
-
classpath("com.facebook.react:react-native-gradle-plugin")
|
|
168
|
-
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
|
|
169
|
-
}
|
|
170
|
-
}
|
|
150
|
+
**Option 1: Using gradle.properties (Recommended)**
|
|
171
151
|
|
|
172
|
-
|
|
173
|
-
|
|
152
|
+
Add to `~/.gradle/gradle.properties`:
|
|
153
|
+
```properties
|
|
154
|
+
gpr.user=your-github-username
|
|
155
|
+
gpr.key=your-github-token
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
**Option 2: Using Environment Variables**
|
|
159
|
+
|
|
160
|
+
```bash
|
|
161
|
+
export GITHUB_USER=your-github-username
|
|
162
|
+
export GITHUB_TOKEN=your-github-token
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
The SDK's `android/build.gradle` and `android/settings.gradle` are already configured to use GitHub Packages Maven repository:
|
|
166
|
+
|
|
167
|
+
```gradle
|
|
174
168
|
repositories {
|
|
175
169
|
google()
|
|
176
170
|
mavenCentral()
|
|
177
171
|
mavenLocal()
|
|
178
|
-
|
|
172
|
+
|
|
173
|
+
// GitHub Packages for FINOS eKYC SDK
|
|
179
174
|
maven {
|
|
180
|
-
|
|
175
|
+
url = uri("https://maven.pkg.github.com/finosvn/finos.ekyc.sdk")
|
|
176
|
+
credentials {
|
|
177
|
+
username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_USER")
|
|
178
|
+
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
|
|
181
179
|
}
|
|
182
180
|
}
|
|
183
181
|
}
|
|
@@ -475,7 +473,7 @@ const toggleLanguage = () => {
|
|
|
475
473
|
|
|
476
474
|
- **UI Integration Guide**: [Complete eKYC Flow Guide](./Document/DOC_eKYC_SDK_UI_ReactNative_Integration.md)
|
|
477
475
|
- **Module Guide**: [Individual Module Integration](./Document/DOC_eKYC_SDK_ReactNative_Integration.md)
|
|
478
|
-
- **Issues**: [GitHub Issues](https://github.com/finos
|
|
476
|
+
- **Issues**: [GitHub Issues](https://github.com/finosvn/finos.ekyc.sdk/issues)
|
|
479
477
|
- **Contact**: SDK provider for app key registration and support
|
|
480
478
|
|
|
481
479
|
## 📄 License
|
|
@@ -484,20 +482,21 @@ MIT License - see [LICENSE](LICENSE) file for details.
|
|
|
484
482
|
|
|
485
483
|
## 🔄 Migration Guide
|
|
486
484
|
|
|
487
|
-
### From Version 0.0.30 to 1.2.
|
|
485
|
+
### From Version 0.0.30 to 1.2.8
|
|
488
486
|
|
|
489
487
|
**New Features:**
|
|
490
488
|
- Unified `FinosEKYC.startEkycUI()` method for complete flows
|
|
491
489
|
- Flexible module configuration
|
|
492
490
|
- Enhanced styling options
|
|
493
491
|
- Better error handling
|
|
492
|
+
- GitHub Packages Maven repository integration (no local files required)
|
|
494
493
|
|
|
495
494
|
**Migration Steps:**
|
|
496
|
-
1. Update installation to version 1.2.
|
|
497
|
-
2.
|
|
495
|
+
1. Update installation to version 1.2.8
|
|
496
|
+
2. Configure GitHub credentials for Maven repository (see Android Setup)
|
|
498
497
|
3. Update import statement to use `FinosEKYC` class
|
|
499
498
|
4. Consider using `startEkycUI` instead of individual modules
|
|
500
|
-
5. Update React Native requirement to 0.
|
|
499
|
+
5. Update React Native requirement to 0.77.0+
|
|
501
500
|
|
|
502
501
|
**Before (0.0.30):**
|
|
503
502
|
```typescript
|
|
@@ -508,7 +507,7 @@ SdkEkyc.onNfcScanSuccess((data) => { ... });
|
|
|
508
507
|
await SdkEkyc.startNfcScan(config);
|
|
509
508
|
```
|
|
510
509
|
|
|
511
|
-
**After (1.2.
|
|
510
|
+
**After (1.2.8):**
|
|
512
511
|
```typescript
|
|
513
512
|
import { FinosEKYC } from '@finos_sdk/sdk-ekyc';
|
|
514
513
|
|
|
@@ -537,19 +536,19 @@ If migrating from the native Android SDK:
|
|
|
537
536
|
## 📦 Package Information
|
|
538
537
|
|
|
539
538
|
- **Package**: `@finos_sdk/sdk-ekyc`
|
|
540
|
-
- **Version**: 1.2.
|
|
539
|
+
- **Version**: 1.2.8
|
|
541
540
|
- **Platform**: Android (iOS support planned)
|
|
542
|
-
- **React Native**: 0.
|
|
541
|
+
- **React Native**: 0.77.0+
|
|
543
542
|
- **License**: MIT
|
|
544
|
-
- **Repository**: [GitHub](https://github.com/finos
|
|
543
|
+
- **Repository**: [GitHub](https://github.com/finosvn/finos.ekyc.sdk)
|
|
545
544
|
|
|
546
|
-
## 🆕 What's New in v1.2.
|
|
545
|
+
## 🆕 What's New in v1.2.8
|
|
547
546
|
|
|
548
547
|
- ✨ Unified `startEkycUI` method for complete eKYC flows
|
|
549
548
|
- 🎨 Enhanced UI customization with `styleConfig`
|
|
550
549
|
- ⚙️ Flexible module configuration (single or multiple modules)
|
|
551
550
|
- 🔧 Improved error handling and debugging
|
|
552
|
-
- 📦 Better dependency management with
|
|
553
|
-
- 🏗️ Updated Android build configuration for React Native 0.
|
|
551
|
+
- 📦 Better dependency management with GitHub Packages Maven repository
|
|
552
|
+
- 🏗️ Updated Android build configuration for React Native 0.77.0+
|
|
554
553
|
- 🌐 Multi-language support (Vietnamese & English)
|
|
555
554
|
- 🔄 Configurable retry options
|
package/android/build.gradle
CHANGED
|
@@ -1,20 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
buildscript {
|
|
2
|
+
ext.kotlinVersion = "2.0.21"
|
|
3
|
+
repositories {
|
|
4
|
+
google()
|
|
5
|
+
mavenCentral()
|
|
6
|
+
gradlePluginPortal()
|
|
7
|
+
}
|
|
8
|
+
dependencies {
|
|
9
|
+
classpath("com.android.tools.build:gradle:8.7.3")
|
|
10
|
+
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
|
|
11
|
+
}
|
|
6
12
|
}
|
|
7
13
|
|
|
14
|
+
apply plugin: 'com.android.library'
|
|
15
|
+
apply plugin: 'org.jetbrains.kotlin.android'
|
|
16
|
+
|
|
8
17
|
android {
|
|
9
18
|
namespace 'finos.sdk.ekyc'
|
|
10
19
|
compileSdk 35
|
|
11
20
|
|
|
21
|
+
sourceSets {
|
|
22
|
+
main {
|
|
23
|
+
java.srcDirs = ['src/main/java']
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
12
27
|
defaultConfig {
|
|
13
28
|
minSdkVersion 24
|
|
14
29
|
targetSdkVersion 34
|
|
15
30
|
consumerProguardFiles 'consumer-rules.pro'
|
|
16
31
|
}
|
|
17
32
|
|
|
33
|
+
compileOptions {
|
|
34
|
+
sourceCompatibility JavaVersion.VERSION_17
|
|
35
|
+
targetCompatibility JavaVersion.VERSION_17
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Don't set kotlinOptions.languageVersion - let React Native plugin manage it
|
|
39
|
+
// React Native plugin will automatically configure Kotlin languageVersion
|
|
40
|
+
|
|
18
41
|
buildTypes {
|
|
19
42
|
release {
|
|
20
43
|
minifyEnabled false
|
|
@@ -27,23 +50,33 @@ repositories {
|
|
|
27
50
|
google()
|
|
28
51
|
mavenCentral()
|
|
29
52
|
mavenLocal()
|
|
30
|
-
|
|
53
|
+
|
|
54
|
+
// GitHub Packages for FINOS eKYC SDK
|
|
55
|
+
maven {
|
|
56
|
+
url = uri("https://maven.pkg.github.com/finosvn/finos.ekyc.sdk")
|
|
57
|
+
credentials {
|
|
58
|
+
username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_USER")
|
|
59
|
+
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
|
|
60
|
+
}
|
|
61
|
+
}
|
|
31
62
|
}
|
|
32
63
|
|
|
33
64
|
dependencies {
|
|
34
|
-
// React Native
|
|
35
65
|
implementation 'com.facebook.react:react-android'
|
|
36
66
|
|
|
37
|
-
// Finos eKYC SDK dependencies
|
|
38
|
-
|
|
39
|
-
implementation("finos.sdk.ekyc:
|
|
40
|
-
implementation("finos.sdk.ekyc:
|
|
41
|
-
implementation("finos.sdk.ekyc:
|
|
42
|
-
implementation("finos.sdk.ekyc:
|
|
43
|
-
implementation("finos.sdk.ekyc:
|
|
44
|
-
implementation("finos.sdk.ekyc:
|
|
45
|
-
implementation("finos.sdk.ekyc:
|
|
46
|
-
implementation("finos.sdk.ekyc:
|
|
47
|
-
implementation("finos.sdk.ekyc:
|
|
48
|
-
implementation("finos.sdk.ekyc:
|
|
49
|
-
|
|
67
|
+
// Finos eKYC SDK dependencies from GitHub Packages Maven repository
|
|
68
|
+
def sdkVersion = "1.2.8"
|
|
69
|
+
implementation("finos.sdk.ekyc:ekyc:$sdkVersion")
|
|
70
|
+
implementation("finos.sdk.ekyc:ekycui:$sdkVersion")
|
|
71
|
+
implementation("finos.sdk.ekyc:nfc:$sdkVersion")
|
|
72
|
+
implementation("finos.sdk.ekyc:ocr:$sdkVersion")
|
|
73
|
+
implementation("finos.sdk.ekyc:liveness:$sdkVersion")
|
|
74
|
+
implementation("finos.sdk.ekyc:faceservice:$sdkVersion")
|
|
75
|
+
implementation("finos.sdk.ekyc:c06:$sdkVersion")
|
|
76
|
+
implementation("finos.sdk.ekyc:sdkcore:$sdkVersion")
|
|
77
|
+
implementation("finos.sdk.ekyc:sdkcorecamera:$sdkVersion")
|
|
78
|
+
implementation("finos.sdk.ekyc:sdkui:$sdkVersion")
|
|
79
|
+
implementation("finos.sdk.ekyc:qrcode:$sdkVersion")
|
|
80
|
+
implementation("finos.sdk.ekyc:smsotp:$sdkVersion")
|
|
81
|
+
implementation("finos.sdk.ekyc:esign:$sdkVersion")
|
|
82
|
+
}
|
|
@@ -44,4 +44,10 @@ compileSdkVersion=35
|
|
|
44
44
|
targetSdkVersion=34
|
|
45
45
|
minSdkVersion=24
|
|
46
46
|
buildToolsVersion=35.0.0
|
|
47
|
-
ndkVersion=
|
|
47
|
+
ndkVersion=27.0.12077973
|
|
48
|
+
|
|
49
|
+
# GitHub Packages credentials for FINOS eKYC SDK
|
|
50
|
+
# Set these values in your ~/.gradle/gradle.properties or as environment variables:
|
|
51
|
+
gpr.user=SDK_eKYC
|
|
52
|
+
gpr.key=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
|
|
53
|
+
# Or use environment variables: GITHUB_USER and GITHUB_TOKEN
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
pluginManagement {
|
|
2
|
+
includeBuild("../node_modules/@react-native/gradle-plugin")
|
|
3
|
+
repositories {
|
|
4
|
+
gradlePluginPortal()
|
|
5
|
+
mavenCentral()
|
|
6
|
+
mavenLocal()
|
|
7
|
+
google()
|
|
8
|
+
|
|
9
|
+
// GitHub Packages for FINOS eKYC SDK
|
|
10
|
+
maven {
|
|
11
|
+
url = uri("https://maven.pkg.github.com/finosvn/finos.ekyc.sdk")
|
|
12
|
+
credentials {
|
|
13
|
+
def props = new Properties()
|
|
14
|
+
def propsFile = file("gradle.properties")
|
|
15
|
+
if (propsFile.exists()) {
|
|
16
|
+
propsFile.withInputStream { props.load(it) }
|
|
17
|
+
}
|
|
18
|
+
username = props.getProperty("gpr.user") ?: System.getenv("GITHUB_USER") ?: "SDK_eKYC"
|
|
19
|
+
password = props.getProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN") ?: "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"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
plugins { id("com.facebook.react.settings") }
|
|
25
|
+
extensions.configure(com.facebook.react.ReactSettingsExtension){ ex -> ex.autolinkLibrariesFromCommand() }
|
|
26
|
+
|
|
27
|
+
dependencyResolutionManagement {
|
|
28
|
+
repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
|
|
29
|
+
repositories {
|
|
30
|
+
google()
|
|
31
|
+
mavenCentral()
|
|
32
|
+
mavenLocal()
|
|
33
|
+
|
|
34
|
+
// GitHub Packages for FINOS eKYC SDK
|
|
35
|
+
maven {
|
|
36
|
+
url = uri("https://maven.pkg.github.com/finosvn/finos.ekyc.sdk")
|
|
37
|
+
credentials {
|
|
38
|
+
def props = new Properties()
|
|
39
|
+
def propsFile = file("gradle.properties")
|
|
40
|
+
if (propsFile.exists()) {
|
|
41
|
+
propsFile.withInputStream { props.load(it) }
|
|
42
|
+
}
|
|
43
|
+
username = props.getProperty("gpr.user") ?: System.getenv("GITHUB_USER") ?: "SDK_eKYC"
|
|
44
|
+
password = props.getProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN") ?: "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"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
rootProject.name = 'finosSDKeKYC'
|
|
50
|
+
include ':app'
|
|
51
|
+
include ':src:main'
|
|
52
|
+
project(':src:main').projectDir = new File(rootProject.projectDir, 'src/main')
|
|
53
|
+
includeBuild('../node_modules/@react-native/gradle-plugin')
|