Updated Gradle to fix R8 bug with Kotlin 1.6

This commit is contained in:
Nite 2022-02-16 18:33:07 +01:00
parent e2ddb35ce3
commit b5e606455e
No known key found for this signature in database
GPG Key ID: 1D1AD59B1C6386C1
2 changed files with 12 additions and 13 deletions

View File

@ -3,7 +3,7 @@
gradle = "7.3.2"
navigation = "2.3.5"
gradlePlugin = "7.0.4"
gradlePlugin = "7.1.1"
androidxcore = "1.6.0"
ktlint = "0.43.2"
ktlintGradle = "10.2.0"

View File

@ -14,8 +14,8 @@ android {
minSdkVersion versions.minSdk
targetSdkVersion versions.targetSdk
resConfigs 'cs', 'de', 'en', 'es', 'fr', 'hu', 'it', 'nl', 'pl', 'pt', 'pt-rBR', 'ru', 'zh-rCN', 'zh-rTW'
resConfigs "cs", "de", "en", "es", "fr", "hu", "it", "nl", "pl", "pt", "pt-rBR", "ru", "zh-rCN", "zh-rTW"
}
buildTypes {
@ -40,20 +40,12 @@ android {
main.java.srcDirs += "${projectDir}/src/main/kotlin"
test.java.srcDirs += "${projectDir}/src/test/kotlin"
}
packagingOptions {
exclude 'META-INF/LICENSE'
resources {
excludes += ['META-INF/LICENSE']
}
}
lintOptions {
baselineFile file("lint-baseline.xml")
ignore 'MissingTranslation'
ignore 'UnusedQuantity'
warning 'ImpliedQuantity'
disable 'IconMissingDensityFolder', "VectorPath"
abortOnError true
warningsAsErrors true
}
kotlinOptions {
jvmTarget = "1.8"
@ -74,6 +66,13 @@ android {
arg("room.schemaLocation", "$buildDir/schemas".toString())
}
}
lint {
abortOnError true
disable 'IconMissingDensityFolder', 'VectorPath'
ignore 'MissingTranslation', 'UnusedQuantity'
warning 'ImpliedQuantity'
warningsAsErrors true
}
}