Closed RiccardoM closed 4 years ago
@RiccardoM There is a version incompatibility
Because graphql >=4.0.0-alpha.0 depends on http ^0.12.1 and graphql <1.0.0 requires SDK version >=1.19.0 <2.0.0, graphql <1.0.0-∞ or >=4.0.0-alpha.0 requires http ^0.12.1.
And because graphql >=1.0.0 <3.0.0-beta.3 depends on http ^0.12.0+2 and graphql >=3.0.0-beta.3 <4.0.0-alpha.0 depends on http ^0.12.0+4, every version of graphql requires http ^0.12.0+2.
Because open_graph_parser >=0.0.2 <0.0.6 requires SDK version >=2.0.0 <2.2.0 and open_graph_parser >=0.0.6 depends on http >=0.11.3+17 <=0.12.0, open_graph_parser >=0.0.2 requires http >=0.11.3+17 <=0.12.0.
Thus, graphql is incompatible with open_graph_parser >=0.0.2.
And because every version of rich_link_preview depends on open_graph_parser ^0.0.4, graphql is incompatible with rich_link_preview.
So, because mooncake depends on both graphql any and rich_link_preview any, version solving failed.
pub get failed (1; So, because mooncake depends on both graphql any and rich_link_preview any, version solving failed.)
exit code 1
@ryuash Looks like the library is outdated. What about we fork it and maybe update it/extend it? https://github.com/wingkwong/rich_link_preview
Another option could be to implement it ourselves from scratch but I would say that's a lot of work. Maybe getting that code into the app and customizing it might be better, leaving an open issue about later extracting it as an external library in the future