facia-mobilesdk 0.5.2 → 0.5.4

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/README.md CHANGED
@@ -1,3 +1,4 @@
1
- # Welcome to Facia React Natice Plugin
1
+ # Welcome to Android Sample Apps
2
+
3
+ Please note that these are the sample apps for android in Kotlin & Java, designed to provide a glimpse of our powerful features. For the actual SDK and comprehensive integration guide, please visit **[Android Integration Guide](https://developers.facia.ai/platforms/android-sdk)**
2
4
 
3
- Please note that this is the core plugin for React Native. For the comprehensive integration guide, please visit **[React Native Integration Guide](https://developers.facia.ai/mobile/sdks/platforms/react-sdk)**
@@ -38,6 +38,7 @@ public class FaciaReactNativeModule extends ReactContextBaseJavaModule {
38
38
 
39
39
 
40
40
  JSONObject configJson = new JSONObject(configObject);
41
+ configJson.put("appInfo", "react-native-0.5.4");
41
42
 
42
43
  FaciaAi faciaAi = new FaciaAi();
43
44
 
@@ -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 = "3.0.5"
4
+ sdk_version = "3.0.6"
5
5
 
6
6
  Pod::Spec.new do |s|
7
7
  s.name = "facia-mobilesdk"
@@ -24,6 +24,11 @@ RCT_EXPORT_METHOD(verify:(NSString *)token config:(NSString *)config callback: (
24
24
 
25
25
  UIViewController* vc = RCTPresentedViewController();
26
26
  __block RCTResponseSenderBlock originalCallback = [callback copy];
27
+
28
+ NSDictionary *configDict = [self parseJSONString:config];
29
+ NSMutableDictionary *modifiedConfigDict = [configDict mutableCopy];
30
+ modifiedConfigDict[@"platform"] = @"react-native-0.5.4";
31
+
27
32
  [facia createRequestWithParentViewController:vc
28
33
  accessToken:token
29
34
  configs:[self parseJSONString:config]
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.5.2",
4
+ "version": "0.5.4",
5
5
  "description": "Facia mobile SDK",
6
6
  "main": "index.js",
7
7
  "files": [