diff --git a/Snorlax-OSX/Info.plist b/Snorlax-OSX/Info.plist
new file mode 100644
index 0000000..533db36
--- /dev/null
+++ b/Snorlax-OSX/Info.plist
@@ -0,0 +1,28 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ en
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ $(PRODUCT_NAME)
+ CFBundlePackageType
+ FMWK
+ CFBundleShortVersionString
+ 1.0
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ $(CURRENT_PROJECT_VERSION)
+ NSHumanReadableCopyright
+ Copyright © 2016 Jeff Hui. All rights reserved.
+ NSPrincipalClass
+
+
+
diff --git a/Snorlax-OSXTests/Info.plist b/Snorlax-OSXTests/Info.plist
new file mode 100644
index 0000000..ba72822
--- /dev/null
+++ b/Snorlax-OSXTests/Info.plist
@@ -0,0 +1,24 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ en
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ $(PRODUCT_NAME)
+ CFBundlePackageType
+ BNDL
+ CFBundleShortVersionString
+ 1.0
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ 1
+
+
diff --git a/Snorlax.xcodeproj/project.pbxproj b/Snorlax.xcodeproj/project.pbxproj
index 7fbfd47..083d055 100644
--- a/Snorlax.xcodeproj/project.pbxproj
+++ b/Snorlax.xcodeproj/project.pbxproj
@@ -11,6 +11,10 @@
1F120AED1C757216009CF89F /* Snorlax.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1F120AE21C757216009CF89F /* Snorlax.framework */; };
1F120AF21C757216009CF89F /* SnorlaxTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1F120AF11C757216009CF89F /* SnorlaxTests.swift */; };
1F120AFD1C7572E1009CF89F /* Snorlax.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1F120AFC1C7572E1009CF89F /* Snorlax.swift */; };
+ 1F120B0D1C76C809009CF89F /* Snorlax.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1F120B031C76C807009CF89F /* Snorlax.framework */; };
+ 1F120B1A1C76C880009CF89F /* Snorlax.h in Headers */ = {isa = PBXBuildFile; fileRef = 1F120AE51C757216009CF89F /* Snorlax.h */; settings = {ATTRIBUTES = (Public, ); }; };
+ 1F120B1B1C76C909009CF89F /* SnorlaxTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1F120AF11C757216009CF89F /* SnorlaxTests.swift */; };
+ 1F120B1C1C76C9CB009CF89F /* Snorlax.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1F120AFC1C7572E1009CF89F /* Snorlax.swift */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
@@ -21,6 +25,13 @@
remoteGlobalIDString = 1F120AE11C757216009CF89F;
remoteInfo = Snorlax;
};
+ 1F120B0E1C76C809009CF89F /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 1F120AD91C757216009CF89F /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = 1F120B021C76C807009CF89F;
+ remoteInfo = "Snorlax-OSX";
+ };
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
@@ -31,6 +42,10 @@
1F120AF11C757216009CF89F /* SnorlaxTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SnorlaxTests.swift; sourceTree = ""; };
1F120AF31C757216009CF89F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
1F120AFC1C7572E1009CF89F /* Snorlax.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Snorlax.swift; sourceTree = ""; };
+ 1F120B031C76C807009CF89F /* Snorlax.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Snorlax.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+ 1F120B071C76C807009CF89F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
+ 1F120B0C1C76C809009CF89F /* Snorlax-OSXTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Snorlax-OSXTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
+ 1F120B131C76C809009CF89F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@@ -49,6 +64,21 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
+ 1F120AFF1C76C807009CF89F /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 1F120B091C76C809009CF89F /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 1F120B0D1C76C809009CF89F /* Snorlax.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
@@ -57,6 +87,8 @@
children = (
1F120AE41C757216009CF89F /* Snorlax */,
1F120AF01C757216009CF89F /* SnorlaxTests */,
+ 1F120B041C76C807009CF89F /* Snorlax-OSX */,
+ 1F120B101C76C809009CF89F /* Snorlax-OSXTests */,
1F120AE31C757216009CF89F /* Products */,
);
sourceTree = "";
@@ -66,6 +98,8 @@
children = (
1F120AE21C757216009CF89F /* Snorlax.framework */,
1F120AEC1C757216009CF89F /* Snorlax-iOS Tests.xctest */,
+ 1F120B031C76C807009CF89F /* Snorlax.framework */,
+ 1F120B0C1C76C809009CF89F /* Snorlax-OSXTests.xctest */,
);
name = Products;
sourceTree = "";
@@ -89,6 +123,22 @@
path = SnorlaxTests;
sourceTree = "";
};
+ 1F120B041C76C807009CF89F /* Snorlax-OSX */ = {
+ isa = PBXGroup;
+ children = (
+ 1F120B071C76C807009CF89F /* Info.plist */,
+ );
+ path = "Snorlax-OSX";
+ sourceTree = "";
+ };
+ 1F120B101C76C809009CF89F /* Snorlax-OSXTests */ = {
+ isa = PBXGroup;
+ children = (
+ 1F120B131C76C809009CF89F /* Info.plist */,
+ );
+ path = "Snorlax-OSXTests";
+ sourceTree = "";
+ };
/* End PBXGroup section */
/* Begin PBXHeadersBuildPhase section */
@@ -100,6 +150,14 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
+ 1F120B001C76C807009CF89F /* Headers */ = {
+ isa = PBXHeadersBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 1F120B1A1C76C880009CF89F /* Snorlax.h in Headers */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
/* End PBXHeadersBuildPhase section */
/* Begin PBXNativeTarget section */
@@ -139,6 +197,42 @@
productReference = 1F120AEC1C757216009CF89F /* Snorlax-iOS Tests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
+ 1F120B021C76C807009CF89F /* Snorlax-OSX */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 1F120B141C76C809009CF89F /* Build configuration list for PBXNativeTarget "Snorlax-OSX" */;
+ buildPhases = (
+ 1F120AFE1C76C807009CF89F /* Sources */,
+ 1F120AFF1C76C807009CF89F /* Frameworks */,
+ 1F120B001C76C807009CF89F /* Headers */,
+ 1F120B011C76C807009CF89F /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = "Snorlax-OSX";
+ productName = "Snorlax-OSX";
+ productReference = 1F120B031C76C807009CF89F /* Snorlax.framework */;
+ productType = "com.apple.product-type.framework";
+ };
+ 1F120B0B1C76C809009CF89F /* Snorlax-OSXTests */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 1F120B171C76C809009CF89F /* Build configuration list for PBXNativeTarget "Snorlax-OSXTests" */;
+ buildPhases = (
+ 1F120B081C76C809009CF89F /* Sources */,
+ 1F120B091C76C809009CF89F /* Frameworks */,
+ 1F120B0A1C76C809009CF89F /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ 1F120B0F1C76C809009CF89F /* PBXTargetDependency */,
+ );
+ name = "Snorlax-OSXTests";
+ productName = "Snorlax-OSXTests";
+ productReference = 1F120B0C1C76C809009CF89F /* Snorlax-OSXTests.xctest */;
+ productType = "com.apple.product-type.bundle.unit-test";
+ };
/* End PBXNativeTarget section */
/* Begin PBXProject section */
@@ -155,6 +249,12 @@
1F120AEB1C757216009CF89F = {
CreatedOnToolsVersion = 7.2.1;
};
+ 1F120B021C76C807009CF89F = {
+ CreatedOnToolsVersion = 7.2.1;
+ };
+ 1F120B0B1C76C809009CF89F = {
+ CreatedOnToolsVersion = 7.2.1;
+ };
};
};
buildConfigurationList = 1F120ADC1C757216009CF89F /* Build configuration list for PBXProject "Snorlax" */;
@@ -171,6 +271,8 @@
targets = (
1F120AE11C757216009CF89F /* Snorlax-iOS */,
1F120AEB1C757216009CF89F /* Snorlax-iOS Tests */,
+ 1F120B021C76C807009CF89F /* Snorlax-OSX */,
+ 1F120B0B1C76C809009CF89F /* Snorlax-OSXTests */,
);
};
/* End PBXProject section */
@@ -190,6 +292,20 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
+ 1F120B011C76C807009CF89F /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 1F120B0A1C76C809009CF89F /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
@@ -209,6 +325,22 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
+ 1F120AFE1C76C807009CF89F /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 1F120B1C1C76C9CB009CF89F /* Snorlax.swift in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 1F120B081C76C809009CF89F /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 1F120B1B1C76C909009CF89F /* SnorlaxTests.swift in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
@@ -217,6 +349,11 @@
target = 1F120AE11C757216009CF89F /* Snorlax-iOS */;
targetProxy = 1F120AEE1C757216009CF89F /* PBXContainerItemProxy */;
};
+ 1F120B0F1C76C809009CF89F /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = 1F120B021C76C807009CF89F /* Snorlax-OSX */;
+ targetProxy = 1F120B0E1C76C809009CF89F /* PBXContainerItemProxy */;
+ };
/* End PBXTargetDependency section */
/* Begin XCBuildConfiguration section */
@@ -312,6 +449,7 @@
1F120AF71C757216009CF89F /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ APPLICATION_EXTENSION_API_ONLY = YES;
CLANG_ENABLE_MODULES = YES;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
@@ -330,6 +468,7 @@
1F120AF81C757216009CF89F /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ APPLICATION_EXTENSION_API_ONLY = YES;
CLANG_ENABLE_MODULES = YES;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
@@ -364,6 +503,78 @@
};
name = Release;
};
+ 1F120B151C76C809009CF89F /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ APPLICATION_EXTENSION_API_ONLY = YES;
+ CODE_SIGN_IDENTITY = "-";
+ COMBINE_HIDPI_IMAGES = YES;
+ DEFINES_MODULE = YES;
+ DYLIB_COMPATIBILITY_VERSION = 1;
+ DYLIB_CURRENT_VERSION = 1;
+ DYLIB_INSTALL_NAME_BASE = "@rpath";
+ FRAMEWORK_VERSION = A;
+ INFOPLIST_FILE = "Snorlax-OSX/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 = "net.jeffhui.Snorlax-OSX";
+ PRODUCT_NAME = Snorlax;
+ SDKROOT = macosx;
+ SKIP_INSTALL = YES;
+ };
+ name = Debug;
+ };
+ 1F120B161C76C809009CF89F /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ APPLICATION_EXTENSION_API_ONLY = YES;
+ CODE_SIGN_IDENTITY = "-";
+ COMBINE_HIDPI_IMAGES = YES;
+ DEFINES_MODULE = YES;
+ DYLIB_COMPATIBILITY_VERSION = 1;
+ DYLIB_CURRENT_VERSION = 1;
+ DYLIB_INSTALL_NAME_BASE = "@rpath";
+ FRAMEWORK_VERSION = A;
+ INFOPLIST_FILE = "Snorlax-OSX/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 = "net.jeffhui.Snorlax-OSX";
+ PRODUCT_NAME = Snorlax;
+ SDKROOT = macosx;
+ SKIP_INSTALL = YES;
+ };
+ name = Release;
+ };
+ 1F120B181C76C809009CF89F /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ CODE_SIGN_IDENTITY = "-";
+ COMBINE_HIDPI_IMAGES = YES;
+ INFOPLIST_FILE = "Snorlax-OSXTests/Info.plist";
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
+ MACOSX_DEPLOYMENT_TARGET = 10.11;
+ PRODUCT_BUNDLE_IDENTIFIER = "net.jeffhui.Snorlax-OSXTests";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SDKROOT = macosx;
+ };
+ name = Debug;
+ };
+ 1F120B191C76C809009CF89F /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ CODE_SIGN_IDENTITY = "-";
+ COMBINE_HIDPI_IMAGES = YES;
+ INFOPLIST_FILE = "Snorlax-OSXTests/Info.plist";
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
+ MACOSX_DEPLOYMENT_TARGET = 10.11;
+ PRODUCT_BUNDLE_IDENTIFIER = "net.jeffhui.Snorlax-OSXTests";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SDKROOT = macosx;
+ };
+ name = Release;
+ };
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
@@ -392,6 +603,22 @@
);
defaultConfigurationIsVisible = 0;
};
+ 1F120B141C76C809009CF89F /* Build configuration list for PBXNativeTarget "Snorlax-OSX" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 1F120B151C76C809009CF89F /* Debug */,
+ 1F120B161C76C809009CF89F /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ };
+ 1F120B171C76C809009CF89F /* Build configuration list for PBXNativeTarget "Snorlax-OSXTests" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 1F120B181C76C809009CF89F /* Debug */,
+ 1F120B191C76C809009CF89F /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ };
/* End XCConfigurationList section */
};
rootObject = 1F120AD91C757216009CF89F /* Project object */;
diff --git a/Snorlax.xcodeproj/xcuserdata/jeff.xcuserdatad/xcschemes/Snorlax-OSX.xcscheme b/Snorlax.xcodeproj/xcuserdata/jeff.xcuserdatad/xcschemes/Snorlax-OSX.xcscheme
new file mode 100644
index 0000000..a620fa3
--- /dev/null
+++ b/Snorlax.xcodeproj/xcuserdata/jeff.xcuserdatad/xcschemes/Snorlax-OSX.xcscheme
@@ -0,0 +1,99 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Snorlax.xcodeproj/xcuserdata/jeff.xcuserdatad/xcschemes/Snorlax.xcscheme b/Snorlax.xcodeproj/xcuserdata/jeff.xcuserdatad/xcschemes/Snorlax-iOS.xcscheme
similarity index 94%
rename from Snorlax.xcodeproj/xcuserdata/jeff.xcuserdatad/xcschemes/Snorlax.xcscheme
rename to Snorlax.xcodeproj/xcuserdata/jeff.xcuserdatad/xcschemes/Snorlax-iOS.xcscheme
index dbc7672..1503630 100644
--- a/Snorlax.xcodeproj/xcuserdata/jeff.xcuserdatad/xcschemes/Snorlax.xcscheme
+++ b/Snorlax.xcodeproj/xcuserdata/jeff.xcuserdatad/xcschemes/Snorlax-iOS.xcscheme
@@ -15,7 +15,7 @@
@@ -43,7 +43,7 @@
@@ -65,7 +65,7 @@
@@ -83,7 +83,7 @@
diff --git a/Snorlax.xcodeproj/xcuserdata/jeff.xcuserdatad/xcschemes/xcschememanagement.plist b/Snorlax.xcodeproj/xcuserdata/jeff.xcuserdatad/xcschemes/xcschememanagement.plist
index bb502b7..06faf86 100644
--- a/Snorlax.xcodeproj/xcuserdata/jeff.xcuserdatad/xcschemes/xcschememanagement.plist
+++ b/Snorlax.xcodeproj/xcuserdata/jeff.xcuserdatad/xcschemes/xcschememanagement.plist
@@ -4,7 +4,12 @@
SchemeUserState
- Snorlax.xcscheme
+ Snorlax-OSX.xcscheme
+
+ orderHint
+ 1
+
+ Snorlax-iOS.xcscheme
orderHint
0
@@ -22,6 +27,16 @@
primary
+ 1F120B021C76C807009CF89F
+
+ primary
+
+
+ 1F120B0B1C76C809009CF89F
+
+ primary
+
+
diff --git a/Snorlax/Snorlax.h b/Snorlax/Snorlax.h
index b31c593..306e261 100644
--- a/Snorlax/Snorlax.h
+++ b/Snorlax/Snorlax.h
@@ -1,19 +1,7 @@
-//
-// Snorlax.h
-// Snorlax
-//
-// Created by Jeff Hui on 2/17/16.
-// Copyright © 2016 Jeff Hui. All rights reserved.
-//
-
-#import
+@import Foundation;
//! Project version number for Snorlax.
FOUNDATION_EXPORT double SnorlaxVersionNumber;
//! Project version string for Snorlax.
FOUNDATION_EXPORT const unsigned char SnorlaxVersionString[];
-
-// In this header, you should import all the public headers of your framework using statements like #import
-
-