summaryrefslogtreecommitdiff
path: root/androidApp/build.gradle.kts
diff options
context:
space:
mode:
Diffstat (limited to 'androidApp/build.gradle.kts')
-rw-r--r--androidApp/build.gradle.kts52
1 files changed, 52 insertions, 0 deletions
diff --git a/androidApp/build.gradle.kts b/androidApp/build.gradle.kts
new file mode 100644
index 0000000..28e9279
--- /dev/null
+++ b/androidApp/build.gradle.kts
@@ -0,0 +1,52 @@
+import org.jetbrains.kotlin.gradle.dsl.JvmTarget
+
+// the android entry point. agp 9 has built-in kotlin support, so no separate
+// kotlin android plugin is applied here.
+plugins {
+ alias(libs.plugins.androidApplication)
+ alias(libs.plugins.composeMultiplatform)
+ alias(libs.plugins.composeCompiler)
+}
+
+kotlin {
+ target {
+ compilerOptions {
+ jvmTarget.set(JvmTarget.JVM_17)
+ }
+ }
+
+ dependencies {
+ implementation(project(":shared"))
+ implementation(libs.androidx.activity.compose)
+ }
+}
+
+android {
+ namespace = "dev.serrahima.lluerna"
+ compileSdk = libs.versions.android.compileSdk.get().toInt()
+
+ defaultConfig {
+ applicationId = "dev.serrahima.lluerna"
+ minSdk = libs.versions.android.minSdk.get().toInt()
+ targetSdk = libs.versions.android.targetSdk.get().toInt()
+ versionCode = 1
+ versionName = "0.0.1"
+ }
+
+ packaging {
+ resources {
+ excludes += "/META-INF/{AL2.0,LGPL2.1}"
+ }
+ }
+
+ buildTypes {
+ getByName("release") {
+ isMinifyEnabled = false
+ }
+ }
+
+ compileOptions {
+ sourceCompatibility = JavaVersion.VERSION_17
+ targetCompatibility = JavaVersion.VERSION_17
+ }
+}