2023-03-02 17:41:32 +01:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2020 The Calyx Institute
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
2023-03-27 10:15:48 +02:00
|
|
|
plugins {
|
|
|
|
id 'com.android.application'
|
|
|
|
id 'org.jetbrains.kotlin.android'
|
|
|
|
}
|
2020-09-18 17:04:18 +02:00
|
|
|
|
|
|
|
android {
|
2023-08-02 17:52:41 +02:00
|
|
|
namespace 'org.calyxos.backup.contacts'
|
2023-08-02 17:49:20 +02:00
|
|
|
compileSdk rootProject.ext.compileSdk
|
2020-09-18 17:04:18 +02:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "org.calyxos.backup.contacts"
|
2023-08-02 17:49:20 +02:00
|
|
|
minSdk rootProject.ext.minSdk
|
|
|
|
targetSdk rootProject.ext.targetSdk
|
2020-09-18 17:04:18 +02:00
|
|
|
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
2021-10-07 18:44:55 +02:00
|
|
|
testInstrumentationRunnerArguments disableAnalytics: 'true'
|
2020-09-18 17:04:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
compileOptions {
|
2022-08-19 17:42:42 +02:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
|
|
targetCompatibility = JavaVersion.VERSION_11
|
2020-09-18 17:04:18 +02:00
|
|
|
}
|
|
|
|
|
2021-10-07 18:44:55 +02:00
|
|
|
kotlinOptions {
|
2022-08-19 17:42:42 +02:00
|
|
|
jvmTarget = JavaVersion.VERSION_11.toString()
|
2021-10-07 18:44:55 +02:00
|
|
|
}
|
|
|
|
|
2020-09-18 17:04:18 +02:00
|
|
|
testOptions {
|
|
|
|
unitTests.returnDefaultValues = true
|
|
|
|
}
|
|
|
|
|
|
|
|
// optional signingConfigs
|
|
|
|
// On userdebug builds, you can use the testkey here to update the system app
|
|
|
|
def keystorePropertiesFile = project.file("keystore.properties")
|
|
|
|
if (keystorePropertiesFile.exists()) {
|
|
|
|
def keystoreProperties = new Properties()
|
|
|
|
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
|
|
|
|
|
|
|
signingConfigs {
|
|
|
|
release {
|
|
|
|
keyAlias keystoreProperties['keyAlias']
|
|
|
|
keyPassword keystoreProperties['keyPassword']
|
|
|
|
storeFile file(keystoreProperties['storeFile'])
|
|
|
|
storePassword keystoreProperties['storePassword']
|
|
|
|
}
|
|
|
|
}
|
|
|
|
buildTypes.release.signingConfig = signingConfigs.release
|
|
|
|
buildTypes.debug.signingConfig = signingConfigs.release
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
def aospDeps = fileTree(include: [
|
|
|
|
// out/target/common/obj/JAVA_LIBRARIES/com.android.vcard_intermediates/classes.jar
|
|
|
|
'com.android.vcard.jar'
|
|
|
|
], dir: 'libs')
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation aospDeps
|
|
|
|
|
|
|
|
testImplementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
2021-01-19 13:14:52 +01:00
|
|
|
testImplementation "junit:junit:$junit4_version"
|
2020-09-18 17:04:18 +02:00
|
|
|
testImplementation "io.mockk:mockk:$mockk_version"
|
|
|
|
|
|
|
|
androidTestImplementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
2021-10-07 18:44:55 +02:00
|
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
2020-09-18 17:04:18 +02:00
|
|
|
androidTestImplementation "androidx.test.espresso:espresso-core:$espresso_version"
|
|
|
|
androidTestImplementation "io.mockk:mockk-android:$mockk_version"
|
|
|
|
}
|