Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Compose Multiplatform Support #364

Open
tommyjackson opened this issue Nov 9, 2023 · 4 comments
Open

Feature Request: Compose Multiplatform Support #364

tommyjackson opened this issue Nov 9, 2023 · 4 comments

Comments

@tommyjackson
Copy link

Considering Showkase now leverages KSP, would extending support for Compose Multiplatform be feasible? Or are there other major roadblocks? It would be really nice to visualize 'actual' implementations for respective targets directly on their platforms within the Showkase browser

@marcorighini
Copy link
Contributor

This would be really a great opportunity. @vinaygaba do you foresee many blockers on doing this?

@marcorighini
Copy link
Contributor

marcorighini commented Nov 23, 2023

I got the chance to create a dirty test in https://github.com/marcorighini/Showkase/tree/compose-multiplatform-support (commented code related to libraries not supported yet in multiplatform compose and the code related to reflection).
sample-mp is the compose multiplatform module. I had to create showkase-mp and showkase-annotation-mp too.
These are the commands I ran to compile and launch the iosApp

  • ./gradlew :sample-mp:kspCommonMainKotlinMetadata
  • ./gradlew :sample-mp:linkDebugFrameworkIosSimulatorArm64
  • run the iosApp app

Simulator Screenshot - iPhone 14 - 2023-11-23 at 02 30 21

@vinaygaba
Copy link
Collaborator

the only issue would be that the current library supports both ksp and kapt. I guess we can create two separate artifacts - one for kapt only and the other for ksp and with some refactors, a lot of the logic could be shared between the two. That would be a clean way to handle it.

@ber4444
Copy link

ber4444 commented Mar 15, 2024

The readme mentions this is on the roadmap: "Generating a web version of the Showkase browser with documentation, search and screenshots."
I imagine with KMM WASM it would be easy to achieve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants