Skip to content

Commit 72a9988

Browse files
committed
Merge branch 'main' into webview-scroll-listener-platforms
Adhere to ObjC naming Update AUTHORS
2 parents 062d19e + 0b86a4c commit 72a9988

File tree

784 files changed

+24675
-7309
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

784 files changed

+24675
-7309
lines changed

.ci.yaml

Lines changed: 46 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ platform_properties:
1818
[
1919
{"dependency": "curl", "version": "version:7.64.0"}
2020
]
21+
# The current android emulator config names can be found here:
22+
# https://chromium.googlesource.com/chromium/src.git/+/HEAD/tools/android/avd/proto
23+
# You may use those names for the android_virtual_device version.
2124
linux_android:
2225
properties:
2326
os: Ubuntu
@@ -27,7 +30,8 @@ platform_properties:
2730
[
2831
{"dependency": "android_sdk", "version": "version:33v6"},
2932
{"dependency": "open_jdk", "version": "version:17"},
30-
{"dependency": "curl", "version": "version:7.64.0"}
33+
{"dependency": "curl", "version": "version:7.64.0"},
34+
{"dependency": "avd_cipd_version", "version": "build_id:8759428741582061553"}
3135
]
3236
linux_android_legacy:
3337
properties:
@@ -39,7 +43,8 @@ platform_properties:
3943
{"dependency": "android_sdk", "version": "version:33v6"},
4044
{"dependency": "open_jdk", "version": "version:17"},
4145
{"dependency": "curl", "version": "version:7.64.0"},
42-
{"dependency": "android_virtual_device", "version": "22"}
46+
{"dependency": "android_virtual_device", "version": "generic_android22.textpb"},
47+
{"dependency": "avd_cipd_version", "version": "build_id:8759428741582061553"}
4348
]
4449
linux_desktop:
4550
properties:
@@ -85,42 +90,28 @@ platform_properties:
8590
[
8691
{"dependency": "ruby", "version": "ruby_3.1-pod_1.13"}
8792
]
88-
os: Mac-12|Mac-13
93+
os: Mac-13
8994
device_type: none
9095
cpu: arm64
9196
$flutter/osx_sdk : >-
9297
{
93-
"sdk_version": "14e300c"
98+
"sdk_version": "15a240d"
9499
}
95100
mac_x64:
96101
properties:
97102
dependencies: >-
98103
[
99104
{"dependency": "ruby", "version": "ruby_3.1-pod_1.13"}
100105
]
101-
os: Mac-12|Mac-13
106+
os: Mac-13
102107
device_type: none
103108
cpu: x86
104109
$flutter/osx_sdk : >-
105110
{
106-
"sdk_version": "14e300c"
111+
"sdk_version": "15a240d"
107112
}
108113
109114
targets:
110-
### Linux-host general tasks ###
111-
- name: Linux repo_tools_tests
112-
recipe: packages/packages
113-
timeout: 30
114-
properties:
115-
add_recipes_cq: "true"
116-
target_file: repo_tools_tests.yaml
117-
channel: master
118-
version_file: flutter_master.version
119-
env_variables: >-
120-
{
121-
"CHANNEL": "master"
122-
}
123-
124115
- name: Linux repo_checks
125116
recipe: packages/packages
126117
timeout: 30
@@ -281,19 +272,10 @@ targets:
281272
"CHANNEL": "stable"
282273
}
283274
284-
- name: Linux analyze_downgraded master
285-
recipe: packages/packages
286-
timeout: 30
287-
properties:
288-
add_recipes_cq: "true"
289-
target_file: analyze_downgraded.yaml
290-
channel: master
291-
version_file: flutter_master.version
292-
env_variables: >-
293-
{
294-
"CHANNEL": "master"
295-
}
296-
275+
# This is only run on stable since it's extremely likely that stable will
276+
# resolve to packages that are older (or at least as old) than on master, so
277+
# running a second copy with master is very unlikely to catch anything that
278+
# this doesn't.
297279
- name: Linux analyze_downgraded stable
298280
recipe: packages/packages
299281
timeout: 30
@@ -344,7 +326,7 @@ targets:
344326
# web_benchmarks needs Chrome.
345327
dependencies: >-
346328
[
347-
{"dependency": "android_virtual_device", "version": "34"},
329+
{"dependency": "android_virtual_device", "version": "android_34_google_apis_x64.textpb"},
348330
{"dependency": "clang", "version": "git_revision:5d5aba78dbbee75508f01bcaa69aedb2ab79065a"},
349331
{"dependency": "chrome_and_driver", "version": "version:114.0"}
350332
]
@@ -365,7 +347,7 @@ targets:
365347
# See comments on 'master' version above.
366348
dependencies: >-
367349
[
368-
{"dependency": "android_virtual_device", "version": "34"},
350+
{"dependency": "android_virtual_device", "version": "android_34_google_apis_x64.textpb"},
369351
{"dependency": "clang", "version": "git_revision:5d5aba78dbbee75508f01bcaa69aedb2ab79065a"},
370352
{"dependency": "chrome_and_driver", "version": "version:114.0"}
371353
]
@@ -426,7 +408,7 @@ targets:
426408
package_sharding: "--shardIndex 0 --shardCount 6"
427409
dependencies: >-
428410
[
429-
{"dependency": "android_virtual_device", "version": "34"}
411+
{"dependency": "android_virtual_device", "version": "android_34_google_apis_x64.textpb"}
430412
]
431413
env_variables: >-
432414
{
@@ -445,7 +427,7 @@ targets:
445427
package_sharding: "--shardIndex 1 --shardCount 6"
446428
dependencies: >-
447429
[
448-
{"dependency": "android_virtual_device", "version": "34"}
430+
{"dependency": "android_virtual_device", "version": "android_34_google_apis_x64.textpb"}
449431
]
450432
env_variables: >-
451433
{
@@ -464,7 +446,7 @@ targets:
464446
package_sharding: "--shardIndex 2 --shardCount 6"
465447
dependencies: >-
466448
[
467-
{"dependency": "android_virtual_device", "version": "34"}
449+
{"dependency": "android_virtual_device", "version": "android_34_google_apis_x64.textpb"}
468450
]
469451
env_variables: >-
470452
{
@@ -483,7 +465,7 @@ targets:
483465
package_sharding: "--shardIndex 3 --shardCount 6"
484466
dependencies: >-
485467
[
486-
{"dependency": "android_virtual_device", "version": "34"}
468+
{"dependency": "android_virtual_device", "version": "android_34_google_apis_x64.textpb"}
487469
]
488470
env_variables: >-
489471
{
@@ -502,7 +484,7 @@ targets:
502484
package_sharding: "--shardIndex 4 --shardCount 6"
503485
dependencies: >-
504486
[
505-
{"dependency": "android_virtual_device", "version": "34"}
487+
{"dependency": "android_virtual_device", "version": "android_34_google_apis_x64.textpb"}
506488
]
507489
env_variables: >-
508490
{
@@ -521,7 +503,7 @@ targets:
521503
package_sharding: "--shardIndex 5 --shardCount 6"
522504
dependencies: >-
523505
[
524-
{"dependency": "android_virtual_device", "version": "34"}
506+
{"dependency": "android_virtual_device", "version": "android_34_google_apis_x64.textpb"}
525507
]
526508
env_variables: >-
527509
{
@@ -540,7 +522,7 @@ targets:
540522
package_sharding: "--shardIndex 0 --shardCount 2"
541523
dependencies: >-
542524
[
543-
{"dependency": "android_virtual_device", "version": "33"}
525+
{"dependency": "android_virtual_device", "version": "android_33_google_apis_x64.textpb"}
544526
]
545527
env_variables: >-
546528
{
@@ -559,7 +541,7 @@ targets:
559541
package_sharding: "--shardIndex 1 --shardCount 2"
560542
dependencies: >-
561543
[
562-
{"dependency": "android_virtual_device", "version": "33"}
544+
{"dependency": "android_virtual_device", "version": "android_33_google_apis_x64.textpb"}
563545
]
564546
env_variables: >-
565547
{
@@ -578,7 +560,7 @@ targets:
578560
package_sharding: "--shardIndex 0 --shardCount 6"
579561
dependencies: >-
580562
[
581-
{"dependency": "android_virtual_device", "version": "34"}
563+
{"dependency": "android_virtual_device", "version": "android_34_google_apis_x64.textpb"}
582564
]
583565
env_variables: >-
584566
{
@@ -597,7 +579,7 @@ targets:
597579
package_sharding: "--shardIndex 1 --shardCount 6"
598580
dependencies: >-
599581
[
600-
{"dependency": "android_virtual_device", "version": "34"}
582+
{"dependency": "android_virtual_device", "version": "android_34_google_apis_x64.textpb"}
601583
]
602584
env_variables: >-
603585
{
@@ -616,7 +598,7 @@ targets:
616598
package_sharding: "--shardIndex 2 --shardCount 6"
617599
dependencies: >-
618600
[
619-
{"dependency": "android_virtual_device", "version": "34"}
601+
{"dependency": "android_virtual_device", "version": "android_34_google_apis_x64.textpb"}
620602
]
621603
env_variables: >-
622604
{
@@ -635,7 +617,7 @@ targets:
635617
package_sharding: "--shardIndex 3 --shardCount 6"
636618
dependencies: >-
637619
[
638-
{"dependency": "android_virtual_device", "version": "34"}
620+
{"dependency": "android_virtual_device", "version": "android_34_google_apis_x64.textpb"}
639621
]
640622
env_variables: >-
641623
{
@@ -654,7 +636,7 @@ targets:
654636
package_sharding: "--shardIndex 4 --shardCount 6"
655637
dependencies: >-
656638
[
657-
{"dependency": "android_virtual_device", "version": "34"}
639+
{"dependency": "android_virtual_device", "version": "android_34_google_apis_x64.textpb"}
658640
]
659641
env_variables: >-
660642
{
@@ -673,7 +655,7 @@ targets:
673655
package_sharding: "--shardIndex 5 --shardCount 6"
674656
dependencies: >-
675657
[
676-
{"dependency": "android_virtual_device", "version": "34"}
658+
{"dependency": "android_virtual_device", "version": "android_34_google_apis_x64.textpb"}
677659
]
678660
env_variables: >-
679661
{
@@ -691,7 +673,7 @@ targets:
691673
package_sharding: "--shardIndex 0 --shardCount 2"
692674
dependencies: >-
693675
[
694-
{"dependency": "android_virtual_device", "version": "33"}
676+
{"dependency": "android_virtual_device", "version": "android_33_google_apis_x64.textpb"}
695677
]
696678
env_variables: >-
697679
{
@@ -709,7 +691,7 @@ targets:
709691
package_sharding: "--shardIndex 1 --shardCount 2"
710692
dependencies: >-
711693
[
712-
{"dependency": "android_virtual_device", "version": "33"}
694+
{"dependency": "android_virtual_device", "version": "android_33_google_apis_x64.textpb"}
713695
]
714696
env_variables: >-
715697
{
@@ -1071,7 +1053,11 @@ targets:
10711053
properties:
10721054
add_recipes_cq: "true"
10731055
version_file: flutter_master.version
1074-
target_file: macos_check_podspecs.yaml
1056+
target_file: macos_repo_checks.yaml
1057+
dependencies: >
1058+
[
1059+
{"dependency": "swift_format", "version": "build_id:8797338980206841409"}
1060+
]
10751061
10761062
### macOS desktop tasks ###
10771063
# macos-platform_tests builds all the packages on ARM, so this build is run
@@ -1143,6 +1129,10 @@ targets:
11431129
{
11441130
"CHANNEL": "master"
11451131
}
1132+
dependencies: >
1133+
[
1134+
{"dependency": "swift_format", "version": "build_id:8797338979890974865"}
1135+
]
11461136
11471137
- name: Mac_arm64 custom_package_tests stable
11481138
recipe: packages/packages
@@ -1156,6 +1146,10 @@ targets:
11561146
{
11571147
"CHANNEL": "stable"
11581148
}
1149+
dependencies: >
1150+
[
1151+
{"dependency": "swift_format", "version": "build_id:8797338979890974865"}
1152+
]
11591153
11601154
### iOS tasks ###
11611155
# ios_platform_tests builds all the packages on ARM, so this build is run

.ci/flutter_master.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
c6ddb73f971edd8210893db9f26ae665906cd6be
1+
e02e2079bea7d04151e8d4240d70002e4b54186d

.ci/flutter_stable.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
1+
41456452f29d64e8deb623a3c927524bcf9f111b

.ci/legacy_project/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,5 @@ and then deleting everything but `android/` from it:
3737
- Added license boilerplate.
3838
- Replaced `jcenter` in build.gradle with `mavenCentral`, due to the
3939
jcenter.bintray.com shutdown.
40+
- Update `compileSdkVersion` from 30 to 33 to maintain compatibility
41+
with plugins that use API 34.

.ci/legacy_project/all_packages/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ apply plugin: 'com.android.application'
2525
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2626

2727
android {
28-
compileSdkVersion 30
28+
compileSdkVersion 33
2929

3030
defaultConfig {
3131
applicationId "com.example.all_packages"

.ci/scripts/create_simulator.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ set -o pipefail
99
# The name here must match remove_simulator.sh
1010
readonly DEVICE_NAME=Flutter-iPhone
1111
readonly DEVICE=com.apple.CoreSimulator.SimDeviceType.iPhone-14
12-
readonly OS=com.apple.CoreSimulator.SimRuntime.iOS-16-4
12+
readonly OS=com.apple.CoreSimulator.SimRuntime.iOS-17-0
1313

1414
# Delete any existing devices named Flutter-iPhone. Having more than one may
1515
# cause issues when builds target the device.

.ci/targets/ios_platform_tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ tasks:
2121
args: ["xcode-analyze", "--ios", "--ios-min-version=13.0"]
2222
- name: native test
2323
script: script/tool_runner.sh
24-
# Simulator name must match name in create_simulator.sh
25-
args: ["native-test", "--ios", "--ios-destination", "platform=iOS Simulator,name=Flutter-iPhone,OS=16.4"]
24+
# Simulator name and version must match name and version in create_simulator.sh
25+
args: ["native-test", "--ios", "--ios-destination", "platform=iOS Simulator,name=Flutter-iPhone,OS=17.0"]
2626
- name: boot simulator
2727
# Ensure simulator is still booted
2828
script: .ci/scripts/boot_simulator.sh

.ci/targets/macos_check_podspecs.yaml renamed to .ci/targets/macos_repo_checks.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ tasks:
55
- name: update pods repo
66
script: .ci/scripts/update_pods.sh
77
infra_step: true # Note infra steps failing prevents "always" from running.
8+
- name: Swift format
9+
script: script/tool_runner.sh
10+
# Non-Swift languages are formatted on Linux builders.
11+
# Skip them on Mac builder to avoid duplication.
12+
args: ["format", "--fail-on-change", "--no-dart", "--no-clang-format", "--no-kotlin", "--no-java" ]
13+
always: true
814
- name: validate iOS and macOS podspecs
915
script: script/tool_runner.sh
1016
args: ["podspec-check"]
17+
always: true

.ci/targets/repo_checks.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@ tasks:
22
- name: prepare tool
33
script: .ci/scripts/prepare_tool.sh
44
infra_step: true # Note infra steps failing prevents "always" from running.
5+
- name: tool unit tests
6+
script: .ci/scripts/plugin_tools_tests.sh
57
- name: format
68
script: script/tool_runner.sh
7-
args: ["format", "--fail-on-change"]
9+
# Skip Swift formatting on Linux builders.
10+
args: ["format", "--fail-on-change", "--no-swift"]
811
always: true
912
- name: license validation
1013
script: script/tool_runner.sh
@@ -40,6 +43,10 @@ tasks:
4043
script: script/tool_runner.sh
4144
args: ["gradle-check"]
4245
always: true
46+
- name: Repository-level package metadata validation
47+
script: script/tool_runner.sh
48+
args: ["check-repo-package-info"]
49+
always: true
4350
- name: Dependabot coverage validation
4451
script: script/tool_runner.sh
4552
args: ["dependabot-check"]

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
- [ ] I read and followed the [relevant style guides] and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/packages repo does use `dart format`.)
1212
- [ ] I signed the [CLA].
1313
- [ ] The title of the PR starts with the name of the package surrounded by square brackets, e.g. `[shared_preferences]`
14-
- [ ] I listed at least one issue that this PR fixes in the description above.
14+
- [ ] I [linked to at least one issue that this PR fixes] in the description above.
1515
- [ ] I updated `pubspec.yaml` with an appropriate new version according to the [pub versioning philosophy], or this PR is [exempt from version changes].
1616
- [ ] I updated `CHANGELOG.md` to add a description of the change, [following repository CHANGELOG style].
1717
- [ ] I updated/added relevant documentation (doc comments with `///`).
@@ -28,6 +28,7 @@ If you need help, consider asking for advice on the #hackers-new channel on [Dis
2828
[flutter/tests]: https://github.com/flutter/tests
2929
[breaking change policy]: https://github.com/flutter/flutter/wiki/Tree-hygiene#handling-breaking-changes
3030
[Discord]: https://github.com/flutter/flutter/wiki/Chat
31+
[linked to at least one issue that this PR fixes]: https://github.com/flutter/flutter/wiki/Tree-hygiene#overview
3132
[pub versioning philosophy]: https://dart.dev/tools/pub/versioning
3233
[exempt from version changes]: https://github.com/flutter/flutter/wiki/Contributing-to-Plugins-and-Packages#version-and-changelog-updates
3334
[following repository CHANGELOG style]: https://github.com/flutter/flutter/wiki/Contributing-to-Plugins-and-Packages#changelog-style

0 commit comments

Comments
 (0)