thunderbird-android/app/k9mail/build.gradle

121 lines
3.1 KiB
Groovy
Raw Normal View History

apply plugin: 'com.android.application'
2018-05-23 17:45:46 +00:00
apply plugin: 'org.jetbrains.kotlin.android'
apply plugin: 'org.jetbrains.kotlin.android.extensions'
2018-06-20 23:53:52 +00:00
apply from: "${rootProject.projectDir}/gradle/plugins/checkstyle-android.gradle"
apply from: "${rootProject.projectDir}/gradle/plugins/findbugs-android.gradle"
if (rootProject.testCoverage) {
apply plugin: 'jacoco'
}
2015-12-21 02:25:54 +00:00
//noinspection GroovyAssignabilityCheck
configurations.all {
resolutionStrategy {
force "com.android.support:support-annotations:${versions.supportLibrary}"
force "com.android.support:design:${versions.supportLibrary}"
2015-12-21 02:25:54 +00:00
}
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${versions.kotlin}"
implementation project(":app:core")
2018-02-17 03:05:09 +00:00
androidTestImplementation "com.android.support.test.espresso:espresso-core:3.0.1"
}
android {
compileSdkVersion buildConfig.compileSdk
buildToolsVersion buildConfig.buildTools
defaultConfig {
applicationId "com.fsck.k9"
testApplicationId "com.fsck.k9.tests"
2018-02-25 18:18:01 +00:00
versionCode 27000
versionName '5.700-SNAPSHOT'
minSdkVersion buildConfig.minSdk
2015-12-21 01:35:10 +00:00
targetSdkVersion 22
generatedDensities = ['mdpi', 'hdpi', 'xhdpi']
2015-01-02 22:43:46 +00:00
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
signingConfigs {
release
}
buildTypes {
release {
if (project.hasProperty('storeFile')) {
signingConfig signingConfigs.release
}
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
buildConfigField "boolean", "DEVELOPER_MODE", "false"
}
debug {
applicationIdSuffix ".debug"
2018-05-23 18:09:33 +00:00
testCoverageEnabled rootProject.testCoverage
buildConfigField "boolean", "DEVELOPER_MODE", "true"
}
}
// Do not abort build if lint finds errors
lintOptions {
abortOnError false
lintConfig file("$rootProject.projectDir/config/lint/lint.xml")
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/README'
exclude 'LICENSE.txt'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
testOptions {
unitTests {
includeAndroidResources = true
}
}
}
2018-03-08 05:59:06 +00:00
androidExtensions {
experimental = true
}
kotlin {
experimental {
coroutines "enable"
}
}
if (project.hasProperty('keyAlias')) {
android.signingConfigs.release.keyAlias = keyAlias
}
if (project.hasProperty('keyPassword')) {
android.signingConfigs.release.keyPassword = keyPassword
}
if (project.hasProperty('storeFile')) {
android.signingConfigs.release.storeFile = file(storeFile)
}
if (project.hasProperty('storePassword')) {
android.signingConfigs.release.storePassword = storePassword
}