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

Commit 41b8b8d

Browse files
committed
Merge remote-tracking branch 'upstream/main' into camx_pcp
2 parents 697c91a + 1c47c3b commit 41b8b8d

File tree

115 files changed

+525
-209
lines changed

Some content is hidden

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

115 files changed

+525
-209
lines changed

.ci/Dockerfile

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,40 @@
11
# The Flutter version is not important here, since the CI scripts update Flutter
22
# before running. What matters is that the base image is pinned to minimize
33
# unintended changes when modifying this file.
4-
FROM cirrusci/flutter@sha256:505fe8bce2896c75b4df9ccf500b1604155bf932af7465ffcc66fcae8612f82f
4+
# This is the hash for the 3.0.0 image.
5+
FROM cirrusci/flutter@sha256:0224587bba33241cf908184283ec2b544f1b672d87043ead1c00521c368cf844
56

67
RUN apt-get update -y
78

9+
# Set up Firebase Test Lab requirements.
810
RUN apt-get install -y --no-install-recommends gnupg
9-
10-
# Add repo for gcloud sdk and install it
1111
RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | \
1212
sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
13-
1413
RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | \
1514
sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
16-
1715
RUN apt-get update && apt-get install -y google-cloud-sdk && \
1816
gcloud config set core/disable_usage_reporting true && \
1917
gcloud config set component_manager/disable_update_check true
2018

21-
RUN yes | sdkmanager \
22-
"platforms;android-27" \
23-
"build-tools;27.0.3" \
24-
"extras;google;m2repository" \
25-
"extras;android;m2repository"
26-
27-
RUN yes | sdkmanager --licenses
28-
29-
# Install formatter.
19+
# Install formatter for C-based languages.
3020
RUN apt-get install -y clang-format
3121

32-
# Install xvfb to allow running headless
33-
RUN apt-get install -y xvfb libegl1-mesa
34-
# Install Linux desktop build tool requirements.
22+
# Install Linux desktop requirements:
23+
# - build tools.
3524
RUN apt-get install -y clang cmake ninja-build file pkg-config
36-
# Install necessary libraries.
25+
# - libraries.
3726
RUN apt-get install -y libgtk-3-dev libblkid-dev liblzma-dev libgcrypt20-dev
27+
# - xvfb to allow running headless.
28+
RUN apt-get install -y xvfb libegl1-mesa
3829

39-
# Add repo for Google Chrome and install it
30+
# Install Chrome and make it the default browser, for url_launcher tests.
31+
# IMPORTANT: Web tests should use a pinned version of Chromium, not this, since
32+
# this isn't pinned, so any time the docker image is re-created the version of
33+
# Chrome may change.
4034
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
4135
RUN echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | sudo tee /etc/apt/sources.list.d/google-chrome.list
4236
RUN apt-get update && apt-get install -y --no-install-recommends google-chrome-stable
43-
44-
# Make Chrome the default so http: and file: has a handler for url_launcher tests.
37+
# Make Chrome the default for http:, https: and file:.
4538
RUN apt-get install -y xdg-utils
4639
RUN xdg-settings set default-web-browser google-chrome.desktop
4740
RUN xdg-mime default google-chrome.desktop inode/directory

.ci/flutter_master.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
64f84f6a47d276e4d79cb10c203adbddeeeae336
1+
f57c2fe8ff4993fbe017d1f5fb7c7a4145d66492

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ jobs:
5050
run: |
5151
git config --global user.name ${{ secrets.USER_NAME }}
5252
git config --global user.email ${{ secrets.USER_EMAIL }}
53-
dart ./script/tool/lib/src/main.dart publish-plugin --all-changed --base-sha=HEAD~ --skip-confirmation --remote=origin
53+
dart ./script/tool/lib/src/main.dart publish --all-changed --base-sha=HEAD~ --skip-confirmation --remote=origin
5454
env: {PUB_CREDENTIALS: "${{ secrets.PUB_CREDENTIALS }}"}

.github/workflows/scorecards-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ jobs:
5050

5151
# Upload the results to GitHub's code scanning dashboard.
5252
- name: "Upload to code-scanning"
53-
uses: github/codeql-action/upload-sarif@904260d7d935dff982205cbdb42025ce30b7a34f
53+
uses: github/codeql-action/upload-sarif@86f3159a697a097a813ad9bfa0002412d97690a4
5454
with:
5555
sarif_file: results.sarif

analysis_options.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323

2424
analyzer:
2525
strong-mode:
26-
implicit-casts: false
27-
implicit-dynamic: false
26+
strict-casts: true
27+
strict-raw-types: true
2828
errors:
2929
# treat missing required parameters as a warning (not a hint)
3030
missing_required_param: warning
@@ -114,7 +114,7 @@ linter:
114114
# - constant_identifier_names # needs an opt-out https://github.com/dart-lang/linter/issues/204
115115
- control_flow_in_finally
116116
# - curly_braces_in_flow_control_structures # not required by flutter style
117-
# - depend_on_referenced_packages # LOCAL CHANGE - Needs to be enabled and violations fixed.
117+
- depend_on_referenced_packages
118118
- deprecated_consistency
119119
# - diagnostic_describe_all_properties # enabled only at the framework level (packages/flutter/lib)
120120
- directives_ordering

packages/camera/camera_android/example/pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ dependencies:
1414
# The example app is bundled with the plugin so we use a path dependency on
1515
# the parent directory to use the current plugin's version.
1616
path: ../
17+
camera_platform_interface: ^2.2.0
1718
flutter:
1819
sdk: flutter
1920
path_provider: ^2.0.0

packages/camera/camera_android_camerax/example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ dependencies:
1414
# The example app is bundled with the plugin so we use a path dependency on
1515
# the parent directory to use the current plugin's version.
1616
path: ../
17+
camera_platform_interface: ^2.2.0
1718
flutter:
1819
sdk: flutter
1920

@@ -25,4 +26,3 @@ dev_dependencies:
2526

2627
flutter:
2728
uses-material-design: true
28-

packages/camera/camera_avfoundation/example/pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ dependencies:
1414
# The example app is bundled with the plugin so we use a path dependency on
1515
# the parent directory to use the current plugin's version.
1616
path: ../
17+
camera_platform_interface: ^2.2.0
1718
flutter:
1819
sdk: flutter
1920
path_provider: ^2.0.0

packages/camera/camera_web/example/pubspec.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@ dependencies:
1010
sdk: flutter
1111

1212
dev_dependencies:
13+
async: ^2.5.0
14+
camera_platform_interface: ^2.1.0
1315
camera_web:
1416
path: ../
17+
cross_file: ^0.3.1
1518
flutter_driver:
1619
sdk: flutter
1720
flutter_test:

packages/camera/camera_windows/example/pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ dependencies:
1919
sdk: flutter
2020

2121
dev_dependencies:
22+
async: ^2.5.0
2223
flutter_test:
2324
sdk: flutter
2425
integration_test:

0 commit comments

Comments
 (0)