[android] update sdk versions

This commit is contained in:
Salakar
2019-02-10 03:26:07 +00:00
parent 9720411089
commit cdad2ea57c
14 changed files with 69 additions and 57 deletions

View File

@@ -25,11 +25,11 @@ project.ext {
],
googlePlayServices: [
base: "16.0.1",
base: "16.1.0",
],
firebase : [
analytics: "16.0.6"
analytics: "16.3.0"
],
],
])

View File

@@ -25,11 +25,11 @@ project.ext {
],
googlePlayServices: [
base: "16.0.1",
base: "16.1.0",
],
firebase : [
core: "16.0.6"
core: "16.0.7"
],
],
])

View File

@@ -4,18 +4,13 @@ logger.log(LogLevel.WARN, " | WARNING REACT NATIVE FIREBASE
logger.log(LogLevel.WARN, " ----------------------------------------------------------- ")
logger.log(LogLevel.WARN, " | |")
logger.log(LogLevel.WARN, " | It looks like you're using Expo; |")
logger.log(LogLevel.WARN, " | we no longer test for or support Expo - therefore we |")
logger.log(LogLevel.WARN, " | will not offer support or gurantee stability whilst |")
logger.log(LogLevel.WARN, " | using this library on their platform. |")
logger.log(LogLevel.WARN, " | we no longer test for / support Expo - therefore we |")
logger.log(LogLevel.WARN, " | can not offer support or gurantee stability whilst |")
logger.log(LogLevel.WARN, " | using this library in Expo. |")
logger.log(LogLevel.WARN, " | |")
logger.log(LogLevel.WARN, " | We recommend ejecting from Expo entirely should you |")
logger.log(LogLevel.WARN, " | wish to continue using React Native Firebase or if |")
logger.log(LogLevel.WARN, " | want to get official support for it from us. |")
logger.log(LogLevel.WARN, " | |")
logger.log(LogLevel.WARN, " | NOTE: Expo's 'ExpoFirebase' is an outdated, unofficial, |")
logger.log(LogLevel.WARN, " | direct copy of our source code, should you wish to use |")
logger.log(LogLevel.WARN, " | Expo + 'ExpoFirebase' instead then you do so at your |")
logger.log(LogLevel.WARN, " | own risk without support from React Native Firebase. |")
logger.log(LogLevel.WARN, " | |")
logger.log(LogLevel.WARN, " ----------------------------------------------------------- ")
logger.log(LogLevel.WARN, "")

View File

@@ -25,11 +25,11 @@ project.ext {
],
googlePlayServices: [
base: "16.0.1",
base: "16.1.0",
],
firebase : [
config: "16.0.6"
config: "16.3.0"
],
],
])

View File

@@ -25,11 +25,11 @@ project.ext {
],
googlePlayServices: [
base: "16.0.1",
base: "16.1.0",
],
firebase : [
crashlytics: "16.0.6"
fabric : [
crashlytics: "2.9.9"
],
],
])
@@ -56,7 +56,7 @@ repositories {
dependencies {
api project(':@react-native-firebase/app')
implementation "com.google.firebase:firebase-crashlytics:${ReactNative.ext.getVersion("firebase", "crashlytics")}"
implementation "com.crashlytics.sdk.android:crashlytics:${ReactNative.ext.getVersion("fabric", "crashlytics")}"
implementation "com.google.android.gms:play-services-base:${ReactNative.ext.getVersion("googlePlayServices", "base")}"
}

View File

@@ -25,7 +25,7 @@ project.ext {
],
googlePlayServices: [
base: "16.0.1",
base: "16.1.0",
],
firebase : [

View File

@@ -25,11 +25,11 @@ project.ext {
],
googlePlayServices: [
base: "16.0.1",
base: "16.1.0",
],
firebase : [
iid: "16.0.6"
iid: "17.0.4"
],
],
])

View File

@@ -25,11 +25,13 @@ project.ext {
],
googlePlayServices: [
base: "16.0.1",
base: "16.1.0",
],
firebase : [
mlkit: "16.0.6"
mlkitVision: "19.0.2",
mlkitCommon: "16.2.1",
mlkitNaturalLanguage: "18.1.1",
],
],
])
@@ -56,7 +58,9 @@ repositories {
dependencies {
api project(':@react-native-firebase/app')
implementation "com.google.firebase:firebase-mlkit:${ReactNative.ext.getVersion("firebase", "mlkit")}"
implementation "com.google.firebase:firebase-ml-common:${ReactNative.ext.getVersion("firebase", "mlkitCommon")}"
implementation "com.google.firebase:firebase-ml-vision:${ReactNative.ext.getVersion("firebase", "mlkitVision")}"
implementation "com.google.firebase:firebase-ml-natural-language:${ReactNative.ext.getVersion("firebase", "mlkitNaturalLanguage")}"
implementation "com.google.android.gms:play-services-base:${ReactNative.ext.getVersion("googlePlayServices", "base")}"
}

View File

@@ -25,7 +25,7 @@ project.ext {
],
googlePlayServices: [
base: "16.0.1",
base: "16.1.0",
],
firebase : [

View File

@@ -25,11 +25,7 @@ project.ext {
],
googlePlayServices: [
base: "16.0.1",
],
firebase : [
utils: "16.0.6"
base: "16.1.0",
],
],
])
@@ -56,7 +52,6 @@ repositories {
dependencies {
api project(':@react-native-firebase/app')
implementation "com.google.firebase:firebase-utils:${ReactNative.ext.getVersion("firebase", "utils")}"
implementation "com.google.android.gms:play-services-base:${ReactNative.ext.getVersion("googlePlayServices", "base")}"
}

View File

@@ -25,7 +25,7 @@ project.ext {
],
googlePlayServices: [
base: "16.0.1",
base: "16.1.0",
],
firebase : [

View File

@@ -12,6 +12,17 @@ project.ext.react = [
apply from: "../../node_modules/react-native/react.gradle"
def enableSeparateBuildPerCPUArchitecture = false
def firebasePackages = [
'app',
'analytics',
'config',
'crashlytics',
'functions',
'iid',
'mlkit',
'perf',
'utils'
]
android {
compileSdkVersion 28
@@ -91,12 +102,9 @@ dependencies {
* REACT NATIVE FIREBASE
* ---------------------------- */
// Libraries as defined in settings.gradle
implementation project(path: ':@react-native-firebase/app')
implementation project(path: ':@react-native-firebase/analytics')
implementation project(path: ':@react-native-firebase/functions')
implementation project(path: ':@react-native-firebase/iid')
implementation project(path: ':@react-native-firebase/perf')
firebasePackages.each { firebasePackage ->
implementation project(path: ":@react-native-firebase/${firebasePackage}")
}
/* ------------------------
* TESTING SDKS/LIBRARIES

View File

@@ -12,12 +12,16 @@ import com.facebook.soloader.SoLoader;
import java.util.Arrays;
import java.util.List;
import io.invertase.firebase.analytics.ReactNativeFirebaseAnalyticsPackage;
import io.invertase.firebase.app.ReactNativeFirebaseApp;
import io.invertase.firebase.app.ReactNativeFirebaseAppPackage;
import io.invertase.firebase.iid.ReactNativeFirebaseIidPackage;
import io.invertase.firebase.perf.ReactNativeFirebasePerfPackage;
import io.invertase.firebase.config.ReactNativeFirebaseConfigPackage;
import io.invertase.firebase.crashlytics.ReactNativeFirebaseCrashlyticsPackage;
import io.invertase.firebase.functions.ReactNativeFirebaseFunctionsPackage;
import io.invertase.firebase.analytics.ReactNativeFirebaseAnalyticsPackage;
import io.invertase.firebase.iid.ReactNativeFirebaseIidPackage;
import io.invertase.firebase.mlkit.ReactNativeFirebaseMlkitPackage;
import io.invertase.firebase.perf.ReactNativeFirebasePerfPackage;
import io.invertase.firebase.utils.ReactNativeFirebaseUtilsPackage;
import io.invertase.jet.JetPackage;
public class MainApplication extends Application implements ReactApplication {
@@ -33,10 +37,14 @@ public class MainApplication extends Application implements ReactApplication {
new MainReactPackage(),
new JetPackage(),
new ReactNativeFirebaseAppPackage(),
new ReactNativeFirebaseCrashlyticsPackage(),
new ReactNativeFirebaseConfigPackage(),
new ReactNativeFirebaseMlkitPackage(),
new ReactNativeFirebaseAnalyticsPackage(),
new ReactNativeFirebaseFunctionsPackage(),
new ReactNativeFirebaseIidPackage(),
new ReactNativeFirebasePerfPackage()
new ReactNativeFirebasePerfPackage(),
new ReactNativeFirebaseUtilsPackage()
);
}
};

View File

@@ -1,23 +1,25 @@
rootProject.name = '@react-native-firebase/tests'
def firebasePackages = [
'app',
'analytics',
'config',
'crashlytics',
'functions',
'iid',
'mlkit',
'perf',
'utils'
]
firebasePackages.each { firebasePackage ->
include ":@react-native-firebase/${firebasePackage}"
project(":@react-native-firebase/${firebasePackage}").projectDir = new File(rootProject.projectDir, "./../../packages/${firebasePackage}/android")
}
include ':jet'
project(':jet').projectDir = new File(rootProject.projectDir, './../node_modules/jet/android')
include ':@react-native-firebase/app'
project(':@react-native-firebase/app').projectDir = new File(rootProject.projectDir, './../../packages/app/android')
include ':@react-native-firebase/analytics'
project(':@react-native-firebase/analytics').projectDir = new File(rootProject.projectDir, './../../packages/analytics/android')
include ':@react-native-firebase/functions'
project(':@react-native-firebase/functions').projectDir = new File(rootProject.projectDir, './../../packages/functions/android')
include ':@react-native-firebase/iid'
project(':@react-native-firebase/iid').projectDir = new File(rootProject.projectDir, './../../packages/iid/android')
include ':@react-native-firebase/perf'
project(':@react-native-firebase/perf').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-firebase/perf/android')
include ':detox'
project(':detox').projectDir = new File(rootProject.projectDir, './../node_modules/detox/android/detox')