diff --git a/app/app.iml b/app/app.iml
index ef32e5b..48dea94 100644
--- a/app/app.iml
+++ b/app/app.iml
@@ -61,6 +61,8 @@
+
+
diff --git a/app/build.gradle b/app/build.gradle
index 1b2a897..1c62ad8 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -1,4 +1,26 @@
+buildscript {
+ repositories {
+ mavenCentral()
+ }
+
+ dependencies {
+ classpath 'com.alexvasilkov:android_sign:0.2+'
+ }
+}
+
+import java.util.regex.Pattern
+
apply plugin: 'com.android.application'
+apply plugin: 'android_sign'
+
+repositories {
+ mavenCentral()
+}
+
+dependencies {
+ compile 'com.android.support:appcompat-v7:19.1.+'
+}
+
android {
compileSdkVersion 19
buildToolsVersion '19.1.0'
@@ -14,11 +36,27 @@ android {
testFunctionalTest true
}
+ signingConfigs {
+ release {
+ // Android Studio does not pass environment variables.
+ // This means you have to use the command line for release builds.
+ def ks = System.getenv("KEYSTORE")
+ def ka = System.getenv("KEY_ALIAS")
+ if (ks != null && ka != null) {
+ storeFile file(ks)
+ keyAlias ka
+ }
+ }
+ }
+
buildTypes {
debug {
applicationIdSuffix ".debug"
debuggable true
}
+ release {
+ signingConfig signingConfigs.release
+ }
}
}
diff --git a/build.gradle b/build.gradle
index e90813a..a1d991f 100644
--- a/build.gradle
+++ b/build.gradle
@@ -16,4 +16,4 @@ allprojects {
repositories {
mavenCentral()
}
-}
\ No newline at end of file
+}