2016-11-29 18:59:48 +00:00
|
|
|
apply plugin: 'com.android.application'
|
2018-05-30 16:56:08 +00:00
|
|
|
apply plugin: 'kotlin-android'
|
2017-01-04 19:17:53 +00:00
|
|
|
apply plugin: 'com.getkeepsafe.dexcount'
|
2018-05-30 16:56:08 +00:00
|
|
|
apply plugin: 'kotlin-kapt'
|
2018-07-10 12:07:50 +00:00
|
|
|
apply plugin: 'kotlin-android-extensions'
|
2016-11-29 18:59:48 +00:00
|
|
|
android {
|
2017-01-29 01:52:55 +00:00
|
|
|
compileSdkVersion versions.compileSdk
|
|
|
|
buildToolsVersion versions.buildTools
|
2016-11-29 18:59:48 +00:00
|
|
|
defaultConfig {
|
2017-05-19 14:25:04 +00:00
|
|
|
applicationId "com.nytimes.android.store.sample"
|
2016-11-29 18:59:48 +00:00
|
|
|
minSdkVersion 19
|
2017-01-29 01:52:55 +00:00
|
|
|
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'
|
|
|
|
}
|
2017-08-17 17:48:12 +00:00
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
2017-03-23 20:29:47 +00:00
|
|
|
packagingOptions {
|
|
|
|
exclude 'META-INF/rxjava.properties'
|
|
|
|
}
|
2016-11-29 18:59:48 +00:00
|
|
|
}
|
2018-05-30 16:56:08 +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
|
|
|
|
2017-08-17 17:48:12 +00:00
|
|
|
testImplementation libraries.junit
|
2017-01-04 19:17:53 +00:00
|
|
|
|
2017-08-17 17:48:12 +00:00
|
|
|
implementation libraries.supportRecyclerView
|
|
|
|
implementation libraries.supportAppCompat
|
|
|
|
implementation libraries.supportCardView
|
|
|
|
implementation libraries.supportDesign
|
|
|
|
implementation libraries.retrofit
|
2018-07-10 12:07:50 +00:00
|
|
|
|
2017-08-17 17:48:12 +00:00
|
|
|
implementation libraries.retrofitRx2
|
|
|
|
implementation libraries.picasso
|
|
|
|
implementation libraries.guava
|
2017-03-23 11:19:20 +00:00
|
|
|
annotationProcessor libraries.immutablesValue // <-- for annotation processor
|
2018-07-10 12:07:50 +00:00
|
|
|
implementation libraries.moshi
|
|
|
|
implementation libraries.retrofitMoshiConverter
|
|
|
|
kapt(libraries.moshiCodegen)
|
2018-05-30 16:56:08 +00:00
|
|
|
implementation project(':store')
|
|
|
|
implementation project(':cache')
|
|
|
|
implementation project(':middleware')
|
2018-07-10 12:07:50 +00:00
|
|
|
implementation project(':middleware-moshi')
|
2018-05-30 16:56:08 +00:00
|
|
|
implementation project(':filesystem')
|
2017-08-17 17:48:12 +00:00
|
|
|
implementation libraries.rxAndroid2
|
2018-07-11 18:02:33 +00:00
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
2018-05-30 16:56:08 +00:00
|
|
|
|
|
|
|
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
|
|
|
}
|
2018-05-30 16:56:08 +00:00
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
configurations.all {
|
|
|
|
resolutionStrategy.force 'com.android.support:support-v4:26.1.0'
|
|
|
|
}
|