Skip to content
This repository has been archived by the owner on Apr 16, 2022. It is now read-only.

Commit

Permalink
Merge pull request #76 from natmark/natmark/osx
Browse files Browse the repository at this point in the history
[WIP] Supports OSX
  • Loading branch information
natmark authored Jan 4, 2018
2 parents a13f574 + cf4f77b commit 1e32f9b
Show file tree
Hide file tree
Showing 29 changed files with 2,176 additions and 52 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ before_script:
- set -o pipefail
script:
- xcodebuild test -project ./ProcessingKit.xcodeproj -scheme ProcessingKitTests -configuration Debug -sdk iphonesimulator -destination 'platform=iOS Simulator,id=ABBD7191-486B-462F-80B4-AE08C5820DA1' | xcpretty -c
- xcodebuild -project ./ProcessingKit.xcodeproj -scheme 'ProcessingKit OSX' -configuration Debug | xcpretty -c
11 changes: 6 additions & 5 deletions ProcessingKit.podspec
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
Pod::Spec.new do |s|
s.name = "ProcessingKit"
s.version = "0.5.1"
s.summary = "Visual Programming library for iOS."
s.summary = "Visual Designing library for iOS."
s.description = <<-DESC
ProcessingKit is a Visual Programming library for iOS.
ProcessingKit is a Visual Designing library for iOS.
ProcessingKit written in Swift🐧 and you can write like processing.
DESC
s.homepage = "https://github.com/natmark/ProcessingKit"
s.screenshots = "https://github.com/natmark/ProcessingKit/blob/master/Resources/demo.gif?raw=true"
s.screenshots = "https://github.com/natmark/ProcessingKit/raw/master/Resources/ProcessingKit-Header.png?raw=true"
s.license = { :type => "MIT", :file => "LICENSE" }
s.author = { "Atsuya Sato" => "[email protected]" }
s.osx.deployment_target = "10.0"
s.platform = :ios, "10.0"
s.osx.deployment_target = "10.11"
s.ios.deployment_target = "10.0"
s.platforms = { :ios => "10.0", :osx => "10.11" }
s.source = { :git => "https://github.com/natmark/ProcessingKit.git", :tag => "#{s.version}" }
s.source_files = "ProcessingKit/**/*.swift"
s.exclude_files = "ProcessingKit/Demo.playground/*"
Expand Down
174 changes: 173 additions & 1 deletion ProcessingKit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,25 @@
E76820211F7B6446009E8FD2 /* Vertex.swift in Sources */ = {isa = PBXBuildFile; fileRef = E76820201F7B6446009E8FD2 /* Vertex.swift */; };
E76820241F7B647A009E8FD2 /* Transform.swift in Sources */ = {isa = PBXBuildFile; fileRef = E76820231F7B647A009E8FD2 /* Transform.swift */; };
E7B77DCD1FF7D30500CE691A /* CGPoint.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7B77DCC1FF7D30500CE691A /* CGPoint.swift */; };
E7B77E141FF7E1B300CE691A /* Color.swift in Sources */ = {isa = PBXBuildFile; fileRef = E70BB68B1F40902A00E0372D /* Color.swift */; };
E7B77E151FF7E1B300CE691A /* Constants.swift in Sources */ = {isa = PBXBuildFile; fileRef = E76046C01F408B2E00921B1A /* Constants.swift */; };
E7B77E161FF7E1B300CE691A /* Frame.swift in Sources */ = {isa = PBXBuildFile; fileRef = E70BB68F1F40937100E0372D /* Frame.swift */; };
E7B77E171FF7E1B300CE691A /* String.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7387A481F44828F00C3B35C /* String.swift */; };
E7B77E181FF7E1B300CE691A /* UIColor.swift in Sources */ = {isa = PBXBuildFile; fileRef = E713695F1F44945900267715 /* UIColor.swift */; };
E7B77E191FF7E1B300CE691A /* CGPoint.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7B77DCC1FF7D30500CE691A /* CGPoint.swift */; };
E7B77E1A1FF7E1B300CE691A /* Image.swift in Sources */ = {isa = PBXBuildFile; fileRef = E747DDA81F44656E006BAC6A /* Image.swift */; };
E7B77E1B1FF7E1B300CE691A /* Date.swift in Sources */ = {isa = PBXBuildFile; fileRef = E76820181F7B32B8009E8FD2 /* Date.swift */; };
E7B77E1C1FF7E1B300CE691A /* Event.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7054AE11F3A0C8800EA0C0F /* Event.swift */; };
E7B77E1D1FF7E1B300CE691A /* Shape.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7054ADF1F3A0A7E00EA0C0F /* Shape.swift */; };
E7B77E1E1FF7E1B300CE691A /* Vertex.swift in Sources */ = {isa = PBXBuildFile; fileRef = E76820201F7B6446009E8FD2 /* Vertex.swift */; };
E7B77E1F1FF7E1B300CE691A /* Loop.swift in Sources */ = {isa = PBXBuildFile; fileRef = E76046B71F4088FB00921B1A /* Loop.swift */; };
E7B77E201FF7E1B300CE691A /* Transform.swift in Sources */ = {isa = PBXBuildFile; fileRef = E76820231F7B647A009E8FD2 /* Transform.swift */; };
E7B77E211FF7E1B300CE691A /* Text.swift in Sources */ = {isa = PBXBuildFile; fileRef = E70BB6881F408FAB00E0372D /* Text.swift */; };
E7B77E221FF7E1B300CE691A /* ProcessingView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7054AD31F34CCB200EA0C0F /* ProcessingView.swift */; };
E7B77E241FF7E30C00CE691A /* MultiplatformCommon.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7B77E231FF7E30C00CE691A /* MultiplatformCommon.swift */; };
E7B77E251FF7E36F00CE691A /* MultiplatformCommon.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7B77E231FF7E30C00CE691A /* MultiplatformCommon.swift */; };
E7B77E2B1FF7EC6600CE691A /* NSImage.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7B77E291FF7EBFF00CE691A /* NSImage.swift */; };
E7B77E2E1FF7F19D00CE691A /* NSView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7B77E2C1FF7F19700CE691A /* NSView.swift */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -64,6 +83,10 @@
E76820231F7B647A009E8FD2 /* Transform.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Transform.swift; sourceTree = "<group>"; };
E76820351F7E49B1009E8FD2 /* Demo.playground */ = {isa = PBXFileReference; lastKnownFileType = file.playground; name = Demo.playground; path = ProcessingKit/Demo.playground; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.swift; };
E7B77DCC1FF7D30500CE691A /* CGPoint.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CGPoint.swift; sourceTree = "<group>"; };
E7B77DD31FF7E02900CE691A /* ProcessingKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = ProcessingKit.framework; sourceTree = BUILT_PRODUCTS_DIR; };
E7B77E231FF7E30C00CE691A /* MultiplatformCommon.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MultiplatformCommon.swift; sourceTree = "<group>"; };
E7B77E291FF7EBFF00CE691A /* NSImage.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NSImage.swift; sourceTree = "<group>"; };
E7B77E2C1FF7F19700CE691A /* NSView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NSView.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -82,6 +105,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
E7B77DCF1FF7E02900CE691A /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
Expand All @@ -108,6 +138,7 @@
children = (
E7212F401F34B5A600173CD8 /* ProcessingKit.framework */,
E7212F491F34B5A600173CD8 /* ProcessingKitTests.xctest */,
E7B77DD31FF7E02900CE691A /* ProcessingKit.framework */,
);
name = Products;
sourceTree = "<group>";
Expand All @@ -128,6 +159,7 @@
E7212F441F34B5A600173CD8 /* Info.plist */,
E7212F431F34B5A600173CD8 /* ProcessingKit.h */,
E7054AD31F34CCB200EA0C0F /* ProcessingView.swift */,
E7B77E231FF7E30C00CE691A /* MultiplatformCommon.swift */,
);
path = ProcessingKit;
sourceTree = "<group>";
Expand All @@ -149,6 +181,8 @@
E7387A481F44828F00C3B35C /* String.swift */,
E713695F1F44945900267715 /* UIColor.swift */,
E7B77DCC1FF7D30500CE691A /* CGPoint.swift */,
E7B77E291FF7EBFF00CE691A /* NSImage.swift */,
E7B77E2C1FF7F19700CE691A /* NSView.swift */,
);
path = Extensions;
sourceTree = "<group>";
Expand Down Expand Up @@ -238,6 +272,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
E7B77DD01FF7E02900CE691A /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXHeadersBuildPhase section */

/* Begin PBXNativeTarget section */
Expand Down Expand Up @@ -278,13 +319,31 @@
productReference = E7212F491F34B5A600173CD8 /* ProcessingKitTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
E7B77DD21FF7E02900CE691A /* ProcessingKit OSX */ = {
isa = PBXNativeTarget;
buildConfigurationList = E7B77DE81FF7E02A00CE691A /* Build configuration list for PBXNativeTarget "ProcessingKit OSX" */;
buildPhases = (
E7B77DCE1FF7E02900CE691A /* Sources */,
E7B77DCF1FF7E02900CE691A /* Frameworks */,
E7B77DD01FF7E02900CE691A /* Headers */,
E7B77DD11FF7E02900CE691A /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = "ProcessingKit OSX";
productName = "ProcessingKit OSX";
productReference = E7B77DD31FF7E02900CE691A /* ProcessingKit.framework */;
productType = "com.apple.product-type.framework";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
E7212F371F34B5A600173CD8 /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0830;
LastSwiftUpdateCheck = 0910;
LastUpgradeCheck = 0830;
ORGANIZATIONNAME = "Atsuya Sato";
TargetAttributes = {
Expand All @@ -297,6 +356,10 @@
CreatedOnToolsVersion = 8.3.3;
ProvisioningStyle = Automatic;
};
E7B77DD21FF7E02900CE691A = {
CreatedOnToolsVersion = 9.1;
ProvisioningStyle = Automatic;
};
};
};
buildConfigurationList = E7212F3A1F34B5A600173CD8 /* Build configuration list for PBXProject "ProcessingKit" */;
Expand All @@ -313,6 +376,7 @@
targets = (
E7212F3F1F34B5A600173CD8 /* ProcessingKit */,
E7212F481F34B5A600173CD8 /* ProcessingKitTests */,
E7B77DD21FF7E02900CE691A /* ProcessingKit OSX */,
);
};
/* End PBXProject section */
Expand All @@ -332,6 +396,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
E7B77DD11FF7E02900CE691A /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
Expand Down Expand Up @@ -369,6 +440,7 @@
E76820241F7B647A009E8FD2 /* Transform.swift in Sources */,
E70BB6891F408FB000E0372D /* Text.swift in Sources */,
E76820191F7B32B8009E8FD2 /* Date.swift in Sources */,
E7B77E241FF7E30C00CE691A /* MultiplatformCommon.swift in Sources */,
E7B77DCD1FF7D30500CE691A /* CGPoint.swift in Sources */,
E76046C11F408B2E00921B1A /* Constants.swift in Sources */,
);
Expand All @@ -384,6 +456,31 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
E7B77DCE1FF7E02900CE691A /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
E7B77E141FF7E1B300CE691A /* Color.swift in Sources */,
E7B77E151FF7E1B300CE691A /* Constants.swift in Sources */,
E7B77E161FF7E1B300CE691A /* Frame.swift in Sources */,
E7B77E171FF7E1B300CE691A /* String.swift in Sources */,
E7B77E181FF7E1B300CE691A /* UIColor.swift in Sources */,
E7B77E191FF7E1B300CE691A /* CGPoint.swift in Sources */,
E7B77E1A1FF7E1B300CE691A /* Image.swift in Sources */,
E7B77E2E1FF7F19D00CE691A /* NSView.swift in Sources */,
E7B77E1B1FF7E1B300CE691A /* Date.swift in Sources */,
E7B77E1C1FF7E1B300CE691A /* Event.swift in Sources */,
E7B77E1D1FF7E1B300CE691A /* Shape.swift in Sources */,
E7B77E1E1FF7E1B300CE691A /* Vertex.swift in Sources */,
E7B77E1F1FF7E1B300CE691A /* Loop.swift in Sources */,
E7B77E2B1FF7EC6600CE691A /* NSImage.swift in Sources */,
E7B77E201FF7E1B300CE691A /* Transform.swift in Sources */,
E7B77E251FF7E36F00CE691A /* MultiplatformCommon.swift in Sources */,
E7B77E211FF7E1B300CE691A /* Text.swift in Sources */,
E7B77E221FF7E1B300CE691A /* ProcessingView.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXTargetDependency section */
Expand Down Expand Up @@ -565,6 +662,72 @@
};
name = Release;
};
E7B77DE41FF7E02A00CE691A /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_IDENTITY = "Mac Developer";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = "";
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
FRAMEWORK_VERSION = A;
GCC_C_LANGUAGE_STANDARD = gnu11;
INFOPLIST_FILE = ProcessingKit/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.11;
PRODUCT_BUNDLE_IDENTIFIER = "io.github.natmark.ProcessingKit-OSX";
PRODUCT_NAME = ProcessingKit;
SDKROOT = macosx;
SKIP_INSTALL = YES;
SWIFT_VERSION = 3.0;
};
name = Debug;
};
E7B77DE51FF7E02A00CE691A /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_IDENTITY = "Mac Developer";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = "";
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
FRAMEWORK_VERSION = A;
GCC_C_LANGUAGE_STANDARD = gnu11;
INFOPLIST_FILE = ProcessingKit/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.11;
PRODUCT_BUNDLE_IDENTIFIER = "io.github.natmark.ProcessingKit-OSX";
PRODUCT_NAME = ProcessingKit;
SDKROOT = macosx;
SKIP_INSTALL = YES;
SWIFT_VERSION = 3.0;
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
Expand Down Expand Up @@ -595,6 +758,15 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
E7B77DE81FF7E02A00CE691A /* Build configuration list for PBXNativeTarget "ProcessingKit OSX" */ = {
isa = XCConfigurationList;
buildConfigurations = (
E7B77DE41FF7E02A00CE691A /* Debug */,
E7B77DE51FF7E02A00CE691A /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = E7212F371F34B5A600173CD8 /* Project object */;
Expand Down
Loading

0 comments on commit 1e32f9b

Please sign in to comment.