@finos_sdk/sdk-ekyc 1.2.2 → 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.
Files changed (86) hide show
  1. package/LICENSE +13 -10
  2. package/README.md +41 -42
  3. package/android/build.gradle +42 -11
  4. package/android/gradle.properties +7 -1
  5. package/android/settings.gradle +53 -0
  6. package/android/src/main/java/finos/sdk/ekyc/EKYCModule.kt +778 -81
  7. package/dist/EKYCModule.d.ts +72 -0
  8. package/dist/EKYCModule.js +650 -71
  9. package/dist/finos_sdk-sdk-ekyc-1.2.8.tgz +0 -0
  10. package/dist/index.d.ts +6 -1
  11. package/dist/index.js +5 -1
  12. package/dist/package.json +31 -21
  13. package/dist/src/modules/FinosEKYCModule.d.ts +144 -0
  14. package/dist/src/modules/FinosEKYCModule.js +468 -2
  15. package/dist/src/modules/FinosESignModule.d.ts +270 -0
  16. package/dist/src/modules/FinosESignModule.js +752 -0
  17. package/dist/src/types/ekycESignType.d.ts +67 -0
  18. package/dist/src/types/ekycESignType.js +2 -0
  19. package/dist/src/types/ekycSmsOtpType.d.ts +52 -0
  20. package/dist/src/types/ekycSmsOtpType.js +2 -0
  21. package/package.json +31 -21
  22. package/src/modules/FinosEKYCModule.ts +554 -2
  23. package/src/modules/FinosESignModule.ts +919 -0
  24. package/src/modules/README.md +3 -3
  25. package/src/types/ekycESignType.ts +76 -0
  26. package/src/types/ekycSmsOtpType.ts +59 -0
  27. package/android/SDKeKYC/finos/sdk/ekyc/c06/1.2.2/c06-1.2.2-sources.jar +0 -0
  28. package/android/SDKeKYC/finos/sdk/ekyc/c06/1.2.2/c06-1.2.2.aar +0 -0
  29. package/android/SDKeKYC/finos/sdk/ekyc/c06/1.2.2/c06-1.2.2.module +0 -110
  30. package/android/SDKeKYC/finos/sdk/ekyc/c06/1.2.2/c06-1.2.2.pom +0 -37
  31. package/android/SDKeKYC/finos/sdk/ekyc/c06/maven-metadata-local.xml +0 -13
  32. package/android/SDKeKYC/finos/sdk/ekyc/ekyc/1.2.2/ekyc-1.2.2-sources.jar +0 -0
  33. package/android/SDKeKYC/finos/sdk/ekyc/ekyc/1.2.2/ekyc-1.2.2.aar +0 -0
  34. package/android/SDKeKYC/finos/sdk/ekyc/ekyc/1.2.2/ekyc-1.2.2.module +0 -201
  35. package/android/SDKeKYC/finos/sdk/ekyc/ekyc/1.2.2/ekyc-1.2.2.pom +0 -73
  36. package/android/SDKeKYC/finos/sdk/ekyc/ekyc/maven-metadata-local.xml +0 -13
  37. package/android/SDKeKYC/finos/sdk/ekyc/ekycui/1.2.2/ekycui-1.2.2-sources.jar +0 -0
  38. package/android/SDKeKYC/finos/sdk/ekyc/ekycui/1.2.2/ekycui-1.2.2.aar +0 -0
  39. package/android/SDKeKYC/finos/sdk/ekyc/ekycui/1.2.2/ekycui-1.2.2.module +0 -131
  40. package/android/SDKeKYC/finos/sdk/ekyc/ekycui/1.2.2/ekycui-1.2.2.pom +0 -43
  41. package/android/SDKeKYC/finos/sdk/ekyc/ekycui/maven-metadata-local.xml +0 -13
  42. package/android/SDKeKYC/finos/sdk/ekyc/faceservice/1.2.2/faceservice-1.2.2-sources.jar +0 -0
  43. package/android/SDKeKYC/finos/sdk/ekyc/faceservice/1.2.2/faceservice-1.2.2.aar +0 -0
  44. package/android/SDKeKYC/finos/sdk/ekyc/faceservice/1.2.2/faceservice-1.2.2.module +0 -110
  45. package/android/SDKeKYC/finos/sdk/ekyc/faceservice/1.2.2/faceservice-1.2.2.pom +0 -37
  46. package/android/SDKeKYC/finos/sdk/ekyc/faceservice/maven-metadata-local.xml +0 -13
  47. package/android/SDKeKYC/finos/sdk/ekyc/liveness/1.2.2/liveness-1.2.2-sources.jar +0 -0
  48. package/android/SDKeKYC/finos/sdk/ekyc/liveness/1.2.2/liveness-1.2.2.aar +0 -0
  49. package/android/SDKeKYC/finos/sdk/ekyc/liveness/1.2.2/liveness-1.2.2.module +0 -138
  50. package/android/SDKeKYC/finos/sdk/ekyc/liveness/1.2.2/liveness-1.2.2.pom +0 -55
  51. package/android/SDKeKYC/finos/sdk/ekyc/liveness/maven-metadata-local.xml +0 -13
  52. package/android/SDKeKYC/finos/sdk/ekyc/nfc/1.2.2/nfc-1.2.2-sources.jar +0 -0
  53. package/android/SDKeKYC/finos/sdk/ekyc/nfc/1.2.2/nfc-1.2.2.aar +0 -0
  54. package/android/SDKeKYC/finos/sdk/ekyc/nfc/1.2.2/nfc-1.2.2.module +0 -131
  55. package/android/SDKeKYC/finos/sdk/ekyc/nfc/1.2.2/nfc-1.2.2.pom +0 -55
  56. package/android/SDKeKYC/finos/sdk/ekyc/nfc/maven-metadata-local.xml +0 -13
  57. package/android/SDKeKYC/finos/sdk/ekyc/ocr/1.2.2/ocr-1.2.2-sources.jar +0 -0
  58. package/android/SDKeKYC/finos/sdk/ekyc/ocr/1.2.2/ocr-1.2.2.aar +0 -0
  59. package/android/SDKeKYC/finos/sdk/ekyc/ocr/1.2.2/ocr-1.2.2.module +0 -124
  60. package/android/SDKeKYC/finos/sdk/ekyc/ocr/1.2.2/ocr-1.2.2.pom +0 -43
  61. package/android/SDKeKYC/finos/sdk/ekyc/ocr/maven-metadata-local.xml +0 -13
  62. package/android/SDKeKYC/finos/sdk/ekyc/qrcode/1.2.2/qrcode-1.2.2-sources.jar +0 -0
  63. package/android/SDKeKYC/finos/sdk/ekyc/qrcode/1.2.2/qrcode-1.2.2.aar +0 -0
  64. package/android/SDKeKYC/finos/sdk/ekyc/qrcode/1.2.2/qrcode-1.2.2.module +0 -138
  65. package/android/SDKeKYC/finos/sdk/ekyc/qrcode/1.2.2/qrcode-1.2.2.pom +0 -55
  66. package/android/SDKeKYC/finos/sdk/ekyc/qrcode/maven-metadata-local.xml +0 -13
  67. package/android/SDKeKYC/finos/sdk/ekyc/sdkcore/1.2.2/sdkcore-1.2.2-sources.jar +0 -0
  68. package/android/SDKeKYC/finos/sdk/ekyc/sdkcore/1.2.2/sdkcore-1.2.2.aar +0 -0
  69. package/android/SDKeKYC/finos/sdk/ekyc/sdkcore/1.2.2/sdkcore-1.2.2.module +0 -341
  70. package/android/SDKeKYC/finos/sdk/ekyc/sdkcore/1.2.2/sdkcore-1.2.2.pom +0 -139
  71. package/android/SDKeKYC/finos/sdk/ekyc/sdkcore/maven-metadata-local.xml +0 -13
  72. package/android/SDKeKYC/finos/sdk/ekyc/sdkcorecamera/1.2.2/sdkcorecamera-1.2.2-sources.jar +0 -0
  73. package/android/SDKeKYC/finos/sdk/ekyc/sdkcorecamera/1.2.2/sdkcorecamera-1.2.2.aar +0 -0
  74. package/android/SDKeKYC/finos/sdk/ekyc/sdkcorecamera/1.2.2/sdkcorecamera-1.2.2.module +0 -201
  75. package/android/SDKeKYC/finos/sdk/ekyc/sdkcorecamera/1.2.2/sdkcorecamera-1.2.2.pom +0 -85
  76. package/android/SDKeKYC/finos/sdk/ekyc/sdkcorecamera/maven-metadata-local.xml +0 -13
  77. package/android/SDKeKYC/finos/sdk/ekyc/sdkui/1.2.2/sdkui-1.2.2-sources.jar +0 -0
  78. package/android/SDKeKYC/finos/sdk/ekyc/sdkui/1.2.2/sdkui-1.2.2.aar +0 -0
  79. package/android/SDKeKYC/finos/sdk/ekyc/sdkui/1.2.2/sdkui-1.2.2.module +0 -208
  80. package/android/SDKeKYC/finos/sdk/ekyc/sdkui/1.2.2/sdkui-1.2.2.pom +0 -103
  81. package/android/SDKeKYC/finos/sdk/ekyc/sdkui/maven-metadata-local.xml +0 -13
  82. package/android/src/main/AndroidManifest.xml +0 -22
  83. package/android/src/main/build.gradle +0 -31
  84. package/dist/App.d.ts +0 -3
  85. package/dist/App.js +0 -497
  86. package/dist/finos_sdk-sdk-ekyc-1.2.2.tgz +0 -0
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 without restriction, including without limitation the rights
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
- furnished to do so, subject to the following conditions:
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 all
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 THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
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.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.76+
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@1.2.2
31
+ npm install @finos_sdk/sdk-ekyc
32
32
  # or
33
- yarn add @finos_sdk/sdk-ekyc@1.2.2
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
- Add the SDK repository to `android/build.gradle`:
148
+ The SDK automatically includes the GitHub Packages Maven repository. If using private Maven packages, configure GitHub credentials:
149
149
 
150
- ```gradle
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
- // Add this section
173
- allprojects {
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
- // Add Finos SDK local repository
172
+
173
+ // GitHub Packages for FINOS eKYC SDK
179
174
  maven {
180
- url uri("file://${rootProject.projectDir}/../node_modules/@finos_sdk/sdk-ekyc/android/SDKeKYC")
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/sdk-ekyc/issues)
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.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.2
497
- 2. Add Gradle repository configuration (see Android Setup)
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.76+
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.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.2
539
+ - **Version**: 1.2.8
541
540
  - **Platform**: Android (iOS support planned)
542
- - **React Native**: 0.76+
541
+ - **React Native**: 0.77.0+
543
542
  - **License**: MIT
544
- - **Repository**: [GitHub](https://github.com/finos/sdk-ekyc)
543
+ - **Repository**: [GitHub](https://github.com/finosvn/finos.ekyc.sdk)
545
544
 
546
- ## 🆕 What's New in v1.2.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 local repository support
553
- - 🏗️ Updated Android build configuration for React Native 0.76+
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
@@ -1,20 +1,43 @@
1
- // Top-level build file where you can add configuration options common to all sub-projects/modules.
2
-
3
- plugins {
4
- id 'com.android.library'
5
- id 'org.jetbrains.kotlin.android'
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,16 +50,22 @@ repositories {
27
50
  google()
28
51
  mavenCentral()
29
52
  mavenLocal()
30
- maven { url uri("file://${projectDir}/SDKeKYC") }
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
- def sdkVersion = "1.2.2"
34
-
35
64
  dependencies {
36
- // React Native
37
65
  implementation 'com.facebook.react:react-android'
38
66
 
39
- // Finos eKYC SDK dependencies
67
+ // Finos eKYC SDK dependencies from GitHub Packages Maven repository
68
+ def sdkVersion = "1.2.8"
40
69
  implementation("finos.sdk.ekyc:ekyc:$sdkVersion")
41
70
  implementation("finos.sdk.ekyc:ekycui:$sdkVersion")
42
71
  implementation("finos.sdk.ekyc:nfc:$sdkVersion")
@@ -48,4 +77,6 @@ dependencies {
48
77
  implementation("finos.sdk.ekyc:sdkcorecamera:$sdkVersion")
49
78
  implementation("finos.sdk.ekyc:sdkui:$sdkVersion")
50
79
  implementation("finos.sdk.ekyc:qrcode:$sdkVersion")
51
- }
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=26.1.10909125
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')