2023-03-02 18:15:28 +02:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2021 The Calyx Institute
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
2021-01-19 09:14:52 -03:00
|
|
|
plugins {
|
|
|
|
id 'com.android.application'
|
|
|
|
id 'com.google.protobuf'
|
2023-03-27 13:45:48 +05:30
|
|
|
id 'org.jetbrains.kotlin.android'
|
|
|
|
id 'org.jetbrains.kotlin.kapt'
|
2021-01-19 09:14:52 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2023-08-02 23:52:41 +08:00
|
|
|
namespace 'de.grobox.storagebackuptester'
|
2023-08-02 23:49:20 +08:00
|
|
|
compileSdk rootProject.ext.compileSdk
|
2021-01-19 09:14:52 -03:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "de.grobox.storagebackuptester"
|
2023-08-02 23:49:20 +08:00
|
|
|
minSdk rootProject.ext.minSdk
|
|
|
|
targetSdk rootProject.ext.targetSdk
|
2021-03-05 14:33:12 -03:00
|
|
|
versionCode 20
|
|
|
|
versionName "0.9.7"
|
2021-01-19 09:14:52 -03:00
|
|
|
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
testInstrumentationRunnerArguments disableAnalytics: 'true'
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled true
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
compileOptions {
|
2022-08-19 21:12:42 +05:30
|
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
|
|
targetCompatibility = JavaVersion.VERSION_11
|
2021-01-19 09:14:52 -03:00
|
|
|
}
|
|
|
|
kotlinOptions {
|
2022-08-19 21:12:42 +05:30
|
|
|
jvmTarget = JavaVersion.VERSION_11.toString()
|
2023-03-27 15:50:03 +05:30
|
|
|
freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
|
2021-01-19 09:14:52 -03:00
|
|
|
}
|
2023-08-03 00:41:27 +08:00
|
|
|
lint {
|
2021-10-07 13:44:55 -03:00
|
|
|
disable "DialogFragmentCallbacksDetector",
|
|
|
|
"InvalidFragmentVersionForActivityResult"
|
|
|
|
}
|
2021-01-19 09:14:52 -03:00
|
|
|
packagingOptions {
|
2023-08-03 00:41:27 +08:00
|
|
|
jniLibs {
|
|
|
|
excludes += ['META-INF/services/kotlin*']
|
|
|
|
}
|
|
|
|
resources {
|
|
|
|
excludes += [
|
|
|
|
'META-INF/*.kotlin_module',
|
|
|
|
'META-INF/androidx.*.version',
|
|
|
|
'META-INF/services/kotlin*',
|
|
|
|
'kotlin/internal/internal.kotlin_builtins'
|
|
|
|
]
|
|
|
|
}
|
2021-01-19 09:14:52 -03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation project(':storage:lib')
|
|
|
|
|
2021-10-07 13:44:55 -03:00
|
|
|
implementation rootProject.ext.kotlin_libs.std
|
|
|
|
|
2021-01-19 09:14:52 -03:00
|
|
|
implementation rootProject.ext.std_libs.androidx_core
|
|
|
|
// A newer version gets pulled in with AOSP via core, so we include fragment here explicitly
|
|
|
|
implementation rootProject.ext.std_libs.androidx_fragment
|
2021-10-07 13:44:55 -03:00
|
|
|
implementation rootProject.ext.std_libs.androidx_activity
|
2021-01-19 09:14:52 -03:00
|
|
|
implementation rootProject.ext.std_libs.androidx_lifecycle_viewmodel_ktx
|
|
|
|
implementation rootProject.ext.std_libs.androidx_lifecycle_livedata_ktx
|
|
|
|
implementation rootProject.ext.std_libs.androidx_constraintlayout
|
|
|
|
implementation rootProject.ext.std_libs.com_google_android_material
|
|
|
|
|
|
|
|
implementation rootProject.ext.storage_libs.com_google_protobuf_javalite
|
|
|
|
}
|