-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change the Gutenberg integration to use XCFramework #20717
Conversation
d8bd8f1
to
cc51e8b
Compare
a2500f3
to
cb4b3e0
Compare
cb4b3e0
to
25884d2
Compare
25884d2
to
6f74940
Compare
📲 You can test the changes from this Pull Request in Jetpack Alpha by scanning the QR code below to install the corresponding build.
|
📲 You can test the changes from this Pull Request in WordPress Alpha by scanning the QR code below to install the corresponding build.
|
0ff26e5
to
5b7a7b7
Compare
ec6fe5f
to
b2ecf7b
Compare
056d7c5
to
1df239d
Compare
.buildkite/cache-builder.yml
Outdated
IMAGE_ID: xcode-14.2 | ||
IMAGE_ID: xcode-14.3.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Admittedly, this was unrelated with the Gutenberg setup.
I did run into some Xcode version compatibility issue during the long development of this integration, but I think it should no longer be a problem.
Having said that, I think we might as well use the latest toolchain, no?
af3b326
to
081ea98
Compare
Co-authored-by: Tony Li <tony.li@automattic.com>
Co-authored-by: Tony Li <tony.li@automattic.com>
0f8cc00
to
c2c46cc
Compare
f1c05f5
to
3fcd1b5
Compare
Gutenberg/cocoapods_helpers.rb
Outdated
# | ||
# [!] An error occurred while processing the post-install hook of the Podfile. | ||
# | ||
# No such file or directory @ rb_sysopen - /Users/gio/Developer/a8c/wpios/Users/gio/Developer/a8c/wpios/Gutenberg/../../gutenberg-mobile/gutenberg/node_modules/react-native/package.json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 | Line is too long. [189/180] |
Heads up that I updated the PR related to the RN upgrade 0.71.11 with these changes. I'm happy to share that the installable builds were created 🎊. There are only two minor changes on that PR compared to this one: |
Thanks @fluiddot! I received your message but I might run out of time to look into it today. I have a lot of PRs to review for the upcoming 22.8 code freeze. |
No worries at all @mokagio. We can revisit this next week if you have more availability. Thanks! UPDATE: I've just realized you will be away next week, so we can postpone this to the week after the next one. |
@mokagio Heads up that I've updated the PR with
Let me know if I'm missing anything to set the XCFramework integration ready. The UI tests are still failing even when using the latest changes introduced in the editor. We should keep investigating how to address them. Regarding the merge, I'd like to note that since we need changes from the React Native upgrade, we should wait until those changes are merged. Alternatively, I'm updating #20956 with all changes needed for the RN upgrade. Maybe it's easier to merge them through that PR. |
Co-authored-by: Olivier Halligon <olivier.halligon@automattic.com>
Closing in favor of #20956, as these changes need to be merged along with the React Native upgrade Heads up that I'll re-assign current reviewers to that PR to validate the XCFramework integration. Thanks for your help 🙇 ! |
This one was a long time coming... kept having to tweak the setup 😰
This PRs adds all the setup necessary to fetch and use Gutenberg as an XCFramework via commit or tag.
The setup is relatively straightforward. If
Gutenberg/version.rb
specifies a commit, the code that declares thepod 'Gutenberg'
dependency will try and fetch thepodspec
for that commit from our CDN.You can see the setup in action in #20792 and #20845. In #20845 in particular, notice how everything is green apart from a UI test which is 1) unrelated to the editor (insights) and 2) most likely failing due to async behavior.
Notice that this PR doesn't switch Gutenberg to a commit or tag. Assuming this PR will be merged before the next minor version of Gutenberg ships (meaning 1.98.0), the switch will happen when the Gutenberg folks update to that new version.
Testing
You can try replicating the changes from #20792 locally, then run
bundle exec pod install
. Verify then that the editor works as expected. @fluiddot @geriux @SiobhyB @dcalhoun I'd appreciate your input as well as knowing if I wired up things correctly. Thanks!Regression Notes
PR submission checklist:
RELEASE-NOTES.txt
if necessary. N.A.UI changes testing checklist: Not a UI PR.