Skip to content

Commit

Permalink
Merge branch 'main' into webview-scroll-listener-platforms
Browse files Browse the repository at this point in the history
Adhere to ObjC naming
Update AUTHORS
  • Loading branch information
TheVinhLuong committed Feb 3, 2024
2 parents 062d19e + 0b86a4c commit 72a9988
Show file tree
Hide file tree
Showing 784 changed files with 24,675 additions and 7,309 deletions.
98 changes: 46 additions & 52 deletions .ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ platform_properties:
[
{"dependency": "curl", "version": "version:7.64.0"}
]
# The current android emulator config names can be found here:
# https://chromium.googlesource.com/chromium/src.git/+/HEAD/tools/android/avd/proto
# You may use those names for the android_virtual_device version.
linux_android:
properties:
os: Ubuntu
Expand All @@ -27,7 +30,8 @@ platform_properties:
[
{"dependency": "android_sdk", "version": "version:33v6"},
{"dependency": "open_jdk", "version": "version:17"},
{"dependency": "curl", "version": "version:7.64.0"}
{"dependency": "curl", "version": "version:7.64.0"},
{"dependency": "avd_cipd_version", "version": "build_id:8759428741582061553"}
]
linux_android_legacy:
properties:
Expand All @@ -39,7 +43,8 @@ platform_properties:
{"dependency": "android_sdk", "version": "version:33v6"},
{"dependency": "open_jdk", "version": "version:17"},
{"dependency": "curl", "version": "version:7.64.0"},
{"dependency": "android_virtual_device", "version": "22"}
{"dependency": "android_virtual_device", "version": "generic_android22.textpb"},
{"dependency": "avd_cipd_version", "version": "build_id:8759428741582061553"}
]
linux_desktop:
properties:
Expand Down Expand Up @@ -85,42 +90,28 @@ platform_properties:
[
{"dependency": "ruby", "version": "ruby_3.1-pod_1.13"}
]
os: Mac-12|Mac-13
os: Mac-13
device_type: none
cpu: arm64
$flutter/osx_sdk : >-
{
"sdk_version": "14e300c"
"sdk_version": "15a240d"
}
mac_x64:
properties:
dependencies: >-
[
{"dependency": "ruby", "version": "ruby_3.1-pod_1.13"}
]
os: Mac-12|Mac-13
os: Mac-13
device_type: none
cpu: x86
$flutter/osx_sdk : >-
{
"sdk_version": "14e300c"
"sdk_version": "15a240d"
}
targets:
### Linux-host general tasks ###
- name: Linux repo_tools_tests
recipe: packages/packages
timeout: 30
properties:
add_recipes_cq: "true"
target_file: repo_tools_tests.yaml
channel: master
version_file: flutter_master.version
env_variables: >-
{
"CHANNEL": "master"
}
- name: Linux repo_checks
recipe: packages/packages
timeout: 30
Expand Down Expand Up @@ -281,19 +272,10 @@ targets:
"CHANNEL": "stable"
}
- name: Linux analyze_downgraded master
recipe: packages/packages
timeout: 30
properties:
add_recipes_cq: "true"
target_file: analyze_downgraded.yaml
channel: master
version_file: flutter_master.version
env_variables: >-
{
"CHANNEL": "master"
}
# This is only run on stable since it's extremely likely that stable will
# resolve to packages that are older (or at least as old) than on master, so
# running a second copy with master is very unlikely to catch anything that
# this doesn't.
- name: Linux analyze_downgraded stable
recipe: packages/packages
timeout: 30
Expand Down Expand Up @@ -344,7 +326,7 @@ targets:
# web_benchmarks needs Chrome.
dependencies: >-
[
{"dependency": "android_virtual_device", "version": "34"},
{"dependency": "android_virtual_device", "version": "android_34_google_apis_x64.textpb"},
{"dependency": "clang", "version": "git_revision:5d5aba78dbbee75508f01bcaa69aedb2ab79065a"},
{"dependency": "chrome_and_driver", "version": "version:114.0"}
]
Expand All @@ -365,7 +347,7 @@ targets:
# See comments on 'master' version above.
dependencies: >-
[
{"dependency": "android_virtual_device", "version": "34"},
{"dependency": "android_virtual_device", "version": "android_34_google_apis_x64.textpb"},
{"dependency": "clang", "version": "git_revision:5d5aba78dbbee75508f01bcaa69aedb2ab79065a"},
{"dependency": "chrome_and_driver", "version": "version:114.0"}
]
Expand Down Expand Up @@ -426,7 +408,7 @@ targets:
package_sharding: "--shardIndex 0 --shardCount 6"
dependencies: >-
[
{"dependency": "android_virtual_device", "version": "34"}
{"dependency": "android_virtual_device", "version": "android_34_google_apis_x64.textpb"}
]
env_variables: >-
{
Expand All @@ -445,7 +427,7 @@ targets:
package_sharding: "--shardIndex 1 --shardCount 6"
dependencies: >-
[
{"dependency": "android_virtual_device", "version": "34"}
{"dependency": "android_virtual_device", "version": "android_34_google_apis_x64.textpb"}
]
env_variables: >-
{
Expand All @@ -464,7 +446,7 @@ targets:
package_sharding: "--shardIndex 2 --shardCount 6"
dependencies: >-
[
{"dependency": "android_virtual_device", "version": "34"}
{"dependency": "android_virtual_device", "version": "android_34_google_apis_x64.textpb"}
]
env_variables: >-
{
Expand All @@ -483,7 +465,7 @@ targets:
package_sharding: "--shardIndex 3 --shardCount 6"
dependencies: >-
[
{"dependency": "android_virtual_device", "version": "34"}
{"dependency": "android_virtual_device", "version": "android_34_google_apis_x64.textpb"}
]
env_variables: >-
{
Expand All @@ -502,7 +484,7 @@ targets:
package_sharding: "--shardIndex 4 --shardCount 6"
dependencies: >-
[
{"dependency": "android_virtual_device", "version": "34"}
{"dependency": "android_virtual_device", "version": "android_34_google_apis_x64.textpb"}
]
env_variables: >-
{
Expand All @@ -521,7 +503,7 @@ targets:
package_sharding: "--shardIndex 5 --shardCount 6"
dependencies: >-
[
{"dependency": "android_virtual_device", "version": "34"}
{"dependency": "android_virtual_device", "version": "android_34_google_apis_x64.textpb"}
]
env_variables: >-
{
Expand All @@ -540,7 +522,7 @@ targets:
package_sharding: "--shardIndex 0 --shardCount 2"
dependencies: >-
[
{"dependency": "android_virtual_device", "version": "33"}
{"dependency": "android_virtual_device", "version": "android_33_google_apis_x64.textpb"}
]
env_variables: >-
{
Expand All @@ -559,7 +541,7 @@ targets:
package_sharding: "--shardIndex 1 --shardCount 2"
dependencies: >-
[
{"dependency": "android_virtual_device", "version": "33"}
{"dependency": "android_virtual_device", "version": "android_33_google_apis_x64.textpb"}
]
env_variables: >-
{
Expand All @@ -578,7 +560,7 @@ targets:
package_sharding: "--shardIndex 0 --shardCount 6"
dependencies: >-
[
{"dependency": "android_virtual_device", "version": "34"}
{"dependency": "android_virtual_device", "version": "android_34_google_apis_x64.textpb"}
]
env_variables: >-
{
Expand All @@ -597,7 +579,7 @@ targets:
package_sharding: "--shardIndex 1 --shardCount 6"
dependencies: >-
[
{"dependency": "android_virtual_device", "version": "34"}
{"dependency": "android_virtual_device", "version": "android_34_google_apis_x64.textpb"}
]
env_variables: >-
{
Expand All @@ -616,7 +598,7 @@ targets:
package_sharding: "--shardIndex 2 --shardCount 6"
dependencies: >-
[
{"dependency": "android_virtual_device", "version": "34"}
{"dependency": "android_virtual_device", "version": "android_34_google_apis_x64.textpb"}
]
env_variables: >-
{
Expand All @@ -635,7 +617,7 @@ targets:
package_sharding: "--shardIndex 3 --shardCount 6"
dependencies: >-
[
{"dependency": "android_virtual_device", "version": "34"}
{"dependency": "android_virtual_device", "version": "android_34_google_apis_x64.textpb"}
]
env_variables: >-
{
Expand All @@ -654,7 +636,7 @@ targets:
package_sharding: "--shardIndex 4 --shardCount 6"
dependencies: >-
[
{"dependency": "android_virtual_device", "version": "34"}
{"dependency": "android_virtual_device", "version": "android_34_google_apis_x64.textpb"}
]
env_variables: >-
{
Expand All @@ -673,7 +655,7 @@ targets:
package_sharding: "--shardIndex 5 --shardCount 6"
dependencies: >-
[
{"dependency": "android_virtual_device", "version": "34"}
{"dependency": "android_virtual_device", "version": "android_34_google_apis_x64.textpb"}
]
env_variables: >-
{
Expand All @@ -691,7 +673,7 @@ targets:
package_sharding: "--shardIndex 0 --shardCount 2"
dependencies: >-
[
{"dependency": "android_virtual_device", "version": "33"}
{"dependency": "android_virtual_device", "version": "android_33_google_apis_x64.textpb"}
]
env_variables: >-
{
Expand All @@ -709,7 +691,7 @@ targets:
package_sharding: "--shardIndex 1 --shardCount 2"
dependencies: >-
[
{"dependency": "android_virtual_device", "version": "33"}
{"dependency": "android_virtual_device", "version": "android_33_google_apis_x64.textpb"}
]
env_variables: >-
{
Expand Down Expand Up @@ -1071,7 +1053,11 @@ targets:
properties:
add_recipes_cq: "true"
version_file: flutter_master.version
target_file: macos_check_podspecs.yaml
target_file: macos_repo_checks.yaml
dependencies: >
[
{"dependency": "swift_format", "version": "build_id:8797338980206841409"}
]
### macOS desktop tasks ###
# macos-platform_tests builds all the packages on ARM, so this build is run
Expand Down Expand Up @@ -1143,6 +1129,10 @@ targets:
{
"CHANNEL": "master"
}
dependencies: >
[
{"dependency": "swift_format", "version": "build_id:8797338979890974865"}
]
- name: Mac_arm64 custom_package_tests stable
recipe: packages/packages
Expand All @@ -1156,6 +1146,10 @@ targets:
{
"CHANNEL": "stable"
}
dependencies: >
[
{"dependency": "swift_format", "version": "build_id:8797338979890974865"}
]
### iOS tasks ###
# ios_platform_tests builds all the packages on ARM, so this build is run
Expand Down
2 changes: 1 addition & 1 deletion .ci/flutter_master.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c6ddb73f971edd8210893db9f26ae665906cd6be
e02e2079bea7d04151e8d4240d70002e4b54186d
2 changes: 1 addition & 1 deletion .ci/flutter_stable.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
41456452f29d64e8deb623a3c927524bcf9f111b
2 changes: 2 additions & 0 deletions .ci/legacy_project/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,5 @@ and then deleting everything but `android/` from it:
- Added license boilerplate.
- Replaced `jcenter` in build.gradle with `mavenCentral`, due to the
jcenter.bintray.com shutdown.
- Update `compileSdkVersion` from 30 to 33 to maintain compatibility
with plugins that use API 34.
2 changes: 1 addition & 1 deletion .ci/legacy_project/all_packages/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
compileSdkVersion 30
compileSdkVersion 33

defaultConfig {
applicationId "com.example.all_packages"
Expand Down
2 changes: 1 addition & 1 deletion .ci/scripts/create_simulator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set -o pipefail
# The name here must match remove_simulator.sh
readonly DEVICE_NAME=Flutter-iPhone
readonly DEVICE=com.apple.CoreSimulator.SimDeviceType.iPhone-14
readonly OS=com.apple.CoreSimulator.SimRuntime.iOS-16-4
readonly OS=com.apple.CoreSimulator.SimRuntime.iOS-17-0

# Delete any existing devices named Flutter-iPhone. Having more than one may
# cause issues when builds target the device.
Expand Down
4 changes: 2 additions & 2 deletions .ci/targets/ios_platform_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ tasks:
args: ["xcode-analyze", "--ios", "--ios-min-version=13.0"]
- name: native test
script: script/tool_runner.sh
# Simulator name must match name in create_simulator.sh
args: ["native-test", "--ios", "--ios-destination", "platform=iOS Simulator,name=Flutter-iPhone,OS=16.4"]
# Simulator name and version must match name and version in create_simulator.sh
args: ["native-test", "--ios", "--ios-destination", "platform=iOS Simulator,name=Flutter-iPhone,OS=17.0"]
- name: boot simulator
# Ensure simulator is still booted
script: .ci/scripts/boot_simulator.sh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ tasks:
- name: update pods repo
script: .ci/scripts/update_pods.sh
infra_step: true # Note infra steps failing prevents "always" from running.
- name: Swift format
script: script/tool_runner.sh
# Non-Swift languages are formatted on Linux builders.
# Skip them on Mac builder to avoid duplication.
args: ["format", "--fail-on-change", "--no-dart", "--no-clang-format", "--no-kotlin", "--no-java" ]
always: true
- name: validate iOS and macOS podspecs
script: script/tool_runner.sh
args: ["podspec-check"]
always: true
9 changes: 8 additions & 1 deletion .ci/targets/repo_checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ tasks:
- name: prepare tool
script: .ci/scripts/prepare_tool.sh
infra_step: true # Note infra steps failing prevents "always" from running.
- name: tool unit tests
script: .ci/scripts/plugin_tools_tests.sh
- name: format
script: script/tool_runner.sh
args: ["format", "--fail-on-change"]
# Skip Swift formatting on Linux builders.
args: ["format", "--fail-on-change", "--no-swift"]
always: true
- name: license validation
script: script/tool_runner.sh
Expand Down Expand Up @@ -40,6 +43,10 @@ tasks:
script: script/tool_runner.sh
args: ["gradle-check"]
always: true
- name: Repository-level package metadata validation
script: script/tool_runner.sh
args: ["check-repo-package-info"]
always: true
- name: Dependabot coverage validation
script: script/tool_runner.sh
args: ["dependabot-check"]
Expand Down
3 changes: 2 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
- [ ] 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`.)
- [ ] I signed the [CLA].
- [ ] The title of the PR starts with the name of the package surrounded by square brackets, e.g. `[shared_preferences]`
- [ ] I listed at least one issue that this PR fixes in the description above.
- [ ] I [linked to at least one issue that this PR fixes] in the description above.
- [ ] I updated `pubspec.yaml` with an appropriate new version according to the [pub versioning philosophy], or this PR is [exempt from version changes].
- [ ] I updated `CHANGELOG.md` to add a description of the change, [following repository CHANGELOG style].
- [ ] I updated/added relevant documentation (doc comments with `///`).
Expand All @@ -28,6 +28,7 @@ If you need help, consider asking for advice on the #hackers-new channel on [Dis
[flutter/tests]: https://github.com/flutter/tests
[breaking change policy]: https://github.com/flutter/flutter/wiki/Tree-hygiene#handling-breaking-changes
[Discord]: https://github.com/flutter/flutter/wiki/Chat
[linked to at least one issue that this PR fixes]: https://github.com/flutter/flutter/wiki/Tree-hygiene#overview
[pub versioning philosophy]: https://dart.dev/tools/pub/versioning
[exempt from version changes]: https://github.com/flutter/flutter/wiki/Contributing-to-Plugins-and-Packages#version-and-changelog-updates
[following repository CHANGELOG style]: https://github.com/flutter/flutter/wiki/Contributing-to-Plugins-and-Packages#changelog-style
Expand Down
Loading

0 comments on commit 72a9988

Please sign in to comment.