From 3fb135829d614f55a967d651485475b07fc65a03 Mon Sep 17 00:00:00 2001 From: Emil Sjolander Date: Wed, 10 May 2017 09:28:57 -0700 Subject: [PATCH] Release 1.5.0 Summary: Bump version and fix small issues blocking release Reviewed By: passy Differential Revision: D5036755 fbshipit-source-id: 65fa2cd09dad8108bdd21067fb44107b059732e8 --- Yoga.podspec | 4 +- YogaKit.podspec | 8 ++-- YogaKit/CHANGELOG.md | 46 ------------------- YogaKit/README.md | 2 +- YogaKit/YogaKitSample/Podfile.lock | 6 +-- gradle.properties | 2 +- javascript/package.json | 2 +- .../main/cpp/include/fb/fbjni/ByteBuffer.h | 6 +-- 8 files changed, 15 insertions(+), 61 deletions(-) delete mode 100644 YogaKit/CHANGELOG.md diff --git a/Yoga.podspec b/Yoga.podspec index ac3c8c0e..6fe8f67b 100644 --- a/Yoga.podspec +++ b/Yoga.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |spec| spec.name = 'Yoga' - spec.version = '1.3.0' + spec.version = '1.5.0' spec.license = { :type => 'BSD', :file => "LICENSE" } spec.homepage = 'https://facebook.github.io/yoga/' spec.documentation_url = 'https://facebook.github.io/yoga/docs/api/c/' @@ -11,7 +11,7 @@ Pod::Spec.new do |spec| spec.authors = 'Facebook' spec.source = { :git => 'https://github.com/facebook/yoga.git', - :tag => '1.3.0', + :tag => '1.5.0', } spec.module_name = 'yoga' diff --git a/YogaKit.podspec b/YogaKit.podspec index 582dd1bb..5c51f563 100644 --- a/YogaKit.podspec +++ b/YogaKit.podspec @@ -1,6 +1,6 @@ podspec = Pod::Spec.new do |spec| spec.name = 'YogaKit' - spec.version = '1.3.0' + spec.version = '1.5.0' spec.license = { :type => 'BSD', :file => "LICENSE" } spec.homepage = 'https://facebook.github.io/yoga/' spec.documentation_url = 'https://facebook.github.io/yoga/docs/api/yogakit/' @@ -11,14 +11,14 @@ podspec = Pod::Spec.new do |spec| spec.authors = 'Facebook' spec.source = { :git => 'https://github.com/facebook/yoga.git', - :tag => '1.3.0', + :tag => '1.5.0', } spec.platform = :ios - spec.ios.deployment_target = '7.0' + spec.ios.deployment_target = '8.0' spec.ios.frameworks = 'UIKit' - spec.dependency 'Yoga', '~> 1.3' + spec.dependency 'Yoga', '~> 1.5' spec.source_files = 'YogaKit/Source/*.{h,m,swift}' spec.public_header_files = 'YogaKit/Source/{YGLayout,UIView+Yoga}.h' spec.private_header_files = 'YogaKit/Source/YGLayout+Private.h' diff --git a/YogaKit/CHANGELOG.md b/YogaKit/CHANGELOG.md deleted file mode 100644 index c6b42a3a..00000000 --- a/YogaKit/CHANGELOG.md +++ /dev/null @@ -1,46 +0,0 @@ -# CHANGELOG - -The changelog for `YogaKit`. - -1.2.0 (**upcoming release**) ------ - -### Breaking Changes - -- `applyLayout()` has now been changed to `applyLayout(preservingOrigin:)`. - -- Computed properties are no longer reflected in getter's of the affected properties. -```swift -// OLD -view.yoga.margin = 10 -view.yoga.marginTop // 10 -view.yoga.marginLeft // 10 - -// NEW -view.yoga.margin = 10 -view.yoga.marginTop // 0 -view.yoga.marginLeft // 0 -``` - -### Enhancements - -- Pixel Rounding now uses `roundf()` instead of `round()`. - -- There is now a method that allows "bulk" updates to YGLayout. -```objc -[view configureLayoutWithBlock:^(YGLayout *layout) { - layout.isEnabled = YES; - layout.width = 50; - layout.height = 50; -}]; -``` - -```swift -view.configureLayout { (layout) in - layout.isEnabled = true - layout.width = 50 - layout.height = 50 -} -``` - -- Added new `isDirty` property, and make `markDirty` a little more performant. diff --git a/YogaKit/README.md b/YogaKit/README.md index fd5f6b55..9d247ff9 100644 --- a/YogaKit/README.md +++ b/YogaKit/README.md @@ -8,7 +8,7 @@ YogaKit is available to install via [CocoaPods](https://cocoapods.org/). ``` -pod 'YogaKit', '~> 1.3' +pod 'YogaKit', '~> 1.5' ``` ## Getting Started diff --git a/YogaKit/YogaKitSample/Podfile.lock b/YogaKit/YogaKitSample/Podfile.lock index 51f43190..415ffd71 100644 --- a/YogaKit/YogaKitSample/Podfile.lock +++ b/YogaKit/YogaKitSample/Podfile.lock @@ -4,9 +4,9 @@ PODS: - IGListKit/Default (2.1.0): - IGListKit/Diffing - IGListKit/Diffing (2.1.0) - - Yoga (1.3.0) - - YogaKit (1.3.0): - - Yoga (~> 1.3) + - Yoga (1.5.0) + - YogaKit (1.5.0): + - Yoga (~> 1.5) DEPENDENCIES: - IGListKit (~> 2.1.0) diff --git a/gradle.properties b/gradle.properties index ffcceb81..4c18ecbf 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,7 +2,7 @@ org.gradle.jvmargs=-Xmx1536M -VERSION_NAME=1.4.3-SNAPSHOT +VERSION_NAME=1.5.0 POM_URL=https://github.com/facebook/yoga POM_SCM_URL=https://github.com/facebook/yoga.git POM_SCM_CONNECTION=scm:git:https://github.com/facebook/yoga.git diff --git a/javascript/package.json b/javascript/package.json index 396300cd..868e5dfd 100644 --- a/javascript/package.json +++ b/javascript/package.json @@ -1,6 +1,6 @@ { "name": "yoga-layout", - "version": "1.2.0", + "version": "1.5.0", "description": "Yoga is a cross-platform layout engine enabling maximum collaboration within your team by implementing an API many designers are familiar with, and opening it up to developers across different platforms.", "license": "BSD-3-Clause", "repository": { diff --git a/lib/fb/src/main/cpp/include/fb/fbjni/ByteBuffer.h b/lib/fb/src/main/cpp/include/fb/fbjni/ByteBuffer.h index 450f66a6..26ae3589 100644 --- a/lib/fb/src/main/cpp/include/fb/fbjni/ByteBuffer.h +++ b/lib/fb/src/main/cpp/include/fb/fbjni/ByteBuffer.h @@ -25,10 +25,10 @@ class FBEXPORT JByteBuffer : public JavaClass { static local_ref wrapBytes(uint8_t* data, size_t size); - bool isDirect(); + bool isDirect() const; - uint8_t* getDirectBytes(); - size_t getDirectSize(); + uint8_t* getDirectBytes() const; + size_t getDirectSize() const; }; }}