prateekmedia / appimagepool

A simple, modern AppImageHub Client, powered by flutter.
https://www.pling.com/p/1547076/
GNU General Public License v3.0
647 stars 39 forks source link

Build fails #108

Closed tdiam closed 1 year ago

tdiam commented 1 year ago

Description

Latest build jobs fail with:

e.g.

Note: intl is pinned to version 0.18.1 by flutter_localizations from the flutter SDK.
See https://dart.dev/go/sdk-version-pinning for details.

Because appimagepool depends on flutter_localizations from sdk which depends on intl
  0.18.1, intl 0.18.1 is required.
So, because appimagepool depends on intl ^0.17.0, version solving failed.

You can try the following suggestion to make the pubspec resolve:
* Try upgrading your constraint on intl: flutter pub add intl:^0.18.1
Error: Process completed with exit code 1.

Trying to fix intl with flutter pub add intl:^0.18.1 then reveals another error:

"intl" is already in "dependencies". Will try to update the constraint.
Because appimagepool depends on libadwaita from git which doesn't exist (Could not find
  git ref 'native-controls' (fatal: ambiguous argument 'native-controls': unknown revision
  or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]')), version solving failed.

The native-controls branch in libadwaita has been deleted after merging #77 into libadwaita 2.0.0.

Updating pubspec.yaml to use libadwaita: ^2.0.1 and intl: ^0.18.1 succeeds but the build now fails because libadwaita and its adwaita dependency expect Flutter v3:

ERROR: ../.pub-cache/hosted/pub.dev/adwaita-0.5.2/lib/src/theme.dart:14:5: Error: No named parameter with the name 'primaryColorDark'.
ERROR:     primaryColorDark: AdwaitaColors.darkBackgroundColor

Proposal

Update Flutter to v3 and dependencies.

I'm not experienced with Flutter but I took a shot at it in #109.