- [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:
Salakar
2019-07-30 03:59:04 +01:00
parent 3f98c7849a
commit f429699990
277 changed files with 4573 additions and 16379 deletions

View File

@@ -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()

View File

@@ -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

View File

@@ -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;