react-native-rdservice 0.1.0 → 0.1.1
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.
|
@@ -28,7 +28,7 @@ class RdserviceModule(reactContext: ReactApplicationContext) :
|
|
|
28
28
|
private var promise: Promise? = null
|
|
29
29
|
|
|
30
30
|
private val activityEventListener: ActivityEventListener = object : BaseActivityEventListener() {
|
|
31
|
-
override fun onActivityResult(activity: Activity
|
|
31
|
+
override fun onActivityResult(activity: Activity, requestCode: Int, resultCode: Int, data: Intent?) {
|
|
32
32
|
if (data == null) {
|
|
33
33
|
resolve(FAILURE, "No action taken")
|
|
34
34
|
return
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sourceRoot":"..\\..\\src","sources":["NativeRdservice.ts"],"mappings":";;AAAA,SAASA,mBAAmB,QAA0B,cAAc;
|
|
1
|
+
{"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sourceRoot":"..\\..\\src","sources":["NativeRdservice.ts"],"mappings":";;AAAA,SAASA,mBAAmB,QAA0B,cAAc;AAkBpE,eAAeA,mBAAmB,CAACC,YAAY,CAAO,WAAW,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeRdservice.d.ts","sourceRoot":"","sources":["../../../src/NativeRdservice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAErE,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,cAAc,
|
|
1
|
+
{"version":3,"file":"NativeRdservice.d.ts","sourceRoot":"","sources":["../../../src/NativeRdservice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAErE,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,cAAc,CACZ,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAC9B,cAAc,CACZ,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,iBAAiB,CAAC,CAAC;CAC/B;;AAED,wBAAmE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-rdservice",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Reading Finger print and Face data using RD services in Android",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "./lib/typescript/src/index.d.ts",
|
|
@@ -176,4 +176,4 @@
|
|
|
176
176
|
],
|
|
177
177
|
"version": "0.56.0"
|
|
178
178
|
}
|
|
179
|
-
}
|
|
179
|
+
}
|
package/src/NativeRdservice.ts
CHANGED
|
@@ -6,8 +6,14 @@ export interface RdServiceResponse {
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
export interface Spec extends TurboModule {
|
|
9
|
-
getFingerPrint(
|
|
10
|
-
|
|
9
|
+
getFingerPrint(
|
|
10
|
+
deviceName: string,
|
|
11
|
+
pidOption: string
|
|
12
|
+
): Promise<RdServiceResponse>;
|
|
13
|
+
getFaceCapture(
|
|
14
|
+
deviceName: string,
|
|
15
|
+
pidOption: string
|
|
16
|
+
): Promise<RdServiceResponse>;
|
|
11
17
|
}
|
|
12
18
|
|
|
13
19
|
export default TurboModuleRegistry.getEnforcing<Spec>('Rdservice');
|