Skip to content

Commit

Permalink
Merge pull request #90 from lvsti/spm-support
Browse files Browse the repository at this point in the history
Swift package manager support
  • Loading branch information
Jasper Blues authored Jan 23, 2018
2 parents 849de69 + 913fa44 commit f3234db
Show file tree
Hide file tree
Showing 34 changed files with 143 additions and 108 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ xcuserdata
*.blend2
*.blend3
.DS_Store
build
build
.build
23 changes: 23 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// swift-tools-version:4.0
//
// Package.swift
// XcodeEditor
//

import PackageDescription

let package = Package(
name: "XcodeEditor",
products: [
.library(name: "XcodeEditor", targets: ["XcodeEditor"]),
],
targets: [
.target(
name: "XcodeEditor",
dependencies: [],
path: "Source",
publicHeadersPath: "Include"
),
],
swiftLanguageVersions: [4]
)
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions Source/XCBuildFile.h → Source/Include/XCBuildFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

#import <Foundation/Foundation.h>
#import "XcodeMemberType.h"

@protocol XCBuildFile <NSObject>

Expand Down
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.
File renamed without changes.
4 changes: 2 additions & 2 deletions Source/XcodeEditor.h → Source/Include/XcodeEditor.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
////////////////////////////////////////////////////////////////////////////////

#import <Cocoa/Cocoa.h>
#import <Foundation/Foundation.h>

//! Project version number for XcodeEditor.
FOUNDATION_EXPORT double XcodeEditorVersionNumber;
Expand All @@ -36,4 +36,4 @@ FOUNDATION_EXPORT const unsigned char XcodeEditorVersionString[];
#import "XCProjectBuildConfig.h"
#import "XCBuildShellScript.h"
#import "XCBuildShellScriptDefinition.h"
#import "XCVersionGroup.h"
#import "XCVersionGroup.h"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion Source/Resources/XcodeEditor-Prefix.pch
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#ifdef __OBJC__

#import <Cocoa/Cocoa.h>
#import <Foundation/Foundation.h>

#endif

Expand Down
2 changes: 1 addition & 1 deletion Source/XCGroup.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#import "XCGroup.h"
#import "XCProject.h"
#import "XCClassDefinition.h"
#import "Utils/XCKeyBuilder.h"
#import "XCKeyBuilder.h"
#import "XCSourceFileDefinition.h"
#import "XCSubProjectDefinition.h"
#import "XCProject+SubProject.h"
Expand Down
4 changes: 2 additions & 2 deletions Source/XCProject+SubProject.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#import "XCSourceFile.h"
#import "XCTarget.h"
#import "Utils/XCKeyBuilder.h"
#import "XCKeyBuilder.h"
#import "XCProject+SubProject.h"
#import "XCSubProjectDefinition.h"
#import <Foundation/Foundation.h>
Expand Down Expand Up @@ -375,4 +375,4 @@ - (void)removeTargetDependencies:(NSString *)name
[[self objects] removeObjectForKey:targetDependencyKey];
}

@end
@end
2 changes: 1 addition & 1 deletion Source/XCProject.m
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ - (XCGroup *)groupWithPathFromRoot:(NSString *)path
for (NSString *pathItem in pathItems) {
id <XcodeGroupMember> group = [currentGroup memberWithDisplayName:pathItem];
if ([group isKindOfClass:[XCGroup class]]) {
currentGroup = group;
currentGroup = (XCGroup*)group;
} else {
return nil;
}
Expand Down
2 changes: 1 addition & 1 deletion Source/XCSourceFile.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#import "XCSourceFile.h"
#import "XCProject.h"
#import "Utils/XCKeyBuilder.h"
#import "XCKeyBuilder.h"
#import "XCGroup.h"
#import "XCTarget.h"

Expand Down
2 changes: 1 addition & 1 deletion Source/XCVersionGroup.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#import "XCFileOperationQueue.h"
#import "XCSourceFile.h"
#import "XCProject.h"
#import "Utils/XCKeyBuilder.h"
#import "XCKeyBuilder.h"
#import "XCSourceFileDefinition.h"
#import "XCProject+SubProject.h"

Expand Down
4 changes: 2 additions & 2 deletions XcodeEditor.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ Pod::Spec.new do |s|
s.author = { 'Jasper Blues' => '[email protected]' }
s.source = { :git => 'https://github.com/jasperblues/XcodeEditor.git', :tag => 'v1.6.4' }
s.platform = :osx
s.source_files = 'Source/*.{h,m}', 'Source/Utils/*.{h,m}'
s.source_files = 'Source/*.{h,m}', 'Source/Utils/*.{h,m}', 'Source/Include/*.{h,m}'
s.requires_arc = true
s.ios.deployment_target = '5.0'
s.osx.deployment_target = '10.7'
s.osx.deployment_target = '10.8'
end
202 changes: 106 additions & 96 deletions XcodeEditor.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

0 comments on commit f3234db

Please sign in to comment.