From 5187b7cb04029a82de815e8e8d76cdde734aa063 Mon Sep 17 00:00:00 2001 From: Goooler Date: Fri, 13 Jan 2023 15:20:22 +0800 Subject: [PATCH] Adopt new dsl --- app/build.gradle | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 5839cb5e8..f53fa7f88 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -21,12 +21,12 @@ def getGitSha = { } android { - compileSdkVersion 33 + compileSdk 33 defaultConfig { applicationId APP_ID namespace "com.keylesspalace.tusky" - minSdkVersion 23 - targetSdkVersion 33 + minSdk 23 + targetSdk 33 versionCode 97 versionName "20.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" @@ -37,12 +37,6 @@ android { buildConfigField("String", "CUSTOM_LOGO_URL", "\"$CUSTOM_LOGO_URL\"") buildConfigField("String", "CUSTOM_INSTANCE", "\"$CUSTOM_INSTANCE\"") buildConfigField("String", "SUPPORT_ACCOUNT_URL", "\"$SUPPORT_ACCOUNT_URL\"") - - kapt { - arguments { - arg("room.schemaLocation", "$projectDir/schemas") - } - } } buildTypes { release { @@ -63,7 +57,7 @@ android { } } - lintOptions { + lint { disable 'MissingTranslation' } buildFeatures { @@ -82,11 +76,12 @@ android { androidTest.assets.srcDirs += files("$projectDir/schemas".toString()) } - packagingOptions { - // Exclude unneeded files added by libraries - exclude 'LICENSE_OFL' - exclude 'LICENSE_UNICODE' - } + // Exclude unneeded files added by libraries + packagingOptions.resources.excludes += [ + 'LICENSE_OFL', + 'LICENSE_UNICODE', + ] + bundle { language { // bundle all languages in every apk so the dynamic language switching works @@ -99,6 +94,12 @@ android { } } +kapt { + arguments { + arg("room.schemaLocation", "$projectDir/schemas") + } +} + // library versions are in PROJECT_ROOT/gradle/libs.versions.toml dependencies { implementation libs.kotlinx.coroutines.android