Added document how to build Yoga for Java #1728
Reference in New Issue
Block a user
No description provided.
Delete Branch "darekbx/add_info_how_build_yoga_for_java"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Added documentation detailing how to build the Yoga library for Java/Android.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Writing instructions for how to patch the current build logic to build JNI part of library for macOS doesn’t seem very durable.
For Android we rely on Android Gradle Plugin’s NDK/CMake integration, and just distribute binaries.
If we wanted to support building Java locally more gracefully, we probably want a way to have Gradle without Android bits hook CMake, or potentially just go the route of Gradle C++ libraries more venally. https://docs.gradle.org/current/userguide/cpp_library_plugin.html
Separately, out of curiosity, what warnings as errors did you run into? We have a good number of different builds with high warning level in OSS CI, and internally at Meta, so I’m curious what gap we still have.
Can't speak on the actual build instructions, but wondering why the README wasn't used for these instructions.
@NickGerleman We got some errors and warnings while building Yoga for Java on MacOs with Apple CPU. We are creating custom implementation of Flexbox layout for Android Compose.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.