Skip to content

Commit

Permalink
Upgrade analysis SDKs (#6892)
Browse files Browse the repository at this point in the history
  • Loading branch information
isoos committed Aug 9, 2023
1 parent d7831b3 commit e9b0d08
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 14 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ Important changes to data models, configuration, and migrations between each
AppEngine version, listed here to ease deployment and troubleshooting.

## Next Release (replace with git tag when deployed)
* Bumped runtimeVersion to `2023.08.08`.
* Upgraded stable Dart analysis SDK to `3.0.7`.
* Upgraded stable Flutter analysis SDK to `3.10.6`.
* Upgraded preview Dart analysis SDK to `3.1.0-262.3.beta`.
* Upgraded preview Flutter analysis SDK to `3.13.0-0.3.pre`.

## `20230804t105300-all`
* Bumped runtimeVersion to `2023.08.04`.
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile.app
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ WORKDIR /project/app
RUN dart /project/tool/pub_get_offline.dart /project/app

# Setup analysis Dart SDKs
RUN /project/tool/setup-dart.sh /tool/stable 3.0.5
RUN /project/tool/setup-dart.sh /tool/preview 3.1.0-163.1.beta
RUN /project/tool/setup-dart.sh /tool/stable 3.0.7
RUN /project/tool/setup-dart.sh /tool/preview 3.1.0-262.3.beta
RUN /project/tool/setup-webp.sh /usr/local/bin

# Setup analysis Flutter SDKs
RUN /project/tool/setup-flutter.sh /tool/stable 3.10.5
RUN /project/tool/setup-flutter.sh /tool/preview 3.12.0
RUN /project/tool/setup-flutter.sh /tool/stable 3.10.6
RUN /project/tool/setup-flutter.sh /tool/preview 3.13.0-0.3.pre

# Clear out any arguments the base images might have set
CMD []
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile.worker
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ COPY --chown=worker:worker . /home/worker/pub-dev
WORKDIR /home/worker/pub-dev

# Setup Dart SDK into /home/worker/dart/{stable,preview}/
RUN tool/setup-dart.sh /home/worker/dart 3.0.5
RUN tool/setup-dart.sh /home/worker/dart 3.0.7
RUN mv /home/worker/dart/dart-sdk /home/worker/dart/stable
RUN tool/setup-dart.sh /home/worker/dart 3.1.0-163.1.beta
RUN tool/setup-dart.sh /home/worker/dart 3.1.0-262.3.beta
RUN tool/setup-webp.sh /home/worker/bin
RUN mv /home/worker/dart/dart-sdk /home/worker/dart/preview

# Setup Flutter SDK into /home/worker/flutter/{stable,preview}/
RUN tool/setup-flutter.sh /home/worker/flutter 3.10.5
RUN tool/setup-flutter.sh /home/worker/flutter 3.10.6
RUN mv /home/worker/flutter/flutter /home/worker/flutter/stable
RUN tool/setup-flutter.sh /home/worker/flutter 3.12.0
RUN tool/setup-flutter.sh /home/worker/flutter 3.13.0-0.3.pre
RUN mv /home/worker/flutter/flutter /home/worker/flutter/preview

# Configure SDKs to be used for analysis
Expand Down
12 changes: 6 additions & 6 deletions app/lib/shared/versions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ final RegExp runtimeVersionPattern = RegExp(r'^\d{4}\.\d{2}\.\d{2}$');
/// when the version switch happens.
const acceptedRuntimeVersions = <String>[
// The current [runtimeVersion].
'2023.08.04',
'2023.08.08',
// Fallback runtime versions.
'2023.07.27',
'2023.08.04',
'2023.07.24',
];

Expand Down Expand Up @@ -54,10 +54,10 @@ bool shouldGCVersion(String version) =>

// keep in-sync with SDK version in .mono_repo.yml and Dockerfile
final String runtimeSdkVersion = '3.0.0';
final String toolStableDartSdkVersion = '3.0.5';
final String toolStableFlutterSdkVersion = '3.10.5';
final String toolPreviewDartSdkVersion = '3.1.0-163.1.beta';
final String toolPreviewFlutterSdkVersion = '3.12.0';
final String toolStableDartSdkVersion = '3.0.7';
final String toolStableFlutterSdkVersion = '3.10.6';
final String toolPreviewDartSdkVersion = '3.1.0-262.3.beta';
final String toolPreviewFlutterSdkVersion = '3.13.0-0.3.pre';

final semanticToolStableDartSdkVersion =
Version.parse(toolStableDartSdkVersion);
Expand Down

0 comments on commit e9b0d08

Please sign in to comment.