Permalink
Switch branches/tags
Nothing to show
Find file Copy path
998e591 Dec 3, 2017
1 contributor

Users who have contributed to this file

79 lines (64 sloc) 2.27 KB
apply plugin: 'com.android.application'
android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
defaultConfig {
applicationId "com.sromku.mysampleapp"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode VERSION_CODE.toInteger()
versionName VERSION_NAME
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
signingConfigs {
config
}
buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-release-rules.pro'
}
debug {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-debug-rules.pro'
}
}
lintOptions {
checkReleaseBuilds false
abortOnError false
}
dexOptions {
javaMaxHeapSize "4g"
}
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
exclude 'LICENSE.txt'
}
testBuildType "debug"
}
// set the keystore if we set the path
if (KEYSTORE != "") {
// initialize the signing
android.signingConfigs.config.storeFile = file('../keystore/' + KEYSTORE)
android.signingConfigs.config.storePassword = STORE_PASSWORD
android.signingConfigs.config.keyAlias = KEY_ALIAS
android.signingConfigs.config.keyPassword = KEY_PASSWORD
// set this signing for both build types
android.buildTypes.release.signingConfig = android.signingConfigs.config
android.buildTypes.debug.signingConfig = android.signingConfigs.config
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:27.0.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
}