Simple-App-Launcher/app/build.gradle

68 lines
1.9 KiB
Groovy
Raw Normal View History

2016-08-06 21:47:05 +02:00
apply plugin: 'com.android.application'
2016-08-06 22:44:26 +02:00
apply plugin: 'kotlin-android'
2016-08-06 23:33:07 +02:00
apply plugin: 'kotlin-android-extensions'
2016-08-06 21:47:05 +02:00
android {
2017-11-10 21:59:19 +01:00
compileSdkVersion 27
buildToolsVersion "27.0.3"
2016-08-06 21:47:05 +02:00
defaultConfig {
applicationId "com.simplemobiletools.applauncher"
minSdkVersion 16
2017-11-10 21:59:19 +01:00
targetSdkVersion 27
2018-08-13 21:10:30 +02:00
versionCode 15
versionName "4.1.1"
2017-11-11 10:57:51 +01:00
multiDexEnabled true
2017-11-10 21:59:19 +01:00
setProperty("archivesBaseName", "app-launcher")
2016-08-06 21:47:05 +02:00
}
2016-08-18 22:38:09 +02:00
signingConfigs {
release
}
2016-08-06 21:47:05 +02:00
buildTypes {
debug {
applicationIdSuffix ".debug"
}
2016-08-06 21:47:05 +02:00
release {
2016-08-18 22:38:09 +02:00
minifyEnabled true
2016-08-06 21:47:05 +02:00
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
2016-08-18 22:38:09 +02:00
signingConfig signingConfigs.release
2016-08-06 21:47:05 +02:00
}
}
2017-11-11 10:57:51 +01:00
2016-08-06 22:44:26 +02:00
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
2017-11-11 10:57:51 +01:00
lintOptions {
checkReleaseBuilds false
abortOnError false
}
2016-08-06 21:47:05 +02:00
}
dependencies {
2018-08-13 21:09:00 +02:00
implementation 'com.simplemobiletools:commons:4.6.7'
2017-11-30 00:12:40 +01:00
implementation 'com.facebook.stetho:stetho:1.5.0'
2018-04-04 15:25:33 +02:00
implementation 'com.android.support:multidex:1.0.3'
2016-08-06 22:44:26 +02:00
}
2017-11-30 00:12:40 +01:00
Properties props = new Properties()
2016-08-18 22:38:09 +02:00
def propFile = new File('signing.properties')
if (propFile.canRead()) {
props.load(new FileInputStream(propFile))
2017-11-10 21:59:19 +01:00
if (props != null && props.containsKey('STORE_FILE') && props.containsKey('KEY_ALIAS') && props.containsKey('PASSWORD')) {
2016-08-18 22:38:09 +02:00
android.signingConfigs.release.storeFile = file(props['STORE_FILE'])
2017-11-10 21:59:19 +01:00
android.signingConfigs.release.storePassword = props['PASSWORD']
2016-08-18 22:38:09 +02:00
android.signingConfigs.release.keyAlias = props['KEY_ALIAS']
2017-11-10 21:59:19 +01:00
android.signingConfigs.release.keyPassword = props['PASSWORD']
2016-08-18 22:38:09 +02:00
} else {
println 'signing.properties found but some entries are missing'
android.buildTypes.release.signingConfig = null
}
} else {
println 'signing.properties not found'
android.buildTypes.release.signingConfig = null
}