jcore-react-native 2.0.5 → 2.0.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.
@@ -20,7 +20,6 @@ import org.json.JSONObject;
20
20
 
21
21
  import java.util.HashSet;
22
22
  import java.util.Set;
23
- import cn.jiguang.plugins.core.JConstants;
24
23
  import cn.jiguang.api.utils.JCollectionAuth;
25
24
  import cn.jiguang.api.JCoreInterface;
26
25
 
@@ -44,12 +43,11 @@ public class JCoreModule extends ReactContextBaseJavaModule {
44
43
  JCollectionAuth.setAuth(reactContext,bool);
45
44
  }
46
45
  @ReactMethod
47
- public void testCountryCode(String code){
46
+ public void testCountryCode(ReadableMap readableMap){
48
47
  if (readableMap == null) {
49
- JLogger.w(JConstants.PARAMS_NULL);
50
48
  return;
51
49
  }
52
- String code = readableMap.getString(JConstants.COUNTRY_CODE);
50
+ String code = readableMap.getString("code");
53
51
  if (TextUtils.isEmpty(code)) {
54
52
  } else {
55
53
  JCoreInterface.testCountryCode(code);
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.0.5",
8
+ "version" : "2.0.7",
9
9
  "repository" : {
10
10
  "type": "git",
11
11
  "url": "https://github.com/jpush/jcore-react-native"
@@ -1,7 +0,0 @@
1
- package cn.jiguang.plugins.core;
2
-
3
- public class JConstants {
4
-
5
- public static final String COUNTRY_CODE = "code";
6
-
7
- }