Skip to content

Migrate YogaConstants to Kotlin#52998

Closed
mateoguzmana wants to merge 1 commit into
react:mainfrom
mateoguzmana:feat/migrate-yoga-constants-to-kotlin
Closed

Migrate YogaConstants to Kotlin#52998
mateoguzmana wants to merge 1 commit into
react:mainfrom
mateoguzmana:feat/migrate-yoga-constants-to-kotlin

Conversation

@mateoguzmana

Copy link
Copy Markdown
Collaborator

Summary:

Initial migration for the Yoga files, starting with YogaConstants. Please see react/yoga#1829 first, as the initial Kotlin setup is there.

Changelog:

[INTERNAL] - Migrate com.facebook.yoga.YogaConstants to Kotlin

Test Plan:

yarn test-android
yarn android

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 2, 2025
@mateoguzmana mateoguzmana marked this pull request as ready for review August 4, 2025 07:07
@facebook-github-bot facebook-github-bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Aug 4, 2025
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@rshest has imported this pull request. If you are a Meta employee, you can view this in D79545949.

@rshest

rshest commented Aug 4, 2025

Copy link
Copy Markdown
Contributor

This is redundant, as react/yoga#1829 will automatically populate the copy in the rn repo when merged, let's close this.

@rshest rshest left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As noted above, this will get automagically populated from react/yoga#1829 :)

@mateoguzmana

Copy link
Copy Markdown
Collaborator Author

Makes sense, thanks! closing as per comment.

facebook-github-bot pushed a commit to react/yoga that referenced this pull request Aug 7, 2025
Summary:
X-link: react/react-native#53133

# Changelog:
[Internal] -

As part of the ongoing effort to migrate the React Native codebase to Kotlin, this PR introduces the initial setup required for Kotlin support in Yoga.

- Added initial basic Kotlin configuration to the project.
- Migrated `YogaConstants` as an initial file to try out the first migration steps.

Pull Request resolved: #1829

Test Plan:
- Tested the migrated class directly against facebook/react-native, see the PR [here](react/react-native#52998).
- Run: `./gradlew :yoga:assembleDebug` & `./gradlew :yoga:compileDebugSources`

I am not able to run the Java tests in this repo (even before the initial Kotlin setup) – not sure if I am missing something there but any pointers are welcome – it seems like there is some missing configuration. Currently trying with `./gradlew :yoga:test`

Reviewed By: cortinico

Differential Revision: D79545992

Pulled By: rshest

fbshipit-source-id: 8257ff53e6b6f2436980be98b6c94e1ac526b207
facebook-github-bot pushed a commit that referenced this pull request Aug 7, 2025
Summary:
Pull Request resolved: #53133

# Changelog:
[Internal] -

As part of the ongoing effort to migrate the React Native codebase to Kotlin, this PR introduces the initial setup required for Kotlin support in Yoga.

- Added initial basic Kotlin configuration to the project.
- Migrated `YogaConstants` as an initial file to try out the first migration steps.

X-link: react/yoga#1829

Test Plan:
- Tested the migrated class directly against facebook/react-native, see the PR [here](#52998).
- Run: `./gradlew :yoga:assembleDebug` & `./gradlew :yoga:compileDebugSources`

I am not able to run the Java tests in this repo (even before the initial Kotlin setup) – not sure if I am missing something there but any pointers are welcome – it seems like there is some missing configuration. Currently trying with `./gradlew :yoga:test`

Reviewed By: cortinico

Differential Revision: D79545992

Pulled By: rshest

fbshipit-source-id: 8257ff53e6b6f2436980be98b6c94e1ac526b207
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants