-
Notifications
You must be signed in to change notification settings - Fork 623
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
<!-- If this PR updates documentation, please update all relevant versions of the docs, see: https://github.com/kotest/kotest/tree/master/documentation/versioned_docs The documentation at https://github.com/kotest/kotest/tree/master/documentation/docs is the documentation for the next minor or major version _TO BE RELEASED_ --> Closes #3748
- Loading branch information
Showing
13 changed files
with
87 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
buildSrc/src/main/kotlin/kotest-android-native-conventions.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
@file:Suppress("UNUSED_VARIABLE") | ||
|
||
plugins { | ||
id("kotlin-conventions") | ||
} | ||
|
||
kotlin { | ||
if (!project.hasProperty(Ci.JVM_ONLY)) { | ||
androidNativeX86() | ||
androidNativeX64() | ||
androidNativeArm32() | ||
androidNativeArm64() | ||
sourceSets { | ||
|
||
// Main source sets | ||
val commonMain by getting {} | ||
val desktopMain by getting { dependsOn(commonMain) } | ||
val androidNativeX86Main by getting { dependsOn(desktopMain) } | ||
val androidNativeX64Main by getting { dependsOn(desktopMain) } | ||
val androidNativeArm32Main by getting { dependsOn(desktopMain) } | ||
val androidNativeArm64Main by getting { dependsOn(desktopMain) } | ||
|
||
val commonTest by getting | ||
val nativeTest by getting { dependsOn(commonTest) } | ||
val androidNativeX86Test by getting { dependsOn(nativeTest) } | ||
val androidNativeX64Test by getting { dependsOn(nativeTest) } | ||
val androidNativeArm32Test by getting { dependsOn(nativeTest) } | ||
val androidNativeArm64Test by getting { dependsOn(nativeTest) } | ||
} | ||
} else { | ||
// Make sure every project has at least one valid target, otherwise Kotlin compiler will complain | ||
jvm() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
buildSrc/src/main/kotlin/kotest-watchos-device-conventions.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
@file:Suppress("UNUSED_VARIABLE") | ||
|
||
plugins { | ||
id("kotlin-conventions") | ||
} | ||
|
||
kotlin { | ||
if (!project.hasProperty(Ci.JVM_ONLY)) { | ||
watchosDeviceArm64() | ||
sourceSets { | ||
|
||
// Main source sets | ||
val commonMain by getting {} | ||
val desktopMain by getting { dependsOn(commonMain) } | ||
val watchosDeviceArm64Main by getting { dependsOn(desktopMain) } | ||
|
||
// Test sourcesets | ||
val commonTest by getting | ||
val nativeTest by getting { dependsOn(commonTest) } | ||
val watchosDeviceArm64Test by getting { dependsOn(nativeTest) } | ||
} | ||
} else { | ||
// Make sure every project has at least one valid target, otherwise Kotlin compiler will complain | ||
jvm() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
plugins { | ||
id("kotest-multiplatform-library-conventions") | ||
id("kotest-android-native-conventions") | ||
id("kotest-watchos-device-conventions") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters