Skip to content
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

[RNMobile][Monorepo] Update react-native-* packages from gutenberg-mobile #20533

Merged

Conversation

Tug
Copy link
Contributor

@Tug Tug commented Feb 28, 2020

Description

This PR's goal is to bring the latest changes from gutenberg-mobile to the monorepo branch.
Thus, it also gets gutenberg master recent changes in are the 2 repo needs to be in sync.

Most commits are from the gutenberg-mobile repo, the ones that are not are merge commits (from gb-mobile develop or gb master)

Note: We have a large amount of changes in gutenberg-mobile due to the recent react-native upgrade.

Testing Instructions

Try running the following commands:

  • npm run native test
  • npm run test-unit:native
  • npm run native start:reset then curl --silent --output /dev/null "http://localhost:8081/index.bundle?platform=android&dev=true&minify=false" to generate a bundle for android
  • Check CI jobs on this PR, only the "License compatibility" one should be failing (this is still to be addressed)

Types of changes

Port of commits

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.
  • I've included developer documentation if appropriate.
  • I've updated all React Native files affected by any refactorings/renamings in this PR.

scruffian and others added 11 commits March 19, 2020 15:11
Co-authored-by: Marcus Kazmierczak <marcus@mkaz.com>
* Project Management Automation: Add TypeScript type-checking

* Project Management Automation: Remove unused typedefs
* Add period at the end of sentence.

* Add translator comment
* Text Component

* Rename

* Lint fixes
…20985)

* Add isFileURL method and use it on all native media upload checks.

* Check if url is defined.

* Add test for undefined and fix lint error for isFileURL

* Replace isFileURL method for getProcotol == 'file' mettod
@Tug
Copy link
Contributor Author

Tug commented Mar 19, 2020

@dratwas thanks for reviewing! I might actually update once more since we're at it (also gutenberg-mobile changes are out of sync with gutenberg here and it causes problem when we try to run the app)

@gziolo Just wanted you to know about it :)
It's a lot but it shouldn't be modifying any web code, most of the diff is simply bringing the monorepo branch up to date with master (we can't easily rebase given the amount of commits this branch has and the never ending rebase hell it would cause)

@Tug
Copy link
Contributor Author

Tug commented Mar 19, 2020

@gziolo Actually we'll need an admin to merge without squashing. Let's ping once it's ready

@github-actions
Copy link

github-actions bot commented Mar 19, 2020

Size Change: +30.2 kB (3%)

Total Size: 856 kB

Filename Size Change
build/a11y/index.js 998 B -8 B (0%)
build/annotations/index.js 3.43 kB +66 B (1%)
build/api-fetch/index.js 3.39 kB +203 B (5%) 🔍
build/autop/index.js 2.58 kB +24 B (0%)
build/block-directory/index.js 6.02 kB +1.06 kB (17%) ⚠️
build/block-directory/style-rtl.css 760 B -23 B (3%)
build/block-directory/style.css 760 B -24 B (3%)
build/block-editor/index.js 100 kB +2.11 kB (2%)
build/block-editor/style-rtl.css 10.9 kB +1.8 kB (16%) ⚠️
build/block-editor/style.css 10.9 kB +1.8 kB (16%) ⚠️
build/block-library/editor-rtl.css 7.24 kB -515 B (7%)
build/block-library/editor.css 7.24 kB -510 B (7%)
build/block-library/index.js 110 kB +3.61 kB (3%)
build/block-library/style-rtl.css 7.42 kB +124 B (1%)
build/block-library/style.css 7.43 kB +131 B (1%)
build/block-library/theme-rtl.css 669 B +33 B (4%)
build/block-library/theme.css 671 B +32 B (4%)
build/block-serialization-default-parser/index.js 1.65 kB +30 B (1%)
build/block-serialization-spec-parser/index.js 3.1 kB -46 B (1%)
build/blocks/index.js 57.5 kB +662 B (1%)
build/components/index.js 191 kB +10.2 kB (5%) 🔍
build/components/style-rtl.css 15.8 kB -299 B (1%)
build/components/style.css 15.7 kB -292 B (1%)
build/compose/index.js 6.21 kB +710 B (11%) ⚠️
build/core-data/index.js 10.6 kB +429 B (4%)
build/data-controls/index.js 1.04 kB -4 B (0%)
build/data/index.js 8.2 kB +280 B (3%)
build/date/index.js 5.37 kB +2 B (0%)
build/deprecated/index.js 771 B -1 B
build/dom/index.js 3.06 kB +10 B (0%)
build/edit-post/index.js 91.2 kB +2.04 kB (2%)
build/edit-post/style-rtl.css 8.47 kB -191 B (2%)
build/edit-post/style.css 8.46 kB -188 B (2%)
build/edit-site/index.js 5.56 kB +2.92 kB (52%) 🆘
build/edit-site/style-rtl.css 2.62 kB +5 B (0%)
build/edit-site/style.css 2.62 kB +6 B (0%)
build/edit-widgets/index.js 4.43 kB +136 B (3%)
build/edit-widgets/style-rtl.css 2.58 kB -216 B (8%)
build/edit-widgets/style.css 2.58 kB -214 B (8%)
build/editor/editor-styles-rtl.css 381 B +54 B (14%) ⚠️
build/editor/editor-styles.css 382 B +54 B (14%) ⚠️
build/editor/index.js 43.8 kB +582 B (1%)
build/editor/style-rtl.css 3.97 kB -84 B (2%)
build/editor/style.css 3.96 kB -80 B (2%)
build/element/index.js 4.44 kB +84 B (1%)
build/escape-html/index.js 733 B -1 B
build/format-library/index.js 6.95 kB +1.74 kB (24%) 🚨
build/format-library/style-rtl.css 502 B +203 B (40%) 🚨
build/format-library/style.css 502 B +202 B (40%) 🚨
build/hooks/index.js 1.93 kB +6 B (0%)
build/html-entities/index.js 621 B -1 B
build/i18n/index.js 3.49 kB +84 B (2%)
build/is-shallow-equal/index.js 711 B +1 B
build/keyboard-shortcuts/index.js 2.3 kB +286 B (12%) ⚠️
build/keycodes/index.js 1.69 kB +8 B (0%)
build/list-reusable-blocks/index.js 2.99 kB -29 B (0%)
build/list-reusable-blocks/style-rtl.css 226 B +11 B (4%)
build/list-reusable-blocks/style.css 226 B +10 B (4%)
build/media-utils/index.js 4.83 kB +263 B (5%) 🔍
build/notices/index.js 1.58 kB -208 B (13%) 👏
build/nux/index.js 3.01 kB +200 B (6%) 🔍
build/plugins/index.js 2.54 kB +326 B (12%) ⚠️
build/priority-queue/index.js 780 B +39 B (5%) 🔍
build/redux-routine/index.js 2.83 kB +5 B (0%)
build/rich-text/index.js 14.4 kB +458 B (3%)
build/server-side-render/index.js 2.55 kB +50 B (1%)
build/url/index.js 4.01 kB +18 B (0%)
build/viewport/index.js 1.61 kB +21 B (1%)
build/warning/index.js 1.14 kB +4 B (0%)
ℹ️ View Unchanged
Filename Size Change
build/blob/index.js 620 B 0 B
build/dom-ready/index.js 568 B 0 B
build/nux/style-rtl.css 616 B 0 B
build/nux/style.css 613 B 0 B
build/primitives/index.js 1.5 kB 0 B
build/shortcode/index.js 1.7 kB 0 B
build/token-list/index.js 1.27 kB 0 B
build/wordcount/index.js 1.18 kB 0 B

compressed-size-action

@Tug
Copy link
Contributor Author

Tug commented Mar 19, 2020

@dratwas it's ready for another pass :)

Btw, you can try to actually build the dev bundle by requesting:
http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false
http://localhost:8081/index.bundle?platform=android&dev=true&minify=false

Copy link
Member

@ceyhun ceyhun left a comment

Choose a reason for hiding this comment

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

I was able to successfully run all the tests 👍

@gziolo
Copy link
Member

gziolo commented Mar 24, 2020

@gziolo Actually we'll need an admin to merge without squashing. Let's ping once it's ready

It's disabled for me at the moment. @youknowriad has superpowers to change that :)

@Tug
Copy link
Contributor Author

Tug commented Mar 24, 2020

@hypest I think you have the superpowers as well, could you try to do it?

For reference, the reason we need this is because until we haven’t made the switch to use gutenberg as our main repo, we’ll want to pull changes from gutenberg-mobile with git subtree pull and that won’t work if we rewrite history!

@hypest
Copy link
Contributor

hypest commented Mar 24, 2020

Merging with "Merge commit" option set to true 👍

@hypest hypest merged commit 013b6f1 into feat/import-gutenberg-mobile-no-squash Mar 24, 2020
@hypest hypest deleted the rnmobile/monorepo-update-gb-mobile-rn branch March 24, 2020 10:37
@Tug Tug mentioned this pull request Jun 5, 2020
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change)
Projects
None yet
Development

Successfully merging this pull request may close these issues.