diff options
author | Parménides GV <parmegv@sdf.org> | 2014-04-08 18:41:53 +0200 |
---|---|---|
committer | Parménides GV <parmegv@sdf.org> | 2014-04-08 18:41:53 +0200 |
commit | a097a3388137d6553dcf934d0cee49a876a688eb (patch) | |
tree | 50636e1ca4d0034f485c84871673a2aab7a7317b | |
parent | 3c3421afd8f74a3aa8d1011de07a8c18f9549210 (diff) |
Build release apk using gradle.properties.
I ignore that file, it contains passwords, although I have encrypted it to myself.
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | bitmask_android/build.gradle | 27 |
2 files changed, 25 insertions, 3 deletions
@@ -69,6 +69,7 @@ id.zip /build-native.sh~ local.properties +gradle.properties* *~ *.iml .idea diff --git a/bitmask_android/build.gradle b/bitmask_android/build.gradle index d59533ea..07ec7c1d 100644 --- a/bitmask_android/build.gradle +++ b/bitmask_android/build.gradle @@ -12,15 +12,36 @@ android { testInstrumentationRunner "android.test.InstrumentationTestRunner" } + signingConfigs { + release + } + buildTypes { release { runProguard false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' + signingConfig signingConfigs.release } } + if (project.hasProperty('storeFile')) { + signingConfigs.release.storeFile = new File(storeFile) + } + + if (project.hasProperty('storePassword')) { + signingConfigs.release.storePassword = storePassword + } + + if (project.hasProperty('keyAlias')) { + signingConfigs.release.keyAlias = keyAlias + } + + if (project.hasProperty('keyPassword')) { + signingConfigs.release.keyPassword = keyPassword + } + lintOptions { - abortOnError false + abortOnError false } sourceSets { @@ -31,9 +52,9 @@ android { jni.srcDirs = [] //disable automatic ndk-build } } -} + } dependencies { androidTestCompile 'com.android.support:support-v4:+' androidTestCompile 'com.jayway.android.robotium:robotium-solo:4.3.1' -} +}
\ No newline at end of file |