0252db0992
Some people build from master and report bugs with the version number found in the About dialog. This change should make it easier to identify such cases.
119 lines
3.4 KiB
Groovy
119 lines
3.4 KiB
Groovy
apply plugin: 'com.android.application'
|
|
|
|
if (!rootProject.optimizeForDevelopment) {
|
|
apply from: '../gradle/plugins/checkstyle-android.gradle'
|
|
apply from: '../gradle/plugins/findbugs-android.gradle'
|
|
}
|
|
|
|
if (rootProject.testCoverage) {
|
|
apply plugin: 'jacoco'
|
|
}
|
|
|
|
repositories {
|
|
jcenter()
|
|
}
|
|
|
|
//noinspection GroovyAssignabilityCheck
|
|
configurations.all {
|
|
resolutionStrategy {
|
|
force "com.android.support:support-annotations:${androidSupportLibraryVersion}"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compile project(':k9mail-library')
|
|
compile project(':plugins:HoloColorPicker')
|
|
compile project(':plugins:openpgp-api-lib:openpgp-api')
|
|
compile "com.squareup.okio:okio:${okioVersion}"
|
|
compile 'commons-io:commons-io:2.4'
|
|
compile "com.android.support:support-v4:${androidSupportLibraryVersion}"
|
|
compile 'net.sourceforge.htmlcleaner:htmlcleaner:2.18'
|
|
compile 'de.cketti.library.changelog:ckchangelog:1.2.1'
|
|
compile 'com.github.bumptech.glide:glide:3.6.1'
|
|
compile 'com.splitwise:tokenautocomplete:2.0.7'
|
|
compile 'de.cketti.safecontentresolver:safe-content-resolver-v14:0.9.0'
|
|
compile 'com.github.amlcurran.showcaseview:library:5.4.1'
|
|
compile 'com.squareup.moshi:moshi:1.2.0'
|
|
compile 'com.jakewharton.timber:timber:4.5.1'
|
|
|
|
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'
|
|
|
|
testCompile "org.robolectric:robolectric:${robolectricVersion}"
|
|
testCompile "junit:junit:${junitVersion}"
|
|
testCompile "org.mockito:mockito-core:${mockitoVersion}"
|
|
testCompile 'org.jsoup:jsoup:1.10.2'
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion androidCompileSdkVersion.toInteger()
|
|
buildToolsVersion androidBuildToolsVersion
|
|
|
|
defaultConfig {
|
|
applicationId "com.fsck.k9"
|
|
testApplicationId "com.fsck.k9.tests"
|
|
|
|
versionCode 23500
|
|
versionName '5.300-SNAPSHOT'
|
|
|
|
minSdkVersion 15
|
|
targetSdkVersion 22
|
|
|
|
generatedDensities = ['mdpi', 'hdpi', 'xhdpi']
|
|
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
signingConfigs {
|
|
release
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
if (project.hasProperty('storeFile')) {
|
|
signingConfig signingConfigs.release
|
|
}
|
|
|
|
buildConfigField "boolean", "DEVELOPER_MODE", "false"
|
|
}
|
|
|
|
debug {
|
|
applicationIdSuffix ".debug"
|
|
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 'LICENSE.txt'
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_7
|
|
targetCompatibility JavaVersion.VERSION_1_7
|
|
}
|
|
}
|
|
|
|
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
|
|
}
|