Skip to content

flutter 3.29 build issues solved #1875

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

Merged
merged 6 commits into from
Feb 27, 2025
Merged

Conversation

TheNoumanDev
Copy link
Member

Flutter 3.29 comes with deprecation of many plugins

Workmanager Package Changes:

  • Changed from pub.dev package (0.5.2) to direct git reference because:
    1. The pub version uses deprecated Flutter plugin registration system (Registrar and PluginRegistrantCallback)
    2. Flutter 3.29.0 removed these deprecated APIs in favor of new embedding system
    3. The git main branch has updated code using new Flutter plugin APIs but new version has not been published to pub.dev with these updates yet, for that issue is there ([Workmanager] Unresolved References After Flutter 3.29.0 Update fluttercommunity/flutter_workmanager#588)

Changes in OTP Pin Field Package:

  • Removed registerWith method and Registrar constructor.
  • Added null safety check for signingInfo.apkContentsSigners to fix type mismatch errors
  • No changes to core feature implementation or business logic

image_gallery_saver Package:

  • Original package (2.0.3) not maintained and has Flutter 3.29.0 compatibility issues
  • Created temporary fork and branch flutter_2_29_registrar_fix with required updates
  • Removed deprecated plugin registration system and fixed for new Flutter embedding
  • Note: will put a PR for the original package, but that package is no more maintained as it already have a lot of pending PRs.

@TheNoumanDev TheNoumanDev self-assigned this Feb 18, 2025
@TheNoumanDev TheNoumanDev linked an issue Feb 18, 2025 that may be closed by this pull request
@@ -24,7 +24,11 @@ dependencies:

collection: ^1.17.1
flutter_blue_plus: ^1.33.4
workmanager: ^0.5.2
workmanager:
Copy link
Collaborator

Choose a reason for hiding this comment

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

do they have a package? it's dangerous getting the latest from main like this?

Copy link
Member Author

Choose a reason for hiding this comment

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

Right now the package they have released to pub.dev is 0.5.2 which still have the plugins that flutter 3.29.0 have deprecated that is causing the build to fail.
They have made changes in there repo to fix that issue, but haven't released a new version to pub.dev, for that issue has been created: fluttercommunity/flutter_workmanager#588
As soon as they will release it, i will switch it back.

@@ -61,7 +61,7 @@ dependencies:
otp_pin_field:
git:
url: https://github.com/EnsembleUI/ensemble.git
ref: main
ref: flutter_3_29_upgrade_fix
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't this be main?

Copy link
Member Author

Choose a reason for hiding this comment

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

yesh updated.

@TheNoumanDev TheNoumanDev merged commit 9c2e850 into main Feb 27, 2025
3 checks passed
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.

Support for Flutter 3.29
3 participants