Published on 07/30/2024
Published by Pratik Takle
New additions in API level 34
package.json
1 2 3 4 5 |
"@react-native-firebase/analytics": "^17.5.0", "@react-native-firebase/app": "^17.5.0", "@react-native-firebase/auth": "^17.5.0", "@react-native-firebase/crashlytics": "^17.5.0", "@react-native-google-signin/google-signin": "^12.2.1", |
1 2 |
"react": "18.2.0", "react-native": "0.71.6", |
android/build.gradle
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
ext { buildToolsVersion = "33.0.0" minSdkVersion = 25 compileSdkVersion = 34 targetSdkVersion = 34 // We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP. ndkVersion = "23.1.7779620" kotlinVersion = "1.6.0" } dependencies { classpath("com.android.tools.build:gradle:7.3.1") classpath("com.facebook.react:react-native-gradle-plugin") classpath 'com.google.gms:google-services:4.3.3' classpath 'com.google.firebase:firebase-crashlytics-gradle:2.4.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion" } |
android/gradle.properties
1 |
android.suppressUnsupportedCompileSdk=34 |
android/app/build.gradle
1 2 |
implementation 'com.google.android.play:app-update:2.1.0' implementation 'org.jetbrains:annotations:16.0.2' |
android/app/src/main/java/net/walnutedu/walmiki/MainApplication.java
1 |
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip |
android/app/src/main/AndroidManifest.xml
- while adding android:name, please take care of the value used in AndroidManifest.xml
1 2 3 4 5 6 7 8 |
<!-- new code added for BroadcastReceiver error - RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED --> <receiver android:name="net.walnutedu.walmiki.MyBroadcastReceiver" android:exported="false" > <intent-filter> <action android:name="com.afrihost.firebase.notifications.RNFirebaseNotificationReceiver" /> </intent-filter> </receiver> |