Open cguentherTUChemnitz opened 1 month ago
Here's an LLM speculating on the update process:
To update this Flutter package from version 3.22 to 3.24, you would typically follow these steps:
Update version numbers:
- In pkgs/flutter/sources/data.json, update the version field to "3.24.0" (or the specific 3.24.x version).
- Update the engineVersion to match the new Flutter version's engine.
Update source hash:
- Fetch the new Flutter source and update the flutterHash in the same JSON file.
Update Dart version:
- Check if the Dart version needs to be updated. This is usually specified in the Flutter SDK's bin/internal/dart-sdk.version file.
- If needed, update the Dart version in pkgs/dart/sources.nix.
Update artifact hashes:
- The pkgs/flutter/artifacts/hashes.nix file will need updating with new hashes for the 3.24 artifacts.
- You might need to run the artifact fetching process for each platform and collect the new hashes.
Update pubspec.lock:
- The pubspecLock in pkgs/flutter/sources/data.json might need updating to match the new version's dependencies.
Check for breaking changes:
- Review the Flutter 3.24 changelog for any breaking changes that might affect the build process or wrapper scripts.
Test and verify:
- Build the updated package and test it to ensure everything works correctly.
Update related files:
- Check if any patches in pkgs/flutter/patches need updating or if new ones are required.
Run update scripts:
- Use the updateScript mentioned in pkgs/flutter/wrapper.nix to automate parts of this process.
To perform these updates, you could:
- Modify the update/update.py script to fetch the new 3.24 version.
- Run the script to update version numbers and fetch new sources.
- Manually verify and adjust any changes that the script couldn't handle automatically.
- Use the try-prefetch.nix file to help generate new artifact hashes.
- Test the updated package thoroughly before submitting the changes.
Don't currently have time to do it but maybe it'll help someone
Note also #18
The new Flutter versions just don't build with this flake. I am stuck on trying to fix it, as the flutter here is not able to download artifacts trying a wrong URL during nix build .
I have switched to nixpkgs, as it seems to be fixed there (Android build) since Flutter 3.24.
It is also makes it super easy to use with a new option in devenv:
{ pkgs, ... }:
{
android = {
enable = true;
flutter.enable = true;
platforms.version = [ "32" "33" "34" ];
buildTools.version = [ "33.0.1" "34.0.0" ];
};
}
latest flutter version is 3.24.0, but latest tag here is 3.22.2