facia-mobilesdk 0.3.7 → 0.3.9
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
CHANGED
|
@@ -73,7 +73,7 @@ repositories {
|
|
|
73
73
|
dependencies {
|
|
74
74
|
//noinspection GradleDynamicVersion
|
|
75
75
|
implementation 'com.facebook.react:react-native:+'
|
|
76
|
-
implementation 'com.github.FaciaMobile:android-core:1.0.
|
|
76
|
+
implementation 'com.github.FaciaMobile:android-core:1.0.4' // From node_modules
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
def configureReactNativePom(def pom) {
|
|
@@ -42,8 +42,8 @@ public class FaciaReactNativeModule extends ReactContextBaseJavaModule {
|
|
|
42
42
|
FaciaAi faciaAi = new FaciaAi();
|
|
43
43
|
|
|
44
44
|
faciaAi.createRequest(token,getCurrentActivity(), configJson, responseSet -> {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
|
|
46
|
+
callback.invoke(new JSONObject(responseSet).toString());
|
|
47
47
|
|
|
48
48
|
});
|
|
49
49
|
|
package/facia-mobilesdk.podspec
CHANGED
package/ios/MobilesdkModule.m
CHANGED
|
@@ -28,14 +28,9 @@ RCT_EXPORT_METHOD(verify:(NSString *)token config:(NSString *)config callback: (
|
|
|
28
28
|
accessToken:token
|
|
29
29
|
configs:[self parseJSONString:config]
|
|
30
30
|
completion:^(NSDictionary *result) {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
// Invoke the original callback
|
|
35
|
-
if (originalCallback) {
|
|
36
|
-
originalCallback(@[response]);
|
|
37
|
-
originalCallback = nil; // Remove the callback to enforce the single invoke rule
|
|
38
|
-
}
|
|
31
|
+
|
|
32
|
+
NSString *response = [self convertToJSONString:result];
|
|
33
|
+
callback(@[response]);
|
|
39
34
|
}];
|
|
40
35
|
}
|
|
41
36
|
|