Files
Chom-Bev-e-Brezhoneg/androidApp/build.gradle.kts
T

70 lines
1.7 KiB
Kotlin

import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
alias(libs.plugins.androidApplication)
alias(libs.plugins.composeMultiplatform)
alias(libs.plugins.composeCompiler)
// Used for App Distribution
alias(libs.plugins.googleServices) apply false
}
// Apply Google Services only when the Firebase config is present: google-services.json is not
// tracked in git (see google-services.example.json), so builds must work without it.
if (file("google-services.json").exists()) {
apply(plugin = libs.plugins.googleServices.get().pluginId)
}
kotlin {
compilerOptions {
jvmTarget = JvmTarget.JVM_11
}
}
dependencies {
implementation(projects.shared)
// Compose
implementation(libs.androidx.activity.compose)
implementation(libs.compose.uiToolingPreview)
debugImplementation(libs.compose.uiTooling)
// Crash logging
implementation(libs.glitchtips)
}
android {
namespace = "bzh.ajaury.chombev"
compileSdk =
libs.versions.androidCompileSdk
.get()
.toInt()
defaultConfig {
applicationId = "bzh.ajaury.chombev"
minSdk =
libs.versions.androidMinSdk
.get()
.toInt()
targetSdk =
libs.versions.androidTargetSdk
.get()
.toInt()
versionCode = 1
versionName = "1.0.0-alpha01"
}
packaging {
resources {
excludes += "/META-INF/{AL2.0,LGPL2.1}"
}
}
buildTypes {
getByName("release") {
isMinifyEnabled = true
isShrinkResources = true
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
}