Simple-Launcher/app/build.gradle

72 lines
1.9 KiB
Groovy
Raw Normal View History

2022-08-01 22:19:40 +02:00
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
2022-09-25 23:19:34 +02:00
def keystorePropertiesFile = rootProject.file("keystore.properties")
def keystoreProperties = new Properties()
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}
2022-08-01 22:19:40 +02:00
android {
2022-08-24 23:51:33 +02:00
compileSdkVersion 33
2022-08-01 22:19:40 +02:00
defaultConfig {
applicationId "com.simplemobiletools.launcher"
minSdkVersion 26
2022-08-24 23:51:33 +02:00
targetSdkVersion 33
2022-10-26 17:33:05 +02:00
versionCode 7
versionName "5.0.5"
2022-08-01 22:19:40 +02:00
setProperty("archivesBaseName", "launcher")
}
2022-09-25 23:19:34 +02:00
signingConfigs {
if (keystorePropertiesFile.exists()) {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
}
}
}
2022-08-01 22:19:40 +02:00
buildTypes {
debug {
applicationIdSuffix ".debug"
}
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
2022-09-25 23:19:34 +02:00
if (keystorePropertiesFile.exists()) {
signingConfig signingConfigs.release
}
2022-08-01 22:19:40 +02:00
}
}
flavorDimensions "variants"
productFlavors {
core {}
fdroid {}
prepaid {}
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
lintOptions {
checkReleaseBuilds false
abortOnError false
}
}
dependencies {
2023-02-12 23:02:23 +01:00
implementation 'com.github.SimpleMobileTools:Simple-Commons:c457573200'
2023-02-12 23:02:23 +01:00
kapt "androidx.room:room-compiler:2.5.0"
implementation "androidx.room:room-runtime:2.5.0"
annotationProcessor "androidx.room:room-compiler:2.5.0"
2022-08-01 22:19:40 +02:00
}