Skip to content

Commit 7c1d1f8

Browse files
committed
Merge remote-tracking branch 'upstream/main' into camx_def
2 parents 6849640 + f1ca81a commit 7c1d1f8

File tree

108 files changed

+1281
-555
lines changed

Some content is hidden

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

108 files changed

+1281
-555
lines changed

.ci.yaml

Lines changed: 0 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -394,17 +394,13 @@ targets:
394394
"CHANNEL": "stable"
395395
}
396396
397-
# All of the Linux_android android_platform_tests shards have the same
398-
# dependency list, despite some running on Android 33 AVDs versus 34.
399-
# See https://github.com/flutter/flutter/issues/137082 for context.
400397
- name: Linux_android android_platform_tests_shard_1 master
401398
recipe: packages/packages
402399
timeout: 60
403400
properties:
404401
target_file: android_platform_tests.yaml
405402
channel: master
406403
version_file: flutter_master.version
407-
# set up for 34
408404
package_sharding: "--shardIndex 0 --shardCount 6"
409405
dependencies: >-
410406
[
@@ -423,7 +419,6 @@ targets:
423419
target_file: android_platform_tests.yaml
424420
channel: master
425421
version_file: flutter_master.version
426-
# set up for 34
427422
package_sharding: "--shardIndex 1 --shardCount 6"
428423
dependencies: >-
429424
[
@@ -442,7 +437,6 @@ targets:
442437
target_file: android_platform_tests.yaml
443438
channel: master
444439
version_file: flutter_master.version
445-
# set up for 34
446440
package_sharding: "--shardIndex 2 --shardCount 6"
447441
dependencies: >-
448442
[
@@ -461,7 +455,6 @@ targets:
461455
target_file: android_platform_tests.yaml
462456
channel: master
463457
version_file: flutter_master.version
464-
# set up for 34
465458
package_sharding: "--shardIndex 3 --shardCount 6"
466459
dependencies: >-
467460
[
@@ -480,7 +473,6 @@ targets:
480473
target_file: android_platform_tests.yaml
481474
channel: master
482475
version_file: flutter_master.version
483-
# set up for 34
484476
package_sharding: "--shardIndex 4 --shardCount 6"
485477
dependencies: >-
486478
[
@@ -499,7 +491,6 @@ targets:
499491
target_file: android_platform_tests.yaml
500492
channel: master
501493
version_file: flutter_master.version
502-
# set up for 34
503494
package_sharding: "--shardIndex 5 --shardCount 6"
504495
dependencies: >-
505496
[
@@ -511,44 +502,6 @@ targets:
511502
"PACKAGE_SHARDING": "--shardIndex 5 --shardCount 6"
512503
}
513504
514-
- name: Linux_android android_platform_tests_api_33_shard_1 master
515-
recipe: packages/packages
516-
timeout: 60
517-
properties:
518-
target_file: android_platform_tests_api_33_avd.yaml
519-
channel: master
520-
version_file: flutter_master.version
521-
# set up for 33
522-
package_sharding: "--shardIndex 0 --shardCount 2"
523-
dependencies: >-
524-
[
525-
{"dependency": "android_virtual_device", "version": "android_33_google_apis_x64.textpb"}
526-
]
527-
env_variables: >-
528-
{
529-
"CHANNEL": "master",
530-
"PACKAGE_SHARDING": "--shardIndex 0 --shardCount 2"
531-
}
532-
533-
- name: Linux_android android_platform_tests_api_33_shard_2 master
534-
recipe: packages/packages
535-
timeout: 60
536-
properties:
537-
target_file: android_platform_tests_api_33_avd.yaml
538-
channel: master
539-
version_file: flutter_master.version
540-
# set up for 33
541-
package_sharding: "--shardIndex 1 --shardCount 2"
542-
dependencies: >-
543-
[
544-
{"dependency": "android_virtual_device", "version": "android_33_google_apis_x64.textpb"}
545-
]
546-
env_variables: >-
547-
{
548-
"CHANNEL": "master",
549-
"PACKAGE_SHARDING": "--shardIndex 1 --shardCount 2"
550-
}
551-
552505
- name: Linux_android android_platform_tests_shard_1 stable
553506
recipe: packages/packages
554507
presubmit: false
@@ -663,42 +616,6 @@ targets:
663616
"PACKAGE_SHARDING": "--shardIndex 5 --shardCount 6"
664617
}
665618
666-
- name: Linux_android android_platform_tests_api_33_shard_1 stable
667-
recipe: packages/packages
668-
timeout: 60
669-
properties:
670-
target_file: android_platform_tests_api_33_avd.yaml
671-
channel: stable
672-
version_file: flutter_stable.version
673-
package_sharding: "--shardIndex 0 --shardCount 2"
674-
dependencies: >-
675-
[
676-
{"dependency": "android_virtual_device", "version": "android_33_google_apis_x64.textpb"}
677-
]
678-
env_variables: >-
679-
{
680-
"CHANNEL": "stable",
681-
"PACKAGE_SHARDING": "--shardIndex 0 --shardCount 2"
682-
}
683-
684-
- name: Linux_android android_platform_tests_api_33_shard_2 stable
685-
recipe: packages/packages
686-
timeout: 60
687-
properties:
688-
target_file: android_platform_tests_api_33_avd.yaml
689-
channel: stable
690-
version_file: flutter_stable.version
691-
package_sharding: "--shardIndex 1 --shardCount 2"
692-
dependencies: >-
693-
[
694-
{"dependency": "android_virtual_device", "version": "android_33_google_apis_x64.textpb"}
695-
]
696-
env_variables: >-
697-
{
698-
"CHANNEL": "stable",
699-
"PACKAGE_SHARDING": "--shardIndex 1 --shardCount 2"
700-
}
701-
702619
- name: Linux_android_legacy android_platform_tests_legacy_api_shard_1 master
703620
recipe: packages/packages
704621
timeout: 60

.ci/flutter_master.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7920a52dd5680651118312f9be0600797ff2257e
1+
2bfb1b0e2f611173b0712856a42308b4977dc516

.ci/targets/android_platform_tests.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,23 @@ tasks:
55
- name: download Dart and Android deps
66
script: .ci/scripts/tool_runner.sh
77
infra_step: true
8-
args: ["fetch-deps", "--android", "--supporting-target-platforms-only", "--exclude=script/configs/still_requires_api_33_avd.yaml"]
8+
args: ["fetch-deps", "--android", "--supporting-target-platforms-only"]
99
- name: build examples
1010
script: .ci/scripts/tool_runner.sh
11-
args: ["build-examples", "--apk", "--exclude=script/configs/still_requires_api_33_avd.yaml"]
11+
args: ["build-examples", "--apk"]
1212
- name: lint
1313
script: .ci/scripts/tool_runner.sh
14-
args: ["lint-android", "--exclude=script/configs/still_requires_api_33_avd.yaml"]
14+
args: ["lint-android"]
1515
# Native unit and native integration are split into two steps to allow for
1616
# different exclusions.
1717
# TODO(stuartmorgan): Eliminate the native unit test exclusion, and combine
1818
# these steps.
1919
- name: native unit tests
2020
script: .ci/scripts/tool_runner.sh
21-
args: ["native-test", "--android", "--no-integration", "--exclude=script/configs/exclude_native_unit_android.yaml,script/configs/still_requires_api_33_avd.yaml"]
21+
args: ["native-test", "--android", "--no-integration", "--exclude=script/configs/exclude_native_unit_android.yaml"]
2222
- name: native integration tests
2323
script: .ci/scripts/tool_runner.sh
24-
args: ["native-test", "--android", "--no-unit", "--exclude=script/configs/still_requires_api_33_avd.yaml"]
24+
args: ["native-test", "--android", "--no-unit"]
2525
- name: drive examples
2626
script: .ci/scripts/tool_runner.sh
27-
args: ["drive-examples", "--android", "--exclude=script/configs/exclude_integration_android.yaml,script/configs/exclude_integration_android_emulator.yaml,script/configs/still_requires_api_33_avd.yaml"]
27+
args: ["drive-examples", "--android", "--exclude=script/configs/exclude_integration_android.yaml,script/configs/exclude_integration_android_emulator.yaml"]

.ci/targets/android_platform_tests_api_33_avd.yaml

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

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@
1212

1313
pubspec.lock
1414

15+
# iOS and macOS dependencies
16+
.build/
1517
Podfile.lock
1618
Pods/
19+
.swiftpm/
1720
.symlinks/
1821

1922
*instrumentscli*.trace

packages/camera/camera_android_camerax/CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
1-
## 0.6.4+2
1+
## 0.6.5+1
22

33
* Updates `README.md` to reflect the fact that the `camera_android_camerax` camera plugin implementation
44
is the endorsed Android implementation for `camera: ^0.11.0`.
55

6+
## 0.6.5
7+
8+
* Modifies `stopVideoRecording` to ensure that the method only returns when CameraX reports that the
9+
recorded video finishes saving to a file.
10+
* Modifies `startVideoCapturing` to ensure that the method only returns when CameraX reports that
11+
video recording has started.
12+
* Adds empty implementation for `setDescriptionWhileRecording` and leaves a todo to add this feature.
13+
614
## 0.6.4+1
715

816
* Adds empty implementation for `prepareForVideoRecording` since this optimization is not used on Android.

packages/camera/camera_android_camerax/README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The Android implementation of [`camera`][1] built with the [CameraX library][2].
55
*Note*: If any of [the limitations](#limitations) prevent you from using
66
using `camera_android_camerax` or if you run into any problems, please report
77
report these issues under [`flutter/flutter`][5] with `[camerax]` in the title.
8-
You may also opt back into the [`camera_android`][6] implementation if you need.
8+
You may also opt back into the [`camera_android`][9] implementation if you need.
99

1010
## Usage
1111

@@ -34,6 +34,10 @@ use cases, the plugin behaves according to the following:
3434
video recording and image streaming is supported, but concurrent video recording, image
3535
streaming, and image capture is not supported.
3636

37+
### `setDescriptionWhileRecording` is unimplemented [Issue #148013][148013]
38+
`setDescriptionWhileRecording`, used to switch cameras while recording video, is currently unimplemented
39+
due to this not currently being supported by CameraX.
40+
3741
### 240p resolution configuration for video recording
3842

3943
240p resolution configuration for video recording is unsupported by CameraX, and thus,
@@ -58,4 +62,8 @@ For more information on contributing to this plugin, see [`CONTRIBUTING.md`](CON
5862
[3]: https://flutter.dev/docs/development/packages-and-plugins/developing-packages#endorsed-federated-plugin
5963
[4]: https://pub.dev/packages/camera_android
6064
[5]: https://github.com/flutter/flutter/issues/new/choose
61-
[6]: https://pub.dev/packages/camera_android#usage
65+
[6]: https://developer.android.com/media/camera/camerax/architecture#combine-use-cases
66+
[7]: https://developer.android.com/reference/android/hardware/camera2/CameraMetadata#INFO_SUPPORTED_HARDWARE_LEVEL_3
67+
[8]: https://developer.android.com/reference/android/hardware/camera2/CameraMetadata#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED
68+
[9]: https://pub.dev/packages/camera_android#usage
69+
[148013]: https://github.com/flutter/flutter/issues/148013

0 commit comments

Comments
 (0)