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

[bindgen] browser target and web example app #5498

Closed
wants to merge 473 commits into from
Closed

Conversation

kraenhansen
Copy link
Member

What, How & Why?

  • Adds a web (a name we've historically picked to avoid confusing with a data browser like Realm Studio) / browser target.
  • Instantiates a create-react-app typescript template as a package in the mono repository (automagically sets up linking to ease development).
  • Creates a binding-mock.mjs which should be deleted and the rollup config updated to point to the proper output from the binding generator.

The app builds and lunches, the SDK browser target also builds, but is reporting a lot of missing exports from the mocked binding.

elle-j and others added 23 commits February 17, 2023 10:50
Co-authored-by: Kræn Hansen <kraen.hansen@mongodb.com>
The intended difference didn't end up working out and they were treated the
same in the generators. Instead we use Helpers to turn structs with functions
into C++ interface implementations. Will explore alternative approaches later,
since we have other SDKs in other languages where that isn't a good fit. But
for now, this simplifies the model and clears up syntactic space for future
exploration.
* Moved Android SDK files

* Enumerate files to include in package

* Adding platform build npm scripts

* Updated "exports" object

* Removed check for "react-native" existence.

* Updated `LIBRARY_OUTPUT_DIRECTORY`
Co-authored-by: Kenneth Geisshirt <kenneth.geisshirt@mongodb.com>
Add allSessions to SyncUser in bindgen. Transform result to JS SyncSession array.
@nhachicha
Copy link
Contributor

This can be closed now, as it's merged in #5525

@kraenhansen kraenhansen closed this Mar 3, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants