-
Notifications
You must be signed in to change notification settings - Fork 90
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
Create an example for compiling and deploying a Dart-only app that uses realm #1755
Comments
➤ PM Bot commented: Jira ticket: RDART-1074 |
@KhaledBasiony Sorry about that - you hit a bug. We need to find the native shared library for the realm database. One way we do that is to read and parse the Since the native assets feature is not stable (yet), you will be required to manually bundle the shared lib with your application. Unlike flutter, we cannot hook into the build process for pure dart. |
@nielsenko this is necessary because |
@KhaledBasiony You asked for an example, but since you have already made it work (even if it required a work-around, due to #1766, which is being addressed ), we have decided not to do an example for now. People who use realm with pure dart outside flutter, are few and far apart, and the experience will be much improved once native assets lands. |
Problem
I don't know how to compile the application as an executable and distribute it.
I have a dart-only server that uses realm,
previously I was on version 1.9.0 and when trying to compile it, it was complaining about the plugin library being accessed outside of flutter (I am sure I was using realm_dart package)
now I upgraded to 3.3.0, hoping that would solve the problem, but now It depends on
.dart_tools/package_config.json
I don't know what I am supposed to do now
Solution
I was hoping you could provide a section in the docs or quick start or something to show how to compile/deploy a server or a CLI application step-by-step
Alternatives
No response
How important is this improvement for you?
Dealbreaker
Feature would mainly be used with
Atlas Device Sync
The text was updated successfully, but these errors were encountered: