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'
compile 'com.android.support:appcompat-v7:19.1.+'
android {
compileSdkVersion 19
buildToolsVersion '19.1.0'
defaultConfig {
applicationId 'com.nutomic.zertman'
minSdkVersion 19
targetSdkVersion 19
versionCode 1
versionName '1.0.0'
testApplicationId 'com.nutomic.zertman.test'
testInstrumentationRunner 'android.test.InstrumentationTestRunner'
testHandleProfiling true
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
signingConfig signingConfigs.release
compile project(':libsuperuser')