objectbox / objectbox-dart

Flutter database for super-fast Dart object persistence
https://docs.objectbox.io/getting-started
Apache License 2.0
981 stars 119 forks source link

Depends on flutter tooling: better lib integration #114

Closed vaind closed 3 years ago

vaind commented 3 years ago

ObjectBox dart depends on objectbox-c libraries and we need a way to include the right binary version of the library with the right dart-only/flutter platform. Currently, it's only possible in combination with flutter plugin class and, transitively, an additional package since flutter v1.20 (objectbox_flutter_libs see #112 why).

Hopefully, the following flutter feature would help us simplify the setup: https://github.com/flutter/flutter/issues/63545

Probably nothing to do from objectbox-dart side at the moment before that flutter issue is resolved.

vaind commented 3 years ago

actually, as is, this works quite nicely for flutter. After the recent changes, even desktop apps get the native library automatically. The plugin class doesn't hurt anything AFAICT and it's not something we have to actively maintain either - it's just the code generated by flutter create without any changes so I don't think this needs any more attention at the moment.