Add C# bindings for Errata API #1259

Closed
NickGerleman wants to merge 3 commits from export-D45297676 into main

3 Commits

Author SHA1 Message Date
Nick Gerleman
10bf9f11fd Add C# bindings for Errata API (#1259)
Summary:
Pull Request resolved: https://github.com/facebook/yoga/pull/1259

Wires C ABI to C# bindings using `System.Runtime.InteropServices`. Note that we don't have a working C# build right now, but there is [effort to address that](https://github.com/facebook/yoga/pull/1207) which may get some more effort before the Yoga release, so this keeps the bindings up to date.

Reviewed By: yungsters

Differential Revision: D45297676

fbshipit-source-id: 10cfb71a6220e4c7a6fc15032cd74033d4472f4b
2023-04-27 09:47:48 -07:00
Nick Gerleman
d67606a0cc Move YogaKit to YGErrataClassic
Summary:
YogaKit integrates Yoga with UIKit as a higher level framework. It does not expose config setting to users.

We set YGErrataClassic for now to prioritize compatibility instead of conformance (YogaKit is relatively used in fbsource as well).

I'm also tempted to remove the usage of ExperimentalWebFlexBasis since last I heard rozelle thought it was generally broken, but I am a bit afraid to if it has been enabled so long, and is used in many cases in Meta.

Differential Revision: https://internalfb.com/D45298803

fbshipit-source-id: 37a097b06edc5043416303ca0d7b51ed70925797
2023-04-27 09:47:26 -07:00
Nick Gerleman
c4cd46e246 Deprecate Java YogaConfig.setUseLegacyStretchBehaviour()
Summary: Now that our own usages are removed, mark this as deprecated to encourage users to move to the errata API. The same will be done to variants of this function on other platforms before releasing, and the functions will be removed after releasing.

Differential Revision: D45300343

fbshipit-source-id: 1dd6265edda7446ca2763c8f1dc238957c95eb5e
2023-04-27 09:47:26 -07:00