This repository was archived by the owner on Feb 22, 2023. It is now read-only.
File tree 6 files changed +43
-8
lines changed
6 files changed +43
-8
lines changed Original file line number Diff line number Diff line change 2
2
// Use of this source code is governed by a BSD-style license that can be
3
3
// found in the LICENSE file.
4
4
5
+ @import camera;
6
+ @import camera.Test;
5
7
@import XCTest;
6
8
#import < Flutter/Flutter.h>
7
9
#import < OCMock/OCMock.h>
8
10
9
- @interface CameraPlugin : NSObject
10
- - (instancetype )initWithRegistry : (NSObject <FlutterTextureRegistry> *)registry
11
- messenger : (NSObject <FlutterBinaryMessenger> *)messenger ;
12
-
13
- - (void )orientationChanged : (NSNotification *)note ;
14
- @end
15
-
16
11
@interface CameraOrientationTests : XCTestCase
17
12
@property (strong , nonatomic ) id mockMessenger;
18
13
@property (strong , nonatomic ) CameraPlugin *cameraPlugin;
Original file line number Diff line number Diff line change 3
3
// found in the LICENSE file.
4
4
5
5
#import " CameraPlugin.h"
6
+ #import " CameraPlugin_Test.h"
7
+
6
8
#import < AVFoundation/AVFoundation.h>
7
9
#import < Accelerate/Accelerate.h>
8
10
#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 NS_DESIGNATED_INITIALIZER;
14
+ - (instancetype )init NS_UNAVAILABLE;
15
+
16
+ - (void )orientationChanged : (NSNotification *)notification ;
17
+
18
+ @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.
13
13
s . author = { 'Flutter Dev Team' => '[email protected] ' }
14
14
s . source = { :http => 'https://github.com/flutter/plugins/tree/master/packages/camera' }
15
15
s . documentation_url = 'https://pub.dev/packages/camera'
16
- s . source_files = 'Classes/**/*'
16
+ s . source_files = 'Classes/**/*.{h,m} '
17
17
s . public_header_files = 'Classes/**/*.h'
18
+ s . module_map = 'Classes/CameraPlugin.modulemap'
18
19
s . dependency 'Flutter'
19
20
20
21
s . platform = :ios , '9.0'
You can’t perform that action at this time.
0 commit comments