jcore-react-native 2.0.3 → 2.0.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/android/libs/arm64-v8a/{libjcore330.so → libjcore332.so} +0 -0
- package/android/libs/armeabi/{libjcore330.so → libjcore332.so} +0 -0
- package/android/libs/armeabi-v7a/{libjcore330.so → libjcore332.so} +0 -0
- package/android/libs/{jcore-android-3.3.0.jar → jcore-android-3.3.2.jar} +0 -0
- package/android/libs/mips/{libjcore330.so → libjcore332.so} +0 -0
- package/android/libs/mips64/{libjcore330.so → libjcore332.so} +0 -0
- package/android/libs/x86/{libjcore330.so → libjcore332.so} +0 -0
- package/android/libs/x86_64/{libjcore330.so → libjcore332.so} +0 -0
- package/android/src/main/java/cn/jiguang/plugins/core/JConstants.java +7 -0
- package/android/src/main/java/cn/jiguang/plugins/core/JCoreModule.java +12 -0
- package/index.js +8 -1
- package/package.json +1 -1
- package/android/libs/x86_64/libjcore322.so +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -43,6 +43,18 @@ public class JCoreModule extends ReactContextBaseJavaModule {
|
|
|
43
43
|
public void setAuth(boolean bool){
|
|
44
44
|
JCollectionAuth.setAuth(reactContext,bool);
|
|
45
45
|
}
|
|
46
|
+
@ReactMethod
|
|
47
|
+
public void testCountryCode(String code){
|
|
48
|
+
if (readableMap == null) {
|
|
49
|
+
JLogger.w(JConstants.PARAMS_NULL);
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
String code = readableMap.getString(JConstants.COUNTRY_CODE);
|
|
53
|
+
if (TextUtils.isEmpty(code)) {
|
|
54
|
+
} else {
|
|
55
|
+
JCoreInterface.testCountryCode(code);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
46
58
|
|
|
47
59
|
|
|
48
60
|
}
|
package/index.js
CHANGED
|
@@ -10,7 +10,14 @@ const JCoreModule = NativeModules.JCoreModule
|
|
|
10
10
|
export default class JCore {
|
|
11
11
|
|
|
12
12
|
static setAuth(auth) {
|
|
13
|
-
|
|
13
|
+
if (Platform.OS == "android") {
|
|
14
|
+
JCoreModule.setAuth(auth)
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
static testCountryCode(params) {
|
|
18
|
+
if (Platform.OS == "android") {
|
|
19
|
+
JCoreModule.testCountryCode(params)
|
|
20
|
+
}
|
|
14
21
|
}
|
|
15
22
|
|
|
16
23
|
}
|
package/package.json
CHANGED
|
Binary file
|