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

Remove android.permission.SYSTEM_ALERT_WINDOW in release builds #8718

Merged
merged 1 commit into from
Dec 3, 2018

Conversation

jtreanor
Copy link
Contributor

@jtreanor jtreanor commented Dec 3, 2018

React Native adds permissions that are only needed for debug purposes in all builds. android.permission.SYSTEM_ALERT_WINDOW is used for the debug overlay so can be removed for release builds.

The react native issue is facebook/react-native#5886.

To test:

  • Run ./gradlew assembleVanillaDebug assembleVanillaRelease
  • Check that the debug build has android.permission.SYSTEM_ALERT_WINDOW with apkanalyzer manifest permissions WordPress/build/outputs/apk/vanilla/debug/WordPress-vanilla-debug.apk
  • Check that the release build doesn't have android.permission.SYSTEM_ALERT_WINDOW with apkanalyzer manifest permissions WordPress/build/outputs/apk/vanilla/release/WordPress-vanilla-release.apk

@jtreanor jtreanor requested a review from hypest December 3, 2018 16:36
@jtreanor jtreanor force-pushed the react-native-permissions branch from 33dc325 to 7fac7b2 Compare December 3, 2018 16:38
Copy link
Contributor

@hypest hypest left a comment

Choose a reason for hiding this comment

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

LGTM!

@wpmobilebot
Copy link
Contributor

2 Warnings
⚠️ PR is missing at least one label.
⚠️ PR is not assigned to a milestone.

Generated by 🚫 Danger

@hypest hypest added this to the 11.4 ❄️ milestone Dec 3, 2018
@jtreanor jtreanor merged commit 68b66a7 into release/11.4 Dec 3, 2018
@jtreanor jtreanor deleted the react-native-permissions branch December 3, 2018 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants