diff --git a/app-updater/build.gradle b/app-updater/build.gradle index 39dc8dd..2cfaaf7 100644 --- a/app-updater/build.gradle +++ b/app-updater/build.gradle @@ -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 } diff --git a/app-updater/src/main/java/com/king/app/updater/util/AppUtils.java b/app-updater/src/main/java/com/king/app/updater/util/AppUtils.java index 2551936..9068454 100644 --- a/app-updater/src/main/java/com/king/app/updater/util/AppUtils.java +++ b/app-updater/src/main/java/com/king/app/updater/util/AppUtils.java @@ -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); }