Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 2f53605

Browse files
authored
Merge branch 'flutter:main' into master
2 parents 9e41c1e + 945632e commit 2f53605

File tree

5,677 files changed

+864718
-209593
lines changed

Some content is hidden

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

5,677 files changed

+864718
-209593
lines changed

.ci.yaml

Lines changed: 464 additions & 0 deletions
Large diffs are not rendered by default.

.cirrus.yml

Lines changed: 0 additions & 63 deletions
This file was deleted.

.clang-tidy

Lines changed: 63 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,63 @@
1-
Checks: 'google-*'
1+
# A YAML format of https://clang.llvm.org/extra/clang-tidy/.
2+
3+
# Prefix check with "-" to ignore.
4+
Checks: >-
5+
bugprone-argument-comment,
6+
bugprone-use-after-move,
7+
bugprone-unchecked-optional-access,
8+
clang-analyzer-*,
9+
clang-diagnostic-*,
10+
darwin-*,
11+
google-*,
12+
modernize-use-default-member-init,
13+
objc-*,
14+
-objc-nsinvocation-argument-lifetime,
15+
readability-identifier-naming,
16+
-google-build-using-namespace,
17+
-google-default-arguments,
18+
-google-objc-global-variable-declaration,
19+
-google-objc-avoid-throwing-exception,
20+
-google-readability-casting,
21+
-clang-analyzer-nullability.NullPassedToNonnull,
22+
-clang-analyzer-nullability.NullablePassedToNonnull,
23+
-clang-analyzer-nullability.NullReturnedFromNonnull,
24+
-clang-analyzer-nullability.NullableReturnedFromNonnull,
25+
performance-for-range-copy,
26+
performance-inefficient-vector-operation,
27+
performance-move-const-arg,
28+
performance-move-constructor-init,
29+
performance-unnecessary-copy-initialization,
30+
performance-unnecessary-value-param
31+
32+
CheckOptions:
33+
- key: modernize-use-default-member-init.UseAssignment
34+
value: true
35+
- key: readability-identifier-naming.EnumConstantCase
36+
value: "CamelCase"
37+
- key: readability-identifier-naming.EnumConstantPrefix
38+
value: "k"
39+
- key: readability-identifier-naming.GlobalConstantCase
40+
value: "CamelCase"
41+
- key: readability-identifier-naming.GlobalConstantPrefix
42+
value: "k"
43+
- key: readability-identifier-naming.PrivateMemberCase
44+
value: "lower_case"
45+
- key: readability-identifier-naming.PrivateMemberSuffix
46+
value: "_"
47+
48+
# Intended to include (lint) all headers except:
49+
# ... those in ../../gen (generated files don't need to follow clang tidy)
50+
# ... those in flutter/third_party (we didn't author this code, it's a dep)
51+
#
52+
# Unfortunately Clang Tidy uses an ancient version of regular expressions
53+
# without lookaheads, so the next best thing is to write out every directory
54+
# except third_party.
55+
#
56+
# If we ever add a new root directory, we'll have to update this expression.
57+
#
58+
# See the test in ./tools/clang_tidy/test/header_filter_regex_test.dart which
59+
# should theoretically catch if new directories are added but this regex is not
60+
# updated.
61+
#
62+
# tl;dr: I'm sorry.
63+
HeaderFilterRegex: "[..\/]+\/flutter\/(assets|benchmarking|build|ci|common|display_list|docs|examples|flow|flutter_frontend_server|flutter_vma|fml|impeller|lib|runtime|shell|skia|sky|testing|tools|vulkan|wasm|web_sdk)\/.*"

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 19 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,30 @@
1-
## Description
1+
*Replace this paragraph with a description of what this PR is changing or adding, and why. Consider including before/after screenshots.*
22

3-
*Replace this paragraph with a description of what this PR is doing. If you're
4-
modifying existing behavior, describe the existing behavior, how this PR is
5-
changing it, and what motivated the change.*
3+
*List which issues are fixed by this PR. You must list at least one issue.*
64

7-
## Related Issues
5+
*If you had to change anything in the [flutter/tests] repo, include a link to the migration guide as per the [breaking change policy].*
86

9-
*Replace this paragraph with a list of issues related to this PR from our [issue
10-
database]. Indicate, which of these issues are resolved or fixed by this PR.
11-
There should be at least one issue listed here.*
7+
## Pre-launch Checklist
128

13-
## Tests
14-
15-
I added the following tests:
16-
17-
*Replace this with a list of the tests that you added as part of this PR. A
18-
change in behaviour with no test covering it will likely get reverted
19-
accidentally sooner or later. PRs must include tests for all
20-
changed/updated/fixed behaviors. See [testing the engine] for instructions on
21-
writing and running engine tests.*
22-
23-
## Checklist
24-
25-
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (`[x]`). This will ensure a smooth and quick review process.
26-
27-
- [ ] I read the [contributor guide] and followed the process outlined there for submitting PRs.
9+
- [ ] I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
10+
- [ ] I read the [Tree Hygiene] wiki page, which explains my responsibilities.
11+
- [ ] I read and followed the [Flutter Style Guide] and the [C++, Objective-C, Java style guides].
12+
- [ ] I listed at least one issue that this PR fixes in the description above.
13+
- [ ] I added new tests to check the change I am making or feature I am adding, or the PR is [test-exempt]. See [testing the engine] for instructions on writing and running engine tests.
14+
- [ ] I updated/added relevant documentation (doc comments with `///`).
2815
- [ ] I signed the [CLA].
29-
- [ ] I read and followed the [C++, Objective-C, Java style guides] for the engine.
30-
- [ ] I read the [tree hygiene] wiki page, which explains my responsibilities.
31-
- [ ] I updated/added relevant documentation.
3216
- [ ] All existing and new tests are passing.
33-
- [ ] I am willing to follow-up on review comments in a timely manner.
34-
35-
36-
## Reviewer Checklist
37-
38-
- [ ] I have submitted any presubmit flakes in this PR using the [engine presubmit flakes form] before re-triggering the failure.
39-
40-
41-
## Breaking Change
42-
43-
Did any tests fail when you ran them? Please read [handling breaking changes].
4417

45-
- [ ] No, no existing tests failed, so this is *not* a breaking change.
46-
- [ ] Yes, this is a breaking change. *If not, delete the remainder of this section.*
47-
- [ ] I wrote a design doc: https://flutter.dev/go/template *Replace this with a link to your design doc's short link*
48-
- [ ] I got input from the developer relations team, specifically from: *Replace with the names of who gave advice*
49-
- [ ] I wrote a migration guide: https://flutter.dev/go/breaking-changes-template *Replace this with a link to a pull request that adds the migration guide to https://flutter.dev/docs/release/breaking-changes*
18+
If you need help, consider asking for advice on the #hackers-new channel on [Discord].
5019

5120
<!-- Links -->
52-
[issue database]: https://github.com/flutter/flutter/issues
53-
[contributor guide]: https://github.com/flutter/flutter/wiki/Tree-hygiene#overview
21+
[Contributor Guide]: https://github.com/flutter/flutter/wiki/Tree-hygiene#overview
22+
[Tree Hygiene]: https://github.com/flutter/flutter/wiki/Tree-hygiene
23+
[test-exempt]: https://github.com/flutter/flutter/wiki/Tree-hygiene#tests
24+
[Flutter Style Guide]: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo
25+
[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
5426
[testing the engine]: https://github.com/flutter/flutter/wiki/Testing-the-engine
55-
[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/master/CONTRIBUTING.md#style
5627
[CLA]: https://cla.developers.google.com/
57-
[tree hygiene]: https://github.com/flutter/flutter/wiki/Tree-hygiene
58-
[handling breaking changes]: https://github.com/flutter/flutter/wiki/Tree-hygiene#handling-breaking-changes
59-
[engine presubmit flakes form]: https://forms.gle/Wc1VyFRYJjQTH6w5A
28+
[flutter/tests]: https://github.com/flutter/tests
29+
[breaking change policy]: https://github.com/flutter/flutter/wiki/Tree-hygiene#handling-breaking-changes
30+
[Discord]: https://github.com/flutter/flutter/wiki/Chat

.github/dependabot.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# See Dependabot documentation for all configuration options:
2+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
3+
4+
version: 2
5+
updates:
6+
- package-ecosystem: "github-actions"
7+
directory: "/"
8+
schedule:
9+
interval: "weekly"
10+
time: "22:00" # 10 PM MTV
11+
timezone: "America/Los_Angeles"
12+
labels:
13+
- "autosubmit"
14+
ignore:
15+
# ignore patch versions, just rely on minor in order to update fewer times
16+
- dependency-name: "github/codeql-action"
17+
update-types: ["version-update:semver-minor"]
18+
- package-ecosystem: "pub"
19+
directory: "/lib/web_ui"
20+
schedule:
21+
interval: "daily"
22+
labels:
23+
- "autosubmit"

.github/labeler.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Copyright 2013 The Flutter Authors. All rights reserved.
2+
# Use of this source code is governed by a BSD-style license that can be
3+
# found in the LICENSE file.
4+
5+
# See https://github.com/actions/labeler/blob/main/README.md for docs.
6+
'affects: desktop':
7+
- changed-files:
8+
- any-glob-to-any-file:
9+
- shell/platform/darwin/common/**/*
10+
- shell/platform/darwin/macos/**/*
11+
- shell/platform/linux/**/*
12+
- shell/platform/windows/**/*
13+
14+
embedder:
15+
- changed-files:
16+
- any-glob-to-any-file:
17+
- shell/platform/embedder
18+
19+
'e: impeller':
20+
- changed-files:
21+
- any-glob-to-any-file:
22+
- impeller/**/*
23+
24+
platform-android:
25+
- changed-files:
26+
- any-glob-to-any-file:
27+
- shell/platform/android/**/*
28+
29+
platform-ios:
30+
- changed-files:
31+
- any-glob-to-any-file:
32+
- shell/platform/darwin/common/**/*
33+
- shell/platform/darwin/ios/**/*
34+
35+
platform-fuchsia:
36+
- changed-files:
37+
- any-glob-to-any-file:
38+
- shell/platform/fuchsia/**/*
39+
40+
platform-linux:
41+
- changed-files:
42+
- any-glob-to-any-file:
43+
- shell/platform/linux/**/*
44+
45+
platform-macos:
46+
- changed-files:
47+
- any-glob-to-any-file:
48+
- shell/platform/darwin/common/**/*
49+
- shell/platform/darwin/macos/**/*
50+
51+
platform-web:
52+
- changed-files:
53+
- any-glob-to-any-file:
54+
- lib/web_ui/**/*
55+
- '**/web_sdk/**/*'
56+
57+
platform-windows:
58+
- changed-files:
59+
- any-glob-to-any-file:
60+
- shell/platform/windows/**/*

.github/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
changelog:
2+
exclude:
3+
authors:
4+
- skia-flutter-autoroll
5+
- dependabot
6+
categories:
7+
- title: Impeller
8+
labels:
9+
- "e: impeller"
10+
- title: Android
11+
labels:
12+
- platform-android
13+
- title: iOS
14+
labels:
15+
- platform-ios
16+
- title: Web
17+
labels:
18+
- platform-web
19+
- title: Desktop
20+
labels:
21+
- platform-windows
22+
- platform-macos
23+
- title: Other Changes
24+
labels:
25+
- "*"

.github/workflows/labeler.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright 2013 The Flutter Authors. All rights reserved.
2+
# Use of this source code is governed by a BSD-style license that can be
3+
# found in the LICENSE file.
4+
5+
name: "Pull Request Labeler"
6+
on:
7+
- pull_request_target
8+
9+
# Declare default permissions as read only.
10+
permissions: read-all
11+
12+
jobs:
13+
triage:
14+
if: ${{ github.repository == 'flutter/engine' }}
15+
permissions:
16+
pull-requests: write
17+
runs-on: ubuntu-latest
18+
steps:
19+
# Source available at https://github.com/actions/labeler/blob/main/README.md
20+
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Scorecards supply-chain security
2+
on:
3+
# Only the default branch is supported.
4+
branch_protection_rule:
5+
push:
6+
branches: [ main ]
7+
8+
# Declare default permissions as read only.
9+
permissions: read-all
10+
11+
jobs:
12+
scorecards:
13+
name: Scorecards analysis
14+
runs-on: ubuntu-latest
15+
if: ${{ github.repository == 'flutter/engine' }}
16+
permissions:
17+
# Needed to upload the results to code-scanning dashboard.
18+
security-events: write
19+
actions: read
20+
contents: read
21+
# Needed to access OIDC token.
22+
id-token: write
23+
steps:
24+
- name: "Checkout code"
25+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
26+
with:
27+
persist-credentials: false
28+
- name: "Run analysis"
29+
uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736
30+
with:
31+
results_file: results.sarif
32+
results_format: sarif
33+
# Read-only PAT token. To create it,
34+
# follow the steps in https://github.com/ossf/scorecard-action#pat-token-creation.
35+
repo_token: ${{ secrets.SCORECARD_READ_TOKEN }}
36+
# Publish the results to enable scorecard badges. For more details, see
37+
# https://github.com/ossf/scorecard-action#publishing-results.
38+
# For private repositories, `publish_results` will automatically be set to `false`,
39+
# regardless of the value entered here.
40+
publish_results: true
41+
42+
# Upload the results as artifacts (optional).
43+
- name: "Upload artifact"
44+
uses: actions/upload-artifact@1eb3cb2b3e0f29609092a73eb033bb759a334595
45+
with:
46+
name: SARIF file
47+
path: results.sarif
48+
retention-days: 5
49+
50+
# Upload the results to GitHub's code scanning dashboard.
51+
- name: "Upload to code-scanning"
52+
uses: github/codeql-action/upload-sarif@cdcdbb579706841c47f7063dda365e292e5cad7a
53+
with:
54+
sarif_file: results.sarif

0 commit comments

Comments
 (0)