mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-24 04:24:52 +08:00
- [dependencies][android] remove all Firebase SDKs in favour of Firebase BoM
- [android] upgrade to Android X - [android] upgrade gradle wrapper to v5.4.1 - [android][ios][tests] remove manual packages & enable auto-linking - [tests][internal] upgrade tests project to RN 60 - [ios] temporarily remove framework support in pods - broken in RN 60 - see https://github.com/facebook/react-native/issues/25349 - [linting] switch to use rn community linting rules
This commit is contained in:
@@ -4,7 +4,7 @@ buildscript {
|
||||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:3.4.0'
|
||||
classpath 'com.android.tools.build:gradle:3.4.2'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ plugins {
|
||||
project.ext {
|
||||
set('react-native', [
|
||||
versions: [
|
||||
android : [
|
||||
android : [
|
||||
minSdk : 16,
|
||||
targetSdk : 28,
|
||||
compileSdk: 28,
|
||||
@@ -24,12 +24,8 @@ project.ext {
|
||||
buildTools: "28.0.3"
|
||||
],
|
||||
|
||||
googlePlayServices: [
|
||||
base: "16.1.0",
|
||||
],
|
||||
|
||||
firebase : [
|
||||
messaging: "18.0.0"
|
||||
firebase: [
|
||||
bom: "21.1.0",
|
||||
],
|
||||
],
|
||||
])
|
||||
@@ -67,8 +63,8 @@ repositories {
|
||||
|
||||
dependencies {
|
||||
api project(':@react-native-firebase_app')
|
||||
implementation "com.google.firebase:firebase-messaging:${ReactNative.ext.getVersion("firebase", "messaging")}"
|
||||
implementation "com.google.android.gms:play-services-base:${ReactNative.ext.getVersion("googlePlayServices", "base")}"
|
||||
implementation platform("com.google.firebase:firebase-bom:${ReactNative.ext.getVersion("firebase", "bom")}")
|
||||
implementation "com.google.firebase:firebase-messaging"
|
||||
}
|
||||
|
||||
ReactNative.shared.applyPackageVersion()
|
||||
|
||||
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4-all.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
|
||||
|
||||
@@ -17,7 +17,7 @@ package io.invertase.firebase.messaging;
|
||||
*
|
||||
*/
|
||||
|
||||
import android.support.v4.app.NotificationManagerCompat;
|
||||
import androidx.core.app.NotificationManagerCompat;
|
||||
import com.facebook.react.bridge.Promise;
|
||||
import com.facebook.react.bridge.ReactApplicationContext;
|
||||
import com.facebook.react.bridge.ReactMethod;
|
||||
|
||||
Reference in New Issue
Block a user