2023-10-13 07:42:24 +02:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2021 The Calyx Institute
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
id("com.android.application")
|
|
|
|
id("com.google.protobuf")
|
|
|
|
id("org.jetbrains.kotlin.android")
|
|
|
|
id("org.jetbrains.kotlin.kapt")
|
|
|
|
}
|
|
|
|
|
|
|
|
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 {
|
|
|
|
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)
|
|
|
|
}
|