Commit 2c761ccaaffb5fc5975f655292f9b8e7282b18b3
1 parent
35ab8408
1 增加百度地图设置入口
Showing
4 changed files
with
5 additions
and
5 deletions
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
config.gradle
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 |