From 56fc630368021c05b96a09733737d31a847ae7fe Mon Sep 17 00:00:00 2001 From: Dulmandakh Date: Mon, 18 Feb 2019 02:36:59 -0800 Subject: [PATCH] SYSTEM_ALERT_WINDOW only in debug builds (#23504) Summary: SYSTEM_ALERT_WINDOW permission is used only for debug builds to show draw overlay views or show warnings/errors. This permissions is unused in release builds, and there is an issue regarding removing unused permissions on Android build https://github.com/facebook/react-native/issues/5886#issuecomment-464495388. This PR removes SYSTEM_ALERT_WINDOW from all builds bug debug. [Android] [Changed] - SYSTEM_ALERT_WINDOW permissions available only in debug builds Pull Request resolved: https://github.com/facebook/react-native/pull/23504 Differential Revision: D14123045 Pulled By: cpojer fbshipit-source-id: 68829a774ff23c7cb2721076a9d3870405f48fea --- ReactAndroid/src/main/AndroidManifest.xml | 2 -- template/android/app/src/debug/AndroidManifest.xml | 3 +++ template/android/app/src/main/AndroidManifest.xml | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ReactAndroid/src/main/AndroidManifest.xml b/ReactAndroid/src/main/AndroidManifest.xml index 900169cc7c5012..ec2751f1bac2fd 100644 --- a/ReactAndroid/src/main/AndroidManifest.xml +++ b/ReactAndroid/src/main/AndroidManifest.xml @@ -1,7 +1,5 @@ - - diff --git a/template/android/app/src/debug/AndroidManifest.xml b/template/android/app/src/debug/AndroidManifest.xml index 1fce564881ff37..4ea9bc0496637a 100644 --- a/template/android/app/src/debug/AndroidManifest.xml +++ b/template/android/app/src/debug/AndroidManifest.xml @@ -1,5 +1,8 @@ + + + \ No newline at end of file diff --git a/template/android/app/src/main/AndroidManifest.xml b/template/android/app/src/main/AndroidManifest.xml index e5e6330fbdf64d..7bfb4481abbcf1 100644 --- a/template/android/app/src/main/AndroidManifest.xml +++ b/template/android/app/src/main/AndroidManifest.xml @@ -2,7 +2,6 @@ package="com.helloworld"> -