Skip to content

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

Open
riscait wants to merge 1 commit into
aloisdeniel:masterfrom
riscait:explicitly-dependent-on-collection
Open

Explicit dependencies on collection packages to coexist with Freezed 2.0#179
riscait wants to merge 1 commit into
aloisdeniel:masterfrom
riscait:explicitly-dependent-on-collection

Conversation

@riscait

@riscait riscait commented Apr 20, 2022

Copy link
Copy Markdown

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

riscait commented Apr 26, 2022

Copy link
Copy Markdown
Author

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