v5.1.0-rc1
Please report any bugs with this RC in the #pre-releases channel on Discord or through a GitHub issue with a
[v5.1.0-rc1]
tag in the title.
Installation
yarn add [email protected]
or
npm install [email protected]
Changes
- [notifications][ios] fixed a crash on completing a notification #1576
- [notifications][android] fixed multiple
NoSuchMethodError
exceptions on< API 26
(#1550 #1549 #1553 #1399) - [notifications][android] DisplayNotificationTask now correctly uses
WeakReference
to keep ref to Context (avoids mem leaks) - [notifications][android]
removeDeliveredNotificationsByTag
now correctly removes #1546 - [notifications][android] fix
removeDeliveredNotificationsByTag
crash #1392 - [firestore][ios] improve/rework native transaction code to prevent potential race conditions #1556
- [database][js] add reference
toJSON()
to match web sdk - [android][build] force Java 8 target compatibility for JDK 10 - #1070
- [android][build] remove fabric build tools from lib - only needed in users build.gradle
- [android] replace android.support
NonNull
&Nullable
annotation instances with java annotations- removes dependency on android support v4 annotations
- [links][typescript] fix types for
createShortDynamicLink
- #1580 - [functions][typescript] add export of
functions
type #1533 - [metro][js] add workaround for
module-resolver
bug - #1560
SDK Version Updates
- [ios] updated Firebase SDKs to
v5.10.0
- [android] updated gradle build tools to
3.2.0
classpath 'com.android.tools.build:gradle:3.2.0'
- [android] updated default build tools version to
28.0.2
- [android] updated
play-services-base
to16.0.1
- [android] updated Firebase SDKs;
- see /tests/android/app/build.gradle for a reference app build gradle file
implementation "com.google.firebase:firebase-core:16.0.4"
/* -------------------------
* OPTIONAL FIREBASE SDKS
* ------------------------- */
implementation('com.google.firebase:firebase-ads:15.0.1') {
// exclude `customtabs` as the support lib version is out of date
// we manually add it as a dependency below with a custom version
exclude group: 'com.android.support', module: 'customtabs'
}
// Authentication
implementation "com.google.firebase:firebase-auth:16.0.4"
// Analytics
implementation "com.google.firebase:firebase-analytics:16.0.4"
// Performance Monitoring
implementation "com.google.firebase:firebase-perf:16.1.2"
// Remote Config
implementation "com.google.firebase:firebase-config:16.0.1"
// Cloud Storage
implementation "com.google.firebase:firebase-storage:16.0.3"
// Invites
implementation "com.google.firebase:firebase-invites:16.0.4"
// Dynamic Links
implementation "com.google.firebase:firebase-dynamic-links:16.1.2"
// Real-time Database
implementation "com.google.firebase:firebase-database:16.0.3"
// Cloud Functions
implementation "com.google.firebase:firebase-functions:16.1.1"
// Cloud Firestore
implementation "com.google.firebase:firebase-firestore:17.1.1"
// Cloud Messaging / FCM
implementation "com.google.firebase:firebase-messaging:17.3.3"
// Crashlytics
implementation('com.crashlytics.sdk.android:crashlytics:2.9.5@aar') {
transitive = true
}
/* --------------------------------
* OPTIONAL SUPPORT LIBS
* -------------------------------- */
// For Firebase Ads
implementation "com.android.support:customtabs:27.1.1"
// For React Native Firebase Notifications
implementation 'me.leolin:ShortcutBadger:1.1.21@aar'
- [android] updated build dependencies;
- see /tests/android/build.gradle for a reference project build gradle file
classpath 'com.android.tools.build:gradle:3.2.0'
classpath 'com.google.gms:google-services:4.0.1'
classpath 'com.google.firebase:firebase-plugins:1.1.5'
classpath 'io.fabric.tools:gradle:1.25.4'
- [android] updated to gradle 4.6
You can update your gradle if required by adding the following at the bottom of your /android/build.gradle
task wrapper(type: Wrapper) {
gradleVersion = '4.6'
distributionUrl = distributionUrl.replace("bin", "all")
}
Or by modifying the distributionUrl
in /android/gradle/wrapper/gradle-wrapper.properties