Simple-Notes/app/build.gradle

73 lines
2.0 KiB
Groovy
Raw Normal View History

2016-02-13 21:05:54 +01:00
apply plugin: 'com.android.application'
2016-10-24 21:06:37 +02:00
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
2016-02-13 21:05:54 +01:00
android {
2017-11-10 15:28:22 +01:00
compileSdkVersion 27
2017-12-21 22:32:48 +01:00
buildToolsVersion "27.0.2"
2016-02-13 21:05:54 +01:00
defaultConfig {
2016-02-25 22:11:03 +01:00
applicationId "com.simplemobiletools.notes"
2016-02-13 21:05:54 +01:00
minSdkVersion 16
2017-11-10 15:28:22 +01:00
targetSdkVersion 27
2017-12-06 23:24:20 +01:00
versionCode 43
versionName "3.0.1"
2017-11-10 16:13:32 +01:00
setProperty("archivesBaseName", "notes")
2016-02-13 21:05:54 +01:00
}
2016-04-25 23:24:36 +02:00
signingConfigs {
release
}
2016-02-13 21:05:54 +01:00
buildTypes {
2017-10-14 21:32:53 +02:00
debug {
applicationIdSuffix ".debug"
}
2016-02-13 21:05:54 +01:00
release {
2016-04-25 23:24:36 +02:00
minifyEnabled true
2016-02-13 21:05:54 +01:00
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
2016-04-25 23:24:36 +02:00
signingConfig signingConfigs.release
2016-02-13 21:05:54 +01:00
}
}
2016-10-24 21:06:37 +02:00
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
2017-09-23 11:57:13 +02:00
lintOptions {
checkReleaseBuilds false
abortOnError false
}
2016-02-13 21:05:54 +01:00
}
2017-11-10 15:32:34 +01:00
ext {
leakCanaryVersion = '1.5.4'
}
2016-02-13 21:05:54 +01:00
dependencies {
2017-12-21 22:33:57 +01:00
implementation 'com.simplemobiletools:commons:3.3.12'
2017-11-19 22:44:47 +01:00
implementation 'com.facebook.stetho:stetho:1.5.0'
2017-11-10 15:32:34 +01:00
2017-11-19 22:44:47 +01:00
debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakCanaryVersion"
releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:$leakCanaryVersion"
2016-02-13 21:05:54 +01:00
}
2016-04-25 23:24:36 +02:00
2017-11-19 22:44:47 +01:00
Properties props = new Properties()
2016-04-25 23:24:36 +02:00
def propFile = new File('signing.properties')
if (propFile.canRead()) {
props.load(new FileInputStream(propFile))
2017-03-06 18:42:34 +01:00
if (props != null && props.containsKey('STORE_FILE') && props.containsKey('KEY_ALIAS') && props.containsKey('PASSWORD')) {
2016-04-25 23:24:36 +02:00
android.signingConfigs.release.storeFile = file(props['STORE_FILE'])
2017-03-06 18:42:34 +01:00
android.signingConfigs.release.storePassword = props['PASSWORD']
2016-04-25 23:24:36 +02:00
android.signingConfigs.release.keyAlias = props['KEY_ALIAS']
2017-03-06 18:42:34 +01:00
android.signingConfigs.release.keyPassword = props['PASSWORD']
2016-04-25 23:24:36 +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
}