Skip to content

Commit afe21ac

Browse files
dev_wangdev_wang
authored andcommitted
补全头文件
1 parent 23e3d38 commit afe21ac

File tree

11 files changed

+77
-59
lines changed

11 files changed

+77
-59
lines changed

RunsCamera.podspec

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -91,32 +91,31 @@ Pod::Spec.new do |s|
9191
# Not including the public_header_files will make all headers public.
9292
#
9393

94-
# s.source_files = 'Camera/*{h,m}'
94+
# s.source_files = "RunsCamera", "RunsCamera/Classes/**/*.{h,m}"
9595
# s.source_files = 'Camera/Classes/{Protocol, Util, VC, View}/*.{h,m}'
9696
# s.subspec 'Classes' do |runsCamera|
9797
# runsCamera.source_files = 'Camera/Classes/RunsCameraKit.h'
9898
# end
9999

100-
# s.subspec 'Callback' do |sss|
101-
# sss.source_files = 'Camera/RunsCamera/Callback/*.{h,m}'
100+
# s.subspec 'Callback' do |callback|
101+
# callback.source_files = 'RunsCamera/Classes/Callback/*.{h,m}'
102102
# end
103103

104104
s.subspec 'Protocol' do |protocol|
105-
protocol.source_files = 'Camera/Classes/Protocol/*.h'
105+
protocol.source_files = 'RunsCamera/Classes/Protocol/*.h'
106106
end
107107

108108
s.subspec 'Util' do |util|
109-
util.source_files = 'Camera/Classes/Util/*.{h,m}'
110-
end
111-
112-
s.subspec 'VC' do |vc|
113-
vc.source_files = 'Camera/Classes/VC/*.{h,m}'
109+
util.source_files = 'RunsCamera/Classes/Util/*.{h,m}'
114110
end
115111

116112
s.subspec 'View' do |view|
117-
view.source_files = 'Camera/Classes/View/*.{h,m}'
113+
view.source_files = 'RunsCamera/Classes/View/*.{h,m}'
118114
end
119115

116+
s.subspec 'VC' do |vc|
117+
vc.source_files = 'RunsCamera/Classes/VC/*.{h,m}'
118+
end
120119

121120

122121
# s.exclude_files = "Classes/Exclude"
@@ -133,7 +132,7 @@ Pod::Spec.new do |s|
133132
#
134133

135134
# s.resource = "icon.png"
136-
s.resources = "Camera/Classes/camera.xcassets"
135+
s.resources = "RunsCamera/Classes/camera.xcassets"
137136

138137
# s.preserve_paths = "FilesToSave", "MoreFilesToSave"
139138

RunsCamera.xcodeproj/project.pbxproj

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
211DD27E1F0E22A1008089B2 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
7171
211DD27F1F0E22A1008089B2 /* ViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
7272
211DD2801F0E22A1008089B2 /* ViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
73-
21B2ADF11EF4189700CD80A4 /* Camera.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Camera.app; sourceTree = BUILT_PRODUCTS_DIR; };
73+
21B2ADF11EF4189700CD80A4 /* RunsCamera.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RunsCamera.app; sourceTree = BUILT_PRODUCTS_DIR; };
7474
/* End PBXFileReference section */
7575

7676
/* Begin PBXFrameworksBuildPhase section */
@@ -87,29 +87,29 @@
8787
211DD2511F0E22A0008089B2 /* RunsCamera */ = {
8888
isa = PBXGroup;
8989
children = (
90-
21B2ADF41EF4189700CD80A4 /* Supporting Files */,
90+
211DD2591F0E22A0008089B2 /* Classes */,
9191
211DD2521F0E22A0008089B2 /* AppDelegate.h */,
9292
211DD2531F0E22A0008089B2 /* AppDelegate.m */,
9393
211DD2541F0E22A0008089B2 /* Assets.xcassets */,
9494
211DD2551F0E22A0008089B2 /* LaunchScreen.storyboard */,
9595
211DD2571F0E22A0008089B2 /* Main.storyboard */,
96-
211DD2591F0E22A0008089B2 /* Classes */,
9796
211DD27D1F0E22A1008089B2 /* Info.plist */,
9897
211DD27E1F0E22A1008089B2 /* main.m */,
9998
211DD27F1F0E22A1008089B2 /* ViewController.h */,
10099
211DD2801F0E22A1008089B2 /* ViewController.m */,
100+
21B2ADF41EF4189700CD80A4 /* Supporting Files */,
101101
);
102102
path = RunsCamera;
103103
sourceTree = "<group>";
104104
};
105105
211DD2591F0E22A0008089B2 /* Classes */ = {
106106
isa = PBXGroup;
107107
children = (
108-
211DD25A1F0E22A0008089B2 /* camera.xcassets */,
109108
211DD25B1F0E22A0008089B2 /* Protocol */,
110109
211DD2611F0E22A0008089B2 /* Util */,
111110
211DD26F1F0E22A0008089B2 /* VC */,
112111
211DD2741F0E22A0008089B2 /* View */,
112+
211DD25A1F0E22A0008089B2 /* camera.xcassets */,
113113
);
114114
path = Classes;
115115
sourceTree = "<group>";
@@ -183,7 +183,7 @@
183183
21B2ADF21EF4189700CD80A4 /* Products */ = {
184184
isa = PBXGroup;
185185
children = (
186-
21B2ADF11EF4189700CD80A4 /* Camera.app */,
186+
21B2ADF11EF4189700CD80A4 /* RunsCamera.app */,
187187
);
188188
name = Products;
189189
sourceTree = "<group>";
@@ -199,9 +199,9 @@
199199
/* End PBXGroup section */
200200

201201
/* Begin PBXNativeTarget section */
202-
21B2ADF01EF4189700CD80A4 /* Camera */ = {
202+
21B2ADF01EF4189700CD80A4 /* RunsCamera */ = {
203203
isa = PBXNativeTarget;
204-
buildConfigurationList = 21B2AE081EF4189700CD80A4 /* Build configuration list for PBXNativeTarget "Camera" */;
204+
buildConfigurationList = 21B2AE081EF4189700CD80A4 /* Build configuration list for PBXNativeTarget "RunsCamera" */;
205205
buildPhases = (
206206
21B2ADED1EF4189700CD80A4 /* Sources */,
207207
21B2ADEE1EF4189700CD80A4 /* Frameworks */,
@@ -211,9 +211,9 @@
211211
);
212212
dependencies = (
213213
);
214-
name = Camera;
214+
name = RunsCamera;
215215
productName = Camera;
216-
productReference = 21B2ADF11EF4189700CD80A4 /* Camera.app */;
216+
productReference = 21B2ADF11EF4189700CD80A4 /* RunsCamera.app */;
217217
productType = "com.apple.product-type.application";
218218
};
219219
/* End PBXNativeTarget section */
@@ -245,7 +245,7 @@
245245
projectDirPath = "";
246246
projectRoot = "";
247247
targets = (
248-
21B2ADF01EF4189700CD80A4 /* Camera */,
248+
21B2ADF01EF4189700CD80A4 /* RunsCamera */,
249249
);
250250
};
251251
/* End PBXProject section */
@@ -438,7 +438,7 @@
438438
defaultConfigurationIsVisible = 0;
439439
defaultConfigurationName = Release;
440440
};
441-
21B2AE081EF4189700CD80A4 /* Build configuration list for PBXNativeTarget "Camera" */ = {
441+
21B2AE081EF4189700CD80A4 /* Build configuration list for PBXNativeTarget "RunsCamera" */ = {
442442
isa = XCConfigurationList;
443443
buildConfigurations = (
444444
21B2AE091EF4189700CD80A4 /* Debug */,

RunsCamera/Classes/Util/AVCaptureDevice+Configure.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
//
88

99
#import "AVCaptureDevice+Configure.h"
10+
#import <Foundation/Foundation.h>
11+
#import <UIKit/UIKit.h>
1012
#import <objc/runtime.h>
1113
#import "RunsCameraKit.h"
1214

RunsCamera/Classes/Util/AVCaptureSession+Configure.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
#import "AVCaptureSession+Configure.h"
1010
#import <objc/runtime.h>
1111
#import "RunsCameraKit.h"
12+
#import <AVFoundation/AVFoundation.h>
13+
#import <UIKit/UIKit.h>
14+
#import "AVCaptureDevice+Configure.h"
1215

1316
static const NSString * RunsDefaultDeviceSessionKey = @"RunsDefaultDeviceSessionKey";
1417
static const NSString * RunsDefaultPreviewLayerKey = @"RunsDefaultPreviewLayerKey";

RunsCamera/Classes/Util/RunsCameraKit.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@
99
#ifndef RunsCameraKit_h
1010
#define RunsCameraKit_h
1111
//
12-
#import "RunsCameraManager.h"
13-
#import "UIImage+Configure.h"
14-
#import "AVCaptureDevice+Configure.h"
15-
#import "AVCaptureSession+Configure.h"
16-
//
17-
#import "RunsCircleButtonView.h"
18-
#import "RunsExpandButton.h"
19-
#import "RunsCameraView.h"
20-
#import "RunsCameraPreviewView.h"
21-
//
22-
#import "RunsCameraViewController.h"
23-
#import "RunsPreviewViewController.h"
12+
//#import "RunsCameraManager.h"
13+
//#import "UIImage+Configure.h"
14+
//#import "AVCaptureDevice+Configure.h"
15+
//#import "AVCaptureSession+Configure.h"
16+
////
17+
//#import "RunsCircleButtonView.h"
18+
//#import "RunsExpandButton.h"
19+
//#import "RunsCameraView.h"
20+
//#import "RunsCameraPreviewView.h"
21+
////
22+
//#import "RunsCameraViewController.h"
23+
//#import "RunsPreviewViewController.h"
2424

2525

2626
#define RCK_SCREEN_BOUNDS (UIScreen.mainScreen.bounds)

RunsCamera/Classes/Util/RunsCameraManager.m

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@
99
#import "RunsCameraManager.h"
1010
#import <objc/runtime.h>
1111
#import <AssetsLibrary/AssetsLibrary.h>
12-
12+
#import <AVFoundation/AVFoundation.h>
13+
#import <UIKit/UIKit.h>
14+
#import "AVCaptureSession+Configure.h"
1315
#import "RunsCameraKit.h"
14-
16+
#import "AVCaptureDevice+Configure.h"
17+
#import "UIImage+Configure.h"
1518

1619
static const NSString * RunsDefaultMovieFileOutputKey = @"RunsDefaultMovieFileOutputKey";
1720
static const NSString * RunsDefaultStillImageOutputKey = @"RunsDefaultStillImageOutputKey";

RunsCamera/Classes/Util/UIImage+Configure.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
//
88

99
#import "UIImage+Configure.h"
10-
10+
#import <AVFoundation/AVFoundation.h>
11+
#import <UIKit/UIKit.h>
1112
#import "RunsCameraKit.h"
1213

1314
@implementation UIImage (Configure)

RunsCamera/Classes/VC/RunsCameraViewController.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
#import "RunsCameraViewDelegate.h"
1212
#import "RunsCameraPreviewViewDelegate.h"
1313
#import "RunsCameraPreviewViewProtocol.h"
14+
#import "RunsCameraView.h"
15+
#import "RunsCameraPreviewView.h"
16+
#import "RunsCameraManager.h"
17+
#import <Foundation/Foundation.h>
1418

1519
@interface RunsCameraViewController ()<RunsCameraViewDelegate, RunsCameraPreviewViewDelegate>
1620

RunsCamera/Classes/View/RunsCameraPreviewView.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@
99
#import "RunsCameraPreviewView.h"
1010
#import "RunsCameraPreviewViewProtocol.h"
1111
#import "RunsCameraKit.h"
12-
#import "AppDelegate.h"
1312
#import "UIView+Toast.h"
13+
#import "UIImage+Configure.h"
14+
#import "RunsExpandButton.h"
15+
#import "RunsCameraManager.h"
1416

1517
@interface RunsCameraPreviewView ()<RunsCameraPreviewViewProtocol>
1618

RunsCamera/Classes/View/RunsCameraView.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@
99
#import "RunsCameraView.h"
1010
#import "RunsCameraKit.h"
1111
#import "RunsCircleButtonViewDelegate.h"
12-
12+
#import "RunsExpandButton.h"
13+
#import "RunsCameraManager.h"
14+
#import "RunsCircleButtonView.h"
15+
#import "AVCaptureSession+Configure.h"
16+
#import "AVCaptureDevice+Configure.h"
1317
#define SHADOW_IMAGE_HEIGHT (140)
1418

1519
@interface RunsCameraView ()<RunsCircleButtonViewDelegate>

0 commit comments

Comments
 (0)