jcore-react-native 2.0.3 → 2.0.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.
- 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/JCoreModule.java +12 -2
- package/index.js +5 -0
- 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
|
|
@@ -20,9 +20,8 @@ import org.json.JSONObject;
|
|
|
20
20
|
|
|
21
21
|
import java.util.HashSet;
|
|
22
22
|
import java.util.Set;
|
|
23
|
-
|
|
24
23
|
import cn.jiguang.api.utils.JCollectionAuth;
|
|
25
|
-
|
|
24
|
+
import cn.jiguang.api.JCoreInterface;
|
|
26
25
|
|
|
27
26
|
public class JCoreModule extends ReactContextBaseJavaModule {
|
|
28
27
|
|
|
@@ -43,6 +42,17 @@ public class JCoreModule extends ReactContextBaseJavaModule {
|
|
|
43
42
|
public void setAuth(boolean bool){
|
|
44
43
|
JCollectionAuth.setAuth(reactContext,bool);
|
|
45
44
|
}
|
|
45
|
+
@ReactMethod
|
|
46
|
+
public void testCountryCode(ReadableMap readableMap){
|
|
47
|
+
if (readableMap == null) {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
String code = readableMap.getString("code");
|
|
51
|
+
if (TextUtils.isEmpty(code)) {
|
|
52
|
+
} else {
|
|
53
|
+
JCoreInterface.testCountryCode(code);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
46
56
|
|
|
47
57
|
|
|
48
58
|
}
|
package/index.js
CHANGED
package/package.json
CHANGED
|
Binary file
|