2025-09-17 11:31:16 -03:00
|
|
|
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
|
alias(libs.plugins.androidApplication)
|
|
|
|
|
alias(libs.plugins.composeMultiplatform)
|
|
|
|
|
alias(libs.plugins.composeCompiler)
|
2025-09-22 17:33:58 -03:00
|
|
|
alias(libs.plugins.kotlinMultiplatform)
|
2025-09-17 11:31:16 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
kotlin {
|
|
|
|
|
androidTarget {
|
|
|
|
|
compilerOptions {
|
2025-09-22 17:33:58 -03:00
|
|
|
jvmTarget.set(JvmTarget.JVM_17)
|
2025-09-17 11:31:16 -03:00
|
|
|
}
|
|
|
|
|
}
|
2025-09-17 14:25:27 -03:00
|
|
|
|
2025-09-17 11:31:16 -03:00
|
|
|
listOf(
|
|
|
|
|
iosArm64(),
|
2025-09-17 14:25:27 -03:00
|
|
|
iosSimulatorArm64(),
|
2025-09-17 11:31:16 -03:00
|
|
|
).forEach { iosTarget ->
|
|
|
|
|
iosTarget.binaries.framework {
|
|
|
|
|
baseName = "ComposeApp"
|
|
|
|
|
isStatic = true
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-09-17 14:25:27 -03:00
|
|
|
|
2025-09-17 11:31:16 -03:00
|
|
|
sourceSets {
|
|
|
|
|
androidMain.dependencies {
|
|
|
|
|
implementation(compose.preview)
|
|
|
|
|
implementation(libs.androidx.activity.compose)
|
|
|
|
|
}
|
|
|
|
|
commonMain.dependencies {
|
2025-09-26 13:49:11 -03:00
|
|
|
implementation(projects.features.common)
|
2025-09-17 11:31:16 -03:00
|
|
|
implementation(compose.runtime)
|
|
|
|
|
implementation(compose.foundation)
|
|
|
|
|
implementation(compose.material3)
|
|
|
|
|
implementation(compose.ui)
|
|
|
|
|
implementation(compose.components.resources)
|
|
|
|
|
implementation(compose.components.uiToolingPreview)
|
|
|
|
|
implementation(libs.androidx.lifecycle.viewmodelCompose)
|
|
|
|
|
implementation(libs.androidx.lifecycle.runtimeCompose)
|
|
|
|
|
}
|
|
|
|
|
commonTest.dependencies {
|
|
|
|
|
implementation(libs.kotlin.test)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
android {
|
2025-09-22 17:33:58 -03:00
|
|
|
namespace = "dev.carlosmartino.template"
|
2025-09-17 14:25:27 -03:00
|
|
|
compileSdk = libs.versions.android.compileSdk
|
|
|
|
|
.get()
|
|
|
|
|
.toInt()
|
2025-09-17 11:31:16 -03:00
|
|
|
|
|
|
|
|
defaultConfig {
|
2025-09-22 17:33:58 -03:00
|
|
|
applicationId = "dev.carlosmartino.template"
|
2025-09-17 14:25:27 -03:00
|
|
|
minSdk = libs.versions.android.minSdk
|
|
|
|
|
.get()
|
|
|
|
|
.toInt()
|
|
|
|
|
targetSdk = libs.versions.android.targetSdk
|
|
|
|
|
.get()
|
|
|
|
|
.toInt()
|
2025-09-17 11:31:16 -03:00
|
|
|
versionCode = 1
|
|
|
|
|
versionName = "1.0"
|
|
|
|
|
}
|
|
|
|
|
packaging {
|
|
|
|
|
resources {
|
|
|
|
|
excludes += "/META-INF/{AL2.0,LGPL2.1}"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
buildTypes {
|
|
|
|
|
getByName("release") {
|
|
|
|
|
isMinifyEnabled = false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
compileOptions {
|
2025-09-22 17:33:58 -03:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
2025-09-17 11:31:16 -03:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
debugImplementation(compose.uiTooling)
|
|
|
|
|
}
|