facia-mobilesdk 0.4.5 → 0.4.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.
@@ -40,8 +40,8 @@ public class FaciaReactNativeModule extends ReactContextBaseJavaModule {
40
40
  JSONObject configJson = new JSONObject(configObject);
41
41
 
42
42
  FaciaAi faciaAi = new FaciaAi();
43
- configJson.put("platform", "react-native-0.4.5");
44
- configJson.put("appInfo", "react-native 0.4.5");
43
+ configJson.put("platform", "react-native-0.4.6");
44
+ configJson.put("appInfo", "react-native 0.4.6");
45
45
  faciaAi.createRequest(token,getCurrentActivity(), configJson, responseSet -> {
46
46
 
47
47
  callback.invoke(new JSONObject(responseSet).toString());
@@ -18,16 +18,14 @@ RCT_EXPORT_METHOD(testMethod:(NSString *)name location:(NSString *)location)
18
18
  // RCT_EXPORT_METHOD(verify:(NSString *)request auth:(NSString *)auth config:(NSString *)config callback: (RCTResponseSenderBlock) callback)
19
19
  RCT_EXPORT_METHOD(verify:(NSString *)token config:(NSString *)config callback: (RCTResponseSenderBlock) callback)
20
20
  {
21
-
22
-
23
21
  Facia *facia = [[Facia alloc] init];
24
- NSDictionary *configDict = [self parseJSONString:config];
25
- NSMutableDictionary *modifiedConfig = [configDict mutableCopy];
26
- modifiedConfig[@"platform"] = [NSString stringWithFormat:@"%@react-native-0.4.5", modifiedConfig[@"platform"]];
27
- modifiedConfig[@"appInfo"] = [NSString stringWithFormat:@"%@react-native 0.4.5", modifiedConfig[@"appInfo"]];
28
-
29
22
 
30
23
  UIViewController* vc = RCTPresentedViewController();
24
+ NSMutableDictionary *modifiedConfig = [[self parseJSONString:config] mutableCopy];
25
+
26
+ modifiedConfig[@"platform"] = @"react-native-0.4.6";
27
+ modifiedConfig[@"appInfo"] = @"react-native 0.4.6";
28
+
31
29
  __block RCTResponseSenderBlock originalCallback = [callback copy];
32
30
  [facia createRequestWithParentViewController:vc
33
31
  accessToken:token
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.4.5",
4
+ "version": "0.4.6",
5
5
  "description": "Facia mobile SDK",
6
6
  "main": "index.js",
7
7
  "files": [