react-native-firebase icon indicating copy to clipboard operation
react-native-firebase copied to clipboard

🐛 [@react-native-firebase/crashlytics] Add support for enabling gwpAsanMode in android config plugin

Open Upsilon-Iridani opened this issue 3 weeks ago • 3 comments

The crashlytics dashboard is alerting me to enable GWP-ASan:

Your app has NDK crashes that can lead to security vulnerabilities. Enable GWP-ASan to see additional debugging data in Crashlytics Learn more

The firebase BoM v31.3.0+ supports this feature, and react-antive-firebase uses a newer version: https://github.com/invertase/react-native-firebase/blob/c4959a1dcba577a8f6f0f87c16e5d247169cd383/packages/app/package.json#L86

https://github.com/invertase/react-native-firebase/blob/c4959a1dcba577a8f6f0f87c16e5d247169cd383/packages/crashlytics/android/build.gradle#L34

I'm considering writing a config plugin to do just that, and was considering contributing it to react-native-firebase.

My instinct is to put the config in the expo config plugin's parameters, and not the firebase.json file, as the feature I'm suggesting is a config plugin only.

Thoughts?

Upsilon-Iridani avatar Nov 29 '25 12:11 Upsilon-Iridani

Hi there, seeing it is supported in the native Android sdk, we should be able to support it here, I am happy to give this a crack myself.

MichaelVerdon avatar Dec 01 '25 14:12 MichaelVerdon

Fascinating, didn't know this existed. @MichaelVerdon appears you may be able to use firebase.json in combo with manifestPlaceholders style - used in analytics/android/build.gradle + analytics/android/src/main/AndroidManifest.xml

May work to interpolate the value in there? I think the default has to be off since it impacts memory usage and may cause app termination, then as a basic implementation just allowing the mode to be set (if library users want to use it...) would be great

mikehardy avatar Dec 01 '25 18:12 mikehardy