Skip to content
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

Explicit dependencies on collection packages to coexist with Freezed 2.0 #179

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

riscait
Copy link

@riscait riscait commented Apr 20, 2022

Explicitly added dependent collection packages to the dependencies.

An explicit dependency is necessary because collection packages are not exported in freezed 2.0.0.

For example, using device_preview in a project using freezed 2.0.0 will result in an error that the groupBy method is not defined.


How to use freezed 2.0.0 and device_preview together in a project before this PR is merged

dependency_overrides:
  freezed_annotation: ^2.0.0
  device_preview:
    git:
      url: https://github.com/riscait/flutter_device_preview.git
      path: device_preview
      ref: explicitly-dependent-on-collection

@riscait riscait force-pushed the explicitly-dependent-on-collection branch from 06c181c to 6ef7701 Compare April 20, 2022 07:09
@riscait riscait changed the title explicitly dependent on collection package Explicit dependencies on collection packages to coexist with Freezed 2.0 Apr 26, 2022
@riscait
Copy link
Author

riscait commented Apr 26, 2022

This PR does not fully support Freezed 2.0, but it is a temporary fix.
Related Issue: #180

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.

1 participant