Export YGInteropSetLogger method #960

Closed
KimDaeWook wants to merge 3 commits from master into main
KimDaeWook commented 2020-01-10 23:09:42 -08:00 (Migrated from github.com)

When building and using C # libraries,
EntryPointNotFoundException thrown from YGInteropSetLogger.

so, I added YOGA_EXPORT on YGInteropSetLogger.

When building and using C # libraries, EntryPointNotFoundException thrown from YGInteropSetLogger. so, I added YOGA_EXPORT on YGInteropSetLogger.
facebook-github-bot commented 2020-01-10 23:09:53 -08:00 (Migrated from github.com)

Hi KimDaeWook! Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file.In order for us to review and merge your code, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

Hi KimDaeWook! Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file.In order for us to review and merge your code, please sign at <https://code.facebook.com/cla>. **If you are contributing on behalf of someone else (eg your employer)**, the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. If you have received this in error or have any questions, please contact us at [cla@fb.com](mailto:cla@fb.com?subject=CLA%20for%20facebook%2Fyoga%20%23960). Thanks!
facebook-github-bot commented 2020-01-10 23:36:13 -08:00 (Migrated from github.com)

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!
facebook-github-bot commented 2020-01-11 00:17:04 -08:00 (Migrated from github.com)

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!
KimDaeWook commented 2020-01-11 00:48:01 -08:00 (Migrated from github.com)

And YGConfigGetUseLegacyStretchBehaviour is not defined, so i add it additionally.

And YGConfigGetUseLegacyStretchBehaviour is not defined, so i add it additionally.
SidharthGuglani-zz (Migrated from github.com) reviewed 2020-02-28 08:08:03 -08:00
@@ -4363,6 +4363,11 @@ YOGA_EXPORT void YGConfigSetUseWebDefaults(
config->useWebDefaults = enabled;
}
YOGA_EXPORT bool YGConfigGetUseLegacyStretchBehaviour(
SidharthGuglani-zz (Migrated from github.com) commented 2020-02-28 08:08:03 -08:00

Do you really need this ? This flag might be removed in future.

Do you really need this ? This flag might be removed in future.
SidharthGuglani-zz commented 2020-02-28 08:10:12 -08:00 (Migrated from github.com)

Thanks for creating this PR.
Will merge the PR for adding YOGA_EXPORT to YGInteropSetLogger after you remove other changes

Thanks for creating this PR. Will merge the PR for adding YOGA_EXPORT to YGInteropSetLogger after you remove other changes
NickGerleman commented 2022-10-03 09:57:03 -07:00 (Migrated from github.com)

It looks like the C# bindings already assume YGConfigGetUseLegacyStretchBehaviour. From recent discussions on RN compatibility, I don't think we will be able to remove the flag soon, so adding a public accessor seems righteous to me.

Otherwise, fixing the mismatch in export declaration is a good change.

It looks like the C# bindings already assume `YGConfigGetUseLegacyStretchBehaviour`. From recent discussions on RN compatibility, I don't think we will be able to remove the flag soon, so adding a public accessor seems righteous to me. Otherwise, fixing the mismatch in export declaration is a good change.
NickGerleman (Migrated from github.com) approved these changes 2022-10-03 09:57:12 -07:00
facebook-github-bot commented 2022-10-03 09:57:46 -07:00 (Migrated from github.com)

@NickGerleman has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@NickGerleman has imported this pull request. If you are a Meta employee, you can view this diff [on Phabricator](https://www.internalfb.com/diff/D40027238).

Pull request closed

Sign in to join this conversation.
No description provided.