facia-mobilesdk 0.4.5 → 0.4.7
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,2 @@
|
|
|
1
|
-
# Welcome to Facia React
|
|
2
|
-
|
|
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/platforms/react-sdk)**
|
|
1
|
+
# Welcome to Facia React Natice Plugin
|
|
2
|
+
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)**
|
package/android/build.gradle
CHANGED
|
@@ -32,7 +32,7 @@ buildscript {
|
|
|
32
32
|
mavenCentral()
|
|
33
33
|
}
|
|
34
34
|
dependencies {
|
|
35
|
-
classpath 'com.android.tools.build:gradle:
|
|
35
|
+
classpath 'com.android.tools.build:gradle:8.2.1'
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -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:
|
|
76
|
+
implementation 'com.github.FaciaMobile:android-core:2.0.4' // From node_modules
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
def configureReactNativePom(def pom) {
|
|
@@ -40,8 +40,7 @@ public class FaciaReactNativeModule extends ReactContextBaseJavaModule {
|
|
|
40
40
|
JSONObject configJson = new JSONObject(configObject);
|
|
41
41
|
|
|
42
42
|
FaciaAi faciaAi = new FaciaAi();
|
|
43
|
-
|
|
44
|
-
configJson.put("appInfo", "react-native 0.4.5");
|
|
43
|
+
|
|
45
44
|
faciaAi.createRequest(token,getCurrentActivity(), configJson, responseSet -> {
|
|
46
45
|
|
|
47
46
|
callback.invoke(new JSONObject(responseSet).toString());
|
package/facia-mobilesdk.podspec
CHANGED
package/ios/MobilesdkModule.m
CHANGED
|
@@ -21,17 +21,12 @@ RCT_EXPORT_METHOD(verify:(NSString *)token config:(NSString *)config callback: (
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
Facia *facia = [[Facia alloc] init];
|
|
24
|
-
|
|
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
|
-
|
|
24
|
+
|
|
30
25
|
UIViewController* vc = RCTPresentedViewController();
|
|
31
26
|
__block RCTResponseSenderBlock originalCallback = [callback copy];
|
|
32
27
|
[facia createRequestWithParentViewController:vc
|
|
33
28
|
accessToken:token
|
|
34
|
-
configs:
|
|
29
|
+
configs:[self parseJSONString:config]
|
|
35
30
|
completion:^(NSDictionary *result) {
|
|
36
31
|
|
|
37
32
|
NSString *response = [self convertToJSONString:result];
|
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.
|
|
4
|
+
"version": "0.4.7",
|
|
5
5
|
"description": "Facia mobile SDK",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"files": [
|
|
@@ -12,19 +12,13 @@
|
|
|
12
12
|
"ios",
|
|
13
13
|
"facia-mobilesdk.podspec"
|
|
14
14
|
],
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"start": "react-native start",
|
|
24
|
-
|
|
25
|
-
"test": "jest"
|
|
26
|
-
|
|
27
|
-
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"android": "react-native run-android",
|
|
17
|
+
"ios": "react-native run-ios",
|
|
18
|
+
"lint": "eslint .",
|
|
19
|
+
"start": "react-native start",
|
|
20
|
+
"test": "jest"
|
|
21
|
+
},
|
|
28
22
|
"repository": {
|
|
29
23
|
"type": "git"
|
|
30
24
|
},
|
|
@@ -55,4 +49,4 @@
|
|
|
55
49
|
"prettier": {
|
|
56
50
|
"printWidth": 120
|
|
57
51
|
}
|
|
58
|
-
}
|
|
52
|
+
}
|