[tests] integrate perf package

This commit is contained in:
Salakar
2019-02-04 18:38:15 +00:00
parent 9b34783097
commit 074c0ec5c2
6 changed files with 19 additions and 4 deletions

View File

@@ -96,6 +96,7 @@ dependencies {
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')
/* ------------------------
* TESTING SDKS/LIBRARIES

View File

@@ -12,11 +12,12 @@ 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.functions.ReactNativeFirebaseFunctionsPackage;
import io.invertase.firebase.iid.ReactNativeFirebaseIidPackage;
import io.invertase.firebase.perf.ReactNativeFirebasePerfPackage;
import io.invertase.firebase.functions.ReactNativeFirebaseFunctionsPackage;
import io.invertase.firebase.analytics.ReactNativeFirebaseAnalyticsPackage;
import io.invertase.jet.JetPackage;
public class MainApplication extends Application implements ReactApplication {
@@ -34,7 +35,8 @@ public class MainApplication extends Application implements ReactApplication {
new ReactNativeFirebaseAppPackage(),
new ReactNativeFirebaseAnalyticsPackage(),
new ReactNativeFirebaseFunctionsPackage(),
new ReactNativeFirebaseIidPackage()
new ReactNativeFirebaseIidPackage(),
new ReactNativeFirebasePerfPackage()
);
}
};

View File

@@ -1,4 +1,6 @@
rootProject.name = '@react-native-firebase/tests'
include ':@react-native-firebase_perf'
project(':@react-native-firebase_perf').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-firebase/perf/android')
include ':jet'
project(':jet').projectDir = new File(rootProject.projectDir, './../node_modules/jet/android')

View File

@@ -18,6 +18,7 @@ jet.exposeContextProperty('NativeEventEmitter', NativeEventEmitter);
import '@react-native-firebase/analytics';
import '@react-native-firebase/functions';
import '@react-native-firebase/iid';
import '@react-native-firebase/perf';
import firebase from '@react-native-firebase/app';
jet.exposeContextProperty('module', firebase);

View File

@@ -35,6 +35,7 @@ target 'testing' do
pod 'RNFBAnalytics', :path => '../../packages/analytics/ios/RNFBAnalytics.podspec', :version => "~> #{rnfb_version}"
pod 'RNFBFunctions', :path => '../../packages/functions/ios/RNFBFunctions.podspec', :version => "~> #{rnfb_version}"
pod 'RNFBIid', :path => '../../packages/iid/ios/RNFBIid.podspec', :version => "~> #{rnfb_version}"
pod 'RNFBPerf', :path => '../../packages/perf/ios/RNFBPerf.podspec', :version => "~> #{rnfb_version}"
# Pods for ReactNativeFirebaseDemo

View File

@@ -124,6 +124,9 @@ PODS:
- RNFBIid (6.0.0-alpha.2):
- Firebase/Core (~> 5.15.0)
- React
- RNFBPerf (6.0.0-alpha.2):
- Firebase/Core (~> 5.15.0)
- React
- yoga (0.58.1.React)
DEPENDENCIES:
@@ -142,6 +145,7 @@ DEPENDENCIES:
- RNFBApp (from `../../packages/app/ios/RNFBApp.podspec`)
- RNFBFunctions (from `../../packages/functions/ios/RNFBFunctions.podspec`)
- RNFBIid (from `../../packages/iid/ios/RNFBIid.podspec`)
- RNFBPerf (from `../../packages/perf/ios/RNFBPerf.podspec`)
- yoga (from `../node_modules/react-native/ReactCommon/yoga`)
SPEC REPOS:
@@ -182,6 +186,9 @@ EXTERNAL SOURCES:
RNFBIid:
:path: "../../packages/iid/ios/RNFBIid.podspec"
:version: "~> 0.0.1"
RNFBPerf:
:path: "../../packages/perf/ios/RNFBPerf.podspec"
:version: "~> 0.0.1"
yoga:
:path: "../node_modules/react-native/ReactCommon/yoga"
@@ -207,8 +214,9 @@ SPEC CHECKSUMS:
RNFBApp: 305869c42d87e4792f7f8432189fb4617916731d
RNFBFunctions: 2b2247e7222349b9b277baa12ed1b82bff4bf1dd
RNFBIid: d4cf17077faf724ef75ae022dd764351a119923c
RNFBPerf: 665dd32e38f2bfbc99c2075775d7b6ea8feed1a4
yoga: 0885622311729a02c2bc02dca97167787a51488b
PODFILE CHECKSUM: 701dbe2c0785f8621afdb5cc5251875c36079692
PODFILE CHECKSUM: 70bda970a12abad8fccae517c15c759009118ab9
COCOAPODS: 1.5.3