优化细节

pull/27/head
Jenly 4 years ago
parent 898b3912b6
commit 727cd08b98
  1. 4
      app-updater/build.gradle
  2. 4
      app-updater/src/main/java/com/king/app/updater/util/AppUtils.java

@ -35,8 +35,8 @@ dependencies {
testImplementation deps.test.junit testImplementation deps.test.junit
androidTestImplementation deps.test.runner androidTestImplementation deps.test.runner
androidTestImplementation deps.test.espresso androidTestImplementation deps.test.espresso
//support //androidx
compileOnly deps.support.appcompat compileOnly deps.androidx.appcompat
compileOnly deps.okhttp compileOnly deps.okhttp
} }

@ -48,7 +48,9 @@ public final class AppUtils {
if(TextUtils.isEmpty(filename)){ if(TextUtils.isEmpty(filename)){
filename = defaultName; filename = defaultName;
} }
if(filename.endsWith(".apk")){
return filename;
}
return String.format("%s.apk",filename); return String.format("%s.apk",filename);
} }

Loading…
Cancel
Save