Skip to content

Commit 2099484

Browse files
committed
Disable rootProject requirement
1 parent f7ab604 commit 2099484

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

build-plugins/kmp-conventions/src/main/kotlin/aws/sdk/kotlin/gradle/kmp/ConfigureIosSimulator.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ import org.jetbrains.kotlin.konan.target.HostManager
1717
* https://youtrack.jetbrains.com/issue/KT-38317
1818
*/
1919
public fun Project.configureIosSimulatorTasks() {
20-
if (this != rootProject) {
21-
throw GradleException("This function should only be called from the root project.")
22-
}
2320
if (!HostManager.hostIsMac) return
2421

2522
val simulatorDeviceName = project.findProperty("iosSimulatorDevice") as? String ?: "iPhone 15"

0 commit comments

Comments
 (0)