prepare a Release mode

This commit is contained in:
tibbi 2016-01-06 22:52:16 +01:00
parent bcaa6c497e
commit 986a8976b5
2 changed files with 13 additions and 4 deletions

5
.gitignore vendored
View File

@ -1,8 +1,9 @@
*.iml *.iml
.gradle .gradle
/local.properties /local.properties
/.idea/workspace.xml /gradle.properties
/.idea/libraries /.idea/
.DS_Store .DS_Store
/build /build
/captures /captures
release.keystore

View File

@ -1,9 +1,16 @@
apply plugin: 'com.android.application' apply plugin: 'com.android.application'
android { android {
signingConfigs {
config {
keyAlias RELEASE_KEY_ALIAS
keyPassword RELEASE_KEY_PASSWORD
storeFile file('../release.keystore')
storePassword RELEASE_STORE_PASSWORD
}
}
compileSdkVersion 23 compileSdkVersion 23
buildToolsVersion "23.0.2" buildToolsVersion "23.0.2"
defaultConfig { defaultConfig {
applicationId "flashlight.simplemobiletools.com" applicationId "flashlight.simplemobiletools.com"
minSdkVersion 16 minSdkVersion 16
@ -13,8 +20,9 @@ android {
} }
buildTypes { buildTypes {
release { release {
minifyEnabled false minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.config
} }
} }
} }