Update AGP, Kotlin. (#1047)

This commit also enables the room incremental annotation processor.
This also fixes the export schema warning in the console logs.
This commit is contained in:
Nelson Osacky 2020-10-14 17:39:01 +02:00 committed by GitHub
parent 44362d868b
commit 48b0d2fcff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 3 deletions

View file

@ -21,6 +21,12 @@ android {
versionCode = System.getenv("VERSION_CODE")?.toIntOrNull() ?: 1
manifestPlaceholders["sentryRelease"] = "$applicationId@$versionName"
javaCompileOptions {
annotationProcessorOptions {
arguments(mapOf("room.incremental" to "true"))
}
}
}
buildFeatures {

View file

@ -44,7 +44,8 @@ import kotlinx.coroutines.runBlocking
StaticWidgetEntity::class,
TemplateWidgetEntity::class
],
version = 12
version = 12,
exportSchema = false
)
abstract class AppDatabase : RoomDatabase() {
abstract fun authenticationDao(): AuthenticationDao

View file

@ -1,7 +1,7 @@
object Config {
object Plugin {
const val android = "com.android.tools.build:gradle:4.0.2"
const val android = "com.android.tools.build:gradle:4.1.0"
const val kotlin = "org.jetbrains.kotlin:kotlin-gradle-plugin:${Dependency.Kotlin.version}"
const val google = "com.google.gms:google-services:4.3.4"
const val appDistribution = "com.google.firebase:firebase-appdistribution-gradle:1.4.0"
@ -23,7 +23,7 @@ object Config {
object Dependency {
object Kotlin {
const val version = "1.3.72"
const val version = "1.4.10"
const val core = "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${version}"
private const val coroutinesVersion = "1.3.3"