| /* |
| * 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 rootProject.ext.compileSdk |
| |
| defaultConfig { |
| applicationId "de.grobox.storagebackuptester" |
| minSdk rootProject.ext.minSdk |
| targetSdk rootProject.ext.targetSdk |
| versionCode 20 |
| versionName "0.9.7" |
| |
| testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" |
| testInstrumentationRunnerArguments disableAnalytics: 'true' |
| } |
| |
| buildTypes { |
| release { |
| minifyEnabled 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 += "-opt-in=kotlin.RequiresOptIn" |
| } |
| lint { |
| disable "DialogFragmentCallbacksDetector", |
| "InvalidFragmentVersionForActivityResult" |
| } |
| packagingOptions { |
| 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' |
| ] |
| } |
| } |
| } |
| |
| dependencies { |
| implementation project(':storage:lib') |
| |
| implementation rootProject.ext.kotlin_libs.std |
| |
| 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 |
| implementation rootProject.ext.std_libs.androidx_activity |
| 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 |
| } |