Fix gradle to build without Mattermost keys as dev (#192)
This commit is contained in:
parent
b21e98e796
commit
3ec02ce48e
2 changed files with 11 additions and 5 deletions
|
|
@ -100,10 +100,12 @@ android {
|
|||
}
|
||||
signingConfigs {
|
||||
release {
|
||||
storeFile file(MATTERMOST_RELEASE_STORE_FILE)
|
||||
storePassword MATTERMOST_RELEASE_PASSWORD
|
||||
keyAlias MATTERMOST_RELEASE_KEY_ALIAS
|
||||
keyPassword MATTERMOST_RELEASE_PASSWORD
|
||||
if (project.hasProperty('MATTERMOST_RELEASE_STORE_FILE')) {
|
||||
storeFile file(MATTERMOST_RELEASE_STORE_FILE)
|
||||
storePassword MATTERMOST_RELEASE_PASSWORD
|
||||
keyAlias MATTERMOST_RELEASE_KEY_ALIAS
|
||||
keyPassword MATTERMOST_RELEASE_PASSWORD
|
||||
}
|
||||
}
|
||||
}
|
||||
splits {
|
||||
|
|
@ -120,6 +122,10 @@ android {
|
|||
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
|
||||
signingConfig signingConfigs.release
|
||||
}
|
||||
debug {
|
||||
minifyEnabled enableProguardInReleaseBuilds
|
||||
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
|
||||
}
|
||||
}
|
||||
// applicationVariants are e.g. debug, release
|
||||
applicationVariants.all { variant ->
|
||||
|
|
|
|||
|
|
@ -198,7 +198,7 @@ platform :android do
|
|||
|
||||
desc 'Build Release file'
|
||||
lane :dev do
|
||||
build_android({release: true})
|
||||
build_android({release: false})
|
||||
end
|
||||
|
||||
desc 'Submit a new Beta Build to Google Play'
|
||||
|
|
|
|||
Loading…
Reference in a new issue