Skip to content

Commit

Permalink
Merge pull request #61 from layoutBox/integrates_yoga_sources
Browse files Browse the repository at this point in the history
Integrates Yoga sources into FlexLayout
  • Loading branch information
lucdion authored Feb 23, 2018
2 parents c303faa + c5e1ae2 commit 7c620ad
Show file tree
Hide file tree
Showing 37 changed files with 4,185 additions and 222 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ before_install:
- gem install xcpretty-travis-formatter;
#- gem install cocoapods -v '1.3.1' --no-document --quiet;
# - gem install slather --no-document --quiet;
#- pod install --repo-update;
- bundle exec pod install --repo-update;
# - carthage bootstrap --verbose --platform iOS --cache-builds --use-ssh

script:
Expand Down
1 change: 0 additions & 1 deletion Cartfile

This file was deleted.

3 changes: 0 additions & 3 deletions Cartfile.resolved

This file was deleted.

26 changes: 0 additions & 26 deletions Carthage/Build/iOS/YogaKit.framework/Headers/YogaKit.h

This file was deleted.

Binary file removed Carthage/Build/iOS/YogaKit.framework/Info.plist
Binary file not shown.
6 changes: 0 additions & 6 deletions Carthage/Build/iOS/YogaKit.framework/Modules/module.modulemap

This file was deleted.

This file was deleted.

Binary file removed Carthage/Build/iOS/YogaKit.framework/YogaKit
Binary file not shown.
8 changes: 2 additions & 6 deletions Example/FlexLayoutSample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -436,14 +436,12 @@
"${BUILT_PRODUCTS_DIR}/FlexLayout/FlexLayout.framework",
"${BUILT_PRODUCTS_DIR}/PinLayout/PinLayout.framework",
"${PODS_ROOT}/Reveal-SDK/RevealServer-10/iOS/RevealServer.framework",
"${BUILT_PRODUCTS_DIR}/Yoga/yoga.framework",
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FlexLayout.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/PinLayout.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RevealServer.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/yoga.framework",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
Expand Down Expand Up @@ -635,10 +633,9 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 8561ACDBCFFA1B4B9ABEAB16 /* Pods-FlexLayoutSample.debug.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
GCC_INPUT_FILETYPE = automatic;
INFOPLIST_FILE = "FlexLayoutSample/Supporting Files/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.lucdion.FlexLayoutSample;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
Expand All @@ -649,10 +646,9 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 0D0595B5E0950936D037ECF2 /* Pods-FlexLayoutSample.release.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
GCC_INPUT_FILETYPE = automatic;
INFOPLIST_FILE = "FlexLayoutSample/Supporting Files/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.lucdion.FlexLayoutSample;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,3 @@ class BaseViewController: UIViewController {
}
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class RayWenderlichTutorialView: BaseView {
super.layoutSubviews()

// 1) Layout the contentView & rootFlexContainer using PinLayout
contentView.pin.all().margin(safeArea)
contentView.pin.all()
rootFlexContainer.pin.top().left().right()

// 2) Let the flexbox container layout itself and adjust the height
Expand Down
30 changes: 18 additions & 12 deletions FlexLayout.podspec
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@

Pod::Spec.new do |s|
s.name = "FlexLayout"
s.version = "1.2.3"
s.summary = "FlexLayout"
Pod::Spec.new do |spec|
spec.name = "FlexLayout"
spec.version = "1.2.4"
spec.summary = "FlexLayout"

s.homepage = "https://github.com/lucdion/FlexLayout.git"
s.license = "BSD 3-clause"
spec.homepage = "https://github.com/lucdion/FlexLayout.git"
spec.license = "BSD 3-clause"

s.author = {
spec.author = {
"Luc Dion" => "ldion@mirego.com"
}

s.platform = :ios, "9.0"
spec.platform = :ios, "9.0"

s.source = { :git => "https://github.com/lucdion/FlexLayout.git", :tag => "#{s.version}" }
s.source_files = "Sources/**/*.{swift,h,m}"
spec.source = { :git => "https://github.com/lucdion/FlexLayout.git", :tag => "#{spec.version}" }
spec.source_files = "Sources/**/*.{swift,h,m,cpp,c}"

# Latest master commit id.
s.dependency "Yoga", "1.6"
#spec.compiler_flags = [
# '-fno-omit-frame-pointer',
# '-fexceptions',
# '-Wall',
# '-Werror',
# '-std=c11',
# '-fPIC'
#]
end
Loading

0 comments on commit 7c620ad

Please sign in to comment.