-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a Debug manifest inside React Native Android (#37771)
Summary: Pull Request resolved: #37771 While working on debugging tools, I noticed that we ask in every template app to - Add a "com.facebook.react.devsupport.DevSettingsActivity" activity - Add the <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/> This is error prone and can be cleanup as we now distribute React Native that is variant aware (debug/release). So I'm creating a manifest inside `src/debug` that contains those directive so we don't need to ask users to add them (I'm removing them from the template). Changelog: [Internal] [Changed] - Create a Debug manifest inside React Native Android Reviewed By: cipolleschi Differential Revision: D46556884 fbshipit-source-id: 10034a6b245bf419dfa663bc998c4d1ad5d24a90
- Loading branch information
1 parent
2674d9b
commit f3c8636
Showing
4 changed files
with
16 additions
and
11 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
packages/react-native/ReactAndroid/src/debug/AndroidManifest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
||
<!-- | ||
This manifest file is used only by Gradle to configure debug-only capabilities | ||
for React Native Apps. | ||
--> | ||
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/> | ||
|
||
<application> | ||
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" | ||
android:exported="false" /> | ||
</application> | ||
|
||
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters