objectbox / objectbox-dart

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

Freezed: be sure it is run before objectbox generator #472

Open vlado-rudenok opened 1 year ago

vlado-rudenok commented 1 year ago

Description

The PR fixes an issue when ObjectBox Generator is run before freezed, what makes impossible to generate database scheme.

Related issues https://github.com/objectbox/objectbox-dart/issues/424 https://github.com/Milad-Akarie/auto_route_library/issues/1086

The issue is reproducible provided the project contains freezed, objectbox and auto_route dependencies.

greenrobot-team commented 1 year ago

Thanks! However, I don't think it's a good idea to have workarounds explicitly for other libraries. So not sure about this (also, would this even work if no freezed files are present?).