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

RNMT-6187 Prepare our fork of cordova-android 12.0.0 #14

Merged

Conversation

usernuno
Copy link

This adds 5 commits above the 12.0.0 version from upstream:

  • Add extra test coverage for "escape strings.xml app name" (from our 11.0.0 fork)
  • Enable filter touch - on by default (from our 11.0.0 fork)
  • Fix error on cordova load error.html (from our 11.0.0 fork)
  • Re-introduce legacy Cordova splash screen logic (from our 11.0.0 fork)
  • Fix monochrome checks (fix from fix(GH-1616): Fix monochrome checks apache/cordova-android#1632)

The remaining changes from our 11.0.0 fork are already handled in 12.0.0.

andredestro and others added 6 commits July 24, 2023 14:51
Our fix is already integrated into upstream,
but we had a better test coverage internally.

This commit includes the extra test coverage.

References https://outsystemsrd.atlassian.net/browse/RNMT-5258
References https://outsystemsrd.atlassian.net/browse/RNMT-5730
References https://outsystemsrd.atlassian.net/browse/RNMT-6187
BREAKING CHANGE: This changes the default value of FilterTouchesWhenObscured

We had a customer asking for the addition of a configuration
to our Android’s manifest to prevent touches when the app is
obscured, as this was flagged by the google store as a
security issue.

Therefore, we should provide the ability for our customers to
add this specific configuration.

References https://outsystemsrd.atlassian.net/browse/RNMT-5303
References https://outsystemsrd.atlassian.net/browse/RNMT-5392
References https://outsystemsrd.atlassian.net/browse/RNMT-5730
References https://outsystemsrd.atlassian.net/browse/RNMT-6187
Fixes the application crashing when webview redirects to error screen.

This customisation has historically been in a patch in the template.
Since we now have a fork, all customisations should be in the fork.

References https://outsystemsrd.atlassian.net/browse/RNMT-1890
References https://outsystemsrd.atlassian.net/browse/RNMT-5730
References https://outsystemsrd.atlassian.net/browse/RNMT-6187
The changes made to splash screens in Cordova-android 11
are in line with the UX Google wants. Unfortunately, this removes
the support for custom full image splash screens altogether.

To keep the support for the new Splash Screen API provided
out of the box by Cordova but also support the full image splash
screens, we're reintroducing the removed code while keeping
the new logic as well.

So what does this do now?
- If no custom splash screens were provided and the
ShowSplashScreenSpinner preference is not enabled, only the
new Android splash is presented
- Otherwise, the Android splash is dismissed as ASAP and the
old experience is used
- The show() method is now available in the clobber once again,
because the old splash screen can still be re-shown (the new one
can't, hence why this method was removed)
- It's possible to dismiss the splash screen via hide() when using
AutoHideSplashScreen (this was possible before but was removed
in this new experience)

References https://outsystemsrd.atlassian.net/browse/RNMT-5730
References https://outsystemsrd.atlassian.net/browse/RNMT-6187
@usernuno usernuno requested a review from a team July 26, 2023 14:52
@usernuno usernuno self-assigned this Jul 26, 2023
@usernuno usernuno requested review from andredestro, EiyuuZack, Chuckytuh, cmfsotelo, tiagoappereira and sandrarodrigues76 and removed request for a team July 26, 2023 14:52
@usernuno usernuno merged commit bed7270 into outsystems/12.0.x Jul 27, 2023
12 checks passed
@usernuno usernuno deleted the feat/RNMT-6187/add-relevant-commits-12.0.0 branch July 27, 2023 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants