Readrops/db/build.gradle

95 lines
2.7 KiB
Groovy
Raw Normal View History

apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
2021-09-01 18:46:54 +02:00
apply plugin: 'kotlin-parcelize'
android {
compileSdkVersion rootProject.ext.compileSdkVersion
defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
javaCompileOptions {
annotationProcessorOptions {
arguments = [
2020-03-11 22:36:52 +01:00
"room.incremental" : "true",
"room.schemaLocation": "$projectDir/schemas".toString()
]
}
}
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
}
sourceSets {
androidTest.assets.srcDirs += files("$projectDir/schemas".toString())
}
2020-03-22 18:22:37 +01:00
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
debug {
minifyEnabled false
2021-09-16 22:29:25 +02:00
testCoverageEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
2023-08-15 22:44:44 +02:00
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
2021-07-02 18:56:11 +02:00
kotlinOptions {
2023-08-15 22:44:44 +02:00
jvmTarget = '17'
2021-07-02 18:56:11 +02:00
}
2023-02-20 19:13:06 +01:00
lint {
abortOnError false
}
namespace 'com.readrops.db'
}
2021-09-16 22:29:25 +02:00
// Needed for kapt starting with kotlin plugin 1.5
kapt {
arguments {
arg("room.schemaLocation", "$projectDir/schemas".toString())
arg("room.incremental", "true")
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
2021-07-03 19:44:42 +02:00
api "androidx.core:core-ktx:1.6.0"
api 'androidx.appcompat:appcompat:1.3.0'
api "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
testImplementation 'junit:junit:4.13'
2021-07-03 19:44:42 +02:00
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test:runner:1.4.0'
androidTestImplementation 'androidx.test:rules:1.4.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation(libs.bundles.room)
kapt(libs.room.compiler)
androidTestImplementation(libs.room.testing)
implementation 'com.github.MatrixDev.Roomigrant:RoomigrantLib:0.3.4' //TODO delete
2021-07-03 19:44:42 +02:00
kapt 'com.github.MatrixDev.Roomigrant:RoomigrantCompiler:0.3.4'
implementation(libs.bundles.paging)
api 'joda-time:joda-time:2.10.10' //TODO replace with java.time?
2020-10-13 22:11:13 +02:00
implementation(libs.bundles.koin)
testImplementation(libs.bundles.kointest)
2023-02-28 22:05:32 +01:00
implementation(libs.bundles.coroutines)
}