@@ -78,49 +78,39 @@ kotlin {
7878 }
7979
8080 sourceSets {
81- val commonMain by getting {
82- dependencies {
83- // Only need to add this as api if you wish to add your own AppDelegate in swift
84- api(project(" :decompose-router" ))
85-
86- implementation(compose.runtime)
87- implementation(compose.foundation)
88- implementation(compose.material3)
89- implementation(compose.materialIconsExtended)
90- }
81+ commonMain.dependencies {
82+ // Only need to add this as api if you wish to add your own AppDelegate in swift
83+ api(project(" :decompose-router" ))
84+
85+ implementation(compose.runtime)
86+ implementation(compose.foundation)
87+ implementation(compose.material3)
88+ implementation(compose.materialIconsExtended)
9189 }
9290
93- val commonTest by getting {
94- dependencies {
95- implementation(kotlin(" test" ))
96- }
91+ commonTest.dependencies {
92+ implementation(kotlin(" test" ))
9793 }
9894
99- val androidMain by getting {
100- dependencies {
101- implementation(libs.androidx.activity.ktx)
102- implementation(libs.androidx.activity.compose)
103- implementation(libs.androidx.fragment.ktx)
104- }
95+ androidMain.dependencies {
96+ implementation(libs.androidx.activity.ktx)
97+ implementation(libs.androidx.activity.compose)
98+ implementation(libs.androidx.fragment.ktx)
10599 }
106100
107- val androidDeviceTest by getting {
108- dependencies {
109- implementation(libs.compose.ui.junit4)
110- implementation(libs.compose.ui.test.manifest)
111- // compose-ui-test pulls in espresso-core 3.5.0 transitively, whose reflective
112- // InputManager.getInstance() call throws NoSuchMethodException on newer Android
113- // (API 35+). 3.7.0 switches to getSystemService and fixes instrumented tests.
114- implementation(libs.espresso.core)
115- }
101+ named(" androidDeviceTest" ).dependencies {
102+ implementation(libs.compose.ui.junit4)
103+ implementation(libs.compose.ui.test.manifest)
104+ // compose-ui-test pulls in espresso-core 3.5.0 transitively, whose reflective
105+ // InputManager.getInstance() call throws NoSuchMethodException on newer Android
106+ // (API 35+). 3.7.0 switches to getSystemService and fixes instrumented tests.
107+ implementation(libs.espresso.core)
116108 }
117109
118- val desktopMain by getting {
119- dependencies {
120- implementation(compose.desktop.currentOs)
121- implementation(libs.decompose.compose)
122- implementation(libs.kotlinx.coroutines.swing)
123- }
110+ named(" desktopMain" ).dependencies {
111+ implementation(compose.desktop.currentOs)
112+ implementation(libs.decompose.compose)
113+ implementation(libs.kotlinx.coroutines.swing)
124114 }
125115 }
126116}
0 commit comments