NeoLaunch_From_Kvaesitso/app/app/build.gradle.kts

171 lines
5.8 KiB
Plaintext
Raw Normal View History

2023-01-23 15:02:00 +01:00
import android.annotation.SuppressLint
2023-01-30 20:32:30 +01:00
import java.time.LocalDate
import java.time.format.DateTimeFormatter
2021-09-18 23:37:52 +02:00
plugins {
id("com.android.application")
id("kotlin-android")
}
android {
androidResources {
generateLocaleConfig = true
}
packaging {
2021-09-18 23:37:52 +02:00
resources.excludes.add("META-INF/DEPENDENCIES")
resources.excludes.add("META-INF/LICENSE")
resources.excludes.add("META-INF/LICENSE.txt")
resources.excludes.add("META-INF/license.txt")
resources.excludes.add("META-INF/NOTICE")
resources.excludes.add("META-INF/NOTICE.txt")
resources.excludes.add("META-INF/notice.txt")
resources.excludes.add("META-INF/ASL2.0")
resources.excludes.add("META-INF/LICENSE.md")
resources.excludes.add("META-INF/NOTICE.md")
}
compileSdk = sdk.versions.compileSdk.get().toInt()
defaultConfig {
applicationId = "de.mm20.launcher2"
minSdk = sdk.versions.minSdk.get().toInt()
targetSdk = sdk.versions.targetSdk.get().toInt()
2023-01-23 15:02:00 +01:00
@SuppressLint("HighAppVersionCode")
2023-09-08 18:24:03 +02:00
versionCode = System.getenv("VERSION_CODE_OVERRIDE")?.toIntOrNull() ?: 2023090800
versionName = "1.27.1"
signingConfig = signingConfigs.getByName("debug")
2021-09-18 23:37:52 +02:00
}
signingConfigs {
create("gh-actions") {
2023-01-30 23:32:33 +01:00
storeFile = file("${System.getenv("RUNNER_TEMP")}/keystore/keystore.jks")
storePassword = System.getenv("KEYSTORE_PASSWORD")
keyAlias = System.getenv("SIGNING_KEY_ALIAS")
keyPassword = System.getenv("SIGNING_KEY_PASSWORD")
}
}
2021-09-18 23:37:52 +02:00
buildTypes {
release {
applicationIdSuffix = ".release"
postprocessing {
2022-08-03 23:57:20 +02:00
isRemoveUnusedCode = true
isObfuscate = false
2022-08-03 23:57:20 +02:00
isOptimizeCode = true
}
2021-09-18 23:37:52 +02:00
}
debug {
applicationIdSuffix = ".debug"
2023-04-21 17:35:41 +02:00
isDebuggable = true
2021-09-18 23:37:52 +02:00
}
2023-01-30 20:32:30 +01:00
create("nightly") {
initWith(getByName("release"))
matchingFallbacks += "release"
applicationIdSuffix = ".nightly"
versionNameSuffix = "-${LocalDate.now().format(DateTimeFormatter.ofPattern("yyyyMMdd"))}-nightly"
signingConfig = signingConfigs.findByName("gh-actions")
2023-08-27 12:30:46 +02:00
postprocessing {
isRemoveUnusedCode = true
isObfuscate = false
isOptimizeCode = true
}
2023-01-30 20:32:30 +01:00
}
2023-01-23 15:02:00 +01:00
flavorDimensions += "variant"
productFlavors {
create("default") {
dimension = "variant"
}
create("fdroid") {
dimension = "variant"
versionNameSuffix = "-fdroid"
}
}
2021-09-18 23:37:52 +02:00
}
configurations.all {
//Fixes Error: Duplicate class: com.google.common.util.concurrent.ListenableFuture
exclude(group = "com.google.guava", module = "listenablefuture")
exclude(group = "org.apache.httpcomponents", module = "httpclient")
2021-09-18 23:37:52 +02:00
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
lint {
abortOnError = false
2021-09-18 23:37:52 +02:00
}
2022-05-09 19:56:05 +02:00
namespace = "de.mm20.launcher2"
2021-09-18 23:37:52 +02:00
}
dependencies {
implementation(libs.bundles.kotlin)
//Android Jetpack
implementation(libs.androidx.appcompat)
implementation(libs.androidx.browser)
implementation(libs.androidx.palette)
implementation(libs.androidx.core)
implementation(libs.androidx.exifinterface)
2021-12-12 13:59:28 +01:00
implementation(libs.materialcomponents.core)
2021-09-18 23:37:52 +02:00
implementation(libs.androidx.constraintlayout)
implementation(libs.bundles.androidx.lifecycle)
implementation(libs.androidx.work)
2022-01-20 22:40:32 +01:00
implementation(libs.coil.core)
implementation(libs.coil.svg)
2021-09-18 23:37:52 +02:00
implementation(libs.koin.android)
2021-10-02 18:35:30 +02:00
2022-12-13 17:37:26 +01:00
implementation(project(":services:accounts"))
implementation(project(":data:applications"))
implementation(project(":data:appshortcuts"))
implementation(project(":services:backup"))
implementation(project(":services:badges"))
implementation(project(":core:base"))
implementation(project(":data:calculator"))
implementation(project(":data:calendar"))
implementation(project(":data:contacts"))
implementation(project(":core:crashreporter"))
implementation(project(":data:currencies"))
implementation(project(":data:customattrs"))
implementation(project(":data:searchable"))
implementation(project(":data:themes"))
2022-12-13 17:37:26 +01:00
implementation(project(":data:files"))
implementation(project(":libs:g-services"))
implementation(project(":core:i18n"))
implementation(project(":services:icons"))
implementation(project(":core:ktx"))
implementation(project(":services:music"))
implementation(project(":libs:nextcloud"))
implementation(project(":data:notifications"))
implementation(project(":libs:owncloud"))
implementation(project(":core:permissions"))
implementation(project(":core:preferences"))
implementation(project(":services:search"))
2022-12-21 19:24:32 +01:00
implementation(project(":services:tags"))
2022-12-13 17:37:26 +01:00
implementation(project(":data:unitconverter"))
implementation(project(":app:ui"))
implementation(project(":data:weather"))
implementation(project(":data:websites"))
implementation(project(":data:widgets"))
implementation(project(":data:wikipedia"))
implementation(project(":core:database"))
implementation(project(":data:search-actions"))
2023-01-17 18:55:30 +01:00
implementation(project(":services:global-actions"))
2023-04-10 01:15:27 +02:00
implementation(project(":services:widgets"))
implementation(project(":services:favorites"))
2021-09-18 23:37:52 +02:00
// Uncomment this if you want annoying notifications in your debug builds yelling at you how terrible your code is
//debugImplementation(libs.leakcanary)
}