Skip to content
Discussion options

You must be logged in to vote

Assuming that PostHog's API (with which I am not familiar) is mostly in Java/Kotlin, then yes: you will most likely want to have a transpiled module with bridging enabled so you can access it from your native modules. E.g., see https://github.com/skiptools/skip-keychain/blob/main/Sources/SkipKeychain/Skip/skip.yml

The magic part would be to conditionally add a package dependency on SkipBridge, like we do at https://github.com/skiptools/skip-keychain/blob/main/Package.swift#L26. That way, your package can be seamlessly used from either another transpiled Skip Lite module or from a compiled Skip Fuse module.

Let me know if this makes sense. This would make a useful contribution to the Skip m…

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by marcprux
Comment options

You must be logged in to vote
1 reply
@marcprux
Comment options

Comment options

You must be logged in to vote
1 reply
@marcprux
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants