Commit 2c761ccaaffb5fc5975f655292f9b8e7282b18b3

Authored by 杨帅
1 parent 35ab8408

1 增加百度地图设置入口

app/src/main/java/com/example/modulepedometer/MyApp.java
@@ -13,8 +13,8 @@ public class MyApp extends Application { @@ -13,8 +13,8 @@ public class MyApp extends Application {
13 super.onCreate(); 13 super.onCreate();
14 String userId = ""; 14 String userId = "";
15 AppConfig.init(getApplicationContext(), BuildConfig.APP_ID, BuildConfig.APP_KEY, BuildConfig.APP_SCERET, 15 AppConfig.init(getApplicationContext(), BuildConfig.APP_ID, BuildConfig.APP_KEY, BuildConfig.APP_SCERET,
16 - 0, BuildConfig.DEBUG, BuildConfig.BAIDU_MAP_APP_KEY, "",  
17 - userId, "", "", "", "","","",""); 16 + 0, BuildConfig.DEBUG, "", "",
  17 + userId, "", "", "", "", "", "", "", BuildConfig.BAIDU_MAP_APP_KEY);
18 initARouter(); 18 initARouter();
19 //在使用SDK各组件之前初始化context信息,传入ApplicationContext 19 //在使用SDK各组件之前初始化context信息,传入ApplicationContext
20 SDKInitializer.initialize(getApplicationContext()); 20 SDKInitializer.initialize(getApplicationContext());
build.gradle
@@ -68,7 +68,7 @@ ext { @@ -68,7 +68,7 @@ ext {
68 //qmui 68 //qmui
69 qmui = '1.1.5' 69 qmui = '1.1.5'
70 70
71 - libBase = '1.3.4' 71 + libBase = '1.3.6'
72 libNetwork = '1.1.0' 72 libNetwork = '1.1.0'
73 libLargeImage = '1.0.1' 73 libLargeImage = '1.0.1'
74 libEmoj = '1.9.8' 74 libEmoj = '1.9.8'
config.gradle
@@ -21,7 +21,7 @@ ext { @@ -21,7 +21,7 @@ ext {
21 //编译方式 21 //编译方式
22 debug : false, 22 debug : false,
23 //版本号 23 //版本号
24 - version: "0.3.9", 24 + version: "0.4.0",
25 //Lib库前缀 25 //Lib库前缀
26 packeg : "com.cnlive.module", 26 packeg : "com.cnlive.module",
27 //Lib库名称 27 //Lib库名称
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/frame/presenter/RegistrationInfoPresenter.java
@@ -70,7 +70,7 @@ public class RegistrationInfoPresenter extends MvpBasePresenter<RegistrationInfo @@ -70,7 +70,7 @@ public class RegistrationInfoPresenter extends MvpBasePresenter<RegistrationInfo
70 public void addEntity(Activity context, String entityName, CallBack callBack) { 70 public void addEntity(Activity context, String entityName, CallBack callBack) {
71 HashMap<String, String> map = new HashMap<>(); 71 HashMap<String, String> map = new HashMap<>();
72 map.put("mcode", Sha1Util.getSHA1(context) + ";" + context.getPackageName()); 72 map.put("mcode", Sha1Util.getSHA1(context) + ";" + context.getPackageName());
73 - map.put("ak", AppConfig.getBaiduAppKey()); 73 + map.put("ak", AppConfig.getBaiduMapAppKey());
74 map.put("service_id", Constant.SERVICE_ID + ""); 74 map.put("service_id", Constant.SERVICE_ID + "");
75 map.put("entity_name", entityName); 75 map.put("entity_name", entityName);
76 76