2020-01-02 15:19:57 +01:00
|
|
|
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'
|
2020-01-02 15:19:57 +01:00
|
|
|
|
|
|
|
android {
|
2020-01-02 15:38:25 +01:00
|
|
|
compileSdkVersion rootProject.ext.compileSdkVersion
|
2020-01-02 15:19:57 +01:00
|
|
|
|
|
|
|
defaultConfig {
|
2020-01-02 15:38:25 +01:00
|
|
|
minSdkVersion rootProject.ext.minSdkVersion
|
|
|
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
2020-03-20 22:14:26 +01:00
|
|
|
buildToolsVersion rootProject.ext.buildToolsVersion
|
2020-01-02 15:19:57 +01:00
|
|
|
|
|
|
|
javaCompileOptions {
|
|
|
|
annotationProcessorOptions {
|
|
|
|
arguments = [
|
2020-03-11 22:36:52 +01:00
|
|
|
"room.incremental" : "true",
|
|
|
|
"room.schemaLocation": "$projectDir/schemas".toString()
|
2020-01-02 15:19:57 +01:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
consumerProguardFiles 'consumer-rules.pro'
|
|
|
|
}
|
|
|
|
|
2020-03-21 15:47:15 +01:00
|
|
|
sourceSets {
|
|
|
|
androidTest.assets.srcDirs += files("$projectDir/schemas".toString())
|
|
|
|
}
|
|
|
|
|
2020-03-22 18:22:37 +01:00
|
|
|
|
2020-01-02 15:19:57 +01:00
|
|
|
buildTypes {
|
|
|
|
release {
|
2020-01-02 15:38:25 +01:00
|
|
|
minifyEnabled true
|
2020-01-02 15:19:57 +01:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
2020-01-02 15:38:25 +01:00
|
|
|
|
|
|
|
debug {
|
|
|
|
minifyEnabled false
|
2021-09-16 22:29:25 +02:00
|
|
|
testCoverageEnabled true
|
2020-01-02 15:38:25 +01:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
2020-01-02 15:19:57 +01:00
|
|
|
}
|
|
|
|
|
2020-01-02 15:38:25 +01:00
|
|
|
compileOptions {
|
2023-08-15 22:44:44 +02:00
|
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
|
|
targetCompatibility JavaVersion.VERSION_17
|
2020-01-02 15:38:25 +01:00
|
|
|
}
|
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'
|
2020-01-02 15:19:57 +01:00
|
|
|
}
|
|
|
|
|
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")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-02 15:19:57 +01:00
|
|
|
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'
|
2020-10-06 22:45:19 +02:00
|
|
|
api "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
2020-03-21 15:47:15 +01:00
|
|
|
|
2020-10-06 22:45:19 +02:00
|
|
|
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'
|
2020-01-02 15:19:57 +01:00
|
|
|
|
2023-03-03 19:49:49 +01:00
|
|
|
def room_version = "2.4.3"
|
2021-07-03 19:44:42 +02:00
|
|
|
api "androidx.room:room-runtime:$room_version"
|
2023-02-28 22:05:32 +01:00
|
|
|
api "androidx.room:room-ktx:$room_version"
|
2021-07-03 19:44:42 +02:00
|
|
|
kapt "androidx.room:room-compiler:$room_version"
|
|
|
|
implementation "androidx.room:room-rxjava2:$room_version"
|
|
|
|
androidTestImplementation "androidx.room:room-testing:$room_version"
|
2023-08-23 23:03:19 +02:00
|
|
|
implementation "androidx.room:room-paging:$room_version"
|
2020-01-02 15:19:57 +01:00
|
|
|
|
2021-07-03 19:44:42 +02:00
|
|
|
implementation 'com.github.MatrixDev.Roomigrant:RoomigrantLib:0.3.4'
|
|
|
|
kapt 'com.github.MatrixDev.Roomigrant:RoomigrantCompiler:0.3.4'
|
2020-12-28 15:32:21 +01:00
|
|
|
|
2020-03-29 21:34:18 +02:00
|
|
|
api 'androidx.paging:paging-runtime:2.1.2'
|
|
|
|
api 'androidx.paging:paging-common:2.1.2'
|
2020-01-02 15:19:57 +01:00
|
|
|
|
2021-07-03 19:44:42 +02:00
|
|
|
api 'joda-time:joda-time:2.10.10'
|
2020-10-13 22:11:13 +02:00
|
|
|
|
2021-09-20 19:27:12 +02:00
|
|
|
api "io.insert-koin:koin-core:$rootProject.ext.koin_version"
|
|
|
|
api "io.insert-koin:koin-android:$rootProject.ext.koin_version"
|
2023-03-08 22:45:52 +01:00
|
|
|
api "io.insert-koin:koin-androidx-compose:3.4.2"
|
2023-08-14 15:58:29 +02:00
|
|
|
api "io.insert-koin:koin-android-compat:$rootProject.ext.koin_version"
|
2023-02-28 22:05:32 +01:00
|
|
|
|
2024-01-11 22:16:30 +01:00
|
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3"
|
|
|
|
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3'
|
2023-08-23 23:03:19 +02:00
|
|
|
|
2024-01-11 22:16:30 +01:00
|
|
|
api "androidx.paging:paging-runtime-ktx:3.2.1"
|
|
|
|
api "androidx.paging:paging-compose:3.2.1"
|
2020-01-02 15:19:57 +01:00
|
|
|
}
|