diff --git a/YogaKit/.swift-version b/YogaKit/.swift-version new file mode 100644 index 00000000..b5021469 --- /dev/null +++ b/YogaKit/.swift-version @@ -0,0 +1 @@ +3.0.2 diff --git a/YogaKit/BUCK b/YogaKit/BUCK index 900ededb..67219020 100644 --- a/YogaKit/BUCK +++ b/YogaKit/BUCK @@ -30,8 +30,8 @@ COMPILER_FLAGS = [ apple_library( name = 'YogaKit', compiler_flags = COMPILER_FLAGS, - srcs = glob(['*.m']), - exported_headers = glob(['*.h']), + srcs = glob(['Source/**/*.m']), + exported_headers = glob(['Source/**/*.h']), frameworks = [ '$SDKROOT/System/Library/Frameworks/Foundation.framework', '$SDKROOT/System/Library/Frameworks/UIKit.framework', diff --git a/YogaKit/UIView+Yoga.h b/YogaKit/Source/UIView+Yoga.h similarity index 100% rename from YogaKit/UIView+Yoga.h rename to YogaKit/Source/UIView+Yoga.h diff --git a/YogaKit/UIView+Yoga.m b/YogaKit/Source/UIView+Yoga.m similarity index 100% rename from YogaKit/UIView+Yoga.m rename to YogaKit/Source/UIView+Yoga.m diff --git a/YogaKit/YGLayout+Private.h b/YogaKit/Source/YGLayout+Private.h similarity index 100% rename from YogaKit/YGLayout+Private.h rename to YogaKit/Source/YGLayout+Private.h diff --git a/YogaKit/YGLayout.h b/YogaKit/Source/YGLayout.h similarity index 100% rename from YogaKit/YGLayout.h rename to YogaKit/Source/YGLayout.h diff --git a/YogaKit/YGLayout.m b/YogaKit/Source/YGLayout.m similarity index 100% rename from YogaKit/YGLayout.m rename to YogaKit/Source/YGLayout.m diff --git a/YogaKit/YogaKit.podspec b/YogaKit/YogaKit.podspec new file mode 100644 index 00000000..a2478d84 --- /dev/null +++ b/YogaKit/YogaKit.podspec @@ -0,0 +1,30 @@ +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 => 'v2017.01.23.00' + } + spec.platform = :ios + + spec.dependency 'Yoga', '~> 1.0' + spec.source_files = 'Source/*.{h,m}', + spec.public_header_files = 'Source/{YGLayout,UIView+Yoga}.h' + spec.private_header_files = 'Source/YGLayout+Private.h' + +end