mirror of
https://github.com/BetterAndroid/compose-multiplatform-template.git
synced 2025-09-03 17:25:31 +08:00
refactor: merge shared to composeApp
This commit is contained in:
@@ -12,7 +12,7 @@ kotlin {
|
||||
sourceSets {
|
||||
val androidMain by getting {
|
||||
dependencies {
|
||||
implementation(projects.shared)
|
||||
implementation(projects.composeApp)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -10,10 +10,10 @@ kotlin {
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
iosSimulatorArm64()
|
||||
).forEach { iosTarget ->
|
||||
iosTarget.binaries.framework {
|
||||
baseName = "shared"
|
||||
baseName = "ComposeApp"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
@@ -11,7 +11,7 @@ kotlin {
|
||||
sourceSets {
|
||||
val desktopMain by getting {
|
||||
dependencies {
|
||||
implementation(projects.shared)
|
||||
implementation(projects.composeApp)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
import UIKit
|
||||
import shared
|
||||
import ComposeApp
|
||||
|
||||
@UIApplicationMain
|
||||
class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||
|
@@ -17,4 +17,4 @@ sweetProperty {
|
||||
rootProject { all { isEnable = false } }
|
||||
}
|
||||
rootProject.name = "__PROJECT_NAME__"
|
||||
include(":androidApp", ":desktopApp", ":shared")
|
||||
include(":androidApp", ":desktopApp", ":composeApp")
|
Reference in New Issue
Block a user