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/build.gradle

156 lines
5.0 KiB
Groovy

10 years ago
apply plugin: 'com.android.application'
apply plugin: 'com.getkeepsafe.dexcount'
10 years ago
task wrapper(type: Wrapper) {
8 years ago
gradleVersion = '2.14.1'
}
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.google.guava:guava:19.0'
classpath 'com.android.tools.build:gradle:2.2.0-beta2'
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.5.2'
10 years ago
}
}
repositories {
jcenter()
10 years ago
}
android {
lintOptions {
lintConfig file("lint.xml")
}
9 years ago
compileSdkVersion 24
buildToolsVersion "24.0.2"
10 years ago
defaultConfig {
applicationId "org.tasks"
versionCode 433
versionName "4.9.4"
minSdkVersion 15
9 years ago
targetSdkVersion 24
8 years ago
multiDexEnabled true
8 years ago
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
jackOptions {
enabled true
}
10 years ago
}
signingConfigs {
release
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
10 years ago
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.pro'
signingConfig signingConfigs.release
10 years ago
}
}
10 years ago
8 years ago
flavorDimensions 'store', 'env'
productFlavors {
8 years ago
generic {
dimension 'store'
}
googleplay {
dimension 'store'
}
amazon {
dimension 'store'
}
dev {
minSdkVersion 21
8 years ago
dimension 'env'
8 years ago
}
prod {
dimension 'env'
}
}
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
}
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.6.1'
final BUTTERKNIFE_VERSION = '8.3.0'
final GPS_VERSION = '9.4.0'
final SUPPORT_VERSION = '24.2.0'
final STETHO_VERSION = '1.3.1'
8 years ago
final TESTING_SUPPORT_VERSION = '0.5'
8 years ago
10 years ago
dependencies {
annotationProcessor "com.google.dagger:dagger-compiler:${DAGGER_VERSION}"
8 years ago
compile "com.google.dagger:dagger:${DAGGER_VERSION}"
annotationProcessor "com.jakewharton:butterknife-compiler:${BUTTERKNIFE_VERSION}"
8 years ago
compile "com.jakewharton:butterknife:${BUTTERKNIFE_VERSION}"
debugCompile "com.facebook.stetho:stetho:${STETHO_VERSION}"
debugCompile "com.facebook.stetho:stetho-timber:${STETHO_VERSION}@aar"
9 years ago
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.4-beta2'
compile 'com.github.rey5137:material:1.2.4'
8 years ago
compile 'com.android.support:multidex:1.0.1'
compile 'com.nononsenseapps:filepicker:2.5.2'
8 years ago
compile "com.android.support:design:${SUPPORT_VERSION}"
compile "com.android.support:support-annotations:${SUPPORT_VERSION}"
compile 'com.jakewharton.timber:timber:4.1.2'
9 years ago
compile 'com.google.guava:guava:19.0'
compile 'com.jakewharton:process-phoenix:1.0.2'
compile 'com.google.android.apps.dashclock:dashclock-api:2.0.0'
compile 'com.twofortyfouram:android-plugin-api-for-locale:1.0.2'
compile ('com.rubiconproject.oss:jchronic:0.2.6') {
transitive = false
}
compile ('org.scala-saddle:google-rfc-2445:20110304') {
transitive = false
}
compile ('com.wdullaer:materialdatetimepicker:2.3.0') {
exclude group: 'com.android.support', module: 'support-v4'
}
8 years ago
googleplayCompile "com.google.android.gms:play-services-location:${GPS_VERSION}"
googleplayCompile "com.google.android.gms:play-services-analytics:${GPS_VERSION}"
googleplayCompile "com.google.android.gms:play-services-auth:${GPS_VERSION}"
googleplayCompile "com.google.android.gms:play-services-places:${GPS_VERSION}"
googleplayCompile 'com.google.apis:google-api-services-tasks:v1-rev45-1.22.0'
googleplayCompile 'com.google.api-client:google-api-client-android:1.22.0'
8 years ago
amazonCompile "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}"
androidTestCompile 'com.google.dexmaker:dexmaker-mockito:1.2'
androidTestCompile 'com.natpryce:make-it-easy:4.0.0'
8 years ago
androidTestCompile "com.android.support.test:runner:${TESTING_SUPPORT_VERSION}"
androidTestCompile "com.android.support.test:rules:${TESTING_SUPPORT_VERSION}"
androidTestCompile "com.android.support:support-annotations:${SUPPORT_VERSION}"
}