Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native AndroidManifest.xml debug vs main?

I've been working on a React Native app and just noticed there are two different AndroidManifest.xml files: android/app/src/main/AndroidManifest.xml and android/app/src/debug/AndroidManifest.xml. What's the difference between these two? And more generally, what's the difference between the debug and main folders in general? Is one used when you're running your app on an emulator and the other used when the app's been pushed to the store, etc?

like image 615
gkeenley Avatar asked Feb 25 '26 03:02

gkeenley


1 Answers

AndroidManifest in the main directory will be used when you generate a release APK, AndroidManifest in the debug folder will add and/or replace things in the main AndroidManifest when running in dev mode. Running on emulator has nothing to do with dev/release modes. Other than that, you can put more things into the debug folder (like an app icon) that will replace things in your main folder when running in dev mode.

like image 61
Radek Czemerys Avatar answered Feb 27 '26 19:02

Radek Czemerys