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.
@@ -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.1' // From node_modules
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
- Callback newCallback = callback;
46
- newCallback.invoke(new JSONObject(responseSet).toString());
45
+
46
+ callback.invoke(new JSONObject(responseSet).toString());
47
47
 
48
48
  });
49
49
 
@@ -1,7 +1,7 @@
1
1
  require "json"
2
2
 
3
3
  package = JSON.parse(File.read(File.join(__dir__, "package.json")))
4
- sdk_version = "1.0.3"
4
+ sdk_version = "1.0.8"
5
5
 
6
6
  Pod::Spec.new do |s|
7
7
  s.name = "facia-mobilesdk"
@@ -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
- NSString *response = [self convertToJSONString:result];
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
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "facia-mobilesdk",
3
3
  "title": "React Native Mobilesdk Module",
4
- "version": "0.3.7",
4
+ "version": "0.3.9",
5
5
  "description": "Facia mobile SDK",
6
6
  "main": "index.js",
7
7
  "files": [