This repository was archived by the owner on Feb 22, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +44
-8
lines changed Expand file tree Collapse file tree 6 files changed +44
-8
lines changed Original file line number Diff line number Diff line change 22// Use of this source code is governed by a BSD-style license that can be
33// found in the LICENSE file.
44
5+ @import camera;
6+ @import camera.Test;
57@import XCTest;
68#import < Flutter/Flutter.h>
79#import < OCMock/OCMock.h>
810
9- @interface CameraPlugin : NSObject
10- - (instancetype )initWithRegistry : (NSObject <FlutterTextureRegistry> *)registry
11- messenger : (NSObject <FlutterBinaryMessenger> *)messenger ;
12-
13- - (void )orientationChanged : (NSNotification *)note ;
14- @end
15-
1611@interface CameraOrientationTests : XCTestCase
1712@property (strong , nonatomic ) id mockMessenger;
1813@property (strong , nonatomic ) CameraPlugin *cameraPlugin;
Original file line number Diff line number Diff line change 33// found in the LICENSE file.
44
55#import " CameraPlugin.h"
6+ #import " CameraPlugin_Test.h"
7+
68#import < AVFoundation/AVFoundation.h>
79#import < Accelerate/Accelerate.h>
810#import < CoreMotion/CoreMotion.h>
Original file line number Diff line number Diff line change 1+ framework module camera {
2+ umbrella header "camera-umbrella.h"
3+
4+ export *
5+ module * { export * }
6+
7+ explicit module Test {
8+ header "CameraPlugin_Test.h"
9+ }
10+ }
Original file line number Diff line number Diff line change 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+ // This header is available in the Test module. Import via "@import camera.Test;"
6+
7+ #import < camera/CameraPlugin.h>
8+
9+ // / Methods exposed for unit testing.
10+ @interface CameraPlugin ()
11+
12+ - (instancetype )initWithRegistry : (NSObject <FlutterTextureRegistry> *)registry
13+ messenger : (NSObject <FlutterBinaryMessenger> *)messenger
14+ NS_DESIGNATED_INITIALIZER;
15+ - (instancetype )init NS_UNAVAILABLE;
16+
17+ - (void )orientationChanged : (NSNotification *)notification ;
18+
19+ @end
Original file line number Diff line number Diff line change 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+ #import < Foundation/Foundation.h>
6+ #import < camera/CameraPlugin.h>
7+
8+ FOUNDATION_EXPORT double cameraVersionNumber;
9+ FOUNDATION_EXPORT const unsigned char cameraVersionString[];
Original file line number Diff line number Diff line change @@ -13,8 +13,9 @@ A Flutter plugin to use the camera from your Flutter app.
1313 s . author = { 'Flutter Dev Team' => 'flutter-dev@googlegroups.com' }
1414 s . source = { :http => 'https://github.com/flutter/plugins/tree/master/packages/camera' }
1515 s . documentation_url = 'https://pub.dev/packages/camera'
16- s . source_files = 'Classes/**/*'
16+ s . source_files = 'Classes/**/*.{h,m} '
1717 s . public_header_files = 'Classes/**/*.h'
18+ s . module_map = 'Classes/CameraPlugin.modulemap'
1819 s . dependency 'Flutter'
1920
2021 s . platform = :ios , '9.0'
You can’t perform that action at this time.
0 commit comments