diff --git a/YogaKit/BUCK b/YogaKit/BUCK index 900ededb..f2c32e83 100644 --- a/YogaKit/BUCK +++ b/YogaKit/BUCK @@ -45,8 +45,8 @@ apple_library( apple_test( name = 'YogaKitTests', compiler_flags = COMPILER_FLAGS, - info_plist = 'Tests/Info.plist', - srcs = glob(['Tests/**/*.m']), + info_plist = 'YogaKitTests/Info.plist', + srcs = glob(['YogaKitTests/**/*.m']), frameworks = [ '$SDKROOT/System/Library/Frameworks/CoreGraphics.framework', '$PLATFORM_DIR/Developer/Library/Frameworks/XCTest.framework', diff --git a/YogaKit/UIView+Yoga.h b/YogaKit/UIView+Yoga.h index 734c13d4..00fe5a9f 100644 --- a/YogaKit/UIView+Yoga.h +++ b/YogaKit/UIView+Yoga.h @@ -8,7 +8,7 @@ */ #import -#import +#import @interface UIView (Yoga) diff --git a/YogaKit/UIView+Yoga.m b/YogaKit/UIView+Yoga.m index 980a7683..eeadeadc 100644 --- a/YogaKit/UIView+Yoga.m +++ b/YogaKit/UIView+Yoga.m @@ -8,6 +8,7 @@ */ #import "UIView+Yoga.h" +#import #import diff --git a/YogaKit/YogaKit.xcodeproj/project.pbxproj b/YogaKit/YogaKit.xcodeproj/project.pbxproj new file mode 100644 index 00000000..5935014a --- /dev/null +++ b/YogaKit/YogaKit.xcodeproj/project.pbxproj @@ -0,0 +1,588 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 63C412861E11766000E214E3 /* YogaKit.h in Headers */ = {isa = PBXBuildFile; fileRef = 63C412841E11766000E214E3 /* YogaKit.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 63C412931E1176B700E214E3 /* YogaKitTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 63C412921E1176B700E214E3 /* YogaKitTests.m */; }; + 63C412951E1176B700E214E3 /* YogaKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 63C412811E11766000E214E3 /* YogaKit.framework */; }; + 63C412A31E1176D200E214E3 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 63C412A21E1176D200E214E3 /* main.m */; }; + 63C412A61E1176D300E214E3 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 63C412A51E1176D300E214E3 /* AppDelegate.m */; }; + 63C412A91E1176D300E214E3 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 63C412A81E1176D300E214E3 /* ViewController.m */; }; + 63C412AC1E1176D300E214E3 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 63C412AA1E1176D300E214E3 /* Main.storyboard */; }; + 63C412AE1E1176D300E214E3 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 63C412AD1E1176D300E214E3 /* Assets.xcassets */; }; + 63C412B11E1176D300E214E3 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 63C412AF1E1176D300E214E3 /* LaunchScreen.storyboard */; }; + 63C412B81E11771400E214E3 /* UIView+Yoga.h in Headers */ = {isa = PBXBuildFile; fileRef = 63C412B61E11771400E214E3 /* UIView+Yoga.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 63C412B91E11771400E214E3 /* UIView+Yoga.m in Sources */ = {isa = PBXBuildFile; fileRef = 63C412B71E11771400E214E3 /* UIView+Yoga.m */; }; + 63C412C51E1177AA00E214E3 /* YGEnums.h in Headers */ = {isa = PBXBuildFile; fileRef = 63C412BF1E1177AA00E214E3 /* YGEnums.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 63C412C61E1177AA00E214E3 /* YGMacros.h in Headers */ = {isa = PBXBuildFile; fileRef = 63C412C01E1177AA00E214E3 /* YGMacros.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 63C412C71E1177AA00E214E3 /* YGNodeList.c in Sources */ = {isa = PBXBuildFile; fileRef = 63C412C11E1177AA00E214E3 /* YGNodeList.c */; }; + 63C412C81E1177AA00E214E3 /* YGNodeList.h in Headers */ = {isa = PBXBuildFile; fileRef = 63C412C21E1177AA00E214E3 /* YGNodeList.h */; }; + 63C412C91E1177AA00E214E3 /* Yoga.c in Sources */ = {isa = PBXBuildFile; fileRef = 63C412C31E1177AA00E214E3 /* Yoga.c */; }; + 63C412CA1E1177AA00E214E3 /* Yoga.h in Headers */ = {isa = PBXBuildFile; fileRef = 63C412C41E1177AA00E214E3 /* Yoga.h */; }; + 63F76BE31E117887006CC88A /* YogaKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 63C412811E11766000E214E3 /* YogaKit.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 63C412961E1176B700E214E3 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 63C412781E11766000E214E3 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 63C412801E11766000E214E3; + remoteInfo = YogaKit; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 63C412811E11766000E214E3 /* YogaKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = YogaKit.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 63C412841E11766000E214E3 /* YogaKit.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = YogaKit.h; sourceTree = ""; }; + 63C412851E11766000E214E3 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 63C412901E1176B700E214E3 /* YogaKitTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = YogaKitTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 63C412921E1176B700E214E3 /* YogaKitTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = YogaKitTests.m; sourceTree = ""; }; + 63C412941E1176B700E214E3 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 63C4129F1E1176D200E214E3 /* YogaKitSample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = YogaKitSample.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 63C412A21E1176D200E214E3 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 63C412A41E1176D300E214E3 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 63C412A51E1176D300E214E3 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 63C412A71E1176D300E214E3 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; + 63C412A81E1176D300E214E3 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; + 63C412AB1E1176D300E214E3 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 63C412AD1E1176D300E214E3 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 63C412B01E1176D300E214E3 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 63C412B21E1176D300E214E3 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 63C412B61E11771400E214E3 /* UIView+Yoga.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIView+Yoga.h"; sourceTree = SOURCE_ROOT; }; + 63C412B71E11771400E214E3 /* UIView+Yoga.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIView+Yoga.m"; sourceTree = SOURCE_ROOT; }; + 63C412BF1E1177AA00E214E3 /* YGEnums.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = YGEnums.h; sourceTree = ""; }; + 63C412C01E1177AA00E214E3 /* YGMacros.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = YGMacros.h; sourceTree = ""; }; + 63C412C11E1177AA00E214E3 /* YGNodeList.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = YGNodeList.c; sourceTree = ""; }; + 63C412C21E1177AA00E214E3 /* YGNodeList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = YGNodeList.h; sourceTree = ""; }; + 63C412C31E1177AA00E214E3 /* Yoga.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = Yoga.c; sourceTree = ""; }; + 63C412C41E1177AA00E214E3 /* Yoga.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Yoga.h; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 63C4127D1E11766000E214E3 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 63C4128D1E1176B700E214E3 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 63C412951E1176B700E214E3 /* YogaKit.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 63C4129C1E1176D200E214E3 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 63F76BE31E117887006CC88A /* YogaKit.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 63C412771E11766000E214E3 = { + isa = PBXGroup; + children = ( + 63C412831E11766000E214E3 /* YogaKit */, + 63C412911E1176B700E214E3 /* YogaKitTests */, + 63C412A01E1176D200E214E3 /* YogaKitSample */, + 63C412821E11766000E214E3 /* Products */, + ); + sourceTree = ""; + }; + 63C412821E11766000E214E3 /* Products */ = { + isa = PBXGroup; + children = ( + 63C412811E11766000E214E3 /* YogaKit.framework */, + 63C412901E1176B700E214E3 /* YogaKitTests.xctest */, + 63C4129F1E1176D200E214E3 /* YogaKitSample.app */, + ); + name = Products; + sourceTree = ""; + }; + 63C412831E11766000E214E3 /* YogaKit */ = { + isa = PBXGroup; + children = ( + 63C412BE1E1177AA00E214E3 /* yoga */, + 63C412B61E11771400E214E3 /* UIView+Yoga.h */, + 63C412B71E11771400E214E3 /* UIView+Yoga.m */, + 63C412841E11766000E214E3 /* YogaKit.h */, + 63C412851E11766000E214E3 /* Info.plist */, + ); + path = YogaKit; + sourceTree = ""; + }; + 63C412911E1176B700E214E3 /* YogaKitTests */ = { + isa = PBXGroup; + children = ( + 63C412921E1176B700E214E3 /* YogaKitTests.m */, + 63C412941E1176B700E214E3 /* Info.plist */, + ); + path = YogaKitTests; + sourceTree = ""; + }; + 63C412A01E1176D200E214E3 /* YogaKitSample */ = { + isa = PBXGroup; + children = ( + 63C412A41E1176D300E214E3 /* AppDelegate.h */, + 63C412A51E1176D300E214E3 /* AppDelegate.m */, + 63C412A71E1176D300E214E3 /* ViewController.h */, + 63C412A81E1176D300E214E3 /* ViewController.m */, + 63C412AA1E1176D300E214E3 /* Main.storyboard */, + 63C412AD1E1176D300E214E3 /* Assets.xcassets */, + 63C412AF1E1176D300E214E3 /* LaunchScreen.storyboard */, + 63C412B21E1176D300E214E3 /* Info.plist */, + 63C412A11E1176D200E214E3 /* Supporting Files */, + ); + path = YogaKitSample; + sourceTree = ""; + }; + 63C412A11E1176D200E214E3 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 63C412A21E1176D200E214E3 /* main.m */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 63C412BE1E1177AA00E214E3 /* yoga */ = { + isa = PBXGroup; + children = ( + 63C412BF1E1177AA00E214E3 /* YGEnums.h */, + 63C412C01E1177AA00E214E3 /* YGMacros.h */, + 63C412C11E1177AA00E214E3 /* YGNodeList.c */, + 63C412C21E1177AA00E214E3 /* YGNodeList.h */, + 63C412C31E1177AA00E214E3 /* Yoga.c */, + 63C412C41E1177AA00E214E3 /* Yoga.h */, + ); + name = yoga; + path = ../../yoga; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + 63C4127E1E11766000E214E3 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 63C412861E11766000E214E3 /* YogaKit.h in Headers */, + 63C412C61E1177AA00E214E3 /* YGMacros.h in Headers */, + 63C412B81E11771400E214E3 /* UIView+Yoga.h in Headers */, + 63C412C81E1177AA00E214E3 /* YGNodeList.h in Headers */, + 63C412CA1E1177AA00E214E3 /* Yoga.h in Headers */, + 63C412C51E1177AA00E214E3 /* YGEnums.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + 63C412801E11766000E214E3 /* YogaKit */ = { + isa = PBXNativeTarget; + buildConfigurationList = 63C412891E11766000E214E3 /* Build configuration list for PBXNativeTarget "YogaKit" */; + buildPhases = ( + 63C4127C1E11766000E214E3 /* Sources */, + 63C4127D1E11766000E214E3 /* Frameworks */, + 63C4127E1E11766000E214E3 /* Headers */, + 63C4127F1E11766000E214E3 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = YogaKit; + productName = YogaKit; + productReference = 63C412811E11766000E214E3 /* YogaKit.framework */; + productType = "com.apple.product-type.framework"; + }; + 63C4128F1E1176B700E214E3 /* YogaKitTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 63C4129A1E1176B700E214E3 /* Build configuration list for PBXNativeTarget "YogaKitTests" */; + buildPhases = ( + 63C4128C1E1176B700E214E3 /* Sources */, + 63C4128D1E1176B700E214E3 /* Frameworks */, + 63C4128E1E1176B700E214E3 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 63C412971E1176B700E214E3 /* PBXTargetDependency */, + ); + name = YogaKitTests; + productName = YogaKitTests; + productReference = 63C412901E1176B700E214E3 /* YogaKitTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 63C4129E1E1176D200E214E3 /* YogaKitSample */ = { + isa = PBXNativeTarget; + buildConfigurationList = 63C412B31E1176D300E214E3 /* Build configuration list for PBXNativeTarget "YogaKitSample" */; + buildPhases = ( + 63C4129B1E1176D200E214E3 /* Sources */, + 63C4129C1E1176D200E214E3 /* Frameworks */, + 63C4129D1E1176D200E214E3 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = YogaKitSample; + productName = YogaKitSample; + productReference = 63C4129F1E1176D200E214E3 /* YogaKitSample.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 63C412781E11766000E214E3 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0820; + ORGANIZATIONNAME = Facebook; + TargetAttributes = { + 63C412801E11766000E214E3 = { + CreatedOnToolsVersion = 8.2.1; + ProvisioningStyle = Automatic; + }; + 63C4128F1E1176B700E214E3 = { + CreatedOnToolsVersion = 8.2.1; + ProvisioningStyle = Automatic; + }; + 63C4129E1E1176D200E214E3 = { + CreatedOnToolsVersion = 8.2.1; + ProvisioningStyle = Automatic; + }; + }; + }; + buildConfigurationList = 63C4127B1E11766000E214E3 /* Build configuration list for PBXProject "YogaKit" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 63C412771E11766000E214E3; + productRefGroup = 63C412821E11766000E214E3 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 63C412801E11766000E214E3 /* YogaKit */, + 63C4128F1E1176B700E214E3 /* YogaKitTests */, + 63C4129E1E1176D200E214E3 /* YogaKitSample */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 63C4127F1E11766000E214E3 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 63C4128E1E1176B700E214E3 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 63C4129D1E1176D200E214E3 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 63C412B11E1176D300E214E3 /* LaunchScreen.storyboard in Resources */, + 63C412AE1E1176D300E214E3 /* Assets.xcassets in Resources */, + 63C412AC1E1176D300E214E3 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 63C4127C1E11766000E214E3 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 63C412C91E1177AA00E214E3 /* Yoga.c in Sources */, + 63C412B91E11771400E214E3 /* UIView+Yoga.m in Sources */, + 63C412C71E1177AA00E214E3 /* YGNodeList.c in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 63C4128C1E1176B700E214E3 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 63C412931E1176B700E214E3 /* YogaKitTests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 63C4129B1E1176D200E214E3 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 63C412A91E1176D300E214E3 /* ViewController.m in Sources */, + 63C412A61E1176D300E214E3 /* AppDelegate.m in Sources */, + 63C412A31E1176D200E214E3 /* main.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 63C412971E1176B700E214E3 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 63C412801E11766000E214E3 /* YogaKit */; + targetProxy = 63C412961E1176B700E214E3 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 63C412AA1E1176D300E214E3 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 63C412AB1E1176D300E214E3 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 63C412AF1E1176D300E214E3 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 63C412B01E1176D300E214E3 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 63C412871E11766000E214E3 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 10.2; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + 63C412881E11766000E214E3 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 10.2; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + 63C4128A1E11766000E214E3 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_IDENTITY = ""; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = YogaKit/Info.plist; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.facebook.YogaKit; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + }; + name = Debug; + }; + 63C4128B1E11766000E214E3 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_IDENTITY = ""; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = YogaKit/Info.plist; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.facebook.YogaKit; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + }; + name = Release; + }; + 63C412981E1176B700E214E3 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + INFOPLIST_FILE = YogaKitTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.facebook.YogaKitTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + 63C412991E1176B700E214E3 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + INFOPLIST_FILE = YogaKitTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.facebook.YogaKitTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; + 63C412B41E1176D300E214E3 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = YogaKitSample/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.facebook.YogaKitSample; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + 63C412B51E1176D300E214E3 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = YogaKitSample/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.facebook.YogaKitSample; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 63C4127B1E11766000E214E3 /* Build configuration list for PBXProject "YogaKit" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 63C412871E11766000E214E3 /* Debug */, + 63C412881E11766000E214E3 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 63C412891E11766000E214E3 /* Build configuration list for PBXNativeTarget "YogaKit" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 63C4128A1E11766000E214E3 /* Debug */, + 63C4128B1E11766000E214E3 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 63C4129A1E1176B700E214E3 /* Build configuration list for PBXNativeTarget "YogaKitTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 63C412981E1176B700E214E3 /* Debug */, + 63C412991E1176B700E214E3 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 63C412B31E1176D300E214E3 /* Build configuration list for PBXNativeTarget "YogaKitSample" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 63C412B41E1176D300E214E3 /* Debug */, + 63C412B51E1176D300E214E3 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 63C412781E11766000E214E3 /* Project object */; +} diff --git a/YogaKit/YogaKitSample/YogaKitSample.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/YogaKit/YogaKit.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 68% rename from YogaKit/YogaKitSample/YogaKitSample.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to YogaKit/YogaKit.xcodeproj/project.xcworkspace/contents.xcworkspacedata index b8f12e0b..98dd3194 100644 --- a/YogaKit/YogaKitSample/YogaKitSample.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ b/YogaKit/YogaKit.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -2,6 +2,6 @@ + location = "self:YogaKit.xcodeproj"> diff --git a/YogaKit/YogaKit/Info.plist b/YogaKit/YogaKit/Info.plist new file mode 100644 index 00000000..fbe1e6b3 --- /dev/null +++ b/YogaKit/YogaKit/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleVersion + $(CURRENT_PROJECT_VERSION) + NSPrincipalClass + + + diff --git a/YogaKit/YogaKit/YogaKit.h b/YogaKit/YogaKit/YogaKit.h new file mode 100644 index 00000000..af47e8dd --- /dev/null +++ b/YogaKit/YogaKit/YogaKit.h @@ -0,0 +1,18 @@ +/** + * Copyright 2014-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE-examples file in the root directory of this source tree. + */ + +#import + +//! Project version number for YogaKit. +FOUNDATION_EXPORT double YogaKitVersionNumber; + +//! Project version string for YogaKit. +FOUNDATION_EXPORT const unsigned char YogaKitVersionString[]; + +#import +#import diff --git a/YogaKit/YogaKitSample/YogaKitSample/AppDelegate.h b/YogaKit/YogaKitSample/AppDelegate.h similarity index 99% rename from YogaKit/YogaKitSample/YogaKitSample/AppDelegate.h rename to YogaKit/YogaKitSample/AppDelegate.h index dd7af882..72a3b589 100644 --- a/YogaKit/YogaKitSample/YogaKitSample/AppDelegate.h +++ b/YogaKit/YogaKitSample/AppDelegate.h @@ -12,5 +12,6 @@ @property (strong, nonatomic) UIWindow *window; + @end diff --git a/YogaKit/YogaKitSample/AppDelegate.m b/YogaKit/YogaKitSample/AppDelegate.m new file mode 100644 index 00000000..08a5e942 --- /dev/null +++ b/YogaKit/YogaKitSample/AppDelegate.m @@ -0,0 +1,51 @@ +/** + * Copyright 2014-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE-examples file in the root directory of this source tree. + */ + +#import "AppDelegate.h" + +@interface AppDelegate () + +@end + +@implementation AppDelegate + + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { + // Override point for customization after application launch. + return YES; +} + + +- (void)applicationWillResignActive:(UIApplication *)application { + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. +} + + +- (void)applicationDidEnterBackground:(UIApplication *)application { + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. +} + + +- (void)applicationWillEnterForeground:(UIApplication *)application { + // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. +} + + +- (void)applicationDidBecomeActive:(UIApplication *)application { + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. +} + + +- (void)applicationWillTerminate:(UIApplication *)application { + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. +} + + +@end diff --git a/YogaKit/YogaKitSample/YogaKitSample/Assets.xcassets/AppIcon.appiconset/Contents.json b/YogaKit/YogaKitSample/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 77% rename from YogaKit/YogaKitSample/YogaKitSample/Assets.xcassets/AppIcon.appiconset/Contents.json rename to YogaKit/YogaKitSample/Assets.xcassets/AppIcon.appiconset/Contents.json index b8236c65..118c98f7 100644 --- a/YogaKit/YogaKitSample/YogaKitSample/Assets.xcassets/AppIcon.appiconset/Contents.json +++ b/YogaKit/YogaKitSample/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -1,15 +1,5 @@ { "images" : [ - { - "idiom" : "iphone", - "size" : "20x20", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "20x20", - "scale" : "3x" - }, { "idiom" : "iphone", "size" : "29x29", diff --git a/YogaKit/YogaKitSample/Base.lproj/LaunchScreen.storyboard b/YogaKit/YogaKitSample/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 00000000..fdf3f97d --- /dev/null +++ b/YogaKit/YogaKitSample/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/YogaKit/YogaKitSample/Base.lproj/Main.storyboard b/YogaKit/YogaKitSample/Base.lproj/Main.storyboard new file mode 100644 index 00000000..4529698c --- /dev/null +++ b/YogaKit/YogaKitSample/Base.lproj/Main.storyboard @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/YogaKit/YogaKitSample/YogaKitSample/Info.plist b/YogaKit/YogaKitSample/Info.plist similarity index 92% rename from YogaKit/YogaKitSample/YogaKitSample/Info.plist rename to YogaKit/YogaKitSample/Info.plist index 22ca2cd4..38e98af2 100644 --- a/YogaKit/YogaKitSample/YogaKitSample/Info.plist +++ b/YogaKit/YogaKitSample/Info.plist @@ -21,7 +21,9 @@ LSRequiresIPhoneOS UILaunchStoryboardName - + LaunchScreen + UIMainStoryboardFile + Main UIRequiredDeviceCapabilities armv7 diff --git a/YogaKit/YogaKitSample/YogaKitSample/ViewController.h b/YogaKit/YogaKitSample/ViewController.h similarity index 100% rename from YogaKit/YogaKitSample/YogaKitSample/ViewController.h rename to YogaKit/YogaKitSample/ViewController.h diff --git a/YogaKit/YogaKitSample/YogaKitSample/ViewController.m b/YogaKit/YogaKitSample/ViewController.m similarity index 100% rename from YogaKit/YogaKitSample/YogaKitSample/ViewController.m rename to YogaKit/YogaKitSample/ViewController.m diff --git a/YogaKit/YogaKitSample/YogaKitSample.xcodeproj/project.pbxproj b/YogaKit/YogaKitSample/YogaKitSample.xcodeproj/project.pbxproj deleted file mode 100644 index 7232ec9f..00000000 --- a/YogaKit/YogaKitSample/YogaKitSample.xcodeproj/project.pbxproj +++ /dev/null @@ -1,376 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 13687D481DF8748400E7C260 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13687D471DF8748400E7C260 /* main.m */; }; - 13687D4B1DF8748400E7C260 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13687D4A1DF8748400E7C260 /* AppDelegate.m */; }; - 13687D4E1DF8748400E7C260 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 13687D4D1DF8748400E7C260 /* ViewController.m */; }; - 13687D531DF8748400E7C260 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13687D521DF8748400E7C260 /* Assets.xcassets */; }; - 13687D781DF878C600E7C260 /* YGEnums.h in yoga */ = {isa = PBXBuildFile; fileRef = 13687D5E1DF8778F00E7C260 /* YGEnums.h */; }; - 13687D791DF878C600E7C260 /* YGMacros.h in yoga */ = {isa = PBXBuildFile; fileRef = 13687D5F1DF8778F00E7C260 /* YGMacros.h */; }; - 13687D7A1DF878C600E7C260 /* Yoga.h in yoga */ = {isa = PBXBuildFile; fileRef = 13687D631DF8778F00E7C260 /* Yoga.h */; }; - 13687D7C1DF878DD00E7C260 /* UIView+Yoga.h in YogaKit */ = {isa = PBXBuildFile; fileRef = 13687D691DF8778F00E7C260 /* UIView+Yoga.h */; }; - 13687D801DF87CEC00E7C260 /* UIView+Yoga.m in Sources */ = {isa = PBXBuildFile; fileRef = 13687D6A1DF8778F00E7C260 /* UIView+Yoga.m */; }; - 13687D811DF87CF200E7C260 /* YGNodeList.c in Sources */ = {isa = PBXBuildFile; fileRef = 13687D601DF8778F00E7C260 /* YGNodeList.c */; }; - 13687D821DF87CF200E7C260 /* Yoga.c in Sources */ = {isa = PBXBuildFile; fileRef = 13687D621DF8778F00E7C260 /* Yoga.c */; }; - 13687D851DF87D1E00E7C260 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 13687D841DF87D1E00E7C260 /* UIKit.framework */; }; - 13687D871DF87D2400E7C260 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 13687D861DF87D2400E7C260 /* Foundation.framework */; }; -/* End PBXBuildFile section */ - -/* Begin PBXCopyFilesBuildPhase section */ - 13687D771DF878A000E7C260 /* yoga */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = include/yoga; - dstSubfolderSpec = 16; - files = ( - 13687D781DF878C600E7C260 /* YGEnums.h in yoga */, - 13687D791DF878C600E7C260 /* YGMacros.h in yoga */, - 13687D7A1DF878C600E7C260 /* Yoga.h in yoga */, - ); - name = yoga; - runOnlyForDeploymentPostprocessing = 0; - }; - 13687D7B1DF878CE00E7C260 /* YogaKit */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = include/YogaKit; - dstSubfolderSpec = 16; - files = ( - 13687D7C1DF878DD00E7C260 /* UIView+Yoga.h in YogaKit */, - ); - name = YogaKit; - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXCopyFilesBuildPhase section */ - -/* Begin PBXFileReference section */ - 13687D431DF8748400E7C260 /* YogaKitSample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = YogaKitSample.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 13687D471DF8748400E7C260 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; - 13687D491DF8748400E7C260 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; - 13687D4A1DF8748400E7C260 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; - 13687D4C1DF8748400E7C260 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; - 13687D4D1DF8748400E7C260 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; - 13687D521DF8748400E7C260 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 13687D571DF8748400E7C260 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 13687D5E1DF8778F00E7C260 /* YGEnums.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = YGEnums.h; sourceTree = ""; }; - 13687D5F1DF8778F00E7C260 /* YGMacros.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = YGMacros.h; sourceTree = ""; }; - 13687D601DF8778F00E7C260 /* YGNodeList.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = YGNodeList.c; sourceTree = ""; }; - 13687D611DF8778F00E7C260 /* YGNodeList.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = YGNodeList.h; sourceTree = ""; }; - 13687D621DF8778F00E7C260 /* Yoga.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = Yoga.c; sourceTree = ""; }; - 13687D631DF8778F00E7C260 /* Yoga.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Yoga.h; sourceTree = ""; }; - 13687D691DF8778F00E7C260 /* UIView+Yoga.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "UIView+Yoga.h"; sourceTree = ""; }; - 13687D6A1DF8778F00E7C260 /* UIView+Yoga.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "UIView+Yoga.m"; sourceTree = ""; }; - 13687D841DF87D1E00E7C260 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; - 13687D861DF87D2400E7C260 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 13687D401DF8748300E7C260 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 13687D871DF87D2400E7C260 /* Foundation.framework in Frameworks */, - 13687D851DF87D1E00E7C260 /* UIKit.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 13687D3A1DF8748300E7C260 = { - isa = PBXGroup; - children = ( - 13687D5D1DF8778F00E7C260 /* yoga */, - 13687D641DF8778F00E7C260 /* YogaKit */, - 13687D451DF8748400E7C260 /* YogaKitSample */, - 13687D441DF8748400E7C260 /* Products */, - 13687D831DF87D1E00E7C260 /* Frameworks */, - ); - sourceTree = ""; - }; - 13687D441DF8748400E7C260 /* Products */ = { - isa = PBXGroup; - children = ( - 13687D431DF8748400E7C260 /* YogaKitSample.app */, - ); - name = Products; - sourceTree = ""; - }; - 13687D451DF8748400E7C260 /* YogaKitSample */ = { - isa = PBXGroup; - children = ( - 13687D491DF8748400E7C260 /* AppDelegate.h */, - 13687D4A1DF8748400E7C260 /* AppDelegate.m */, - 13687D4C1DF8748400E7C260 /* ViewController.h */, - 13687D4D1DF8748400E7C260 /* ViewController.m */, - 13687D521DF8748400E7C260 /* Assets.xcassets */, - 13687D571DF8748400E7C260 /* Info.plist */, - 13687D461DF8748400E7C260 /* Supporting Files */, - ); - path = YogaKitSample; - sourceTree = ""; - }; - 13687D461DF8748400E7C260 /* Supporting Files */ = { - isa = PBXGroup; - children = ( - 13687D471DF8748400E7C260 /* main.m */, - ); - name = "Supporting Files"; - sourceTree = ""; - }; - 13687D5D1DF8778F00E7C260 /* yoga */ = { - isa = PBXGroup; - children = ( - 13687D5E1DF8778F00E7C260 /* YGEnums.h */, - 13687D5F1DF8778F00E7C260 /* YGMacros.h */, - 13687D601DF8778F00E7C260 /* YGNodeList.c */, - 13687D611DF8778F00E7C260 /* YGNodeList.h */, - 13687D621DF8778F00E7C260 /* Yoga.c */, - 13687D631DF8778F00E7C260 /* Yoga.h */, - ); - name = yoga; - path = ../../yoga; - sourceTree = ""; - }; - 13687D641DF8778F00E7C260 /* YogaKit */ = { - isa = PBXGroup; - children = ( - 13687D691DF8778F00E7C260 /* UIView+Yoga.h */, - 13687D6A1DF8778F00E7C260 /* UIView+Yoga.m */, - ); - name = YogaKit; - path = ..; - sourceTree = ""; - }; - 13687D831DF87D1E00E7C260 /* Frameworks */ = { - isa = PBXGroup; - children = ( - 13687D861DF87D2400E7C260 /* Foundation.framework */, - 13687D841DF87D1E00E7C260 /* UIKit.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 13687D421DF8748300E7C260 /* YogaKitSample */ = { - isa = PBXNativeTarget; - buildConfigurationList = 13687D5A1DF8748400E7C260 /* Build configuration list for PBXNativeTarget "YogaKitSample" */; - buildPhases = ( - 13687D771DF878A000E7C260 /* yoga */, - 13687D7B1DF878CE00E7C260 /* YogaKit */, - 13687D3F1DF8748300E7C260 /* Sources */, - 13687D401DF8748300E7C260 /* Frameworks */, - 13687D411DF8748300E7C260 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = YogaKitSample; - productName = YogaKitSample; - productReference = 13687D431DF8748400E7C260 /* YogaKitSample.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 13687D3B1DF8748300E7C260 /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 0810; - ORGANIZATIONNAME = facebook; - TargetAttributes = { - 13687D421DF8748300E7C260 = { - CreatedOnToolsVersion = 8.1; - ProvisioningStyle = Automatic; - }; - }; - }; - buildConfigurationList = 13687D3E1DF8748300E7C260 /* Build configuration list for PBXProject "YogaKitSample" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 13687D3A1DF8748300E7C260; - productRefGroup = 13687D441DF8748400E7C260 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 13687D421DF8748300E7C260 /* YogaKitSample */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 13687D411DF8748300E7C260 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 13687D531DF8748400E7C260 /* Assets.xcassets in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 13687D3F1DF8748300E7C260 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 13687D801DF87CEC00E7C260 /* UIView+Yoga.m in Sources */, - 13687D4E1DF8748400E7C260 /* ViewController.m in Sources */, - 13687D4B1DF8748400E7C260 /* AppDelegate.m in Sources */, - 13687D821DF87CF200E7C260 /* Yoga.c in Sources */, - 13687D811DF87CF200E7C260 /* YGNodeList.c in Sources */, - 13687D481DF8748400E7C260 /* main.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin XCBuildConfiguration section */ - 13687D581DF8748400E7C260 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_SUSPICIOUS_MOVES = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 10.1; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - }; - name = Debug; - }; - 13687D591DF8748400E7C260 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_SUSPICIOUS_MOVES = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 10.1; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 13687D5B1DF8748400E7C260 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = YogaKitSample/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = com.facebook.YogaKitSample; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Debug; - }; - 13687D5C1DF8748400E7C260 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = YogaKitSample/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = com.facebook.YogaKitSample; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 13687D3E1DF8748300E7C260 /* Build configuration list for PBXProject "YogaKitSample" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 13687D581DF8748400E7C260 /* Debug */, - 13687D591DF8748400E7C260 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 13687D5A1DF8748400E7C260 /* Build configuration list for PBXNativeTarget "YogaKitSample" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 13687D5B1DF8748400E7C260 /* Debug */, - 13687D5C1DF8748400E7C260 /* Release */, - ); - defaultConfigurationIsVisible = 0; - }; -/* End XCConfigurationList section */ - }; - rootObject = 13687D3B1DF8748300E7C260 /* Project object */; -} diff --git a/YogaKit/YogaKitSample/YogaKitSample/AppDelegate.m b/YogaKit/YogaKitSample/YogaKitSample/AppDelegate.m deleted file mode 100644 index d1840bc7..00000000 --- a/YogaKit/YogaKitSample/YogaKitSample/AppDelegate.m +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Copyright 2014-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE-examples file in the root directory of this source tree. - */ - -#import "AppDelegate.h" -#import "ViewController.h" - -@interface AppDelegate () - -@end - -@implementation AppDelegate - - -- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { - self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; - self.window.rootViewController = [ViewController new]; - self.window.backgroundColor = [UIColor whiteColor]; - [self.window makeKeyAndVisible]; - return YES; -} - -@end diff --git a/YogaKit/YogaKitSample/YogaKitSample/main.m b/YogaKit/YogaKitSample/YogaKitSample/main.m deleted file mode 100644 index bbef0040..00000000 --- a/YogaKit/YogaKitSample/YogaKitSample/main.m +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright 2014-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE-examples file in the root directory of this source tree. - */ - -#import -#import "AppDelegate.h" - -int main(int argc, char * argv[]) { - @autoreleasepool { - return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); - } -} diff --git a/YogaKit/YogaKitSample/main.m b/YogaKit/YogaKitSample/main.m new file mode 100644 index 00000000..4225ae03 --- /dev/null +++ b/YogaKit/YogaKitSample/main.m @@ -0,0 +1,16 @@ +// +// main.m +// YogaKitSample +// +// Created by David Hart on 26.12.16. +// Copyright © 2016 Facebook. All rights reserved. +// + +#import +#import "AppDelegate.h" + +int main(int argc, char * argv[]) { + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git a/YogaKit/Tests/Info.plist b/YogaKit/YogaKitTests/Info.plist similarity index 100% rename from YogaKit/Tests/Info.plist rename to YogaKit/YogaKitTests/Info.plist diff --git a/YogaKit/Tests/YogaKitTests.m b/YogaKit/YogaKitTests/YogaKitTests.m similarity index 99% rename from YogaKit/Tests/YogaKitTests.m rename to YogaKit/YogaKitTests/YogaKitTests.m index 68d97dd5..3dfdf55a 100644 --- a/YogaKit/Tests/YogaKitTests.m +++ b/YogaKit/YogaKitTests/YogaKitTests.m @@ -10,6 +10,7 @@ #import #import +#import "Yoga.h" @interface YogaKitTests : XCTestCase @end