Closed jjang16 closed 5 years ago
Hey @jjang16 - apologies on the delay in responding to this issue.
This would be an issue to raise with firebase support, we're not adding any custom build compilation/minification steps, this is all coming from the Firebase Perf gradle tools.
Thanks
Issue
I'm trying to build an AR app with react native. I'm using "the 8th wall" https://8thwall.com/ as the AR solution. since it only supports Unity3d libary currently, I'm also exporting the Unity3d into React Native using this module https://github.com/f111fei/react-native-unity-view There is an obfuscated library XRPlugin.aar from the8thwall, which I include it via gradle dependencies in one of my modules. It contains classes such as com.the8thwall.reality.a.a.p, com.the8thwall.reality.a.a.q, etc. So here is the problem. When I enable firebase performance monitoring, some classes of the obfuscated library are removed. the removed classes are ones that are called by reflection inside the external library. I can see the classes missing inside the dex files, but present in the original library aar file. I'm using multidex, but no proguard. If I remove firebase performance monitoring, but with all other firebase modules included, the classes do get included normally in the final dex files. I think firebase performance monitoring plugin runs some kind of shrinking, or optimization during the build. Maybe, since the removed classes don't have direct reference, firebase performance monitoring thinks those classes are unused, removing them from the final dex file.
Project Files
iOS
ios/Podfile
:AppDelegate.m
:Android
android/build.gradle
:android/app/build.gradle
:android/settings.gradle
:MainApplication.java
:AndroidManifest.xml
:Environment
Platform that you're experiencing the issue on:
If known, the version of the platform are you experiencing the issue on:
ADD_SOMETHING_HERE
e.g. iOS 10 or Android API 28Operating System:
N/A
N/A
N/A
Build Tools:
React Native
version:React Native Firebase
library version:Firebase
module(s) you're using that has the issue:Are you using
TypeScript
?N/A
Are you using Expo, e.g.
ExpoKit
?ExpoKit
N/A
Think
react-native-firebase
is great? Please consider supporting the project with any of the below:React Native Firebase
andInvertase
on Twitter