* [proof of concept] support for RoboVM/JVM on iOS(arm64) platform that enables Compose there - #1259
Draft
Demyan Kimitsa (dkimitsa) wants to merge 1 commit into
Draft
Conversation
buildSrc infrastructure adapted to host `iosRobovm` target. idea implemented: use same approach as Kotlin/Native for iOS but use RoboVM CocoaTouch bindings. code adapted with minimal changes where possible to keep logic same as in Kotlin/Native for iOS.
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.
hello,
this PR demonstrates ability to run skiko and compose on iOS using RoboVM/JVM target that allows to use Java ecosystem with compose application. disclaimer and sorry:
most changes was done to buildSrc infrastructure to incorporate RoboVM target with following changes:
test work without issues, library packs binary into recognisable RoboVM format and pushed to sonatype for quick demo.
dependencies { implementation("io.github.dkimitsa.robovm:skiko-iosrobovm:0.144.6-SNAPSHOT") }compose
it is possible to run compose-desktop using this skiko on iOS, few tweaks to be done (like skiko-awt to be excluded, missing actuals that are picked from awt to be provided through mock files).
tweaks and Compose Destop dependency management grouped into single interop library:
https://github.com/dkimitsa/robovm-compose-interop
ready to use sample
https://github.com/dkimitsa/codesnippets/tree/sample/compose-demo-app
preview in IntelliJ IDEA
it will not work with it directly but there is way to create multi platform compose app and use desktop/android preview in shared module as explained here