2023-01-23 15:02:00 +01:00
|
|
|
import android.annotation.SuppressLint
|
2021-09-18 23:37:52 +02:00
|
|
|
import java.util.*
|
|
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
|
id("com.android.application")
|
|
|
|
|
id("kotlin-android")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
android {
|
|
|
|
|
packagingOptions {
|
|
|
|
|
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")
|
|
|
|
|
versionCode = 2023012300
|
2023-01-23 15:03:10 +01:00
|
|
|
versionName = "1.21.1g"
|
2022-01-25 17:55:57 +01:00
|
|
|
signingConfig = signingConfigs.getByName("debug")
|
2021-09-18 23:37:52 +02:00
|
|
|
}
|
|
|
|
|
buildTypes {
|
|
|
|
|
release {
|
|
|
|
|
applicationIdSuffix = ".release"
|
|
|
|
|
|
2022-02-08 21:20:54 +01:00
|
|
|
postprocessing {
|
2022-08-03 23:57:20 +02:00
|
|
|
isRemoveUnusedCode = true
|
2022-02-08 21:20:54 +01:00
|
|
|
isObfuscate = false
|
2022-08-03 23:57:20 +02:00
|
|
|
isOptimizeCode = true
|
2022-02-08 21:20:54 +01:00
|
|
|
}
|
2021-09-18 23:37:52 +02:00
|
|
|
}
|
|
|
|
|
debug {
|
|
|
|
|
applicationIdSuffix = ".debug"
|
2022-02-14 14:36:28 +01:00
|
|
|
// Jetpack Compose is unusably laggy in debug builds, it's ridiculous
|
|
|
|
|
// This somehow seems to resolve that issue.
|
|
|
|
|
isDebuggable = false
|
2021-09-18 23:37:52 +02: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")
|
2022-08-26 00:04:09 +02:00
|
|
|
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 {
|
2022-01-26 12:51:16 +01:00
|
|
|
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.cardview)
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
2021-10-10 12:15:54 +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:favorites"))
|
|
|
|
|
implementation(project(":data:files"))
|
|
|
|
|
implementation(project(":libs:g-services"))
|
|
|
|
|
implementation(project(":core:i18n"))
|
|
|
|
|
implementation(project(":services:icons"))
|
|
|
|
|
implementation(project(":core:ktx"))
|
|
|
|
|
implementation(project(":libs:ms-services"))
|
|
|
|
|
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"))
|
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)
|
|
|
|
|
}
|