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