Skip to content

Conversation

@geriux
Copy link
Member

@geriux geriux commented Aug 8, 2022

What?

The E2E tests started to fail in trunk after a newer React Native version was deployed in the react-native-mirror-publisher repo.

Why?

While we are working on the React Native Upgrade, we deployed a newer version that started being pulled into the latest trunk when it shouldn't. Since we weren't setting a specific version like we are doing for react-native-aztec and react-native-bridge.

How?

Now it will fetch the current React Native version from the package.json file.

It also sets the org.gradle.jvmargs configuration to prevent outOfMemory errors. This matches the current setting WordPress Android has.

Testing Instructions

E2E should pass correctly

Screenshots or screencast

N/A

@geriux geriux added the Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change) label Aug 8, 2022
@geriux geriux requested a review from dcalhoun August 8, 2022 10:06
Copy link
Contributor

@ntsekouras ntsekouras left a comment

Choose a reason for hiding this comment

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

Thank you for fixing this! 💯

@ntsekouras ntsekouras merged commit 17bd7ec into trunk Aug 8, 2022
@ntsekouras ntsekouras deleted the rnmobile/fix/android-dynamic-react-version branch August 8, 2022 10:40
@github-actions github-actions bot added this to the Gutenberg 13.9 milestone Aug 8, 2022
Copy link
Member

@dcalhoun dcalhoun left a comment

Choose a reason for hiding this comment

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

Thank you, @geriux! 🙇🏻

geriux pushed a commit that referenced this pull request Aug 25, 2022
* Mobile - Fix dynamic React Native version

* Mobile - Adds jvmargs setting
geriux pushed a commit that referenced this pull request Aug 26, 2022
* Release script: Update react-native-editor version to 1.81.0

* Release script: Update with changes from 'npm run core preios'

* Release script: Update react-native-editor version to 1.81.1

* Release script: Update with changes from 'npm run core preios'

* [Mobile] - Add BlockListCompact (#43431)

* Mobile - Introduce BlockListCompact - Lighter version of the default BlockList with simpler functionality for use cases like the List V2 block

* Mobile - Update List V2 tests since it's not needed to fire the layout event change with the BlockListCompact component

* Mobile - BlockListCompact - Add note of the component props and which block is currently using it

* [RNMobile] List block v2: Fix text color inconsistencies with list items (#43244)

* List block v2: use default color for preferred color scheme
* Use usePreferredColorSchemeStyle hook for List Item style
* Remove unneeded font-size value from list item styles

* Mobile - Disable FastImage on Android (#43322)

* [Mobile] - Fix dynamic React Native version (#43058)

* Mobile - Fix dynamic React Native version

* Mobile - Adds jvmargs setting

* [RNMobile] Use default placeholder text color for native List Item (#43353)

* Use default placeholder text color for native List Item

* Move list item placeholder hex value to stylesheet

* Resolve test failure

* Add opacity to list block placeholder color styles

* Update List block v2 placholder currentTextColor

* Mobile - List Item - Check if currentTextColor is not undefined and moves opacity value into a const

* Mobile - List Item - Add optional chaining for style.color

Co-authored-by: Gerardo <[email protected]>

* Mobile - Update CHANGELOG

* Mobile - Update Podfile after resolving conflicts

* Mobile - Add mock style for list item

Co-authored-by: Derek Blank <[email protected]>
Co-authored-by: Gerardo Pacheco <[email protected]>
geriux pushed a commit that referenced this pull request Sep 6, 2022
* Release script: Update react-native-editor version to 1.81.0

* Release script: Update with changes from 'npm run core preios'

* Release script: Update react-native-editor version to 1.81.1

* Release script: Update with changes from 'npm run core preios'

* [Mobile] - Add BlockListCompact (#43431)

* Mobile - Introduce BlockListCompact - Lighter version of the default BlockList with simpler functionality for use cases like the List V2 block

* Mobile - Update List V2 tests since it's not needed to fire the layout event change with the BlockListCompact component

* Mobile - BlockListCompact - Add note of the component props and which block is currently using it

* [RNMobile] List block v2: Fix text color inconsistencies with list items (#43244)

* List block v2: use default color for preferred color scheme
* Use usePreferredColorSchemeStyle hook for List Item style
* Remove unneeded font-size value from list item styles

* Mobile - Disable FastImage on Android (#43322)

* [Mobile] - Fix dynamic React Native version (#43058)

* Mobile - Fix dynamic React Native version

* Mobile - Adds jvmargs setting

* [RNMobile] Use default placeholder text color for native List Item (#43353)

* Use default placeholder text color for native List Item

* Move list item placeholder hex value to stylesheet

* Resolve test failure

* Add opacity to list block placeholder color styles

* Update List block v2 placholder currentTextColor

* Mobile - List Item - Check if currentTextColor is not undefined and moves opacity value into a const

* Mobile - List Item - Add optional chaining for style.color

Co-authored-by: Gerardo <[email protected]>

* Mobile - Update CHANGELOG

* Release script: Update react-native-editor version to 1.81.2

* Release script: Update with changes from 'npm run core preios'

* Mobile - List V2 - Prevent error when list is empty (#43861)

* Mobile - Update Changelog

Co-authored-by: Derek Blank <[email protected]>
Co-authored-by: David Calhoun <[email protected]>
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.

4 participants