Skip to content

Commit

Permalink
V1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfusheng committed Jan 29, 2018
1 parent d213257 commit d79062f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 19 deletions.
22 changes: 3 additions & 19 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,11 @@ android {
buildTypes {
release {
buildConfigField "boolean", "isDebug", "false"
signingConfig signingConfigs.release // apk签名
signingConfig signingConfigs.release
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
applicationVariants.all { variant ->
variant.outputs.all {
outputFileName = "Gank.IO_V${android.defaultConfig.versionName}.apk"
copyApk
outputFileName = "Gank.IO.apk"
}
}
}
Expand All @@ -62,28 +61,13 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
applicationVariants.all { variant ->
variant.outputs.all {
outputFileName = "Gank.IO_V${android.defaultConfig.versionName}.apk"
copyApk
outputFileName = "Gank.IO.apk"
}
}
}
}
}

task copApk(type: Copy) {
def fileName = "Gank.IO.apk"
def fromFile = "./build/outputs/apk/debug/Gank.IO_V${android.defaultConfig.versionName}.apk"
def intoFile = "./release/"

copy {
from fromFile
into intoFile
rename {
fileName
}
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:' + gradle.supportLibraryVersion
Expand Down
Binary file modified app/release/Gank.IO.apk
Binary file not shown.
1 change: 1 addition & 0 deletions app/release/output.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":6},"path":"Gank.IO.apk","properties":{"packageId":"com.sunfusheng.gank","split":"","minSdkVersion":"14"}}]

0 comments on commit d79062f

Please sign in to comment.