2023-10-13 07:42:24 +02:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2021 The Calyx Institute
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
plugins {
|
2024-05-30 08:07:16 +02:00
|
|
|
alias(libs.plugins.android.application)
|
2024-05-30 08:50:20 +02:00
|
|
|
alias(libs.plugins.google.ksp)
|
2024-05-30 08:07:16 +02:00
|
|
|
alias(libs.plugins.google.protobuf)
|
|
|
|
alias(libs.plugins.jetbrains.kotlin.android)
|
2023-10-13 07:42:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
namespace = "de.grobox.storagebackuptester"
|
|
|
|
compileSdk = libs.versions.compileSdk.get().toInt()
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId = "de.grobox.storagebackuptester"
|
|
|
|
minSdk = libs.versions.minSdk.get().toInt()
|
|
|
|
targetSdk = libs.versions.targetSdk.get().toInt()
|
|
|
|
versionCode = 20
|
|
|
|
versionName = "0.9.7"
|
|
|
|
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
testInstrumentationRunnerArguments.clear()
|
|
|
|
testInstrumentationRunnerArguments.putAll(mapOf("disableAnalytics" to "true"))
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
getByName("release") {
|
|
|
|
isMinifyEnabled = true
|
|
|
|
proguardFiles(
|
|
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
|
|
"proguard-rules.pro"
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
|
|
}
|
|
|
|
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = JavaVersion.VERSION_17.toString()
|
|
|
|
freeCompilerArgs += listOf("-opt-in=kotlin.RequiresOptIn")
|
|
|
|
}
|
|
|
|
|
2023-10-19 06:23:06 +02:00
|
|
|
lint {
|
|
|
|
disable += setOf(
|
|
|
|
"DialogFragmentCallbacksDetector",
|
|
|
|
"InvalidFragmentVersionForActivityResult"
|
|
|
|
)
|
2023-10-13 07:42:24 +02:00
|
|
|
}
|
|
|
|
|
2023-10-19 06:23:06 +02:00
|
|
|
packaging {
|
2023-10-13 07:42:24 +02:00
|
|
|
jniLibs {
|
|
|
|
excludes += listOf("META-INF/services/kotlin*")
|
|
|
|
}
|
|
|
|
resources {
|
|
|
|
excludes += listOf(
|
|
|
|
"META-INF/*.kotlin_module",
|
|
|
|
"META-INF/androidx.*.version",
|
|
|
|
"META-INF/services/kotlin*",
|
|
|
|
"kotlin/internal/internal.kotlin_builtins"
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2024-08-23 22:35:40 +02:00
|
|
|
implementation(project(":core"))
|
2023-10-13 07:42:24 +02:00
|
|
|
implementation(project(":storage:lib"))
|
|
|
|
|
|
|
|
implementation(libs.bundles.kotlin)
|
|
|
|
|
|
|
|
implementation(libs.androidx.core)
|
|
|
|
// A newer version gets pulled in with AOSP via core, so we include fragment here explicitly
|
|
|
|
implementation(libs.androidx.fragment)
|
|
|
|
implementation(libs.androidx.activity)
|
|
|
|
implementation(libs.androidx.lifecycle.viewmodel.ktx)
|
|
|
|
implementation(libs.androidx.lifecycle.livedata.ktx)
|
|
|
|
implementation(libs.androidx.constraintlayout)
|
|
|
|
implementation(libs.google.material)
|
|
|
|
|
|
|
|
implementation(libs.google.protobuf.javalite)
|
|
|
|
}
|