My app has been crashing ever since I enabled Proguard. I've been hunting for a fix for days, but nothing has worked. I already tried this solution React native app crashing after enabling R8 / minifyEnabled
Could you please assist me in identifying the issue? This is my code.
error:
app/build.gradle
buildTypes {
debug {
signingConfig signingConfigs.debug
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
release {
// Caution! In production, you need to generate your own keystore file.
// see https://reactnative.dev/docs/signed-apk-android.
crunchPngs false
signingConfig signingConfigs.release
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
package.json
"dependencies": {
"@datadog/mobile-react-native": "^1.1.4",
"@datadog/mobile-react-navigation": "^1.1.4",
"@react-native-async-storage/async-storage": "^1.15.14",
"@react-native-clipboard/clipboard": "^1.9.0",
"@react-native-community/netinfo": "6.2.1",
"@react-native-firebase/app": "16.5.2",
"@react-native-firebase/auth": "^16.5.2",
"@react-native-firebase/firestore": "^16.5.2",
"@react-native-firebase/in-app-messaging": "^16.5.2",
"@react-native-firebase/installations": "^16.5.2",
"@react-native-firebase/messaging": "^16.5.2",
"@react-native-masked-view/masked-view": "^0.2.6",
"@react-navigation/bottom-tabs": "^6.0.5",
"@react-navigation/drawer": "^6.1.8",
"@react-navigation/native": "^6.0.6",
"@react-navigation/native-stack": "^6.6.2",
"@react-navigation/stack": "^5.x",
"@reduxjs/toolkit": "^1.6.1",
"@rematch/core": "^2.2.0",
"@rematch/persist": "^2.1.2",
"@thecodingmachine/redux-toolkit-wrapper": "2.0.1",
"@types/axios": "^0.14.0",
"@types/ngeohash": "^0.6.4",
"@types/react-native-snap-carousel": "^3.8.5",
"@types/styled-components": "^5.1.15",
"appcenter": "4.3.0",
"appcenter-analytics": "4.3.0",
"appcenter-crashes": "4.3.0",
"axios": "0.22.0",
"i18next": "^20.6.1",
"launchdarkly-react-native-client-sdk": "^6.2.4",
"moment": "^2.29.1",
"native-base": "^3.2.1",
"ngeohash": "^0.6.3",
"patch-package": "^6.5.1",
"postinstall-postinstall": "^2.1.0",
"prop-types": "^15.7.2",
"react": "17.0.2",
"react-i18next": "^11.12.0",
"react-native": "0.64.4",
"react-native-animatable": "^1.3.3",
"react-native-appearance": "^0.3.4",
"react-native-background-fetch": "^4.1.0",
"react-native-background-geolocation": "^4.8.2",
"react-native-background-timer": "^2.4.1",
"react-native-code-push": "^7.0.4",
"react-native-config": "^1.4.5",
"react-native-contacts": "^7.0.3",
"react-native-crash-tester": "^0.2.3",
"react-native-device-info": "^10.3.0",
"react-native-fbsdk-next": "8.0.0",
"react-native-flipper": "^0.113.0",
"react-native-gesture-handler": "^2.8.0",
"react-native-get-random-values": "^1.7.2",
"react-native-image-picker": "^4.8.3",
"react-native-image-viewing": "^0.2.1",
"react-native-intent-launcher": "^0.2.1",
"react-native-keep-awake": "^4.0.0",
"react-native-keyboard-aware-scroll-view": "^0.9.5",
"react-native-maps": "^0.29.4",
"react-native-modalize": "^2.1.1",
"react-native-pager-view": "^5.4.9",
"react-native-permissions": "^3.2.0",
"react-native-ratings": "^8.1.0",
"react-native-reanimated": "2.2.0",
"react-native-render-html": "5.1.1",
"react-native-safe-area-context": "^3.3.2",
"react-native-screens": "^3.7.2",
"react-native-settings": "^0.2.3",
"react-native-simple-toast": "^1.1.3",
"react-native-slide-to-unlock": "^0.1.6",
"react-native-snap-carousel": "^3.9.1",
"react-native-sound": "^0.11.2",
"react-native-svg": "^12.1.1",
"react-native-tab-view": "2.16.0",
"react-native-vector-icons": "^9.0.0",
"react-native-webview": "^11.15.0",
"react-redux": "7.2.6",
"redux": "^4.1.1",
"redux-flipper": "^2.0.1",
"redux-persist": "^6.0.0",
"styled-components": "^5.3.3",
"styled-system": "^5.1.5"
},
Thank you for your help!