-
|
Hey everyone! I’m building a Skip Fuse app and want to integrate PostHog. I have a couple questions: |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
|
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 Let me know if this makes sense. This would make a useful contribution to the Skip modules ecosystem, so I've gone ahead and created a skeleton of a project that has the correct dependencies at https://github.com/skiptools/skip-posthog.git. If you'd like to fork that and "fill in the blanks" (i.e., add the necessary configure and logging functions), we'd love the contribution! |
Beta Was this translation helpful? Give feedback.
-
|
Thanks! I saw you already started on it too. Really appreciate it. Will give it a try. If I see extra stuff I need I will fork and fill in the blanks. |
Beta Was this translation helpful? Give feedback.
-
|
@marcprux thanks for creating skip-posthog. its been a huge help. I am about to embark on trying to add support for:
Was just wondering if either would be same treatment as posthog (adding it to the skiptools modules ecosystem). |
Beta Was this translation helpful? Give feedback.
-
|
Thank you! Have a small pull request for the posthog one coming soon! |
Beta Was this translation helpful? Give feedback.
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…