Closed garvsgit closed 1 day ago
Updated with template reproducer with proguard enabled
Is this happening on 0.74 also?
This issue is waiting for author's feedback since 24 days. Please provide the requested feedback or this will be closed in 7 days.
This issue is not present in 0.73 and above. Have re-opened #44698 as a pick-request to 0.72 for the solve
This issue is not present in 0.73 and above. Have re-opened #44698 as a pick-request to 0.72 for the solve
Thanks for the investigation @garvsgit As this issue is already fixed, what is preventing you from updating to 0.73 or 0.74? 0.72 is end of life and we limit the pick requests to only extremely necessary picks
I depend on a few out-of-support packages which do not work well with 0.73 so holding off on an upgrade for now. I understand that 0.72 is end of life and this is only a nice to have pick, not a necessary one so I'll be closing this issue and the associated PR.
Thanks!
Description
This is an issue with React Native 0.72. According to the design of DevSupportManager https://github.com/facebook/react-native/blob/d724007364c4315e2cabace0fc6eae6e6212431d/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/DefaultDevSupportManagerFactory.java#L21-L26 BridgeDevSupportManager class and its dependencies should be stripped by Proguard in release builds, however on inspecting the release APKs with proguard enabled, I found that many DevSupport classes were included. On digging deeper, I found the issue here https://github.com/facebook/react-native/blob/d724007364c4315e2cabace0fc6eae6e6212431d/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/devloading/DevLoadingModule.java#L16 On deleting the usages of DevLoading Module, I found that the unnecessary DevSupport classes were no longer included in the release APKs.
Please look into refactoring DevLoading Module so that it doesn't cause unnecessary bloat in the release APK
Steps to reproduce
React Native Version
0.72.14
Affected Platforms
Runtime - Android
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/garvsgit/test072App
Screenshots and Videos