Skip to content

Commit e2c4927

Browse files
committed
refactor gradle
1 parent b76722d commit e2c4927

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

features/feature_photo_detail_shared/build.gradle.kts

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ kotlin {
4040
iosArm64()
4141
iosSimulatorArm64()
4242

43+
applyDefaultHierarchyTemplate()
44+
4345
sourceSets {
44-
val commonMain by getting {
46+
commonMain{
4547
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
4648

4749
dependencies {
@@ -115,7 +117,7 @@ kotlin {
115117
api(libs.napier)
116118
}
117119
}
118-
val androidMain by getting {
120+
androidMain {
119121
dependencies {
120122
api(libs.androidx.activity.compose)
121123
api(libs.androidx.appcompat)
@@ -128,15 +130,7 @@ kotlin {
128130
implementation(libs.kotlinx.coroutines.android)
129131
}
130132
}
131-
val iosX64Main by getting
132-
val iosArm64Main by getting
133-
val iosSimulatorArm64Main by getting
134-
val iosMain by creating {
135-
dependsOn(commonMain)
136-
iosX64Main.dependsOn(this)
137-
iosArm64Main.dependsOn(this)
138-
iosSimulatorArm64Main.dependsOn(this)
139-
133+
iosMain {
140134
dependencies {
141135
// Ktor
142136
implementation(libs.ktor.client.darwin)

0 commit comments

Comments
 (0)