优化细节

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
androidTestImplementation deps.test.runner
androidTestImplementation deps.test.espresso
//support
compileOnly deps.support.appcompat
//androidx
compileOnly deps.androidx.appcompat
compileOnly deps.okhttp
}

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

Loading…
Cancel
Save