Create Xcode project with framework targets.

An new Xcode project is created in order to build an iOS
framework as target. This project is Carthage compatible.

A first version of podspec is added, although pod lib lint
fails.

4 tests are failing when run through Xcode.
This commit is contained in:
Guido Marucci Blas
2017-01-23 00:34:34 -03:00
parent 8775cdc13f
commit 7fa1016108
13 changed files with 637 additions and 5 deletions

22
YogaKit/YogaKit.podspec Normal file
View File

@@ -0,0 +1,22 @@
Pod::Spec.new do |spec|
spec.name = 'YogaKit'
spec.version = '1.0.0'
spec.license = { :type => 'BSD-3-Clause', :file => '../LICENSE' }
spec.homepage = 'https://facebook.github.io/yoga/'
spec.authors = {
'Emil Sjölander' => 'sjolander.emil@gmail.com',
'Dustin Shahidehpour' => 'dshahidehpour@gmail.com'
}
spec.summary = 'Yoga is a cross-platform layout engine which implements Flexbox.'
spec.description = <<-DESC
Yoga is a cross-platform layout engine which implements Flexbox.
It enables maximum collaboration within your team by implementing an API familiar to
many designers and opening it up to developers across different platforms.
DESC
spec.documentation_url = 'https://facebook.github.io/yoga/docs/getting-started/'
spec.source = { :git => 'https://github.com/facebook/yoga.git', :tag => "v#{spec.version}" }
spec.platform = :ios
spec.source_files = './YogaKit/*.m', '../yoga/*.c'
spec.public_header_files = './YogaKit/YogaKit.h', './YogaKit/YGLayout.h', './YogaKit/UIView+Yoga.h', '../yoga/YGEnums.h'
spec.private_header_files = '../yoga/*.h', './YogaKit/YGLayout+Private.h'
end

View File

@@ -0,0 +1,459 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
9D4FF13F1E35AB150029DFF7 /* YogaKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9D4FF1351E35AB150029DFF7 /* YogaKit.framework */; };
9D4FF1441E35AB150029DFF7 /* YogaKitTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 9D4FF1431E35AB150029DFF7 /* YogaKitTests.m */; };
9D4FF1461E35AB150029DFF7 /* YogaKit.h in Headers */ = {isa = PBXBuildFile; fileRef = 9D4FF1381E35AB150029DFF7 /* YogaKit.h */; settings = {ATTRIBUTES = (Public, ); }; };
9D4FF1541E35AB870029DFF7 /* UIView+Yoga.h in Headers */ = {isa = PBXBuildFile; fileRef = 9D4FF14F1E35AB870029DFF7 /* UIView+Yoga.h */; settings = {ATTRIBUTES = (Public, ); }; };
9D4FF1551E35AB870029DFF7 /* UIView+Yoga.m in Sources */ = {isa = PBXBuildFile; fileRef = 9D4FF1501E35AB870029DFF7 /* UIView+Yoga.m */; };
9D4FF1561E35AB870029DFF7 /* YGLayout.h in Headers */ = {isa = PBXBuildFile; fileRef = 9D4FF1511E35AB870029DFF7 /* YGLayout.h */; settings = {ATTRIBUTES = (Public, ); }; };
9D4FF1571E35AB870029DFF7 /* YGLayout.m in Sources */ = {isa = PBXBuildFile; fileRef = 9D4FF1521E35AB870029DFF7 /* YGLayout.m */; };
9D4FF1581E35AB870029DFF7 /* YGLayout+Private.h in Headers */ = {isa = PBXBuildFile; fileRef = 9D4FF1531E35AB870029DFF7 /* YGLayout+Private.h */; settings = {ATTRIBUTES = (Private, ); }; };
9D4FF1601E35ABC00029DFF7 /* YGEnums.h in Headers */ = {isa = PBXBuildFile; fileRef = 9D4FF15A1E35ABC00029DFF7 /* YGEnums.h */; settings = {ATTRIBUTES = (Public, ); }; };
9D4FF1611E35ABC00029DFF7 /* YGMacros.h in Headers */ = {isa = PBXBuildFile; fileRef = 9D4FF15B1E35ABC00029DFF7 /* YGMacros.h */; settings = {ATTRIBUTES = (Private, ); }; };
9D4FF1621E35ABC00029DFF7 /* YGNodeList.c in Sources */ = {isa = PBXBuildFile; fileRef = 9D4FF15C1E35ABC00029DFF7 /* YGNodeList.c */; };
9D4FF1631E35ABC00029DFF7 /* YGNodeList.h in Headers */ = {isa = PBXBuildFile; fileRef = 9D4FF15D1E35ABC00029DFF7 /* YGNodeList.h */; settings = {ATTRIBUTES = (Private, ); }; };
9D4FF1641E35ABC00029DFF7 /* Yoga.c in Sources */ = {isa = PBXBuildFile; fileRef = 9D4FF15E1E35ABC00029DFF7 /* Yoga.c */; };
9D4FF1651E35ABC00029DFF7 /* Yoga.h in Headers */ = {isa = PBXBuildFile; fileRef = 9D4FF15F1E35ABC00029DFF7 /* Yoga.h */; settings = {ATTRIBUTES = (Private, ); }; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
9D4FF1401E35AB150029DFF7 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 9D4FF12C1E35AB150029DFF7 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 9D4FF1341E35AB150029DFF7;
remoteInfo = YogaKit;
};
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
9D4FF1351E35AB150029DFF7 /* YogaKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = YogaKit.framework; sourceTree = BUILT_PRODUCTS_DIR; };
9D4FF1381E35AB150029DFF7 /* YogaKit.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = YogaKit.h; sourceTree = "<group>"; };
9D4FF1391E35AB150029DFF7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
9D4FF13E1E35AB150029DFF7 /* YogaKitTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = YogaKitTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
9D4FF1431E35AB150029DFF7 /* YogaKitTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = YogaKitTests.m; sourceTree = "<group>"; };
9D4FF1451E35AB150029DFF7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
9D4FF14F1E35AB870029DFF7 /* UIView+Yoga.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIView+Yoga.h"; sourceTree = "<group>"; };
9D4FF1501E35AB870029DFF7 /* UIView+Yoga.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIView+Yoga.m"; sourceTree = "<group>"; };
9D4FF1511E35AB870029DFF7 /* YGLayout.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = YGLayout.h; sourceTree = "<group>"; };
9D4FF1521E35AB870029DFF7 /* YGLayout.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = YGLayout.m; sourceTree = "<group>"; };
9D4FF1531E35AB870029DFF7 /* YGLayout+Private.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "YGLayout+Private.h"; sourceTree = "<group>"; };
9D4FF15A1E35ABC00029DFF7 /* YGEnums.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = YGEnums.h; path = ../yoga/YGEnums.h; sourceTree = "<group>"; };
9D4FF15B1E35ABC00029DFF7 /* YGMacros.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = YGMacros.h; path = ../yoga/YGMacros.h; sourceTree = "<group>"; };
9D4FF15C1E35ABC00029DFF7 /* YGNodeList.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = YGNodeList.c; path = ../yoga/YGNodeList.c; sourceTree = "<group>"; };
9D4FF15D1E35ABC00029DFF7 /* YGNodeList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = YGNodeList.h; path = ../yoga/YGNodeList.h; sourceTree = "<group>"; };
9D4FF15E1E35ABC00029DFF7 /* Yoga.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = Yoga.c; path = ../yoga/Yoga.c; sourceTree = "<group>"; };
9D4FF15F1E35ABC00029DFF7 /* Yoga.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Yoga.h; path = ../yoga/Yoga.h; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
9D4FF1311E35AB150029DFF7 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
9D4FF13B1E35AB150029DFF7 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
9D4FF13F1E35AB150029DFF7 /* YogaKit.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
9D4FF12B1E35AB150029DFF7 = {
isa = PBXGroup;
children = (
9D4FF1591E35ABAB0029DFF7 /* Yoga */,
9D4FF1371E35AB150029DFF7 /* YogaKit */,
9D4FF1421E35AB150029DFF7 /* YogaKitTests */,
9D4FF1361E35AB150029DFF7 /* Products */,
);
sourceTree = "<group>";
};
9D4FF1361E35AB150029DFF7 /* Products */ = {
isa = PBXGroup;
children = (
9D4FF1351E35AB150029DFF7 /* YogaKit.framework */,
9D4FF13E1E35AB150029DFF7 /* YogaKitTests.xctest */,
);
name = Products;
sourceTree = "<group>";
};
9D4FF1371E35AB150029DFF7 /* YogaKit */ = {
isa = PBXGroup;
children = (
9D4FF14F1E35AB870029DFF7 /* UIView+Yoga.h */,
9D4FF1501E35AB870029DFF7 /* UIView+Yoga.m */,
9D4FF1511E35AB870029DFF7 /* YGLayout.h */,
9D4FF1521E35AB870029DFF7 /* YGLayout.m */,
9D4FF1531E35AB870029DFF7 /* YGLayout+Private.h */,
9D4FF1381E35AB150029DFF7 /* YogaKit.h */,
9D4FF1391E35AB150029DFF7 /* Info.plist */,
);
path = YogaKit;
sourceTree = "<group>";
};
9D4FF1421E35AB150029DFF7 /* YogaKitTests */ = {
isa = PBXGroup;
children = (
9D4FF1431E35AB150029DFF7 /* YogaKitTests.m */,
9D4FF1451E35AB150029DFF7 /* Info.plist */,
);
path = YogaKitTests;
sourceTree = "<group>";
};
9D4FF1591E35ABAB0029DFF7 /* Yoga */ = {
isa = PBXGroup;
children = (
9D4FF15A1E35ABC00029DFF7 /* YGEnums.h */,
9D4FF15B1E35ABC00029DFF7 /* YGMacros.h */,
9D4FF15C1E35ABC00029DFF7 /* YGNodeList.c */,
9D4FF15D1E35ABC00029DFF7 /* YGNodeList.h */,
9D4FF15E1E35ABC00029DFF7 /* Yoga.c */,
9D4FF15F1E35ABC00029DFF7 /* Yoga.h */,
);
name = Yoga;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXHeadersBuildPhase section */
9D4FF1321E35AB150029DFF7 /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
9D4FF1581E35AB870029DFF7 /* YGLayout+Private.h in Headers */,
9D4FF1561E35AB870029DFF7 /* YGLayout.h in Headers */,
9D4FF1541E35AB870029DFF7 /* UIView+Yoga.h in Headers */,
9D4FF1601E35ABC00029DFF7 /* YGEnums.h in Headers */,
9D4FF1461E35AB150029DFF7 /* YogaKit.h in Headers */,
9D4FF1651E35ABC00029DFF7 /* Yoga.h in Headers */,
9D4FF1631E35ABC00029DFF7 /* YGNodeList.h in Headers */,
9D4FF1611E35ABC00029DFF7 /* YGMacros.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXHeadersBuildPhase section */
/* Begin PBXNativeTarget section */
9D4FF1341E35AB150029DFF7 /* YogaKit */ = {
isa = PBXNativeTarget;
buildConfigurationList = 9D4FF1491E35AB150029DFF7 /* Build configuration list for PBXNativeTarget "YogaKit" */;
buildPhases = (
9D4FF1301E35AB150029DFF7 /* Sources */,
9D4FF1311E35AB150029DFF7 /* Frameworks */,
9D4FF1321E35AB150029DFF7 /* Headers */,
9D4FF1331E35AB150029DFF7 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = YogaKit;
productName = YogaKit;
productReference = 9D4FF1351E35AB150029DFF7 /* YogaKit.framework */;
productType = "com.apple.product-type.framework";
};
9D4FF13D1E35AB150029DFF7 /* YogaKitTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = 9D4FF14C1E35AB150029DFF7 /* Build configuration list for PBXNativeTarget "YogaKitTests" */;
buildPhases = (
9D4FF13A1E35AB150029DFF7 /* Sources */,
9D4FF13B1E35AB150029DFF7 /* Frameworks */,
9D4FF13C1E35AB150029DFF7 /* Resources */,
);
buildRules = (
);
dependencies = (
9D4FF1411E35AB150029DFF7 /* PBXTargetDependency */,
);
name = YogaKitTests;
productName = YogaKitTests;
productReference = 9D4FF13E1E35AB150029DFF7 /* YogaKitTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
9D4FF12C1E35AB150029DFF7 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0820;
ORGANIZATIONNAME = "Guido Marucci Blas";
TargetAttributes = {
9D4FF1341E35AB150029DFF7 = {
CreatedOnToolsVersion = 8.2.1;
ProvisioningStyle = Automatic;
};
9D4FF13D1E35AB150029DFF7 = {
CreatedOnToolsVersion = 8.2.1;
ProvisioningStyle = Automatic;
};
};
};
buildConfigurationList = 9D4FF12F1E35AB150029DFF7 /* Build configuration list for PBXProject "YogaKit" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
);
mainGroup = 9D4FF12B1E35AB150029DFF7;
productRefGroup = 9D4FF1361E35AB150029DFF7 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
9D4FF1341E35AB150029DFF7 /* YogaKit */,
9D4FF13D1E35AB150029DFF7 /* YogaKitTests */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
9D4FF1331E35AB150029DFF7 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
9D4FF13C1E35AB150029DFF7 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
9D4FF1301E35AB150029DFF7 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
9D4FF1551E35AB870029DFF7 /* UIView+Yoga.m in Sources */,
9D4FF1571E35AB870029DFF7 /* YGLayout.m in Sources */,
9D4FF1621E35ABC00029DFF7 /* YGNodeList.c in Sources */,
9D4FF1641E35ABC00029DFF7 /* Yoga.c in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
9D4FF13A1E35AB150029DFF7 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
9D4FF1441E35AB150029DFF7 /* YogaKitTests.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
9D4FF1411E35AB150029DFF7 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 9D4FF1341E35AB150029DFF7 /* YogaKit */;
targetProxy = 9D4FF1401E35AB150029DFF7 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin XCBuildConfiguration section */
9D4FF1471E35AB150029DFF7 /* 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;
};
9D4FF1481E35AB150029DFF7 /* 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;
};
9D4FF14A1E35AB150029DFF7 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_IDENTITY = "";
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
HEADER_SEARCH_PATHS = ../;
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;
};
9D4FF14B1E35AB150029DFF7 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_IDENTITY = "";
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
HEADER_SEARCH_PATHS = ../;
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;
};
9D4FF14D1E35AB150029DFF7 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
HEADER_SEARCH_PATHS = ../;
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;
};
9D4FF14E1E35AB150029DFF7 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
HEADER_SEARCH_PATHS = ../;
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;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
9D4FF12F1E35AB150029DFF7 /* Build configuration list for PBXProject "YogaKit" */ = {
isa = XCConfigurationList;
buildConfigurations = (
9D4FF1471E35AB150029DFF7 /* Debug */,
9D4FF1481E35AB150029DFF7 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
9D4FF1491E35AB150029DFF7 /* Build configuration list for PBXNativeTarget "YogaKit" */ = {
isa = XCConfigurationList;
buildConfigurations = (
9D4FF14A1E35AB150029DFF7 /* Debug */,
9D4FF14B1E35AB150029DFF7 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
9D4FF14C1E35AB150029DFF7 /* Build configuration list for PBXNativeTarget "YogaKitTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
9D4FF14D1E35AB150029DFF7 /* Debug */,
9D4FF14E1E35AB150029DFF7 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 9D4FF12C1E35AB150029DFF7 /* Project object */;
}

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:YogaKit.xcodeproj">
</FileRef>
</Workspace>

View File

@@ -0,0 +1,99 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0820"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "9D4FF1341E35AB150029DFF7"
BuildableName = "YogaKit.framework"
BlueprintName = "YogaKit"
ReferencedContainer = "container:YogaKit.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "9D4FF13D1E35AB150029DFF7"
BuildableName = "YogaKitTests.xctest"
BlueprintName = "YogaKitTests"
ReferencedContainer = "container:YogaKit.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "9D4FF1341E35AB150029DFF7"
BuildableName = "YogaKit.framework"
BlueprintName = "YogaKit"
ReferencedContainer = "container:YogaKit.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "9D4FF1341E35AB150029DFF7"
BuildableName = "YogaKit.framework"
BlueprintName = "YogaKit"
ReferencedContainer = "container:YogaKit.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "9D4FF1341E35AB150029DFF7"
BuildableName = "YogaKit.framework"
BlueprintName = "YogaKit"
ReferencedContainer = "container:YogaKit.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>

View File

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>

View File

@@ -8,7 +8,7 @@
*/ */
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#import <yoga/YGEnums.h> #import <YogaKit/YGEnums.h>
@interface YGLayout : NSObject @interface YGLayout : NSObject

21
YogaKit/YogaKit/YogaKit.h Normal file
View File

@@ -0,0 +1,21 @@
//
// YogaKit.h
// YogaKit
//
// Created by Guido Marucci Blas on 1/23/17.
// Copyright © 2017 Guido Marucci Blas. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for YogaKit.
FOUNDATION_EXPORT double YogaKitVersionNumber;
//! Project version string for YogaKit.
FOUNDATION_EXPORT const unsigned char YogaKitVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <YogaKit/PublicHeader.h>
#import <YogaKit/UIView+Yoga.h>
#import <YogaKit/YGLayout.h>
#import <YogaKit/YGEnums.h>

View File

@@ -5,17 +5,17 @@
<key>CFBundleDevelopmentRegion</key> <key>CFBundleDevelopmentRegion</key>
<string>en</string> <string>en</string>
<key>CFBundleExecutable</key> <key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string> <string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key> <key>CFBundleIdentifier</key>
<string>com.facebook.${PRODUCT_NAME:rfc1034identifier}</string> <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key> <key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string> <string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>BNDL</string> <string>BNDL</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>1.0</string> <string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>1</string> <string>1</string>
</dict> </dict>