Updated Gradle to fix R8 bug with Kotlin 1.6
This commit is contained in:
parent
e2ddb35ce3
commit
b5e606455e
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue