You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tasks/app/build.gradle

186 lines
6.5 KiB
Groovy

10 years ago
apply plugin: 'com.android.application'
apply plugin: 'checkstyle'
10 years ago
repositories {
jcenter()
google()
10 years ago
}
android {
lintOptions {
lintConfig file("lint.xml")
textOutput 'stdout'
textReport true
10 years ago
}
7 years ago
compileSdkVersion 27
7 years ago
buildToolsVersion '27.0.3'
10 years ago
defaultConfig {
7 years ago
testApplicationId "org.tasks.test"
applicationId "org.tasks"
versionCode 506
versionName "5.3.4"
7 years ago
targetSdkVersion 27
minSdkVersion 15
8 years ago
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
javaCompileOptions {
annotationProcessorOptions {
arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
}
}
10 years ago
}
signingConfigs {
release
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
10 years ago
}
buildTypes {
debug {
multiDexEnabled true
testCoverageEnabled true
}
10 years ago
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.pro'
signingConfig signingConfigs.release
10 years ago
}
}
10 years ago
flavorDimensions 'store'
9 years ago
productFlavors {
9 years ago
generic {
dimension 'store'
}
googleplay {
dimension 'store'
}
amazon {
dimension 'store'
}
}
8 years ago
if (project.hasProperty('keyAlias') &&
project.hasProperty('storeFile') &&
project.hasProperty('storePassword') &&
project.hasProperty('keyPassword')) {
android.signingConfigs.release.keyAlias = keyAlias
android.signingConfigs.release.storeFile = file(storeFile)
android.signingConfigs.release.storePassword = storePassword
android.signingConfigs.release.keyPassword = keyPassword
} else {
buildTypes.release.signingConfig = null
}
10 years ago
}
task checkstyle(type: Checkstyle) {
7 years ago
source fileTree('src')
include '**/*.java'
exclude '**/gen/**'
classpath = files()
showViolations true
reports {
xml.enabled = true
html.enabled = true
html.destination = "$project.buildDir/reports/checkstyle/checkstyle.html"
}
}
checkstyle {
configFile project.file('google_checks.xml')
toolVersion = '8.8'
}
9 years ago
configurations {
all*.exclude group: 'com.google.guava', module: 'guava-jdk5'
all*.exclude group: 'org.apache.httpcomponents', module: 'httpclient'
}
8 years ago
final DAGGER_VERSION = '2.9'
final BUTTERKNIFE_VERSION = '8.8.1'
final GPS_VERSION = '12.0.1'
final SUPPORT_VERSION = '27.1.1'
final ROOM_VERSION = '1.1.0-beta2'
final STETHO_VERSION = '1.5.0'
final TESTING_SUPPORT_VERSION = '1.0.0'
9 years ago
10 years ago
dependencies {
7 years ago
implementation project(':ical4android')
implementation project(':dav4android')
annotationProcessor "com.google.dagger:dagger-compiler:${DAGGER_VERSION}"
7 years ago
implementation "com.google.dagger:dagger:${DAGGER_VERSION}"
7 years ago
implementation "android.arch.persistence.room:rxjava2:${ROOM_VERSION}"
annotationProcessor "android.arch.persistence.room:compiler:${ROOM_VERSION}"
implementation "android.arch.lifecycle:extensions:1.1.1"
7 years ago
implementation "io.reactivex.rxjava2:rxandroid:2.0.1"
implementation "android.arch.paging:runtime:1.0.0-beta1"
annotationProcessor "com.jakewharton:butterknife-compiler:${BUTTERKNIFE_VERSION}"
7 years ago
implementation "com.jakewharton:butterknife:${BUTTERKNIFE_VERSION}"
7 years ago
debugImplementation ("com.facebook.stetho:stetho:${STETHO_VERSION}") {
exclude group: 'com.google.code.findbugs', module: 'jsr305'
}
7 years ago
debugImplementation "com.facebook.stetho:stetho-timber:${STETHO_VERSION}@aar"
//noinspection GradleDependency
7 years ago
debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.5.4'
debugImplementation 'com.android.support:multidex:1.0.3'
7 years ago
implementation 'com.evernote:android-job:1.2.5'
implementation 'com.squareup.okhttp3:okhttp:3.10.0'
7 years ago
implementation 'com.google.code.gson:gson:2.8.2'
implementation 'com.github.rey5137:material:1.2.4'
implementation 'com.nononsenseapps:filepicker:4.1.0'
implementation "com.android.support:design:${SUPPORT_VERSION}"
implementation "com.android.support:support-annotations:${SUPPORT_VERSION}"
implementation "com.android.support:support-v13:${SUPPORT_VERSION}"
implementation "com.android.support:cardview-v7:${SUPPORT_VERSION}"
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.jakewharton.timber:timber:4.7.0'
7 years ago
implementation 'com.jakewharton.threetenabp:threetenabp:1.0.5'
//noinspection GradleDependency
7 years ago
implementation 'com.google.guava:guava:20.0'
implementation 'com.jakewharton:process-phoenix:2.0.0'
implementation 'com.google.android.apps.dashclock:dashclock-api:2.0.0'
implementation 'com.twofortyfouram:android-plugin-api-for-locale:1.0.2'
implementation ('com.rubiconproject.oss:jchronic:0.2.6') {
transitive = false
}
7 years ago
implementation ('org.scala-saddle:google-rfc-2445:20110304') {
transitive = false
}
implementation ('com.wdullaer:materialdatetimepicker:3.5.2') {
exclude group: 'com.android.support', module: 'support-v4'
}
7 years ago
implementation "me.leolin:ShortcutBadger:1.1.18@aar"
implementation 'com.google.apis:google-api-services-tasks:v1-rev47-1.22.0'
implementation 'com.google.api-client:google-api-client-android:1.22.0'
googleplayImplementation 'com.android.billingclient:billing:1.0'
7 years ago
googleplayImplementation "com.google.android.gms:play-services-location:${GPS_VERSION}"
googleplayImplementation "com.google.android.gms:play-services-analytics:${GPS_VERSION}"
googleplayImplementation "com.google.android.gms:play-services-auth:${GPS_VERSION}"
googleplayImplementation "com.google.android.gms:play-services-places:${GPS_VERSION}"
7 years ago
amazonImplementation "com.google.android.gms:play-services-analytics:${GPS_VERSION}"
8 years ago
androidTestAnnotationProcessor "com.google.dagger:dagger-compiler:${DAGGER_VERSION}"
androidTestAnnotationProcessor "com.jakewharton:butterknife-compiler:${BUTTERKNIFE_VERSION}"
7 years ago
androidTestImplementation 'com.google.dexmaker:dexmaker-mockito:1.2'
androidTestImplementation 'com.natpryce:make-it-easy:4.0.1'
androidTestImplementation "com.android.support.test:runner:${TESTING_SUPPORT_VERSION}"
androidTestImplementation "com.android.support.test:rules:${TESTING_SUPPORT_VERSION}"
androidTestImplementation "com.android.support:support-annotations:${SUPPORT_VERSION}"
}