Store/app/build.gradle

77 lines
2.5 KiB
Groovy
Raw Normal View History

2016-11-29 18:59:48 +00:00
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
2017-01-04 19:17:53 +00:00
apply plugin: 'com.getkeepsafe.dexcount'
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin-android-extensions'
2016-11-29 18:59:48 +00:00
android {
compileSdkVersion versions.compileSdk
buildToolsVersion versions.buildTools
2016-11-29 18:59:48 +00:00
defaultConfig {
applicationId "com.nytimes.android.store.sample"
2016-11-29 18:59:48 +00:00
minSdkVersion 19
compileSdkVersion versions.compileSdk
targetSdkVersion versions.targetSdk
2016-11-29 18:59:48 +00:00
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
2017-01-04 19:17:53 +00:00
lintOptions {
abortOnError false
disable 'InvalidPackage'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
packagingOptions {
exclude 'META-INF/rxjava.properties'
}
2016-11-29 18:59:48 +00:00
}
def room_version = "1.1.0" // or, for latest rc, use "1.1.1-rc1"
2016-11-29 18:59:48 +00:00
dependencies {
2017-01-04 19:17:53 +00:00
testImplementation libraries.junit
2017-01-04 19:17:53 +00:00
implementation libraries.supportRecyclerView
implementation libraries.supportAppCompat
implementation libraries.supportCardView
implementation libraries.supportDesign
implementation libraries.retrofit
implementation libraries.retrofitRx2
implementation libraries.picasso
implementation libraries.guava
annotationProcessor libraries.immutablesValue // <-- for annotation processor
implementation libraries.moshi
implementation libraries.retrofitMoshiConverter
kapt(libraries.moshiCodegen)
implementation project(':store')
implementation project(':cache')
implementation project(':middleware')
implementation project(':middleware-moshi')
implementation project(':filesystem')
implementation libraries.rxAndroid2
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "android.arch.persistence.room:runtime:$room_version"
annotationProcessor "android.arch.persistence.room:compiler:$room_version"
kapt "android.arch.persistence.room:compiler:$room_version"
// androidTestImplementation "android.arch.persistence.room:testing:$room_version"
// optional - RxJava support for Room
implementation "android.arch.persistence.room:rxjava2:$room_version"
2016-11-29 18:59:48 +00:00
}
repositories {
mavenCentral()
}
configurations.all {
resolutionStrategy.force 'com.android.support:support-v4:26.1.0'
}