Simple-Notes/app/build.gradle

67 lines
1.8 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'
apply plugin: 'kotlin-kapt'
2016-02-13 21:05:54 +01:00
2018-11-07 11:40:56 +01:00
def keystorePropertiesFile = rootProject.file("keystore.properties")
def keystoreProperties = new Properties()
2019-12-19 21:57:42 +01:00
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}
2018-11-07 11:40:56 +01:00
2016-02-13 21:05:54 +01:00
android {
2018-09-11 13:14:44 +02:00
compileSdkVersion 28
buildToolsVersion "28.0.3"
2016-02-13 21:05:54 +01:00
defaultConfig {
2018-11-07 11:48:09 +01:00
applicationId "com.simplemobiletools.notes.pro"
minSdkVersion 21
2018-09-11 13:14:44 +02:00
targetSdkVersion 28
2019-12-08 20:30:37 +01:00
versionCode 67
versionName "6.3.0"
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 {
2019-12-19 21:57:42 +01:00
if (keystorePropertiesFile.exists()) {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
}
2018-11-07 11:40:56 +01:00
}
2016-04-25 23:24:36 +02:00
}
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'
if (keystorePropertiesFile.exists()) {
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
}
dependencies {
implementation 'com.simplemobiletools:commons:5.20.9'
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta2'
2019-12-07 12:33:06 +01:00
kapt 'androidx.room:room-compiler:2.2.2'
implementation 'androidx.room:room-runtime:2.2.2'
annotationProcessor 'androidx.room:room-compiler:2.2.2'
2016-02-13 21:05:54 +01:00
}