facia-mobilesdk 0.0.4 → 0.0.6
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.
|
@@ -43,15 +43,15 @@ public class FaciaReactNativeModule extends ReactContextBaseJavaModule {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
@ReactMethod
|
|
46
|
-
public void verify(String
|
|
46
|
+
public void verify(String configObject, Callback callback) {
|
|
47
47
|
try {
|
|
48
48
|
|
|
49
49
|
JSONObject configJson = new JSONObject(configObject);
|
|
50
50
|
|
|
51
51
|
FaciaAi faciaAi = new FaciaAi();
|
|
52
52
|
|
|
53
|
-
faciaAi.createRequest(
|
|
54
|
-
callback.invoke(new JSONObject(
|
|
53
|
+
faciaAi.createRequest(getCurrentActivity(), configJson, responseSet -> {
|
|
54
|
+
callback.invoke(new JSONObject(responseSet).toString());
|
|
55
55
|
});
|
|
56
56
|
|
|
57
57
|
// JSONObject requestJson = new JSONObject(requestObject);
|