#Patches only?
1 messages · Page 1 of 1 (latest)
Hey, recently we upgraded flutter version. Now we want to patch an older version which uses flutter 3.13.9 but how do i downgrade shorebird flutter version?
We have no new release made using the latest version.
I tried using
shorebird flutter versions use 3.13.9
Could not find a subcommand named "use" for "shorebird flutter versions".
but got the above error
For a build to be able to recieve patches, it has to be released with shorebird
Thank you 🙂
#🐦│birder message
That doesn't @bitter solstice , We had been using PaintingBinding.instance!.instantiateImageCodec(imageBytes) in older build which was depecrated in recent flutter release.
As per you, you mentioned it should automatically switch to the version that was used during the release (Which is 3.13.9).
But when we create patch we are getting following error:
shorebird patch android ./lib/main_production.dart --flavor production --staging
✓ Fetching apps (2.4s)
✗ Failed to build: You are applying Flutter's app_plugin_loader Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/go/flutter-gradle-plugin-apply
You are applying Flutter's main Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/go/flutter-gradle-plugin-apply
../../../../.pub-cache/git/story_view-7d273320a3b772eaf8cbbf17ffacae356924d9d4/lib/widgets/story_image.dart:49:35: Error: The method 'instantiateImageCodec' isn't defined for the class 'PaintingBinding'.
- 'PaintingBinding' is from 'package:flutter/src/painting/binding.dart' ('../../../../.shorebird/bin/cache/flutter/25bc2b57a159f5b52385c4adb5c80f6ed25ae6d5/packages/flutter/lib/src/painting/binding.dart').
Try correcting the name to the name of an existing method, or defining a method named 'instantiateImageCodec'.
PaintingBinding.instance!.instantiateImageCodec(imageBytes).then(
^^^^^^^^^^^^^^^^^^^^^
Target kernel_snapshot failed: Exception
FAILURE: Build failed with an exception.
* Where:
Script '/Users/urvesh/.shorebird/bin/cache/flutter/25bc2b57a159f5b52385c4adb5c80f6ed25ae6d5/packages/flutter_tools/gradle/src/main/groovy/flutter.groovy' line: 1442
BUILD FAILED in 25s
Gradle task bundleProductionRelease failed with exit code 1
This tells that it is using new flutter version to create patch
Alright, pinging @static delta to help you out when he's around