Skip to content

Conversation

@vaind
Copy link
Contributor

@vaind vaind commented Jun 22, 2021

Closes #130

@vaind vaind requested a review from greenrobot-team June 22, 2021 14:32
@vaind vaind added this to the 1.1 milestone Jun 25, 2021
Copy link
Member

@greenrobot-team greenrobot-team left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Potential issue. Otherwise LGTM.

// build() will be called only twice, once for the `lib` directory and once for the `test` directory
Pubspec? pubspec;
try {
final pubspecFile = File(path.join(dir(buildStep), '../pubspec.yaml'));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not that familiar with pubspec, but can the flutter libs dependency also come from another file (external variable or import)? Or put differently: can this fail to find flutter libs, even though it's a dependency?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know of any other way (which doesn't mean there isn't any, though I doubt it). But it's fine even if it fails - you would just get the plain dart's openStore() version and would have to try and figure out why it doesn't open the directory, potentially creating a GH issue here.

@vaind vaind merged commit b930680 into main Jun 28, 2021
@vaind vaind deleted the flutter-specific-init branch June 28, 2021 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Could not prepare directory: objectbox (30)

4 participants