jcore-react-native 2.2.2 → 2.2.3

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.
@@ -47,14 +47,14 @@ public class JCoreModule extends ReactContextBaseJavaModule {
47
47
  JCollectionAuth.enableAutoWakeup(reactContext,bool);
48
48
  }
49
49
  @ReactMethod
50
- public void testCountryCode(ReadableMap readableMap){
50
+ public void setCountryCode(ReadableMap readableMap){
51
51
  if (readableMap == null) {
52
52
  return;
53
53
  }
54
54
  String code = readableMap.getString("code");
55
55
  if (TextUtils.isEmpty(code)) {
56
56
  } else {
57
- JCoreInterface.testCountryCode(reactContext,code);
57
+ JCoreInterface.setCountryCode(reactContext,code);
58
58
  }
59
59
  }
60
60
 
package/index.js CHANGED
@@ -12,9 +12,9 @@ export default class JCore {
12
12
  static setAuth(auth) {
13
13
  JCoreModule.setAuth(auth)
14
14
  }
15
- static testCountryCode(params) {
15
+ static setCountryCode(params) {
16
16
  if (Platform.OS == "android") {
17
- JCoreModule.testCountryCode(params)
17
+ JCoreModule.setCountryCode(params)
18
18
  }
19
19
  }
20
20
  static enableAutoWakeup(enable) {
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "author" : "wicked.tc130",
6
6
  "license" : "ISC",
7
7
  "main" : "index.js",
8
- "version" : "2.2.2",
8
+ "version" : "2.2.3",
9
9
  "repository" : {
10
10
  "type": "git",
11
11
  "url": "https://github.com/jpush/jcore-react-native"