2020-09-18 17:04:18 +02:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
apply plugin: 'kotlin-android'
|
|
|
|
|
|
|
|
android {
|
2021-10-07 18:44:55 +02:00
|
|
|
compileSdkVersion rootProject.ext.compileSdkVersion
|
|
|
|
buildToolsVersion rootProject.ext.buildToolsVersion
|
2020-09-18 17:04:18 +02:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "org.calyxos.backup.contacts"
|
2021-10-07 18:44:55 +02:00
|
|
|
minSdkVersion rootProject.ext.minSdkVersion
|
|
|
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
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 {
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
targetCompatibility = 1.8
|
|
|
|
}
|
|
|
|
|
2021-10-07 18:44:55 +02:00
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = '1.8'
|
|
|
|
}
|
|
|
|
|
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"
|
|
|
|
}
|