Skip to content

Commit f7e344d

Browse files
Merge branch 'main' into path-provider-foundation-ffi-rerelease
2 parents d929c97 + 98b0325 commit f7e344d

File tree

193 files changed

+44663
-14279
lines changed

Some content is hidden

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

193 files changed

+44663
-14279
lines changed

.ci/flutter_master.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
13b2b912c9095fe33924f0f073a6f5c9973ab139
1+
793b0b89e82ed5b198aaac2cdc889997b18d9313

.ci/flutter_stable.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
66dd93f9a27ffe2a9bfc8297506ce066ff51265f
1+
8b872868494e429d94fa06dca855c306438b22c0

.gemini/config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ code_review:
1111
# These tend to be verbose, and since we expect PR authors to clearly
1212
# describe their PRs this would be at best duplicative.
1313
summary: false
14+
include_drafts: false
1415
ignore_patterns:
1516
- .ci/flutter_master.version
1617
- .ci/flutter_stable.version

.github/workflows/batch_release_pr.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: "Creates Batch Release for a Package"
22

33
on:
44
repository_dispatch:
5-
types: [batch_release_pr]
5+
types: [batch-release-pr]
66

77
jobs:
88
create_release_pr:
@@ -12,6 +12,8 @@ jobs:
1212
steps:
1313
- name: checkout repository
1414
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
15+
- name: "Install Flutter"
16+
uses: ./.github/workflows/internals/install_flutter
1517
- name: Set up tools
1618
run: dart pub get
1719
working-directory: ${{ github.workspace }}/script/tool
@@ -34,7 +36,7 @@ jobs:
3436
3537
- name: Create batch release PR
3638
if: steps.check-branch-exists.outputs.exists == 'true'
37-
uses: peter-evans/create-pull-request@4320041ed380b20e97d388d56a7fb4f9b8c20e79
39+
uses: peter-evans/create-pull-request@98357b18bf14b5342f975ff684046ec3b2a07725
3840
with:
3941
token: ${{ secrets.GITHUB_TOKEN }}
4042
commit-message: "[${{ github.event.client_payload.package }}] Batch release"

.github/workflows/go_router_batch.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ on:
1010
jobs:
1111
dispatch_release_pr:
1212
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
1315
steps:
1416
- name: Repository Dispatch
1517
uses: peter-evans/repository-dispatch@5fc4efd1a4797ddb68ffd0714a238564e4cc0e6f
1618
with:
17-
token: "${{ secrets.GITHUB_TOKEN }}"
18-
event-type: batch_release_pr
19+
event-type: batch-release-pr
1920
client-payload: '{"package": "go_router"}'
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: "Install Flutter"
2+
description: "Installs a pinned version of Flutter"
3+
runs:
4+
using: "composite"
5+
steps:
6+
- name: "Install Flutter"
7+
# This uses a pinned version of Flutter rather than `stable` so that it is
8+
# not subject to out-of-band failures when new releases happen. It does
9+
# not use the auto-rolled pin because there's no way for the autoroller
10+
# to test the actual release flow, so changes would still show up in
11+
# post-submit. A manually-rolled pin means that any changes here must be
12+
# made deliberately, so that the person updating it knows to watch the
13+
# next actual auto-release to ensure that it works, and knows to revert
14+
# the change if it doesn't.
15+
shell: bash
16+
run: |
17+
cd $HOME
18+
git clone https://github.com/flutter/flutter.git --depth 1 -b 3.38.5 _flutter
19+
echo "$HOME/_flutter/bin" >> $GITHUB_PATH
20+
cd $GITHUB_WORKSPACE

.github/workflows/release.yml

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,29 +16,13 @@ jobs:
1616
contents: write
1717
runs-on: ubuntu-latest
1818
steps:
19-
- name: "Install Flutter"
20-
# Github Actions don't support templates so it is hard to share this snippet with another action
21-
# If we eventually need to use this in more workflow, we could create a shell script that contains this
22-
# snippet.
23-
#
24-
# This uses a pinned version of Flutter rather than `stable` so that it is
25-
# not subject to out-of-band failures when new releases happen. It does
26-
# not use the auto-rolled pin because there's no way for the autoroller
27-
# to test the actual release flow, so changes would still show up in
28-
# post-submit. A manually-rolled pin means that any changes here must be
29-
# made deliberately, so that the person updating it knows to watch the
30-
# next actual auto-release to ensure that it works, and knows to revert
31-
# the change if it doesn't.
32-
run: |
33-
cd $HOME
34-
git clone https://github.com/flutter/flutter.git --depth 1 -b 3.38.5 _flutter
35-
echo "$HOME/_flutter/bin" >> $GITHUB_PATH
36-
cd $GITHUB_WORKSPACE
3719
# Checks out a copy of the repo.
3820
- name: Check out code
3921
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
4022
with:
4123
fetch-depth: 0 # Fetch all history so the tool can get all the tags to determine version.
24+
- name: "Install Flutter"
25+
uses: ./.github/workflows/internals/install_flutter
4226
- name: Set up tools
4327
run: dart pub get
4428
working-directory: ${{ github.workspace }}/script/tool

packages/camera/camera_android_camerax/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## 0.6.27
2+
3+
* Changes `availableCameras` to get the camera name from `Camera2CameraInfo.getCameraId`.
4+
5+
## 0.6.26+3
6+
7+
* Bumps kotlin_version to 2.3.0.
8+
19
## 0.6.26+2
210

311
* Updates pigeon generation to prevent crash when objects call to Dart after a hot restart.

packages/camera/camera_android_camerax/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ group = 'io.flutter.plugins.camerax'
22
version = '1.0'
33

44
buildscript {
5-
ext.kotlin_version = '2.2.21'
5+
ext.kotlin_version = '2.3.0'
66
repositories {
77
google()
88
mavenCentral()

packages/camera/camera_android_camerax/lib/src/android_camera_camerax.dart

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,6 @@ class AndroidCameraCameraX extends CameraPlatform {
303303
(await processCameraProvider!.getAvailableCameraInfos()).cast();
304304

305305
CameraLensDirection? cameraLensDirection;
306-
var cameraCount = 0;
307306
int? cameraSensorOrientation;
308307
String? cameraName;
309308

@@ -324,13 +323,12 @@ class AndroidCameraCameraX extends CameraPlatform {
324323
}
325324

326325
cameraSensorOrientation = cameraInfo.sensorRotationDegrees;
327-
cameraName = 'Camera $cameraCount';
328-
cameraCount++;
326+
cameraName = await Camera2CameraInfo.from(
327+
cameraInfo: cameraInfo,
328+
).getCameraId();
329329

330330
_savedCameras[cameraName] = cameraInfo;
331331

332-
// TODO(camsim99): Use camera ID retrieved from Camera2CameraInfo as
333-
// camera name: https://github.com/flutter/flutter/issues/147545.
334332
cameraDescriptions.add(
335333
CameraDescription(
336334
name: cameraName,

0 commit comments

Comments
 (0)