Store/app/build.gradle
2019-02-23 15:46:15 +01:00

75 lines
No EOL
2.5 KiB
Groovy

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'com.getkeepsafe.dexcount'
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion versions.compileSdk
buildToolsVersion versions.buildTools
defaultConfig {
applicationId "com.nytimes.android.store.sample"
minSdkVersion 19
compileSdkVersion versions.compileSdk
targetSdkVersion versions.targetSdk
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions {
abortOnError false
disable 'InvalidPackage'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
packagingOptions {
exclude 'META-INF/rxjava.properties'
}
}
dependencies {
testImplementation libraries.junit
testImplementation libraries.mockito
testImplementation libraries.assertJ
testImplementation libraries.junit
testCompileOnly libraries.jsr305
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-jdk8:$versions.kotlin"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.1.0"
implementation 'com.jakewharton.retrofit:retrofit2-kotlin-coroutines-adapter:0.9.2'
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.1.0"
}
repositories {
mavenCentral()
}
configurations.all {
resolutionStrategy.force 'com.android.support:support-v4:26.1.0'
}