Nov 4, 2018
5.1.0-rc3

@Ehesp Ehesp released this Oct 31, 2018 · 25 commits to master since this release

Assets 2

v5.1.0-rc2

Bug fixes

Database

  • [android] Database listeners now correctly tearing down between RN reloads #1619 (Fixes #1498 #1611 #1609).
  • [js] Fixed an issue where Reference.toString() incorrectly contains // instead of / when joining the parent and child paths.
  • [js] Rework .push() behaviour to match WebSDK and correctly return a Reference instance in all scenarios. (Fixes #893 #1464 #1572).
  • [js] Fix a transaction issue when debugger is open. 7face86 (#1503)

Notifications

  • [ios] Add missing default case to scheduled notifications with intervals
  • [js] Change IOSNotification badge type definition to number

Storage

  • [android] Returning null within getDownloadUrl now successfully resolves.

New Features

Database / Utils

  • [js] Added a firebase.utils().database.cleanup() utility method which removes all database listeners.

Messaging

@Salakar Salakar released this Oct 17, 2018 · 46 commits to master since this release

Assets 2

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 react-native-firebase@5.1.0-rc1

or

npm install react-native-firebase@5.1.0-rc1

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 to 16.0.1
  • [android] updated Firebase SDKs;
  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'
   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

@Salakar Salakar released this Sep 27, 2018 · 82 commits to master since this release

Assets 2

See the website for release notes: https://rnfirebase.io/docs/v5.x.x/release-notes