mirror of
https://github.com/AdrianKuta/Tree-Data-Structure.git
synced 2025-09-16 15:34:22 +02:00
Revert "Upgrade Gradle and add iOS targets"
This reverts commit 06dc507590
.
This commit is contained in:
@@ -9,7 +9,7 @@ plugins {
|
||||
|
||||
val PUBLISH_GROUP_ID = "com.github.adriankuta"
|
||||
val PUBLISH_ARTIFACT_ID = "tree-structure"
|
||||
val PUBLISH_VERSION = "3.1.0"
|
||||
val PUBLISH_VERSION = "3.0.2"
|
||||
|
||||
val secretFile = File(rootProject.rootDir, "local.properties")
|
||||
if (secretFile.exists()) {
|
||||
@@ -118,12 +118,6 @@ kotlin {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Add iOS targets
|
||||
iosX64()
|
||||
iosArm64()
|
||||
iosSimulatorArm64()
|
||||
|
||||
val hostOs = System.getProperty("os.name")
|
||||
val isMingwX64 = hostOs.startsWith("Windows")
|
||||
val nativeTarget = when {
|
||||
@@ -133,6 +127,7 @@ kotlin {
|
||||
else -> throw GradleException("Host OS is not supported in Kotlin/Native.")
|
||||
}
|
||||
|
||||
|
||||
sourceSets {
|
||||
val commonMain by getting
|
||||
val commonTest by getting {
|
||||
@@ -150,19 +145,5 @@ kotlin {
|
||||
val jsTest by getting
|
||||
val nativeMain by getting
|
||||
val nativeTest by getting
|
||||
|
||||
// Shared iOS source sets
|
||||
val iosMain by creating {
|
||||
dependsOn(commonMain)
|
||||
}
|
||||
val iosTest by creating {
|
||||
dependsOn(commonTest)
|
||||
}
|
||||
val iosX64Main by getting { dependsOn(iosMain) }
|
||||
val iosArm64Main by getting { dependsOn(iosMain) }
|
||||
val iosSimulatorArm64Main by getting { dependsOn(iosMain) }
|
||||
val iosX64Test by getting { dependsOn(iosTest) }
|
||||
val iosArm64Test by getting { dependsOn(iosTest) }
|
||||
val iosSimulatorArm64Test by getting { dependsOn(iosTest) }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user