Skip to content

chore(version): Bump version #6145

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

Open
wants to merge 7 commits into
base: stable
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/BUG-REPORT.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ body:
attributes:
label: "Flutter Version"
description: "Please share which version of Flutter you're using (found using `flutter --version`)."
placeholder: "3.27.0"
placeholder: "3.29.0"
validations:
required: true
- type: input
Expand Down
1 change: 1 addition & 0 deletions .github/dependency-review-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ allow_licenses:
- "BSD-Source-Code"
- "bzip2-1.0.6"
- "CC0-1.0"
- "CC-BY-4.0"
- "curl"
- "ISC"
- "MIT"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Setup Dart
uses: dart-lang/setup-dart@e58aeb62aef51dcc4d0ba8eada7c08092aad5314 # main
with:
sdk: 3.6.0
sdk: 3.7.0

- name: Setup pnpm
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # 4.0.0
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
- name: Setup Dart
uses: dart-lang/setup-dart@e58aeb62aef51dcc4d0ba8eada7c08092aad5314 # main
with:
sdk: 3.6.0
sdk: 3.7.0

- name: Setup aft
shell: bash # Run in bash regardless of platform
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/amplify_canaries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- "any" # latest
include:
- channel: "stable"
flutter-version: "3.27.0"
flutter-version: "3.29.0"
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # 3.6.0
with:
Expand Down Expand Up @@ -88,7 +88,7 @@ jobs:
- "any" # latest
include:
- channel: "stable"
flutter-version: "3.27.0"
flutter-version: "3.29.0"
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # 3.6.0
with:
Expand Down Expand Up @@ -162,7 +162,7 @@ jobs:
- "any" # latest
include:
- channel: "stable"
flutter-version: "3.27.0"
flutter-version: "3.29.0"
ios-version:
- "15.0"
- "17.5"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dart_dart2js.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
matrix:
sdk:
# Minimum supported Dart version
- "3.6.0"
- "3.7.0"
- stable
- beta
browser:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dart_ddc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
matrix:
sdk:
# Minimum supported Dart version
- "3.6.0"
- "3.7.0"
- stable
- beta
browser:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dart_vm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
matrix:
sdk:
# Minimum supported Dart version
- "3.6.0"
- "3.7.0"
- stable
- beta
# Skips 'beta' tests on PRs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/flutter_vm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- "any" # latest
include:
- channel: "stable"
flutter-version: "3.27.0"
flutter-version: "3.29.0"
# Skips 'beta' tests on PRs
exclude:
- channel: ${{ (github.event_name == 'pull_request') && 'beta' || 'NONE' }}
Expand Down
11 changes: 2 additions & 9 deletions actions/bin/launch_android_emulator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,7 @@ Future<void> _action() async {
);
final script = core.getRequiredInput('script');

final sdkManager = SdkManager(
apiLevel: apiLevel,
target: target,
abi: abi,
);
final sdkManager = SdkManager(apiLevel: apiLevel, target: target, abi: abi);
final avdManager = AvdManager(
apiLevel: apiLevel,
target: target,
Expand All @@ -39,8 +35,5 @@ Future<void> _action() async {

await sdkManager.ensureSdk();
await avdManager.launchEmulator();
await core.withGroup(
'Running script',
() => ShellScript(script).run(),
);
await core.withGroup('Running script', () => ShellScript(script).run());
}
86 changes: 39 additions & 47 deletions actions/bin/launch_ios_simulator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,40 +30,31 @@ Future<void> launch() async {
core.info('No runtime found for $iosVersion');
await installRuntime(iosVersion);
}
runtimeIdentifier = await core.withGroup(
'Get runtime ID',
() async {
final runtimeId = await getRuntimeId(iosVersion);
core.info('Found runtime ID: $runtimeId');
return runtimeId;
},
);
runtimeIdentifier = await core.withGroup('Get runtime ID', () async {
final runtimeId = await getRuntimeId(iosVersion);
core.info('Found runtime ID: $runtimeId');
return runtimeId;
});
if (runtimeIdentifier == null) {
throw Exception('Runtime not found after install');
}

final createRes = await core.withGroup(
'Create simulator',
() => exec.exec(
'xcrun',
[
'simctl',
'create',
'test',
'iPhone 11',
runtimeIdentifier!,
],
),
() => exec.exec('xcrun', [
'simctl',
'create',
'test',
'iPhone 11',
runtimeIdentifier!,
]),
);
if (createRes.exitCode != 0) {
throw Exception('Could not create simulator');
}
final bootRes = await core.withGroup(
'Boot simulator',
() => exec.exec(
'xcrun',
['simctl', 'boot', 'test'],
),
() => exec.exec('xcrun', ['simctl', 'boot', 'test']),
);
if (bootRes.exitCode != 0) {
throw Exception('Could not boot simulator');
Expand All @@ -72,11 +63,12 @@ Future<void> launch() async {

/// Gets the iOS runtime identifier for the given [iosVersion].
Future<String?> getRuntimeId(String iosVersion) async {
final runtimesRes = await exec.exec(
'xcrun',
['simctl', 'list', 'runtimes', '-j'],
echoOutput: false,
);
final runtimesRes = await exec.exec('xcrun', [
'simctl',
'list',
'runtimes',
'-j',
], echoOutput: false);
if (runtimesRes.exitCode != 0) {
throw Exception('Could not list runtimes');
}
Expand All @@ -95,18 +87,21 @@ Future<String?> getRuntimeId(String iosVersion) async {
/// Installs the `xcodes` tool (https://github.com/XcodesOrg/xcodes) and
/// `aria2` for speeding up downloads (as recommended by `xcodes`).
Future<void> installXcodes() => core.withGroup('Install xcodes', () async {
final res = await exec.exec(
'brew',
['install', 'xcodesorg/made/xcodes', 'aria2'],
);
if (res.exitCode != 0) {
throw Exception('Could not install xcodes');
}
});
final res = await exec.exec('brew', [
'install',
'xcodesorg/made/xcodes',
'aria2',
]);
if (res.exitCode != 0) {
throw Exception('Could not install xcodes');
}
});

Future<String> getLatest() async {
final version = await exec
.exec('/bin/sh', ['-c', r'xcodes runtimes | grep -e "iOS" | tail -n 1']);
final version = await exec.exec('/bin/sh', [
'-c',
r'xcodes runtimes | grep -e "iOS" | tail -n 1',
]);
if (version.exitCode != 0) {
throw Exception('Could not get latest version');
}
Expand All @@ -117,16 +112,13 @@ Future<String> getLatest() async {
/// Installs the iOS runtime for the given [iosVersion].
Future<void> installRuntime(String iosVersion) async {
await core.withGroup('Install runtime', () async {
final res = await exec.exec(
'sudo',
[
'xcodes',
'runtimes',
'install',
iosVersion,
'--no-color',
],
);
final res = await exec.exec('sudo', [
'xcodes',
'runtimes',
'install',
iosVersion,
'--no-color',
]);
if (res.exitCode != 0) {
throw Exception('Could not install runtime');
}
Expand Down
45 changes: 26 additions & 19 deletions actions/bin/log_cw_metric.dart
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,7 @@ Future<void> logMetric() async {
'pub_server',
];

final category = categories.firstWhereOrNull(
workingDirectory.contains,
);
final category = categories.firstWhereOrNull(workingDirectory.contains);

if (category == null) {
throw Exception(
Expand All @@ -112,16 +110,24 @@ Future<void> logMetric() async {
'framework input of $framework must be one of: dart, flutter',
);
}
final flutterDartChannel =
core.getInput('flutter-dart-channel', defaultValue: defaultValue);
final flutterDartChannel = core.getInput(
'flutter-dart-channel',
defaultValue: defaultValue,
);
final dartVersion = core.getInput('dart-version', defaultValue: defaultValue);
final flutterVersion =
core.getInput('flutter-version', defaultValue: defaultValue);
final dartCompiler =
core.getInput('dart-compiler', defaultValue: defaultValue);
final flutterVersion = core.getInput(
'flutter-version',
defaultValue: defaultValue,
);
final dartCompiler = core.getInput(
'dart-compiler',
defaultValue: defaultValue,
);
final platform = core.getInput('platform', defaultValue: defaultValue);
final platformVersion =
core.getInput('platform-version', defaultValue: defaultValue);
final platformVersion = core.getInput(
'platform-version',
defaultValue: defaultValue,
);

final value = isFailed ? '1' : '0';

Expand All @@ -140,8 +146,9 @@ Future<void> logMetric() async {
//if (failingStep.isNotEmpty) 'failing-step': failingStep,
};

final dimensionString =
dimensions.entries.map((e) => '${e.key}=${e.value}').join(',');
final dimensionString = dimensions.entries
.map((e) => '${e.key}=${e.value}')
.join(',');

final cloudArgs = <String>[
'cloudwatch',
Expand All @@ -156,9 +163,7 @@ Future<void> logMetric() async {
dimensionString,
];

await processManager.run(
<String>['aws', ...cloudArgs],
);
await processManager.run(<String>['aws', ...cloudArgs]);

core.info('Sent cloudwatch metric with args: $cloudArgs');
}
Expand Down Expand Up @@ -193,9 +198,11 @@ Future<String> getFailingStep(
final jobsList = GithubJobsList.fromJson(response);
final matchingJob = jobsList.jobs.firstWhere(
(job) => job.name.toLowerCase().contains(jobIdentifier),
orElse: () => throw Exception(
'No job found matching <$jobIdentifier>. Ensure full workflow path run name is unique. Available jobs: ${jobsList.jobs.map((e) => e.name).join(', ')}. Note that the "jobIdentifier" used to find the proper job uses the job id and not the job name, setting the "name" field in the workflow yaml will break this logic. See comments for more context.',
),
orElse:
() =>
throw Exception(
'No job found matching <$jobIdentifier>. Ensure full workflow path run name is unique. Available jobs: ${jobsList.jobs.map((e) => e.name).join(', ')}. Note that the "jobIdentifier" used to find the proper job uses the job id and not the job name, setting the "name" field in the workflow yaml will break this logic. See comments for more context.',
),
);
final steps = matchingJob.steps;

Expand Down
Loading
Loading