Andrew Forster
bcb9dc778e
Rebasing with master version
2016-12-21 10:49:04 -08:00
Andrew Forster
fc4b66e610
Merge branch 'master' of https://github.com/pre10der89/css-layout into csharp_wrapper
2016-12-21 10:46:24 -08:00
Dustin Shahidehpour
835bb1cd9c
Add isLeaf flag to Views.
...
Summary: While building some views with YogaKit, I found an interesting problem. If you are apply `yg_` properties to a view which is constructed of subclassed views (that don't use Yoga.) we still treat view (and it's subviews) like they are using YogaKit. This fixes that behavior.
Reviewed By: emilsjolander
Differential Revision: D4348344
fbshipit-source-id: 37b8648918529f55afea1d1883a03af398aac849
2016-12-20 11:39:36 -08:00
yiminghe
9d35dce63e
explicit default justifyContent value
...
Summary:
make default justifyContent value explicit like alignItems
https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
https://developer.mozilla.org/en-US/docs/Web/CSS/align-content
Closes https://github.com/facebook/yoga/pull/293
Differential Revision: D4351597
Pulled By: emilsjolander
fbshipit-source-id: b65ff2284ede4d75f1cc5e22d4106042ab0b0d02
2016-12-20 03:24:40 -08:00
Andrew Forster
9903a20cba
Move Windows related code to its own sub-folder
2016-12-19 14:10:16 -08:00
Andrew Forster
c5ab9637f4
Removed nuget.exe and nugetpack powershell script, changed version number on assemblies, DLLs, and nuspecs to 1.0.0.0, Changed ARM related nuspec references to use win8-arm since win-arm is not a valid NuGet Runtime Identifier (RID)
2016-12-16 16:01:54 -08:00
Emil Sjolander
74fb205083
Rename test files to match other test file names
...
Summary: Rename test files to match other test file names
Differential Revision: D4335198
fbshipit-source-id: b8f38162c3094231476059eb1f54326d8ba84848
v2016.12.19.00
2016-12-16 09:09:37 -08:00
Kazuki Sakamoto
ba0bb10366
Build iOS fat static library for Unity and Xamarin
...
Summary:
$ buck build //csharp:yoganet-ios
$ buck targets --show-output //csharp:yoganet-ios
//csharp:yoganet-ios buck-out/gen/csharp/yoganet-ios/libyoga.a
$ lipo -info buck-out/gen/csharp/yoganet-ios/libyoga.a
Architectures in the fat file: buck-out/gen/csharp/yoganet-ios/libyoga.a are: armv7 x86_64 arm64
$ nm buck-out/gen/csharp/yoganet-ios/libyoga.a|grep -e 'T _YGNodeNew' -e 'ygNode' -e 'T _YGInteropSetLogger'
0000000000000000 T _YGNodeNew
0000000000001070 t -[UIView(Yoga) ygNode]
0000000000000000 T _YGInteropSetLogger
Closes https://github.com/facebook/yoga/pull/286
Reviewed By: emilsjolander
Differential Revision: D4338919
Pulled By: splhack
fbshipit-source-id: 7acfdfa0dc4d152d7bfe92161efdeb9f161f70e6
2016-12-16 06:54:35 -08:00
Emil Sjolander
0296511f2c
YGNodeChildCount -> YGNodeGetChildCount for consistency
...
Summary: I kept wrongly typing this function which is a good sign that the name is inconsistent.
Reviewed By: gkassabli
Differential Revision: D4333480
fbshipit-source-id: 17058f18fa9e26b3e02f7a1651f7295cae59acad
2016-12-16 04:39:41 -08:00
Kazuki Sakamoto
04fe81f88f
YGNodeInit is no longer exported
...
Summary:
- Problem: Can't link yoga static libraries with Unity and Xamarin.iOS since YGNodeInit is undefined in the libraries.
- Solution: Remove the reference in Native.cs
Reviewed By: emilsjolander
Differential Revision: D4338485
fbshipit-source-id: 9dc95aec8f1fd50f3f9d66e1623afe2fb1992210
2016-12-16 00:09:40 -08:00
Kazuki Sakamoto
98bbc15435
Support Xamarin.iOS
...
Summary:
- `__Internal`
https://developer.xamarin.com/guides/ios/advanced_topics/native_interop/#Static_Libraries
> Since you can only use static libraries on iOS, there is no external shared library to link with, so the path parameter in the DllImport attribute needs to use the special name __Internal (note the double underscore characters at the start of the name) as opposed to the path name.
- `__IOS__`
https://developer.xamarin.com/guides/cross-platform/application_fundamentals/building_cross_platform_applications/part_4_-_platform_divergence_abstraction_divergent_implementation/#iOS
> Xamarin.iOS defines __IOS__ which you can use to detect iOS devices.
Closes https://github.com/facebook/yoga/pull/277
Reviewed By: emilsjolander
Differential Revision: D4338420
Pulled By: splhack
fbshipit-source-id: 375efecbaf88fffbba544073c6d6b30fb1f4c8ba
2016-12-16 00:09:40 -08:00
Kazuki Sakamoto
25b206ac53
Build native library with BUCK for .NET (Mono, Xamarin)
...
Summary:
Examples:
- macOS on macOS (Mono, Xamarin.Mac, Unity)
- `buck build //csharp:yoganet#shared,default` -> `libyoga.dylib`
- Android (Xamarin.Android, Unity)
- `buck build //csharp:yoganet#shared,android-armv7` -> `libyoga.so`
- iOS (Xamarin.iOS, Unity)
- `buck build //:yoga#static,iphoneos-arm64` -> `libyoga.a`
- `buck build //csharp:yoganet#static,iphoneos-arm64` -> `libyoganet.a`
Closes https://github.com/facebook/yoga/pull/282
Reviewed By: emilsjolander
Differential Revision: D4333811
Pulled By: splhack
fbshipit-source-id: 54f4364d93b2419d7504392eb558296a5d06772f
2016-12-15 13:54:34 -08:00
Emil Sjolander
88a4e44fd4
Add YGNodeGetParent api
...
Summary: Fixes https://github.com/facebook/css-layout/issues/248
Reviewed By: gkassabli
Differential Revision: D4333456
fbshipit-source-id: 388afd0a01c19a6db73c175bf24c566278832cb9
2016-12-15 09:54:35 -08:00
Kazuki Sakamoto
642ea07d6f
Update unmanaged dll name
...
Summary: - Update unmanaged dll name from `Yoga.dll` to `yoga.dll` since Native.cs `DllName` referes lowercase `yoga`
Reviewed By: emilsjolander
Differential Revision: D4295954
fbshipit-source-id: 16b91c407506685b84902102cf4380cb149b5b2c
2016-12-15 07:24:46 -08:00
Kazuki Sakamoto
e85c5ce39d
lowercase argument
...
Summary: - Fix arguments of YogaNode.Create
Reviewed By: emilsjolander
Differential Revision: D4296488
fbshipit-source-id: f6eb5074b1b1462f2251d330929f7b8082ad72eb
2016-12-15 07:24:46 -08:00
Jatin Pandey
cf753af247
Make documentation clearer
...
Summary:
Fixing a typo :)
Closes https://github.com/facebook/yoga/pull/270
Reviewed By: dshahidehpour
Differential Revision: D4333129
Pulled By: emilsjolander
fbshipit-source-id: 28215de8fcd571fb889fe145ff303f231a50c598
2016-12-15 07:24:46 -08:00
Emil Sjolander
12efe604bb
Fix YogaKit tests on travis
...
Summary: Fix include path
Reviewed By: dshahidehpour
Differential Revision: D4333185
fbshipit-source-id: 27638324e093260aa1b23134fab5140a0c703bc9
2016-12-15 07:24:46 -08:00
Andrew Forster
63230ae46a
Adding Universal Tests back
2016-12-14 10:14:30 -08:00
Andrew Forster
dc1bf63450
Added support for building ARM, cleaned up solutions, removed universal tests (for now)
2016-12-14 09:31:14 -08:00
Andrew Forster
370a98eb3a
Removing ARM configuration from desktop solution
2016-12-13 18:49:43 -08:00
Andrew Forster
ddc031a1c1
Updating all solution
2016-12-13 15:34:25 -08:00
Andrew Forster
528bb3816f
Merge branch 'master' of https://github.com/pre10der89/css-layout into csharp_wrapper
2016-12-13 13:53:39 -08:00
Andrew Forster
7f8cdc5c38
Removing test programs, adding simple package script
2016-12-13 13:52:37 -08:00
Andrew Forster
e7618cc1f9
Adding Desktop and universal specific solutions
2016-12-13 09:50:09 -08:00
Andrew Forster
3f81edf197
Making non AnyCPU build cases more explicit
2016-12-13 09:38:19 -08:00
Andrew Forster
91fd484c1e
Added better native interop build target, updated projects to use new target
2016-12-13 08:11:31 -08:00
Andrew Forster
38867679bb
Updaing project types, adding test programs
2016-12-12 10:34:28 -08:00
Emil Sjolander
f36f545d75
Add an anchor to the android platform regex
...
Summary: This prevents android from matching in the middle of a platform.
Reviewed By: gkassabli
Differential Revision: D4306164
fbshipit-source-id: 7f62a6a017724f8f6741d3e53b5fbe0650c8c88e
v2016.12.12.00
2016-12-10 17:37:12 -08:00
Joel Marcey
8fcd544c81
A bit more syncing after the name change
2016-12-10 17:31:11 -08:00
Emil Sjolander
73662ebf83
example license
2016-12-07 17:41:50 +00:00
Emil Sjolander
47a8ec06a1
Add sample project for YogaKit
2016-12-07 17:27:25 +00:00
Emil Sjolander
b611fac20b
update naming and fix test
2016-12-07 16:18:13 +00:00
Emil Sjolander
b11155423c
Rename directories
...
Reviewed By: gkassabli
Differential Revision: D4284681
Summary: Rename csslayout directories to yoga
fbshipit-source-id: f0c6855c2c6e4389b7867f48f72cbb697830fc5a
2016-12-07 05:22:52 -08:00
Emil Sjolander
40371cbf2d
Remove init from api
...
Summary: Both New and Reset already call init internally. No reason to expose this function
Reviewed By: gkassabli
Differential Revision: D4276177
fbshipit-source-id: c4404d0534f381dfacee0625b2847d38de58e038
2016-12-06 14:52:34 -08:00
Emil Sjolander
613590b0d8
Ignore csharp test dependencies which are downloaded on the fly
...
Summary: Running csharp tests should not result in uncommited files.
Reviewed By: splhack
Differential Revision: D4271411
fbshipit-source-id: abf6c69555ed657356a9426ca37864f8c2eaa78f
2016-12-05 12:37:36 -08:00
Emil Sjolander
4710a65f7a
Fix an error initializing needsCrossTrailingPos
...
Summary: https://github.com/facebook/css-layout/pull/259
Reviewed By: gkassabli
Differential Revision: D4271422
fbshipit-source-id: e8d72af742d96829684958780eb56e2c375df20c
2016-12-05 09:37:38 -08:00
Emil Sjolander
901f65ca05
Fix prefix typo in YogaKit
...
Summary: Forgot to update this in rename.
Reviewed By: dshahidehpour, gkassabli
Differential Revision: D4271399
fbshipit-source-id: cf354928a8839a864e9961e091d9f48840a5d4d4
2016-12-05 08:07:41 -08:00
Emil Sjolander
72cf6806de
Add #pragma once and extern C to YGEnums.h
...
Summary: Makes YGEnums.h header looks like other Yoga headers
Reviewed By: gkassabli
Differential Revision: D4274156
fbshipit-source-id: 9fa0ae146bb9e5bd40d93fa3c56f83424ebd2bf9
2016-12-05 05:07:37 -08:00
Emil Sjolander
1b7ae2ed3d
Update java package name to yoga
...
Summary: Update package name of java code to refer to yoga instead of csslayout. Still need to change the name of the folder where this code resides but that requires update github sync scripts etc so it is safer and easier to split these diffs apart.
Differential Revision: D4271420
fbshipit-source-id: b3cf150569a2331868410339cd19e5c694f2059e
2016-12-05 03:07:33 -08:00
Emil Sjolander
c6100d0771
Rename java API
...
Summary: Rename java api to new use yoga naming
Reviewed By: IanChilds
Differential Revision: D4265345
fbshipit-source-id: 69ecfd8fac214f86b8b70647b9b909acd83d78b5
v2016.12.05.00
2016-12-03 04:53:39 -08:00
Emil Sjolander
6339467b6d
Rename tests
...
Summary: Rename test files to use new name
Reviewed By: gkassabli
Differential Revision: D4265235
fbshipit-source-id: 0090d3949828058baf7435f33d4068de92756bad
2016-12-03 04:53:39 -08:00
Emil Sjolander
dda24b1e23
Rename C api
...
Summary: This renames the core C api to use the new Yoga branding.
Differential Revision: D4259190
fbshipit-source-id: 26c8b356ca464d4304f5f9dc4192bff10cea2dc9
2016-12-03 04:53:38 -08:00
Emil Sjolander
f7cc614d67
rename csharp code
...
Summary: new name
Reviewed By: splhack
Differential Revision: D4247106
fbshipit-source-id: 6e1097de104f3a011c78ae65b33e57865b007711
2016-12-02 11:23:20 -08:00
Emil Sjolander
4bbf35832e
Rename CSSLayoutKit
...
Summary: new name
Reviewed By: dshahidehpour
Differential Revision: D4245987
fbshipit-source-id: 880f558c694bd041abbedadeb91225a3ca6c14f9
2016-12-02 11:23:20 -08:00
Emil Sjolander
b9feb10420
Rename benchmarks
...
Summary: new name
Reviewed By: splhack
Differential Revision: D4245765
fbshipit-source-id: c524183ead279ad1d9159a1da2f18fc1b96c2b51
2016-12-02 11:23:20 -08:00
Emil Sjolander
42b6f6b6e5
Rename enums
...
Summary: new name, start by renaming enums
Differential Revision: D4244360
fbshipit-source-id: c9fcbdd231098c9ff230a6055676bbc7cbd11001
2016-12-02 05:52:59 -08:00
Emil Sjolander
07cf47baad
Remove force_static
...
Summary: static linking is dangerous here as more than one library could be including the same symbols. The used to only be used by the jni target previously but that is no longer true
Reviewed By: gkassabli
Differential Revision: D4258293
fbshipit-source-id: 053f9e607503707830e3766b1f268ab31d3081ff
2016-12-02 05:22:49 -08:00
Emil Sjolander
686289814d
Rename defs file
...
Summary: new name
Reviewed By: gkassabli
Differential Revision: D4258291
fbshipit-source-id: 4b9ad8773c68aed25afba57fcfa92721e6acc1a6
2016-12-02 05:22:49 -08:00
Emil Sjolander
bb37e65ab1
Fix error from refactor of setMeasuredDimensionsIfEmptyOrFixedSize
...
Summary: D4213339 refactored some code and some logic was missed where negative values should only be ignored for at most measurements.
Reviewed By: gkassabli
Differential Revision: D4258254
fbshipit-source-id: e22e36e67260114081e483527fc7ce378f7f0df9
2016-12-01 07:37:31 -08:00
Emil Sjolander
31b961d8b3
Revert D4245638: [yoga] Rename defs file
...
Summary: This reverts commit 14050d02c4298014a5fcadd75c4f364537ec2396
Differential Revision: D4245638
fbshipit-source-id: 5eba4f87cbf5a64e235dd16e038326e916cdda77
2016-11-30 12:37:49 -08:00