From 2a782fa266171fe3c62a395bdf437975adbec0ed Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Mon, 16 Oct 2023 11:43:07 +0200 Subject: [PATCH] android_dependecies -> android-app-dependencies.gradle.kts --- app/build.gradle.kts | 2 +- .../android-app-dependencies.gradle.kts | 37 +++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 buildSrc/src/main/kotlin/android-app-dependencies.gradle.kts diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 85d25d1d60..c34c6918c9 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -11,9 +11,9 @@ plugins { id("kotlinx-serialization") id("com.google.gms.google-services") id("com.google.firebase.crashlytics") + id("android-app-dependencies") } -apply(from = "${project.rootDir}/core/main/android_dependencies.gradle") apply(from = "${project.rootDir}/core/main/jacoco_global.gradle") apply(from = "${project.rootDir}/core/main/test_dependencies.gradle") diff --git a/buildSrc/src/main/kotlin/android-app-dependencies.gradle.kts b/buildSrc/src/main/kotlin/android-app-dependencies.gradle.kts new file mode 100644 index 0000000000..393234ef08 --- /dev/null +++ b/buildSrc/src/main/kotlin/android-app-dependencies.gradle.kts @@ -0,0 +1,37 @@ +plugins { + id("com.android.application") + id("kotlin-android") +} + +android { + compileSdk = Versions.compileSdk + defaultConfig { + minSdk = 28 + @Suppress("DEPRECATION") + targetSdk = 28 + + testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" + } + + buildFeatures { + viewBinding = true + } + + buildTypes { + named("release") { + isMinifyEnabled = false + setProguardFiles(listOf(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro")) + } + } + + compileOptions { + sourceCompatibility = Versions.javaVersion + targetCompatibility = Versions.javaVersion + } + + lint { + checkReleaseBuilds = false + disable += "MissingTranslation" + disable += "ExtraTranslation" + } +} \ No newline at end of file