Skip to content

Commit

Permalink
代码小优化,minSdkVersion 14
Browse files Browse the repository at this point in the history
  • Loading branch information
allen2015555 committed Oct 19, 2018
1 parent 9fb2362 commit db9bdf1
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 70 deletions.
22 changes: 0 additions & 22 deletions .idea/compiler.xml

This file was deleted.

3 changes: 0 additions & 3 deletions .idea/copyright/profiles_settings.xml

This file was deleted.

36 changes: 0 additions & 36 deletions .idea/inspectionProfiles/Project_Default.xml

This file was deleted.

9 changes: 5 additions & 4 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ android {

defaultConfig {
applicationId "com.maning.mnupdateapk"
minSdkVersion 15
minSdkVersion 14
targetSdkVersion 26
versionCode 1
versionName "1.0"
Expand Down
4 changes: 2 additions & 2 deletions library_update/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ android {
buildToolsVersion "26.0.2"

defaultConfig {
minSdkVersion 15
minSdkVersion 14
targetSdkVersion 26
versionCode 1
versionName "1.0"
Expand All @@ -27,6 +27,6 @@ android {

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
implementation('com.android.support:appcompat-v7:26.1.0')
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.squareup.okhttp3:okhttp:3.11.0'
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/
public class InstallUtils {

private static final String TAG = "InstallUtils";
private static final String TAG = InstallUtils.class.getSimpleName();
private static InstallUtils mInstance;
private static Context mContext;

Expand Down Expand Up @@ -138,6 +138,9 @@ public void startDownload() {
if (TextUtils.isEmpty(filePath)) {
filePath = MNUtils.getCachePath(mContext) + "/update.apk";
}
//文件权限处理
MNUtils.changeApkFileMode(new File(filePath));
//下载
DownloadFileUtils.with()
.downloadPath(filePath)
.url(httpUrl)
Expand Down

0 comments on commit db9bdf1

Please sign in to comment.