-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure iOS publication is referenced in the .module multiplaform even…
… when deployed from linux or windows (#1914)
- Loading branch information
Showing
8 changed files
with
35 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,22 @@ | ||
|
||
|
||
plugins { | ||
//id "com.dorongold.task-tree" version "2.1.1" | ||
// ./gradlew :kds:compileKotlinJs taskTree | ||
} | ||
|
||
korlibs.root.RootKorlibsPlugin.doInit(rootProject) | ||
|
||
// Used to verify we are publishing with iOS references even if we do the publishing from another machine like windows or linux | ||
tasks { | ||
val checkModulePublication by creating { | ||
doLast { | ||
val publishedKorgeModule = File("${System.getProperty("user.home")}/.m2/repository/com/soywiz/korge/korge/999.0.0.999/korge-999.0.0.999.module") | ||
val publishedKorgeModuleText = publishedKorgeModule.readText() | ||
for (ref in listOf("jvmApiElements", "jsApiElements", "android", "iosArm64")) { | ||
check (ref in publishedKorgeModuleText) { | ||
System.err.println(publishedKorgeModuleText) | ||
"Can't find '$ref' on the published '$publishedKorgeModule'" | ||
} | ||
} | ||
} | ||
} | ||
} |
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
19 changes: 4 additions & 15 deletions
19
buildSrc/src/main/kotlin/korlibs/korge/gradle/targets/desktop/DesktopCommon.kt
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