Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
dad18b9
add lens type info to camera plugin [ios-only]
lenzpaul Mar 6, 2025
a53858b
run pigeon generator
lenzpaul Mar 6, 2025
6b8fa07
Update tests
lenzpaul Mar 6, 2025
e0c743a
updated versions and Changelogs
lenzpaul Mar 6, 2025
78fbe47
adds dependency_overrides for federated plugin PR
lenzpaul Mar 6, 2025
2248a71
Add lens type information to camera plugin tests
lenzpaul Mar 6, 2025
0bbfd07
Add iOS version checks ensuring API availability for camera device types
lenzpaul Mar 6, 2025
5e347d7
Apply formatting fixes
lenzpaul Mar 6, 2025
989a270
created helper function for lens direction and type
lenzpaul Mar 6, 2025
ba8263a
Change lens type enum to only use UltraWide, Wide, and Telephoto
lenzpaul Mar 6, 2025
ae66e57
run pigeon gen and applied flutter_plugin_tools.dart formatting
lenzpaul Mar 6, 2025
ec472d7
Update CHANGELOG and Fix CI errors
lenzpaul Mar 6, 2025
9540ef7
Fix formatting for CI
lenzpaul Mar 6, 2025
5a3db31
Refactor camera lens direction and type handling in CameraPlugin
lenzpaul Mar 6, 2025
39aac3c
Fix documentation for camera lens type descriptions in messages.dart …
lenzpaul Mar 6, 2025
ec7f8f2
run format script
lenzpaul Mar 6, 2025
16f9fc4
Remove unnecessary pubspec changes
lenzpaul Mar 6, 2025
d2404a6
Remove temporary dependency overrides from pubspec.yaml files
lenzpaul Mar 6, 2025
697c023
Remove Runner changes
lenzpaul Mar 6, 2025
8aed9ea
Updates versions and CHANGELOGs. Runs pigeon generator
lenzpaul Mar 6, 2025
119beaa
Revert implementation changes in camera_avfoundation
lenzpaul Mar 6, 2025
e338f6f
Revert changes in camera pkg
lenzpaul Mar 6, 2025
93e2484
Updates CameraDescription tests to add toString and include lensType
lenzpaul Mar 7, 2025
77fe9da
Minor changelog adjustments
stuartmorgan-g Mar 7, 2025
8348878
Merge branch 'main' into camera_package_patch_2
stuartmorgan-g Mar 25, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
run pigeon gen and applied flutter_plugin_tools.dart formatting
  • Loading branch information
lenzpaul committed Mar 6, 2025
commit ae66e5773defb0a28680aa09d85d1bdee9b1f594
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Autogenerated from Pigeon (v22.4.2), do not edit directly.
// Autogenerated from Pigeon (v22.7.0), do not edit directly.
// See also: https://pub.dev/packages/pigeon

#import <Foundation/Foundation.h>
Expand Down Expand Up @@ -287,6 +287,7 @@ extern void SetUpFCPCameraApi(id<FlutterBinaryMessenger> binaryMessenger, NSObje

extern void SetUpFCPCameraApiWithSuffix(id<FlutterBinaryMessenger> binaryMessenger, NSObject<FCPCameraApi> *_Nullable api, NSString *messageChannelSuffix);


/// Handler for native callbacks that are not tied to a specific camera ID.
@interface FCPCameraGlobalEventApi : NSObject
- (instancetype)initWithBinaryMessenger:(id<FlutterBinaryMessenger>)binaryMessenger;
Expand All @@ -295,6 +296,7 @@ extern void SetUpFCPCameraApiWithSuffix(id<FlutterBinaryMessenger> binaryMesseng
- (void)deviceOrientationChangedOrientation:(FCPPlatformDeviceOrientation)orientation completion:(void (^)(FlutterError *_Nullable))completion;
@end


/// Handler for native callbacks that are tied to a specific camera ID.
///
/// This is intended to be initialized with the camera ID as a suffix.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Autogenerated from Pigeon (v22.4.2), do not edit directly.
// Autogenerated from Pigeon (v22.7.0), do not edit directly.
// See also: https://pub.dev/packages/pigeon

#import "messages.g.h"
#import "./include/camera_avfoundation/messages.g.h"

#if TARGET_OS_OSX
#import <FlutterMacOS/FlutterMacOS.h>
Expand Down Expand Up @@ -376,7 +376,7 @@ - (nullable id)readValueOfType:(UInt8)type {
return [FCPPlatformMediaSettings fromList:[self readValue]];
case 140:
return [FCPPlatformPoint fromList:[self readValue]];
case 141:
case 142:
return [FCPPlatformSize fromList:[self readValue]];
default:
return [super readValueOfType:type];
Expand All @@ -392,48 +392,52 @@ - (void)writeValue:(id)value {
FCPPlatformCameraLensDirectionBox *box = (FCPPlatformCameraLensDirectionBox *)value;
[self writeByte:129];
[self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])];
} else if ([value isKindOfClass:[FCPPlatformCameraLensTypeBox class]]) {
FCPPlatformCameraLensTypeBox *box = (FCPPlatformCameraLensTypeBox *)value;
[self writeByte:130];
[self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])];
} else if ([value isKindOfClass:[FCPPlatformDeviceOrientationBox class]]) {
FCPPlatformDeviceOrientationBox *box = (FCPPlatformDeviceOrientationBox *)value;
[self writeByte:130];
[self writeByte:131];
[self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])];
} else if ([value isKindOfClass:[FCPPlatformExposureModeBox class]]) {
FCPPlatformExposureModeBox *box = (FCPPlatformExposureModeBox *)value;
[self writeByte:131];
[self writeByte:132];
[self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])];
} else if ([value isKindOfClass:[FCPPlatformFlashModeBox class]]) {
FCPPlatformFlashModeBox *box = (FCPPlatformFlashModeBox *)value;
[self writeByte:132];
[self writeByte:133];
[self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])];
} else if ([value isKindOfClass:[FCPPlatformFocusModeBox class]]) {
FCPPlatformFocusModeBox *box = (FCPPlatformFocusModeBox *)value;
[self writeByte:133];
[self writeByte:134];
[self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])];
} else if ([value isKindOfClass:[FCPPlatformImageFileFormatBox class]]) {
FCPPlatformImageFileFormatBox *box = (FCPPlatformImageFileFormatBox *)value;
[self writeByte:134];
[self writeByte:135];
[self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])];
} else if ([value isKindOfClass:[FCPPlatformImageFormatGroupBox class]]) {
FCPPlatformImageFormatGroupBox *box = (FCPPlatformImageFormatGroupBox *)value;
[self writeByte:135];
[self writeByte:136];
[self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])];
} else if ([value isKindOfClass:[FCPPlatformResolutionPresetBox class]]) {
FCPPlatformResolutionPresetBox *box = (FCPPlatformResolutionPresetBox *)value;
[self writeByte:136];
[self writeByte:137];
[self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])];
} else if ([value isKindOfClass:[FCPPlatformCameraDescription class]]) {
[self writeByte:137];
[self writeByte:138];
[self writeValue:[value toList]];
} else if ([value isKindOfClass:[FCPPlatformCameraState class]]) {
[self writeByte:138];
[self writeByte:139];
[self writeValue:[value toList]];
} else if ([value isKindOfClass:[FCPPlatformMediaSettings class]]) {
[self writeByte:139];
[self writeByte:140];
[self writeValue:[value toList]];
} else if ([value isKindOfClass:[FCPPlatformPoint class]]) {
[self writeByte:140];
[self writeByte:141];
[self writeValue:[value toList]];
} else if ([value isKindOfClass:[FCPPlatformSize class]]) {
[self writeByte:141];
[self writeByte:142];
[self writeValue:[value toList]];
} else {
[super writeValue:value];
Expand Down
Loading