apply plugin: 'com.android.library' apply plugin: 'kotlin-android' apply plugin: 'kotlin-kapt' 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 = [ "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()) } buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } debug { minifyEnabled false testCoverageEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = '1.8' } lint { abortOnError false } namespace 'com.readrops.db' } // 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']) 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' 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' def room_version = "2.4.3" api "androidx.room:room-runtime:$room_version" api "androidx.room:room-ktx:$room_version" kapt "androidx.room:room-compiler:$room_version" implementation "androidx.room:room-rxjava2:$room_version" androidTestImplementation "androidx.room:room-testing:$room_version" implementation 'com.github.MatrixDev.Roomigrant:RoomigrantLib:0.3.4' kapt 'com.github.MatrixDev.Roomigrant:RoomigrantCompiler:0.3.4' api 'androidx.paging:paging-runtime:2.1.2' api 'androidx.paging:paging-common:2.1.2' api 'joda-time:joda-time:2.10.10' api "io.insert-koin:koin-core:$rootProject.ext.koin_version" api "io.insert-koin:koin-android:$rootProject.ext.koin_version" api "io.insert-koin:koin-androidx-compose:3.4.2" implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4" implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4' }