Skip to content

Commit

Permalink
更换jks
Browse files Browse the repository at this point in the history
  • Loading branch information
Doikki committed May 19, 2017
1 parent a1f8b39 commit 017aed0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
16 changes: 16 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,22 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

applicationVariants.all { variant ->
variant.outputs.each { output ->
def outputFile = output.outputFile
if (outputFile != null && outputFile.name.endsWith('.apk')) {
if (variant.buildType.name == 'release') {
def fileName = "${defaultConfig.applicationId}_${defaultConfig.versionName}_release.apk"
output.outputFile = new File(outputFile.parent, fileName)
} else {
def fileName = "${defaultConfig.applicationId}_${defaultConfig.versionName}_debug.apk"
output.outputFile = new File(outputFile.parent, fileName)
}

}
}
}
}

dependencies {
Expand Down
Binary file modified devlin.jks
Binary file not shown.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
systemProp.http.proxyHost=127.0.0.1
org.gradle.jvmargs=-Xmx1536m
systemProp.http.proxyPort=1080
KEY_PWD=6572263
KEY_PWD=123456
KEY_ALIAS=devlin
KEYSTORE_PWD=6572263
KEYSTORE_PWD=123456

0 comments on commit 017aed0

Please sign in to comment.