Gate iOS targets on macOS for JitPack/Linux compatibility#2
Merged
Conversation
JitPack builds run on Linux; iOS Kotlin/Native compilation needs a macOS host. Without this gate, JitPack fails the version build and publishes nothing — Android consumers can't pull 0.2.0 via the JitPack channel. Wraps the iosX64/iosArm64/iosSimulatorArm64 target declarations and their source-set wiring in a single OperatingSystem.current().isMacOsX check. Local macOS dev keeps building all five variants (prettylog-android, -jvm, -iosx64, -iosarm64, -iossimulatorarm64); JitPack publishes the Android AAR and JVM JAR only. Also pins the JitPack install task so it runs publishToMavenLocal explicitly — KMP needs the multi-publication path, not the default single-AAR install task. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
JitPack builds run on Linux. iOS Kotlin/Native compilation needs a macOS host (Apple toolchain ships only on macOS), so without this gate the JitPack build of
0.2.0fails oncompileKotlinIosArm64and JitPack publishes nothing — downstream Android consumers can't pullio.github.theshid:prettylog:0.2.0from the JitPack channel.iosX64()/iosArm64()/iosSimulatorArm64()target declarations and their source-set wiring in a singleOperatingSystem.current().isMacOsXcheck.prettylog-android,-jvm,-iosx64,-iosarm64,-iossimulatorarm64) — verified with./gradlew :prettylog:assemble.jitpack.yml: pin the install task to./gradlew :prettylog:publishToMavenLocalexplicitly — KMP needs the multi-publication path, not JitPack's default single-AARinstall.Test plan
./gradlew :prettylog:assembleproduces all five target outputs./gradlew :prettylog:publishToMavenLocalpublishes the full KMP shape0.2.0, JitPack build completes andhttps://jitpack.io/com/github/theshid/Pretty-Log/0.2.0/build.logis greencom.github.theshid:Pretty-Log:0.2.0from JitPack into a downstream Android consumer; verify Logcat output unchanged🤖 Generated with Claude Code