Skip to content

Ability to compile project with objectbox for web wihout ffi issues #359

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

Closed
richard457 opened this issue Dec 25, 2021 · 1 comment
Closed
Labels
enhancement New feature or request

Comments

@richard457
Copy link

I want to compile my code for the web, some part of its web, I know the web is not supported but at least compiling the project containing objectbox shouldn't fail.
I tried this

    if (dart.library.html) 'web_init.dart'
    if (dart.library.io) 'io_init.dart';

but obviously, this can not work especially when dealing with models any idea on how I can achieve this?

@richard457 richard457 added the enhancement New feature or request label Dec 25, 2021
@vaind
Copy link
Contributor

vaind commented Dec 29, 2021

See the answer here: #283 (comment)

@vaind vaind closed this as completed Dec 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants