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

Provide shell-side Core wrapper boilerplate for Swift, Kotlin and TypeScript #134

Open
7 tasks
charypar opened this issue Aug 29, 2023 · 0 comments
Open
7 tasks

Comments

@charypar
Copy link
Member

All the example share a very similar implemenetation of the core intereaction, servicing the messaging and keepting the shell-side view model up to date.

At the moment all the implementations couple the serialisation and view model management with other effect handling, but that can be improved.

We should design a common API surface for the Core and provide it as an "SDK" for each supported foreingn language.

A rough list of steps to achieve this:

  • Design a Core API which
    • Has update interface serialising the exported Events
    • Surfaces an "observable" (for the given UI toolkit) ViewModel instance, which is kept up to date
    • Services the Render effect and updates the view model
    • Allows for plugging in effect handlers for other effects (this probably requires a few POCs)
  • include an implementation in the exported foreign language code
  • move the doctor templates and examples to use the API
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Shell Support
Development

No branches or pull requests

1 participant