Compose Multiplatform Mobile project template
This commit is contained in:
38
androidApp/build.gradle.kts
Normal file
38
androidApp/build.gradle.kts
Normal file
@@ -0,0 +1,38 @@
|
||||
plugins {
|
||||
kotlin("multiplatform")
|
||||
id("com.android.application")
|
||||
id("org.jetbrains.compose")
|
||||
}
|
||||
|
||||
kotlin {
|
||||
android()
|
||||
sourceSets {
|
||||
val androidMain by getting {
|
||||
dependencies {
|
||||
implementation(project(":shared"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdk = (findProperty("android.compileSdk") as String).toInt()
|
||||
namespace = "com.myapplication"
|
||||
|
||||
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
|
||||
|
||||
defaultConfig {
|
||||
applicationId = "com.myapplication.MyApplication"
|
||||
minSdk = (findProperty("android.minSdk") as String).toInt()
|
||||
targetSdk = (findProperty("android.targetSdk") as String).toInt()
|
||||
versionCode = 1
|
||||
versionName = "1.0"
|
||||
}
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_11
|
||||
targetCompatibility = JavaVersion.VERSION_11
|
||||
}
|
||||
kotlin {
|
||||
jvmToolchain(11)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user