diff --git a/app/build.gradle b/app/build.gradle index 9d3603c20..b95eba43d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -141,15 +141,15 @@ dependencies { } // 链接包需要注释掉 否正无法更新 谷歌包需要打开 -//project.afterEvaluate { -// android.applicationVariants.all { variant -> -// variant.outputs.each { output -> -// output.processResources.doFirst { pm-> -// String manifestPath = output.processResources.manifestFile; -// def manifestContent = file(manifestPath).getText() -// manifestContent = manifestContent.replace('android.permission.REQUEST_INSTALL_PACKAGES', '') -// file(manifestPath).write(manifestContent) -// } -// } -// } -//} \ No newline at end of file +project.afterEvaluate { + android.applicationVariants.all { variant -> + variant.outputs.each { output -> + output.processResources.doFirst { pm-> + String manifestPath = output.processResources.manifestFile; + def manifestContent = file(manifestPath).getText() + manifestContent = manifestContent.replace('android.permission.REQUEST_INSTALL_PACKAGES', '') + file(manifestPath).write(manifestContent) + } + } + } +} \ No newline at end of file diff --git a/config.gradle b/config.gradle index f9e5da19d..1b7545338 100644 --- a/config.gradle +++ b/config.gradle @@ -4,15 +4,15 @@ ext { buildToolsVersion: "28.0.3", minSdkVersion : 21, targetSdkVersion : 31, - versionCode : 212, - versionName : "6.4.0" + versionCode : 214, + versionName : "6.4.2" ] manifestPlaceholders = [ //正式 -// serverHost : "https://napi.yaoulive.com", + serverHost : "https://napi.yaoulive.com", //測試 - serverHost : "https://ceshi.yaoulive.com", +// serverHost : "https://ceshi.yaoulive.com", //腾讯地图 txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB", diff --git a/main/src/main/java/com/yunbao/main/activity/MainActivity.java b/main/src/main/java/com/yunbao/main/activity/MainActivity.java index f3b81d9dc..527c8ade6 100644 --- a/main/src/main/java/com/yunbao/main/activity/MainActivity.java +++ b/main/src/main/java/com/yunbao/main/activity/MainActivity.java @@ -451,7 +451,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene }); //获取指导员账号 ConversationIMListManager.get(this).getUserInstructor(this); -// checkVersion(); + checkVersion(); } /**