mirror of
https://codeberg.org/Mercury-IM/Mercury-IM
synced 2024-09-28 18:59:54 +02:00
56 lines
1.6 KiB
Groovy
56 lines
1.6 KiB
Groovy
apply plugin: 'com.android.library'
|
|
|
|
android {
|
|
compileSdkVersion 28
|
|
|
|
|
|
defaultConfig {
|
|
minSdkVersion 19
|
|
targetSdkVersion 28
|
|
versionCode 1
|
|
versionName "1.0"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
javaCompileOptions {
|
|
annotationProcessorOptions {
|
|
arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility 1.8
|
|
targetCompatibility 1.8
|
|
}
|
|
|
|
}
|
|
|
|
dependencies {
|
|
api project(":persistence")
|
|
|
|
// Dagger 2 for dependency injection
|
|
implementation "com.google.dagger:dagger:$daggerVersion"
|
|
annotationProcessor "com.google.dagger:dagger-compiler:$daggerVersion"
|
|
|
|
testImplementation "junit:junit:$junitVersion"
|
|
androidTestImplementation "androidx.test:runner:$andxTestRunnerVersion"
|
|
androidTestImplementation "androidx.test.espresso:espresso-core:$andxTestEspressoVersion"
|
|
androidTestImplementation "androidx.test:core:$andxTestCoreVersion"
|
|
androidTestImplementation "androidx.test.ext:junit:$andxTestJunitVersion"
|
|
|
|
// Room
|
|
api "androidx.room:room-runtime:$roomVersion"
|
|
annotationProcessor "androidx.room:room-compiler:$roomVersion"
|
|
implementation "androidx.room:room-rxjava2:$roomRxJavaVersion"
|
|
api "io.reactivex.rxjava2:rxandroid:$rxAndroidVersion"
|
|
}
|