Skip to content

Commit f3234db

Browse files
author
Jasper Blues
authored
Merge pull request #90 from lvsti/spm-support
Swift package manager support
2 parents 849de69 + 913fa44 commit f3234db

34 files changed

+143
-108
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ xcuserdata
44
*.blend2
55
*.blend3
66
.DS_Store
7-
build
7+
build
8+
.build

Package.swift

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// swift-tools-version:4.0
2+
//
3+
// Package.swift
4+
// XcodeEditor
5+
//
6+
7+
import PackageDescription
8+
9+
let package = Package(
10+
name: "XcodeEditor",
11+
products: [
12+
.library(name: "XcodeEditor", targets: ["XcodeEditor"]),
13+
],
14+
targets: [
15+
.target(
16+
name: "XcodeEditor",
17+
dependencies: [],
18+
path: "Source",
19+
publicHeadersPath: "Include"
20+
),
21+
],
22+
swiftLanguageVersions: [4]
23+
)
File renamed without changes.
File renamed without changes.

Source/XCBuildFile.h Source/Include/XCBuildFile.h

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//
88

99
#import <Foundation/Foundation.h>
10+
#import "XcodeMemberType.h"
1011

1112
@protocol XCBuildFile <NSObject>
1213

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Source/XcodeEditor.h Source/Include/XcodeEditor.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//
1010
////////////////////////////////////////////////////////////////////////////////
1111

12-
#import <Cocoa/Cocoa.h>
12+
#import <Foundation/Foundation.h>
1313

1414
//! Project version number for XcodeEditor.
1515
FOUNDATION_EXPORT double XcodeEditorVersionNumber;
@@ -36,4 +36,4 @@ FOUNDATION_EXPORT const unsigned char XcodeEditorVersionString[];
3636
#import "XCProjectBuildConfig.h"
3737
#import "XCBuildShellScript.h"
3838
#import "XCBuildShellScriptDefinition.h"
39-
#import "XCVersionGroup.h"
39+
#import "XCVersionGroup.h"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Source/Resources/XcodeEditor-Prefix.pch

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
#ifdef __OBJC__
66

7-
#import <Cocoa/Cocoa.h>
7+
#import <Foundation/Foundation.h>
88

99
#endif
1010

Source/XCGroup.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#import "XCGroup.h"
2020
#import "XCProject.h"
2121
#import "XCClassDefinition.h"
22-
#import "Utils/XCKeyBuilder.h"
22+
#import "XCKeyBuilder.h"
2323
#import "XCSourceFileDefinition.h"
2424
#import "XCSubProjectDefinition.h"
2525
#import "XCProject+SubProject.h"

Source/XCProject+SubProject.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
#import "XCSourceFile.h"
1515
#import "XCTarget.h"
16-
#import "Utils/XCKeyBuilder.h"
16+
#import "XCKeyBuilder.h"
1717
#import "XCProject+SubProject.h"
1818
#import "XCSubProjectDefinition.h"
1919
#import <Foundation/Foundation.h>
@@ -375,4 +375,4 @@ - (void)removeTargetDependencies:(NSString *)name
375375
[[self objects] removeObjectForKey:targetDependencyKey];
376376
}
377377

378-
@end
378+
@end

Source/XCProject.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ - (XCGroup *)groupWithPathFromRoot:(NSString *)path
290290
for (NSString *pathItem in pathItems) {
291291
id <XcodeGroupMember> group = [currentGroup memberWithDisplayName:pathItem];
292292
if ([group isKindOfClass:[XCGroup class]]) {
293-
currentGroup = group;
293+
currentGroup = (XCGroup*)group;
294294
} else {
295295
return nil;
296296
}

Source/XCSourceFile.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
#import "XCSourceFile.h"
1515
#import "XCProject.h"
16-
#import "Utils/XCKeyBuilder.h"
16+
#import "XCKeyBuilder.h"
1717
#import "XCGroup.h"
1818
#import "XCTarget.h"
1919

Source/XCVersionGroup.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#import "XCFileOperationQueue.h"
1212
#import "XCSourceFile.h"
1313
#import "XCProject.h"
14-
#import "Utils/XCKeyBuilder.h"
14+
#import "XCKeyBuilder.h"
1515
#import "XCSourceFileDefinition.h"
1616
#import "XCProject+SubProject.h"
1717

XcodeEditor.podspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Pod::Spec.new do |s|
77
s.author = { 'Jasper Blues' => '[email protected]' }
88
s.source = { :git => 'https://github.com/jasperblues/XcodeEditor.git', :tag => 'v1.6.4' }
99
s.platform = :osx
10-
s.source_files = 'Source/*.{h,m}', 'Source/Utils/*.{h,m}'
10+
s.source_files = 'Source/*.{h,m}', 'Source/Utils/*.{h,m}', 'Source/Include/*.{h,m}'
1111
s.requires_arc = true
1212
s.ios.deployment_target = '5.0'
13-
s.osx.deployment_target = '10.7'
13+
s.osx.deployment_target = '10.8'
1414
end

XcodeEditor.xcodeproj/project.pbxproj

+106-96
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)