@finos_sdk/sdk-ekyc 0.0.18 → 0.0.21
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/android/build.gradle +38 -0
- package/android/src/main/AndroidManifest.xml +9 -0
- package/android/src/main/java/com/sdkekycrn/EKYCModule.kt +3 -0
- package/android/src/main/java/com/sdkekycrn/EKYCPackage.kt +21 -0
- package/dist/App.d.ts +1 -7
- package/dist/App.js +15 -71
- package/dist/EKYCModule.js +4 -4
- package/package.json +11 -5
- package/react-native.config.js +12 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
plugins {
|
|
2
|
+
id "com.android.library"
|
|
3
|
+
id "org.jetbrains.kotlin.android"
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
android {
|
|
7
|
+
namespace "com.sdkekycrn"
|
|
8
|
+
compileSdkVersion 35
|
|
9
|
+
|
|
10
|
+
defaultConfig {
|
|
11
|
+
minSdkVersion 24
|
|
12
|
+
targetSdkVersion 34
|
|
13
|
+
consumerProguardFiles "consumer-rules.pro"
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
buildFeatures {
|
|
17
|
+
buildConfig false
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
repositories {
|
|
22
|
+
google()
|
|
23
|
+
mavenCentral()
|
|
24
|
+
mavenLocal()
|
|
25
|
+
maven {
|
|
26
|
+
url "https://maven.pkg.github.com/vnfinosdevops/finos.ekyc.sdk.android"
|
|
27
|
+
credentials {
|
|
28
|
+
username = project.findProperty("gpr.user") ?: System.getenv("GPR_USER")
|
|
29
|
+
password = project.findProperty("gpr.key") ?: System.getenv("GPR_KEY")
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
dependencies {
|
|
35
|
+
implementation("com.facebook.react:react-android")
|
|
36
|
+
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.9.25")
|
|
37
|
+
implementation("finos.sdk.ekyc:ekyc:1.1.9")
|
|
38
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
package com.sdkekycrn
|
|
2
|
+
|
|
3
|
+
import com.facebook.react.ReactPackage
|
|
4
|
+
import com.facebook.react.bridge.NativeModule
|
|
5
|
+
import com.facebook.react.bridge.ReactApplicationContext
|
|
6
|
+
import com.facebook.react.uimanager.ViewManager
|
|
7
|
+
|
|
8
|
+
class EKYCPackage : ReactPackage {
|
|
9
|
+
|
|
10
|
+
override fun createNativeModules(reactContext: ReactApplicationContext): List<NativeModule> {
|
|
11
|
+
return listOf(EKYCModule(reactContext))
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
override fun createViewManagers(
|
|
15
|
+
reactContext: ReactApplicationContext
|
|
16
|
+
): List<ViewManager<*, *>> {
|
|
17
|
+
return emptyList()
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
|
package/dist/App.d.ts
CHANGED
package/dist/App.js
CHANGED
|
@@ -1,84 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Sample React Native App
|
|
4
|
-
* https://github.com/facebook/react-native
|
|
5
|
-
*
|
|
6
|
-
* @format
|
|
7
|
-
*/
|
|
8
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
4
|
};
|
|
11
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
6
|
const react_1 = __importDefault(require("react"));
|
|
13
7
|
const react_native_1 = require("react-native");
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
<
|
|
19
|
-
styles.sectionTitle,
|
|
20
|
-
{
|
|
21
|
-
color: isDarkMode ? NewAppScreen_1.Colors.white : NewAppScreen_1.Colors.black,
|
|
22
|
-
},
|
|
23
|
-
]}>
|
|
24
|
-
{title}
|
|
25
|
-
</react_native_1.Text>
|
|
26
|
-
<react_native_1.Text style={[
|
|
27
|
-
styles.sectionDescription,
|
|
28
|
-
{
|
|
29
|
-
color: isDarkMode ? NewAppScreen_1.Colors.light : NewAppScreen_1.Colors.dark,
|
|
30
|
-
},
|
|
31
|
-
]}>
|
|
32
|
-
{children}
|
|
33
|
-
</react_native_1.Text>
|
|
8
|
+
const TestNativeModules_1 = __importDefault(require("./TestNativeModules"));
|
|
9
|
+
const App = () => {
|
|
10
|
+
return (<react_native_1.View style={styles.container}>
|
|
11
|
+
<react_native_1.Text style={styles.title}>EKYC Module Test</react_native_1.Text>
|
|
12
|
+
<TestNativeModules_1.default />
|
|
34
13
|
</react_native_1.View>);
|
|
35
|
-
}
|
|
36
|
-
function App() {
|
|
37
|
-
const isDarkMode = (0, react_native_1.useColorScheme)() === 'dark';
|
|
38
|
-
const backgroundStyle = {
|
|
39
|
-
backgroundColor: isDarkMode ? NewAppScreen_1.Colors.darker : NewAppScreen_1.Colors.lighter,
|
|
40
|
-
};
|
|
41
|
-
return (<react_native_1.SafeAreaView style={backgroundStyle}>
|
|
42
|
-
<react_native_1.StatusBar barStyle={isDarkMode ? 'light-content' : 'dark-content'} backgroundColor={backgroundStyle.backgroundColor}/>
|
|
43
|
-
<react_native_1.ScrollView contentInsetAdjustmentBehavior="automatic" style={backgroundStyle}>
|
|
44
|
-
<NewAppScreen_1.Header />
|
|
45
|
-
<react_native_1.View style={{
|
|
46
|
-
backgroundColor: isDarkMode ? NewAppScreen_1.Colors.black : NewAppScreen_1.Colors.white,
|
|
47
|
-
}}>
|
|
48
|
-
<Section title="Step One">
|
|
49
|
-
Edit <react_native_1.Text style={styles.highlight}>App.tsx</react_native_1.Text> to change this
|
|
50
|
-
screen and then come back to see your edits.
|
|
51
|
-
</Section>
|
|
52
|
-
<Section title="See Your Changes">
|
|
53
|
-
<NewAppScreen_1.ReloadInstructions />
|
|
54
|
-
</Section>
|
|
55
|
-
<Section title="Debug">
|
|
56
|
-
<NewAppScreen_1.DebugInstructions />
|
|
57
|
-
</Section>
|
|
58
|
-
<Section title="Learn More">
|
|
59
|
-
Read the docs to discover what to do next:
|
|
60
|
-
</Section>
|
|
61
|
-
<NewAppScreen_1.LearnMoreLinks />
|
|
62
|
-
</react_native_1.View>
|
|
63
|
-
</react_native_1.ScrollView>
|
|
64
|
-
</react_native_1.SafeAreaView>);
|
|
65
|
-
}
|
|
14
|
+
};
|
|
66
15
|
const styles = react_native_1.StyleSheet.create({
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
},
|
|
71
|
-
sectionTitle: {
|
|
72
|
-
fontSize: 24,
|
|
73
|
-
fontWeight: '600',
|
|
74
|
-
},
|
|
75
|
-
sectionDescription: {
|
|
76
|
-
marginTop: 8,
|
|
77
|
-
fontSize: 18,
|
|
78
|
-
fontWeight: '400',
|
|
16
|
+
container: {
|
|
17
|
+
flex: 1,
|
|
18
|
+
backgroundColor: '#fff',
|
|
79
19
|
},
|
|
80
|
-
|
|
81
|
-
|
|
20
|
+
title: {
|
|
21
|
+
fontSize: 20,
|
|
22
|
+
fontWeight: 'bold',
|
|
23
|
+
textAlign: 'center',
|
|
24
|
+
padding: 20,
|
|
25
|
+
backgroundColor: '#f0f0f0',
|
|
82
26
|
},
|
|
83
27
|
});
|
|
84
28
|
exports.default = App;
|
package/dist/EKYCModule.js
CHANGED
|
@@ -15,12 +15,12 @@ if (!EKYCNativeModule) {
|
|
|
15
15
|
}
|
|
16
16
|
// Initialize the module
|
|
17
17
|
try {
|
|
18
|
-
EKYCNativeModule.initSdkEkyc()
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
EKYCNativeModule.initSdkEkyc()
|
|
19
|
+
.then(() => console.log("✅ EKYCModule.initSdkEkyc called successfully"))
|
|
20
|
+
.catch(e => console.warn("❌ Failed to initialize SDK EKYC:", e));
|
|
21
21
|
}
|
|
22
22
|
catch (e) {
|
|
23
|
-
console.warn(
|
|
23
|
+
console.warn("❌ Exception when calling initSdkEkyc:", e);
|
|
24
24
|
}
|
|
25
25
|
class SDKeKYC {
|
|
26
26
|
constructor() {
|
package/package.json
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finos_sdk/sdk-ekyc",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.21",
|
|
4
4
|
"description": "SDK React Native EKYC",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"files": [
|
|
8
|
-
"dist"
|
|
8
|
+
"dist",
|
|
9
|
+
"react-native.config.js",
|
|
10
|
+
"android/src",
|
|
11
|
+
"android/build.gradle",
|
|
12
|
+
"android/src/main/AndroidManifest.xml"
|
|
9
13
|
],
|
|
10
14
|
"repository": {
|
|
11
15
|
"type": "git",
|
|
@@ -18,18 +22,20 @@
|
|
|
18
22
|
},
|
|
19
23
|
"homepage": "https://github.com/finos/sdk-ekyc#readme",
|
|
20
24
|
"keywords": [
|
|
21
|
-
"
|
|
25
|
+
"finos-sdk",
|
|
22
26
|
"ekyc",
|
|
23
|
-
"sdk"
|
|
27
|
+
"sdk",
|
|
28
|
+
"finos"
|
|
24
29
|
],
|
|
25
30
|
"scripts": {
|
|
26
|
-
"android": "
|
|
31
|
+
"android": "react-native run-android",
|
|
27
32
|
"ios": "react-native run-ios",
|
|
28
33
|
"start": "react-native start --reset-cache",
|
|
29
34
|
"clean": "cd android && ./gradlew clean && cd ..",
|
|
30
35
|
"npm-install": "npm install",
|
|
31
36
|
"build": "tsc",
|
|
32
37
|
"prepare": "npm run build",
|
|
38
|
+
"pulish-sdk-local": "npm run build && npm publish --access public",
|
|
33
39
|
"pulish-sdk": "npm run build && npm version patch --force && npm publish --access public"
|
|
34
40
|
},
|
|
35
41
|
"dependencies": {
|