mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-01-12 22:50:20 +08:00
@@ -15,7 +15,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { NativeModules } from 'react-native';
|
||||
import {
|
||||
hasOwnProperty,
|
||||
isArray,
|
||||
@@ -24,8 +23,8 @@ import {
|
||||
isString,
|
||||
isUndefined,
|
||||
isValidUrl,
|
||||
} from '@react-native-firebase/common';
|
||||
|
||||
} from '@react-native-firebase/app/lib/common';
|
||||
import { NativeModules } from 'react-native';
|
||||
import AdsConsentDebugGeography from './AdsConsentDebugGeography';
|
||||
import AdsConsentStatus from './AdsConsentStatus';
|
||||
|
||||
|
||||
@@ -15,11 +15,10 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { isFunction, isString } from '@react-native-firebase/common';
|
||||
import { isFunction, isString } from '@react-native-firebase/app/lib/common';
|
||||
import { getFirebaseRoot } from '@react-native-firebase/app/lib/internal';
|
||||
import validateAdRequestOptions from '../validateAdRequestOptions';
|
||||
import validateAdShowOptions from '../validateAdShowOptions';
|
||||
|
||||
import MobileAd from './MobileAd';
|
||||
|
||||
let _interstitialRequest = 0;
|
||||
|
||||
@@ -15,12 +15,11 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { isFunction, isString } from '@react-native-firebase/common';
|
||||
import { isFunction, isString } from '@react-native-firebase/app/lib/common';
|
||||
import { getFirebaseRoot } from '@react-native-firebase/app/lib/internal';
|
||||
import validateAdRequestOptions from '../validateAdRequestOptions';
|
||||
|
||||
import MobileAd from './MobileAd';
|
||||
import validateAdShowOptions from '../validateAdShowOptions';
|
||||
import MobileAd from './MobileAd';
|
||||
|
||||
let _rewardedRequest = 0;
|
||||
|
||||
|
||||
@@ -20,17 +20,14 @@ import {
|
||||
FirebaseModule,
|
||||
getFirebaseRoot,
|
||||
} from '@react-native-firebase/app/lib/internal';
|
||||
|
||||
import version from './version';
|
||||
import AdEventType from './AdEventType';
|
||||
import AdsConsentDebugGeography from './AdsConsentDebugGeography';
|
||||
import AdsConsentStatus from './AdsConsentStatus';
|
||||
import MaxAdContentRating from './MaxAdContentRating';
|
||||
import TestIds from './TestIds';
|
||||
|
||||
import AdEventType from './AdEventType';
|
||||
import RewardedAdEventType from './RewardedAdEventType';
|
||||
|
||||
import TestIds from './TestIds';
|
||||
import validateAdRequestConfiguration from './validateAdRequestConfiguration';
|
||||
import version from './version';
|
||||
|
||||
const statics = {
|
||||
AdsConsentDebugGeography,
|
||||
@@ -101,9 +98,7 @@ export MaxAdContentRating from './MaxAdContentRating';
|
||||
export TestIds from './TestIds';
|
||||
export AdEventType from './AdEventType';
|
||||
export RewardedAdEventType from './RewardedAdEventType';
|
||||
|
||||
export AdsConsent from './AdsConsent';
|
||||
|
||||
export InterstitialAd from './ads/InterstitialAd';
|
||||
export RewardedAd from './ads/RewardedAd';
|
||||
export BannerAd from './ads/BannerAd';
|
||||
|
||||
@@ -15,8 +15,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { hasOwnProperty, isBoolean, isObject, isUndefined } from '@react-native-firebase/common';
|
||||
|
||||
import { hasOwnProperty, isBoolean, isObject } from '@react-native-firebase/app/lib/common';
|
||||
import MaxAdContentRating from './MaxAdContentRating';
|
||||
|
||||
export default function validateAdRequestConfiguration(requestConfiguration) {
|
||||
|
||||
@@ -24,7 +24,7 @@ import {
|
||||
isString,
|
||||
isUndefined,
|
||||
isValidUrl,
|
||||
} from '@react-native-firebase/common';
|
||||
} from '@react-native-firebase/app/lib/common';
|
||||
|
||||
export default function validateAdRequestOptions(options) {
|
||||
const out = {};
|
||||
|
||||
@@ -15,7 +15,12 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { hasOwnProperty, isBoolean, isObject, isUndefined } from '@react-native-firebase/common';
|
||||
import {
|
||||
hasOwnProperty,
|
||||
isBoolean,
|
||||
isObject,
|
||||
isUndefined,
|
||||
} from '@react-native-firebase/app/lib/common';
|
||||
|
||||
export default function validateAdShowOptions(options) {
|
||||
const out = {};
|
||||
|
||||
@@ -25,8 +25,7 @@
|
||||
"@react-native-firebase/app": "*"
|
||||
},
|
||||
"dependencies": {
|
||||
"@react-native-firebase/app-types": "0.2.3",
|
||||
"@react-native-firebase/common": "0.2.3"
|
||||
"@react-native-firebase/app-types": "0.2.3"
|
||||
},
|
||||
"gitHead": "889bf5379c8ce5257b33fb3ad1ac9c905fe26fff",
|
||||
"publishConfig": {
|
||||
|
||||
1
packages/analytics/lib/index.d.ts
vendored
1
packages/analytics/lib/index.d.ts
vendored
@@ -16,7 +16,6 @@
|
||||
*/
|
||||
|
||||
import { ReactNativeFirebase } from '@react-native-firebase/app';
|
||||
import { Invites } from '@react-native-firebase/invites';
|
||||
|
||||
/**
|
||||
* Firebase Analytics package for React Native.
|
||||
|
||||
@@ -15,11 +15,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import {
|
||||
createModuleNamespace,
|
||||
FirebaseModule,
|
||||
getFirebaseRoot,
|
||||
} from '@react-native-firebase/app/lib/internal';
|
||||
import {
|
||||
isAlphaNumericUnderscore,
|
||||
isNull,
|
||||
@@ -27,8 +22,12 @@ import {
|
||||
isOneOf,
|
||||
isString,
|
||||
isUndefined,
|
||||
} from '@react-native-firebase/common';
|
||||
|
||||
} from '@react-native-firebase/app/lib/common';
|
||||
import {
|
||||
createModuleNamespace,
|
||||
FirebaseModule,
|
||||
getFirebaseRoot,
|
||||
} from '@react-native-firebase/app/lib/internal';
|
||||
import version from './version';
|
||||
|
||||
const ReservedEventNames = [
|
||||
|
||||
@@ -25,8 +25,7 @@
|
||||
"@react-native-firebase/app": "*"
|
||||
},
|
||||
"dependencies": {
|
||||
"@react-native-firebase/app-types": "0.2.3",
|
||||
"@react-native-firebase/common": "0.2.3"
|
||||
"@react-native-firebase/app-types": "0.2.3"
|
||||
},
|
||||
"gitHead": "889bf5379c8ce5257b33fb3ad1ac9c905fe26fff",
|
||||
"publishConfig": {
|
||||
|
||||
@@ -24,7 +24,7 @@ const CHARS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
||||
/**
|
||||
* window.btoa
|
||||
*/
|
||||
function btoa(input): string {
|
||||
function btoa(input) {
|
||||
let map;
|
||||
let i = 0;
|
||||
let block = 0;
|
||||
@@ -52,7 +52,7 @@ function btoa(input): string {
|
||||
/**
|
||||
* window.atob
|
||||
*/
|
||||
function atob(input): string {
|
||||
function atob(input) {
|
||||
let i = 0;
|
||||
let bc = 0;
|
||||
let bs = 0;
|
||||
@@ -15,13 +15,14 @@
|
||||
*
|
||||
*/
|
||||
import { Platform } from 'react-native';
|
||||
import { isString } from './validate';
|
||||
import Base64 from './Base64';
|
||||
import { isString } from './validate';
|
||||
|
||||
export * from './id';
|
||||
export * from './path';
|
||||
export * from './validate';
|
||||
export * from './promise';
|
||||
export * from './validate';
|
||||
|
||||
export Base64 from './Base64';
|
||||
export ReferenceBase from './ReferenceBase';
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { getNativeModule, getAppModule } from './registry/nativeModule';
|
||||
import { getAppModule, getNativeModule } from './registry/nativeModule';
|
||||
import SharedEventEmitter from './SharedEventEmitter';
|
||||
|
||||
let firebaseJson = null;
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { NativeModules, NativeEventEmitter } from 'react-native';
|
||||
import { NativeEventEmitter, NativeModules } from 'react-native';
|
||||
|
||||
const { RNFBAppModule } = NativeModules;
|
||||
|
||||
|
||||
@@ -15,11 +15,11 @@
|
||||
*
|
||||
*/
|
||||
|
||||
export { default as FirebaseApp } from '../FirebaseApp';
|
||||
export * from './constants';
|
||||
export { default as FirebaseModule } from './FirebaseModule';
|
||||
export { default as NativeFirebaseError } from './NativeFirebaseError';
|
||||
export * from './registry/app';
|
||||
export * from './registry/namespace';
|
||||
export * from './registry/nativeModule';
|
||||
export { default as FirebaseApp } from '../FirebaseApp';
|
||||
export { default as FirebaseModule } from './FirebaseModule';
|
||||
export { default as SharedEventEmitter } from './SharedEventEmitter';
|
||||
export { default as NativeFirebaseError } from './NativeFirebaseError';
|
||||
|
||||
@@ -15,11 +15,10 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { isObject, isNull, isString, isUndefined } from '@react-native-firebase/common';
|
||||
|
||||
import { isNull, isObject, isString, isUndefined } from '@react-native-firebase/app/lib/common';
|
||||
import FirebaseApp from '../../FirebaseApp';
|
||||
import { getAppModule } from './nativeModule';
|
||||
import { DEFAULT_APP_NAME } from '../constants';
|
||||
import { getAppModule } from './nativeModule';
|
||||
|
||||
const APP_REGISTRY = {};
|
||||
let onAppCreateFn = null;
|
||||
|
||||
@@ -15,13 +15,12 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { isString } from '@react-native-firebase/common';
|
||||
|
||||
import SDK_VERSION from '../../version';
|
||||
import { isString } from '@react-native-firebase/app/lib/common';
|
||||
import FirebaseApp from '../../FirebaseApp';
|
||||
import SDK_VERSION from '../../version';
|
||||
import { DEFAULT_APP_NAME, KNOWN_NAMESPACES } from '../constants';
|
||||
import FirebaseModule from '../FirebaseModule';
|
||||
import { getApp, getApps, initializeApp, setOnAppCreate, setOnAppDestroy } from './app';
|
||||
import { KNOWN_NAMESPACES, DEFAULT_APP_NAME } from '../constants';
|
||||
|
||||
// firebase.X
|
||||
let FIREBASE_ROOT = null;
|
||||
|
||||
@@ -16,11 +16,10 @@
|
||||
*/
|
||||
|
||||
import { NativeModules, Platform } from 'react-native';
|
||||
|
||||
import { APP_NATIVE_MODULE } from '../constants';
|
||||
import SharedEventEmitter from '../SharedEventEmitter';
|
||||
import NativeFirebaseError from '../NativeFirebaseError';
|
||||
import RNFBNativeEventEmitter from '../RNFBNativeEventEmitter';
|
||||
import SharedEventEmitter from '../SharedEventEmitter';
|
||||
|
||||
const NATIVE_MODULE_REGISTRY = {};
|
||||
const NATIVE_MODULE_EVENT_SUBSCRIPTIONS = {};
|
||||
|
||||
@@ -54,7 +54,6 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@react-native-firebase/app-types": "0.2.3",
|
||||
"@react-native-firebase/common": "0.2.3",
|
||||
"opencollective-postinstall": "^2.0.1"
|
||||
},
|
||||
"collective": {
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { promiseDefer, isFunction, isAndroid, isIOS } from '@react-native-firebase/common';
|
||||
import { isAndroid, isFunction, isIOS, promiseDefer } from '@react-native-firebase/app/lib/common';
|
||||
|
||||
let REQUEST_ID = 0;
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { isAndroid, isIOS } from '@react-native-firebase/common';
|
||||
import { isAndroid, isIOS } from '@react-native-firebase/app/lib/common';
|
||||
|
||||
export default class Settings {
|
||||
constructor(auth) {
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { isObject, isString } from '@react-native-firebase/common';
|
||||
import { isObject, isString } from '@react-native-firebase/app/lib/common';
|
||||
|
||||
export default class User {
|
||||
constructor(auth, user) {
|
||||
|
||||
@@ -15,27 +15,24 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { isAndroid, isBoolean } from '@react-native-firebase/app/lib/common';
|
||||
import {
|
||||
createModuleNamespace,
|
||||
FirebaseModule,
|
||||
getFirebaseRoot,
|
||||
} from '@react-native-firebase/app/lib/internal';
|
||||
|
||||
import { isAndroid, isBoolean } from '@react-native-firebase/common';
|
||||
|
||||
import ConfirmationResult from './ConfirmationResult';
|
||||
import PhoneAuthListener from './PhoneAuthListener';
|
||||
import EmailAuthProvider from './providers/EmailAuthProvider';
|
||||
import PhoneAuthProvider from './providers/PhoneAuthProvider';
|
||||
import GoogleAuthProvider from './providers/GoogleAuthProvider';
|
||||
import GithubAuthProvider from './providers/GithubAuthProvider';
|
||||
import OAuthProvider from './providers/OAuthProvider';
|
||||
import TwitterAuthProvider from './providers/TwitterAuthProvider';
|
||||
import FacebookAuthProvider from './providers/FacebookAuthProvider';
|
||||
|
||||
import GithubAuthProvider from './providers/GithubAuthProvider';
|
||||
import GoogleAuthProvider from './providers/GoogleAuthProvider';
|
||||
import OAuthProvider from './providers/OAuthProvider';
|
||||
import PhoneAuthProvider from './providers/PhoneAuthProvider';
|
||||
import TwitterAuthProvider from './providers/TwitterAuthProvider';
|
||||
import Settings from './Settings';
|
||||
import User from './User';
|
||||
import version from './version';
|
||||
import Settings from './Settings';
|
||||
import PhoneAuthListener from './PhoneAuthListener';
|
||||
import ConfirmationResult from './ConfirmationResult';
|
||||
|
||||
const statics = {
|
||||
EmailAuthProvider,
|
||||
|
||||
@@ -25,8 +25,7 @@
|
||||
"@react-native-firebase/app": "*"
|
||||
},
|
||||
"dependencies": {
|
||||
"@react-native-firebase/app-types": "0.2.3",
|
||||
"@react-native-firebase/common": "0.2.3"
|
||||
"@react-native-firebase/app-types": "0.2.3"
|
||||
},
|
||||
"gitHead": "889bf5379c8ce5257b33fb3ad1ac9c905fe26fff",
|
||||
"publishConfig": {
|
||||
|
||||
@@ -1,65 +0,0 @@
|
||||
# Built application files
|
||||
android/*/build/
|
||||
|
||||
# Crashlytics configuations
|
||||
android/com_crashlytics_export_strings.xml
|
||||
|
||||
# Local configuration file (sdk path, etc)
|
||||
android/local.properties
|
||||
|
||||
# Gradle generated files
|
||||
android/.gradle/
|
||||
|
||||
# Signing files
|
||||
android/.signing/
|
||||
|
||||
# User-specific configurations
|
||||
android/.idea/gradle.xml
|
||||
android/.idea/libraries/
|
||||
android/.idea/workspace.xml
|
||||
android/.idea/tasks.xml
|
||||
android/.idea/.name
|
||||
android/.idea/compiler.xml
|
||||
android/.idea/copyright/profiles_settings.xml
|
||||
android/.idea/encodings.xml
|
||||
android/.idea/misc.xml
|
||||
android/.idea/modules.xml
|
||||
android/.idea/scopes/scope_settings.xml
|
||||
android/.idea/vcs.xml
|
||||
android/*.iml
|
||||
|
||||
# Xcode
|
||||
*.pbxuser
|
||||
*.mode1v3
|
||||
*.mode2v3
|
||||
*.perspectivev3
|
||||
*.xcuserstate
|
||||
ios/Pods
|
||||
ios/build
|
||||
*project.xcworkspace*
|
||||
*xcuserdata*
|
||||
|
||||
# OS-specific files
|
||||
.DS_Store
|
||||
.DS_Store?
|
||||
._*
|
||||
.Spotlight-V100
|
||||
.Trashes
|
||||
ehthumbs.db
|
||||
Thumbs.dbandroid/gradle
|
||||
android/gradlew
|
||||
android/build
|
||||
android/gradlew.bat
|
||||
android/gradle/
|
||||
|
||||
.idea
|
||||
coverage
|
||||
yarn.lock
|
||||
e2e/
|
||||
.github
|
||||
.vscode
|
||||
.nyc_output
|
||||
android/.settings
|
||||
*.coverage.json
|
||||
.circleci
|
||||
.eslintignore
|
||||
@@ -1,32 +0,0 @@
|
||||
Apache-2.0 License
|
||||
------------------
|
||||
|
||||
Copyright (c) 2016-present Invertase Limited <oss@invertase.io> & Contributors
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this library except in compliance with the License.
|
||||
|
||||
You may obtain a copy of the Apache-2.0 License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
|
||||
Creative Commons Attribution 3.0 License
|
||||
----------------------------------------
|
||||
|
||||
Copyright (c) 2016-present Invertase Limited <oss@invertase.io> & Contributors
|
||||
|
||||
Documentation and other instructional materials provided for this project
|
||||
(including on a separate documentation repository or it's documentation website) are
|
||||
licensed under the Creative Commons Attribution 3.0 License. Code samples/blocks
|
||||
contained therein are licensed under the Apache License, Version 2.0 (the "License"), as above.
|
||||
|
||||
You may obtain a copy of the Creative Commons Attribution 3.0 License at
|
||||
|
||||
https://creativecommons.org/licenses/by/3.0/
|
||||
@@ -1,44 +0,0 @@
|
||||
<p align="center">
|
||||
<a href="https://invertase.io/oss/react-native-firebase">
|
||||
<img width="160px" src="https://i.imgur.com/JIyBtKW.png"><br/>
|
||||
</a>
|
||||
<h2 align="center">React Native Firebase - Common</h2>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://www.npmjs.com/package/@react-native-firebase/common"><img src="https://img.shields.io/npm/dm/@react-native-firebase/common.svg?style=flat-square" alt="NPM downloads"></a>
|
||||
<a href="https://www.npmjs.com/package/@react-native-firebase/common"><img src="https://img.shields.io/npm/v/@react-native-firebase/common.svg?style=flat-square" alt="NPM version"></a>
|
||||
<a href="/LICENSE"><img src="https://img.shields.io/npm/l/react-native-firebase.svg?style=flat-square" alt="License"></a>
|
||||
<a href="https://lerna.js.org/"><img src="https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg?style=flat-square" alt="Maintained with Lerna"></a>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://invertase.link/discord"><img src="https://img.shields.io/discord/295953187817521152.svg?style=flat-square&colorA=7289da&label=Chat%20on%20Discord" alt="Chat on Discord"></a>
|
||||
<a href="https://twitter.com/rnfirebase"><img src="https://img.shields.io/twitter/follow/rnfirebase.svg?style=flat-square&colorA=1da1f2&colorB=&label=Follow%20on%20Twitter" alt="Follow on Twitter"></a>
|
||||
</p>
|
||||
|
||||
---
|
||||
|
||||
> This is for the upcoming v6.0.0 release of React Native Firebase, please use the [react-native-firebase](https://www.npmjs.com/package/react-native-firebase) package instead, unless you're early adopting/testing the new packages - in which case please use the `latest` tagged patch-only release for this package.
|
||||
|
||||
This is not the package you're looking for.
|
||||
|
||||
## License
|
||||
|
||||
- See [LICENSE](/LICENSE)
|
||||
|
||||
---
|
||||
|
||||
<p>
|
||||
<img align="left" width="75px" src="https://static.invertase.io/assets/invertase-logo-small.png">
|
||||
<p align="left">
|
||||
Built and maintained with 💛 by <a href="https://invertase.io">Invertase</a>.
|
||||
</p>
|
||||
<p align="left">
|
||||
<a href="https://invertase.io/hire-us">💼 Hire Us</a> |
|
||||
<a href="https://opencollective.com/react-native-firebase">☕️ Sponsor Us</a> |
|
||||
<a href="https://opencollective.com/jobs">💻 Work With Us</a>
|
||||
</p>
|
||||
</p>
|
||||
|
||||
---
|
||||
@@ -1,22 +0,0 @@
|
||||
{
|
||||
"name": "@react-native-firebase/common",
|
||||
"version": "0.2.3",
|
||||
"author": "Invertase <oss@invertase.io> (http://invertase.io)",
|
||||
"description": "React Native Firebase internal common utilities & helpers.",
|
||||
"main": "lib/index.js",
|
||||
"scripts": {},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/invertase/react-native-firebase/tree/master/packages/common"
|
||||
},
|
||||
"license": "Apache-2.0",
|
||||
"keywords": [
|
||||
"react",
|
||||
"react-native",
|
||||
"firebase"
|
||||
],
|
||||
"gitHead": "889bf5379c8ce5257b33fb3ad1ac9c905fe26fff",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
}
|
||||
}
|
||||
@@ -15,10 +15,9 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import StackTrace from 'stacktrace-js';
|
||||
import { isError, once } from '@react-native-firebase/app/lib/common';
|
||||
import tracking from 'promise/setimmediate/rejection-tracking';
|
||||
|
||||
import { isError, once } from '@react-native-firebase/common';
|
||||
import StackTrace from 'stacktrace-js';
|
||||
|
||||
export function createNativeErrorObj(error, stackFrames, isUnhandledRejection) {
|
||||
const nativeObj = {};
|
||||
|
||||
@@ -16,21 +16,19 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { isBoolean, isError, isObject, isString } from '@react-native-firebase/app/lib/common';
|
||||
import {
|
||||
createModuleNamespace,
|
||||
FirebaseModule,
|
||||
getFirebaseRoot,
|
||||
} from '@react-native-firebase/app/lib/internal';
|
||||
|
||||
import StackTrace from 'stacktrace-js';
|
||||
import { isBoolean, isError, isObject, isString } from '@react-native-firebase/common';
|
||||
|
||||
import version from './version';
|
||||
import {
|
||||
createNativeErrorObj,
|
||||
setGlobalErrorHandler,
|
||||
setOnUnhandledPromiseRejectionHandler,
|
||||
} from './handlers';
|
||||
import version from './version';
|
||||
|
||||
const statics = {};
|
||||
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@react-native-firebase/app-types": "0.2.3",
|
||||
"@react-native-firebase/common": "0.2.3",
|
||||
"stacktrace-js": "^2.0.0"
|
||||
},
|
||||
"gitHead": "889bf5379c8ce5257b33fb3ad1ac9c905fe26fff",
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { isString, isArray, isFunction, isObject } from '@react-native-firebase/common';
|
||||
import { deepGet } from '@react-native-firebase/common/lib/deeps';
|
||||
import { isArray, isFunction, isObject, isString } from '@react-native-firebase/app/lib/common';
|
||||
import { deepGet } from '@react-native-firebase/app/lib/common/deeps';
|
||||
|
||||
export default class DatabaseDataSnapshot {
|
||||
constructor(reference, snapshot) {
|
||||
|
||||
@@ -21,10 +21,10 @@ import {
|
||||
isNumber,
|
||||
isObject,
|
||||
isString,
|
||||
isValidPath,
|
||||
isUndefined,
|
||||
isValidPath,
|
||||
promiseWithOptionalCallback,
|
||||
} from '@react-native-firebase/common';
|
||||
} from '@react-native-firebase/app/lib/common';
|
||||
|
||||
export default class DatabaseOnDisconnect {
|
||||
constructor(reference) {
|
||||
|
||||
@@ -26,7 +26,7 @@ import {
|
||||
pathIsEmpty,
|
||||
pathToUrlEncodedString,
|
||||
ReferenceBase,
|
||||
} from '@react-native-firebase/common';
|
||||
} from '@react-native-firebase/app/lib/common';
|
||||
import DatabaseDataSnapshot from './DatabaseDataSnapshot';
|
||||
import DatabaseSyncTree from './DatabaseSyncTree';
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { isNull, isNumber, isString } from '@react-native-firebase/common';
|
||||
import { isNull, isNumber, isString } from '@react-native-firebase/app/lib/common';
|
||||
|
||||
const CONSTANTS = {
|
||||
VIEW_FROM_LEFT: 'left',
|
||||
|
||||
@@ -16,26 +16,25 @@
|
||||
*/
|
||||
|
||||
import {
|
||||
isString,
|
||||
pathParent,
|
||||
pathChild,
|
||||
isValidPath,
|
||||
generateDatabaseId,
|
||||
isNumber,
|
||||
isNull,
|
||||
isUndefined,
|
||||
isFunction,
|
||||
promiseWithOptionalCallback,
|
||||
isObject,
|
||||
isBoolean,
|
||||
} from '@react-native-firebase/common';
|
||||
|
||||
import DatabaseQueryModifiers from './DatabaseQueryModifiers';
|
||||
import DatabaseOnDisconnect from './DatabaseOnDisconnect';
|
||||
isFunction,
|
||||
isNull,
|
||||
isNumber,
|
||||
isObject,
|
||||
isString,
|
||||
isUndefined,
|
||||
isValidPath,
|
||||
pathChild,
|
||||
pathParent,
|
||||
promiseWithOptionalCallback,
|
||||
} from '@react-native-firebase/app/lib/common';
|
||||
import DatabaseDataSnapshot from './DatabaseDataSnapshot';
|
||||
import DatabaseOnDisconnect from './DatabaseOnDisconnect';
|
||||
import DatabaseQuery, {
|
||||
provideReferenceClass as provideReferenceClassForQuery,
|
||||
} from './DatabaseQuery';
|
||||
import DatabaseQueryModifiers from './DatabaseQueryModifiers';
|
||||
import DatabaseThenableReference, {
|
||||
provideReferenceClass as provideReferenceClassForThenable,
|
||||
} from './DatabaseThenableReference';
|
||||
|
||||
@@ -15,10 +15,10 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { NativeModules } from 'react-native';
|
||||
import { isString } from '@react-native-firebase/app/lib/common';
|
||||
import NativeError from '@react-native-firebase/app/lib/internal/NativeFirebaseError';
|
||||
import { isString } from '@react-native-firebase/common';
|
||||
import SharedEventEmitter from '@react-native-firebase/app/lib/internal/SharedEventEmitter';
|
||||
import { NativeModules } from 'react-native';
|
||||
import DatabaseDataSnapshot from './DatabaseDataSnapshot';
|
||||
|
||||
class DatabaseSyncTree {
|
||||
@@ -116,7 +116,7 @@ class DatabaseSyncTree {
|
||||
* @param registration
|
||||
* @return {null}
|
||||
*/
|
||||
getRegistration(registration: string) {
|
||||
getRegistration(registration) {
|
||||
return this._reverseLookup[registration]
|
||||
? Object.assign({}, this._reverseLookup[registration])
|
||||
: null;
|
||||
|
||||
@@ -15,17 +15,16 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { isBoolean, isNumber, isString } from '@react-native-firebase/app/lib/common';
|
||||
import {
|
||||
createModuleNamespace,
|
||||
FirebaseModule,
|
||||
getFirebaseRoot,
|
||||
} from '@react-native-firebase/app/lib/internal';
|
||||
import { isString, isBoolean, isNumber } from '@react-native-firebase/common';
|
||||
|
||||
import version from './version';
|
||||
import DatabaseStatics from './DatabaseStatics';
|
||||
import DatabaseReference from './DatabaseReference';
|
||||
import DatabaseStatics from './DatabaseStatics';
|
||||
import DatabaseTransaction from './DatabaseTransaction';
|
||||
import version from './version';
|
||||
|
||||
const namespace = 'database';
|
||||
|
||||
|
||||
@@ -28,8 +28,7 @@
|
||||
"@react-native-firebase/app": "*"
|
||||
},
|
||||
"dependencies": {
|
||||
"@react-native-firebase/app-types": "0.2.3",
|
||||
"@react-native-firebase/common": "0.2.3"
|
||||
"@react-native-firebase/app-types": "0.2.3"
|
||||
},
|
||||
"gitHead": "889bf5379c8ce5257b33fb3ad1ac9c905fe26fff",
|
||||
"publishConfig": {
|
||||
|
||||
@@ -15,8 +15,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { isObject, isString } from '@react-native-firebase/common';
|
||||
|
||||
import { isObject, isString } from '@react-native-firebase/app/lib/common';
|
||||
import buildAnalytics from './builders/analytics';
|
||||
import buildAndroid from './builders/android';
|
||||
import buildIos from './builders/ios';
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { isObject, isString } from '@react-native-firebase/common';
|
||||
import { isObject, isString } from '@react-native-firebase/app/lib/common';
|
||||
|
||||
export default function buildAnalytics(analyticsParams) {
|
||||
if (!isObject(analyticsParams)) {
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { isObject, isString } from '@react-native-firebase/common';
|
||||
import { isObject, isString } from '@react-native-firebase/app/lib/common';
|
||||
|
||||
export default function buildAndroid(androidParams) {
|
||||
if (!isObject(androidParams)) {
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { isObject, isString } from '@react-native-firebase/common';
|
||||
import { isObject, isString } from '@react-native-firebase/app/lib/common';
|
||||
|
||||
export default function buildIos(iosParams) {
|
||||
if (!isObject(iosParams)) {
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { isObject, isString } from '@react-native-firebase/common';
|
||||
import { isObject, isString } from '@react-native-firebase/app/lib/common';
|
||||
|
||||
export default function buildiTunes(itunesParams) {
|
||||
if (!isObject(itunesParams)) {
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { hasOwnProperty, isBoolean, isObject } from '@react-native-firebase/common';
|
||||
import { hasOwnProperty, isBoolean, isObject } from '@react-native-firebase/app/lib/common';
|
||||
|
||||
export default function buildNavigation(navigationParams) {
|
||||
if (!isObject(navigationParams)) {
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { isString, isObject } from '@react-native-firebase/common';
|
||||
import { isObject, isString } from '@react-native-firebase/app/lib/common';
|
||||
|
||||
export default function buildSocial(socialParameters) {
|
||||
if (!isObject(socialParameters)) {
|
||||
|
||||
@@ -20,7 +20,6 @@ import {
|
||||
FirebaseModule,
|
||||
getFirebaseRoot,
|
||||
} from '@react-native-firebase/app/lib/internal';
|
||||
|
||||
import builder from './builder';
|
||||
import version from './version';
|
||||
|
||||
|
||||
@@ -26,8 +26,7 @@
|
||||
"@react-native-firebase/app": "*"
|
||||
},
|
||||
"dependencies": {
|
||||
"@react-native-firebase/app-types": "0.2.3",
|
||||
"@react-native-firebase/common": "0.2.3"
|
||||
"@react-native-firebase/app-types": "0.2.3"
|
||||
},
|
||||
"gitHead": "889bf5379c8ce5257b33fb3ad1ac9c905fe26fff",
|
||||
"publishConfig": {
|
||||
|
||||
@@ -156,7 +156,8 @@ describe('firestore.QuerySnapshot', () => {
|
||||
snap3.docChanges({ includeMetadataChanges: true }).length.should.be.eql(1);
|
||||
});
|
||||
|
||||
it('returns the correct number of document changes if listening to metadata changes, but not including them in docChanges', async () => {
|
||||
// TODO: fixme @ehesp - flaky test: `AssertionError: expected 5 to equal 1`
|
||||
xit('returns the correct number of document changes if listening to metadata changes, but not including them in docChanges', async () => {
|
||||
const callback = sinon.spy();
|
||||
const colRef = firebase.firestore().collection('v6/metadatachanges/true-false');
|
||||
const unsub = colRef.onSnapshot({ includeMetadataChanges: true }, callback);
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { Base64, isString } from '@react-native-firebase/common';
|
||||
import { Base64, isString } from '@react-native-firebase/app/lib/common';
|
||||
|
||||
export default class FirestoreBlob {
|
||||
constructor(internal = false, binaryString) {
|
||||
@@ -67,7 +67,7 @@ export default class FirestoreBlob {
|
||||
* @param {*} blob Blob The Blob to compare against. Value must not be null.
|
||||
* @returns boolean 'true' if this Blob is equal to the provided one.
|
||||
*/
|
||||
isEqual(blob): boolean {
|
||||
isEqual(blob) {
|
||||
if (!(blob instanceof FirestoreBlob)) {
|
||||
throw new Error('firestore.Blob.isEqual expects an instance of Blob');
|
||||
}
|
||||
@@ -101,7 +101,7 @@ export default class FirestoreBlob {
|
||||
* @returns {string}
|
||||
* @memberof Blob
|
||||
*/
|
||||
toString(): string {
|
||||
toString() {
|
||||
return `firestore.Blob(base64: ${this.toBase64()})`;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,11 +15,11 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { generateFirestoreId, isObject } from '@react-native-firebase/common';
|
||||
import FirestoreQuery from './FirestoreQuery';
|
||||
import { generateFirestoreId, isObject } from '@react-native-firebase/app/lib/common';
|
||||
import FirestoreDocumentReference, {
|
||||
provideCollectionReferenceClass,
|
||||
} from './FirestoreDocumentReference';
|
||||
import FirestoreQuery from './FirestoreQuery';
|
||||
import FirestoreQueryModifiers from './FirestoreQueryModifiers';
|
||||
|
||||
export default class FirestoreCollectionReference extends FirestoreQuery {
|
||||
|
||||
@@ -15,11 +15,10 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { isObject, isString, isUndefined } from '@react-native-firebase/app/lib/common';
|
||||
import NativeError from '@react-native-firebase/app/lib/internal/NativeFirebaseError';
|
||||
import { isObject, isString, isUndefined } from '@react-native-firebase/common';
|
||||
|
||||
import { provideDocumentReferenceClass, buildNativeMap } from './utils/serialize';
|
||||
import { parseSetOptions, parseUpdateArgs, parseSnapshotArgs } from './utils';
|
||||
import { parseSetOptions, parseSnapshotArgs, parseUpdateArgs } from './utils';
|
||||
import { buildNativeMap, provideDocumentReferenceClass } from './utils/serialize';
|
||||
|
||||
// To avoid React Native require cycle warnings
|
||||
let FirestoreCollectionReference = null;
|
||||
|
||||
@@ -15,13 +15,13 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { isString } from '@react-native-firebase/common';
|
||||
import { isString } from '@react-native-firebase/app/lib/common';
|
||||
import FirestoreDocumentReference, {
|
||||
provideDocumentSnapshotClass,
|
||||
} from './FirestoreDocumentReference';
|
||||
import FirestoreFieldPath, { fromDotSeparatedString } from './FirestoreFieldPath';
|
||||
import FirestoreSnapshotMetadata from './FirestoreSnapshotMetadata';
|
||||
import FirestorePath from './FirestorePath';
|
||||
import FirestoreSnapshotMetadata from './FirestoreSnapshotMetadata';
|
||||
import { extractFieldPathData } from './utils';
|
||||
import { parseNativeMap } from './utils/serialize';
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { isString } from '@react-native-firebase/common';
|
||||
import { isString } from '@react-native-firebase/app/lib/common';
|
||||
|
||||
const RESERVED = new RegExp('[~*/\\[\\]]');
|
||||
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { isArray, isNumber } from '@react-native-firebase/common';
|
||||
import { provideFieldValueClass, buildNativeArray } from './utils/serialize';
|
||||
import { isArray, isNumber } from '@react-native-firebase/app/lib/common';
|
||||
import { buildNativeArray, provideFieldValueClass } from './utils/serialize';
|
||||
|
||||
export const TypeFieldValueDelete = 'delete';
|
||||
export const TypeFieldValueIncrement = 'increment';
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { isNumber, isFinite, isUndefined } from '@react-native-firebase/common';
|
||||
import { isFinite, isNumber, isUndefined } from '@react-native-firebase/app/lib/common';
|
||||
|
||||
export default class FirestoreGeoPoint {
|
||||
constructor(latitude, longitude) {
|
||||
|
||||
@@ -15,12 +15,11 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { isNull, isObject, isString, isUndefined } from '@react-native-firebase/app/lib/common';
|
||||
import NativeError from '@react-native-firebase/app/lib/internal/NativeFirebaseError';
|
||||
import { isNull, isObject, isString, isUndefined } from '@react-native-firebase/common';
|
||||
|
||||
import FirestoreQuerySnapshot from './FirestoreQuerySnapshot';
|
||||
import FirestoreDocumentSnapshot from './FirestoreDocumentSnapshot';
|
||||
import FirestoreFieldPath, { fromDotSeparatedString } from './FirestoreFieldPath';
|
||||
import FirestoreQuerySnapshot from './FirestoreQuerySnapshot';
|
||||
import { parseSnapshotArgs } from './utils';
|
||||
|
||||
let _id = 0;
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { isNumber } from '@react-native-firebase/common';
|
||||
import { isNumber } from '@react-native-firebase/app/lib/common';
|
||||
import { buildNativeArray, generateNativeData } from './utils/serialize';
|
||||
|
||||
const OPERATORS = {
|
||||
|
||||
@@ -15,7 +15,12 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { isBoolean, isFunction, isObject, isUndefined } from '@react-native-firebase/common';
|
||||
import {
|
||||
isBoolean,
|
||||
isFunction,
|
||||
isObject,
|
||||
isUndefined,
|
||||
} from '@react-native-firebase/app/lib/common';
|
||||
import FirestoreDocumentChange from './FirestoreDocumentChange';
|
||||
import FirestoreDocumentSnapshot from './FirestoreDocumentSnapshot';
|
||||
import FirestoreSnapshotMetadata from './FirestoreSnapshotMetadata';
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { isUndefined } from '@react-native-firebase/common';
|
||||
import { isUndefined } from '@react-native-firebase/app/lib/common';
|
||||
|
||||
export default class FirestoreSnapshotMetadata {
|
||||
constructor(metadata) {
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
*/
|
||||
|
||||
import { NativeModules } from 'react-native';
|
||||
|
||||
import FirestoreBlob from './FirestoreBlob';
|
||||
import FirestoreFieldPath from './FirestoreFieldPath';
|
||||
import FirestoreFieldValue from './FirestoreFieldValue';
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { isNumber, isDate } from '@react-native-firebase/common';
|
||||
import { isDate, isNumber } from '@react-native-firebase/app/lib/common';
|
||||
|
||||
export default class FirestoreTimestamp {
|
||||
static now() {
|
||||
|
||||
@@ -15,11 +15,11 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { isObject } from '@react-native-firebase/common';
|
||||
import FirestoreDocumentSnapshot from './FirestoreDocumentSnapshot';
|
||||
import { isObject } from '@react-native-firebase/app/lib/common';
|
||||
import FirestoreDocumentReference from './FirestoreDocumentReference';
|
||||
import { buildNativeMap } from './utils/serialize';
|
||||
import FirestoreDocumentSnapshot from './FirestoreDocumentSnapshot';
|
||||
import { parseSetOptions, parseUpdateArgs } from './utils';
|
||||
import { buildNativeMap } from './utils/serialize';
|
||||
|
||||
export default class FirestoreTransaction {
|
||||
constructor(firestore, meta) {
|
||||
|
||||
@@ -25,7 +25,7 @@ let transactionId = 0;
|
||||
* @returns {number}
|
||||
* @private
|
||||
*/
|
||||
const generateTransactionId = (): number => transactionId++;
|
||||
const generateTransactionId = () => transactionId++;
|
||||
|
||||
export default class FirestoreTransactionHandler {
|
||||
constructor(firestore) {
|
||||
|
||||
@@ -15,11 +15,10 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { isObject } from '@react-native-firebase/common';
|
||||
|
||||
import { buildNativeMap } from './utils/serialize';
|
||||
import { isObject } from '@react-native-firebase/app/lib/common';
|
||||
import FirestoreDocumentReference from './FirestoreDocumentReference';
|
||||
import { parseSetOptions, parseUpdateArgs } from './utils';
|
||||
import { buildNativeMap } from './utils/serialize';
|
||||
|
||||
export default class FirestoreWriteBatch {
|
||||
constructor(firestore) {
|
||||
|
||||
@@ -15,11 +15,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import {
|
||||
createModuleNamespace,
|
||||
FirebaseModule,
|
||||
getFirebaseRoot,
|
||||
} from '@react-native-firebase/app/lib/internal';
|
||||
import {
|
||||
isBoolean,
|
||||
isFunction,
|
||||
@@ -27,17 +22,21 @@ import {
|
||||
isObject,
|
||||
isString,
|
||||
isUndefined,
|
||||
} from '@react-native-firebase/common';
|
||||
|
||||
import version from './version';
|
||||
import FirestoreStatics from './FirestoreStatics';
|
||||
import FirestorePath from './FirestorePath';
|
||||
} from '@react-native-firebase/app/lib/common';
|
||||
import {
|
||||
createModuleNamespace,
|
||||
FirebaseModule,
|
||||
getFirebaseRoot,
|
||||
} from '@react-native-firebase/app/lib/internal';
|
||||
import FirestoreCollectionReference from './FirestoreCollectionReference';
|
||||
import FirestoreDocumentReference from './FirestoreDocumentReference';
|
||||
import FirestorePath from './FirestorePath';
|
||||
import FirestoreQuery from './FirestoreQuery';
|
||||
import FirestoreQueryModifiers from './FirestoreQueryModifiers';
|
||||
import FirestoreWriteBatch from './FirestoreWriteBatch';
|
||||
import FirestoreStatics from './FirestoreStatics';
|
||||
import FirestoreTransactionHandler from './FirestoreTransactionHandler';
|
||||
import FirestoreWriteBatch from './FirestoreWriteBatch';
|
||||
import version from './version';
|
||||
|
||||
const namespace = 'firestore';
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ import {
|
||||
isObject,
|
||||
isString,
|
||||
isUndefined,
|
||||
} from '@react-native-firebase/common';
|
||||
} from '@react-native-firebase/app/lib/common';
|
||||
import FirestoreFieldPath, { fromDotSeparatedString } from '../FirestoreFieldPath';
|
||||
|
||||
export function extractFieldPathData(data, segmenets) {
|
||||
|
||||
@@ -24,14 +24,13 @@ import {
|
||||
isObject,
|
||||
isString,
|
||||
isUndefined,
|
||||
} from '@react-native-firebase/common';
|
||||
|
||||
import { getTypeMapInt, getTypeMapName } from './typemap';
|
||||
} from '@react-native-firebase/app/lib/common';
|
||||
import FirestoreBlob from '../FirestoreBlob';
|
||||
import { DOCUMENT_ID } from '../FirestoreFieldPath';
|
||||
import FirestoreGeoPoint from '../FirestoreGeoPoint';
|
||||
import FirestoreTimestamp from '../FirestoreTimestamp';
|
||||
import FirestorePath from '../FirestorePath';
|
||||
import FirestoreBlob from '../FirestoreBlob';
|
||||
import FirestoreTimestamp from '../FirestoreTimestamp';
|
||||
import { getTypeMapInt, getTypeMapName } from './typemap';
|
||||
|
||||
// To avoid React Native require cycle warnings
|
||||
let FirestoreDocumentReference = null;
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { hasOwnProperty } from '@react-native-firebase/common';
|
||||
import { hasOwnProperty } from '@react-native-firebase/app/lib/common';
|
||||
|
||||
const MAP = {
|
||||
nan: 0,
|
||||
|
||||
@@ -30,8 +30,7 @@
|
||||
"@react-native-firebase/app": "*"
|
||||
},
|
||||
"dependencies": {
|
||||
"@react-native-firebase/app-types": "0.2.3",
|
||||
"@react-native-firebase/common": "0.2.3"
|
||||
"@react-native-firebase/app-types": "0.2.3"
|
||||
},
|
||||
"gitHead": "889bf5379c8ce5257b33fb3ad1ac9c905fe26fff",
|
||||
"publishConfig": {
|
||||
|
||||
@@ -15,15 +15,14 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { isAndroid } from '@react-native-firebase/app/lib/common';
|
||||
import {
|
||||
createModuleNamespace,
|
||||
FirebaseModule,
|
||||
getFirebaseRoot,
|
||||
} from '@react-native-firebase/app/lib/internal';
|
||||
import { isAndroid } from '@react-native-firebase/common';
|
||||
|
||||
import version from './version';
|
||||
import HttpsError from './HttpsError';
|
||||
import version from './version';
|
||||
|
||||
const namespace = 'functions';
|
||||
const nativeModuleName = 'RNFBFunctionsModule';
|
||||
|
||||
@@ -27,8 +27,7 @@
|
||||
"@react-native-firebase/app": "*"
|
||||
},
|
||||
"dependencies": {
|
||||
"@react-native-firebase/app-types": "0.2.3",
|
||||
"@react-native-firebase/common": "0.2.3"
|
||||
"@react-native-firebase/app-types": "0.2.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@react-native-firebase/private-tests-firebase-functions": "^0.0.1"
|
||||
|
||||
@@ -20,7 +20,6 @@ import {
|
||||
FirebaseModule,
|
||||
getFirebaseRoot,
|
||||
} from '@react-native-firebase/app/lib/internal';
|
||||
|
||||
import version from './version';
|
||||
|
||||
const statics = {};
|
||||
|
||||
@@ -27,8 +27,7 @@
|
||||
"@react-native-firebase/app": "*"
|
||||
},
|
||||
"dependencies": {
|
||||
"@react-native-firebase/app-types": "0.2.3",
|
||||
"@react-native-firebase/common": "0.2.3"
|
||||
"@react-native-firebase/app-types": "0.2.3"
|
||||
},
|
||||
"gitHead": "889bf5379c8ce5257b33fb3ad1ac9c905fe26fff",
|
||||
"publishConfig": {
|
||||
|
||||
@@ -15,14 +15,12 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { isBoolean } from '@react-native-firebase/app/lib/common';
|
||||
import {
|
||||
createModuleNamespace,
|
||||
FirebaseModule,
|
||||
getFirebaseRoot,
|
||||
} from '@react-native-firebase/app/lib/internal';
|
||||
|
||||
import { isBoolean } from '@react-native-firebase/common';
|
||||
|
||||
import version from './version';
|
||||
|
||||
const statics = {};
|
||||
|
||||
@@ -30,8 +30,7 @@
|
||||
"@react-native-firebase/app": "*"
|
||||
},
|
||||
"dependencies": {
|
||||
"@react-native-firebase/app-types": "0.2.3",
|
||||
"@react-native-firebase/common": "0.2.3"
|
||||
"@react-native-firebase/app-types": "0.2.3"
|
||||
},
|
||||
"gitHead": "889bf5379c8ce5257b33fb3ad1ac9c905fe26fff",
|
||||
"publishConfig": {
|
||||
|
||||
@@ -15,14 +15,13 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { Linking } from 'react-native';
|
||||
import { isFunction } from '@react-native-firebase/app/lib/common';
|
||||
import {
|
||||
createModuleNamespace,
|
||||
FirebaseModule,
|
||||
getFirebaseRoot,
|
||||
} from '@react-native-firebase/app/lib/internal';
|
||||
|
||||
import { isFunction } from '@react-native-firebase/common';
|
||||
import { Linking } from 'react-native';
|
||||
import version from './version';
|
||||
|
||||
const statics = {};
|
||||
|
||||
@@ -26,8 +26,7 @@
|
||||
"@react-native-firebase/app": "*"
|
||||
},
|
||||
"dependencies": {
|
||||
"@react-native-firebase/app-types": "0.2.3",
|
||||
"@react-native-firebase/common": "0.2.3"
|
||||
"@react-native-firebase/app-types": "0.2.3"
|
||||
},
|
||||
"gitHead": "889bf5379c8ce5257b33fb3ad1ac9c905fe26fff",
|
||||
"publishConfig": {
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { isString, objectKeyValuesAreStrings } from '@react-native-firebase/common';
|
||||
import { isString, objectKeyValuesAreStrings } from '@react-native-firebase/app/lib/common';
|
||||
|
||||
export default class AndroidInvitation {
|
||||
constructor(invite) {
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { isNumber, isString } from '@react-native-firebase/common';
|
||||
import { isNumber, isString } from '@react-native-firebase/app/lib/common';
|
||||
import AndroidInvitation from './AndroidInvite';
|
||||
|
||||
export default class Invitation {
|
||||
|
||||
@@ -15,14 +15,12 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { isString } from '@react-native-firebase/app/lib/common';
|
||||
import {
|
||||
createModuleNamespace,
|
||||
FirebaseModule,
|
||||
getFirebaseRoot,
|
||||
} from '@react-native-firebase/app/lib/internal';
|
||||
|
||||
import { isString } from '@react-native-firebase/common';
|
||||
|
||||
import Invite from './Invite';
|
||||
import version from './version';
|
||||
|
||||
|
||||
@@ -27,8 +27,7 @@
|
||||
"@react-native-firebase/app": "*"
|
||||
},
|
||||
"dependencies": {
|
||||
"@react-native-firebase/app-types": "0.2.3",
|
||||
"@react-native-firebase/common": "0.2.3"
|
||||
"@react-native-firebase/app-types": "0.2.3"
|
||||
},
|
||||
"gitHead": "889bf5379c8ce5257b33fb3ad1ac9c905fe26fff",
|
||||
"publishConfig": {
|
||||
|
||||
@@ -15,11 +15,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import {
|
||||
createModuleNamespace,
|
||||
FirebaseModule,
|
||||
getFirebaseRoot,
|
||||
} from '@react-native-firebase/app/lib/internal';
|
||||
import {
|
||||
isAndroid,
|
||||
isBoolean,
|
||||
@@ -27,12 +22,15 @@ import {
|
||||
isIOS,
|
||||
isString,
|
||||
isUndefined,
|
||||
} from '@react-native-firebase/common';
|
||||
|
||||
} from '@react-native-firebase/app/lib/common';
|
||||
import {
|
||||
createModuleNamespace,
|
||||
FirebaseModule,
|
||||
getFirebaseRoot,
|
||||
} from '@react-native-firebase/app/lib/internal';
|
||||
import { AppRegistry } from 'react-native';
|
||||
|
||||
import version from './version';
|
||||
import remoteMessageOptions from './remoteMessageOptions';
|
||||
import version from './version';
|
||||
|
||||
const statics = {};
|
||||
|
||||
|
||||
@@ -18,12 +18,12 @@
|
||||
import {
|
||||
generateFirestoreId,
|
||||
hasOwnProperty,
|
||||
isInteger,
|
||||
isNumber,
|
||||
isObject,
|
||||
isString,
|
||||
isInteger,
|
||||
isUndefined,
|
||||
} from '@react-native-firebase/common';
|
||||
} from '@react-native-firebase/app/lib/common';
|
||||
|
||||
export default function remoteMessageOptions(messagingSenderId, remoteMessage) {
|
||||
const out = {};
|
||||
|
||||
@@ -25,8 +25,7 @@
|
||||
"@react-native-firebase/app": "*"
|
||||
},
|
||||
"dependencies": {
|
||||
"@react-native-firebase/app-types": "0.2.3",
|
||||
"@react-native-firebase/common": "0.2.3"
|
||||
"@react-native-firebase/app-types": "0.2.3"
|
||||
},
|
||||
"gitHead": "889bf5379c8ce5257b33fb3ad1ac9c905fe26fff",
|
||||
"publishConfig": {
|
||||
|
||||
@@ -15,11 +15,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import {
|
||||
createModuleNamespace,
|
||||
FirebaseModule,
|
||||
getFirebaseRoot,
|
||||
} from '@react-native-firebase/app/lib/internal';
|
||||
import {
|
||||
isArray,
|
||||
isNumber,
|
||||
@@ -27,10 +22,14 @@ import {
|
||||
isString,
|
||||
isUndefined,
|
||||
validateOptionalNativeDependencyExists,
|
||||
} from '@react-native-firebase/common';
|
||||
|
||||
import version from './version';
|
||||
} from '@react-native-firebase/app/lib/common';
|
||||
import {
|
||||
createModuleNamespace,
|
||||
FirebaseModule,
|
||||
getFirebaseRoot,
|
||||
} from '@react-native-firebase/app/lib/internal';
|
||||
import validateTextMessage from './validateTextMessage';
|
||||
import version from './version';
|
||||
|
||||
// TODO not available on iOS until SDK 6.0.0
|
||||
// import TranslateModelManager from './TranslateModelManager';
|
||||
|
||||
@@ -21,7 +21,7 @@ import {
|
||||
isNumber,
|
||||
isObject,
|
||||
isString,
|
||||
} from '@react-native-firebase/common';
|
||||
} from '@react-native-firebase/app/lib/common';
|
||||
|
||||
export default function validateTextMessage(textMessage) {
|
||||
if (!isObject(textMessage)) {
|
||||
|
||||
@@ -33,8 +33,7 @@
|
||||
"@react-native-firebase/app": "*"
|
||||
},
|
||||
"dependencies": {
|
||||
"@react-native-firebase/app-types": "0.2.3",
|
||||
"@react-native-firebase/common": "0.2.3"
|
||||
"@react-native-firebase/app-types": "0.2.3"
|
||||
},
|
||||
"gitHead": "889bf5379c8ce5257b33fb3ad1ac9c905fe26fff",
|
||||
"publishConfig": {
|
||||
|
||||
@@ -15,42 +15,39 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import {
|
||||
isString,
|
||||
toFilePath,
|
||||
validateOptionalNativeDependencyExists,
|
||||
} from '@react-native-firebase/app/lib/common';
|
||||
import {
|
||||
createModuleNamespace,
|
||||
FirebaseModule,
|
||||
getFirebaseRoot,
|
||||
} from '@react-native-firebase/app/lib/internal';
|
||||
import {
|
||||
isString,
|
||||
toFilePath,
|
||||
validateOptionalNativeDependencyExists,
|
||||
} from '@react-native-firebase/common';
|
||||
|
||||
import version from './version';
|
||||
|
||||
import VisionBarcodeFormat from './VisionBarcodeFormat';
|
||||
import VisionFaceContourType from './VisionFaceContourType';
|
||||
import VisionBarcodeValueType from './VisionBarcodeValueType';
|
||||
import VisionFaceLandmarkType from './VisionFaceLandmarkType';
|
||||
import VisionBarcodeEmailType from './VisionBarcodeEmailType';
|
||||
import VisionBarcodePhoneType from './VisionBarcodePhoneType';
|
||||
import VisionBarcodeAddressType from './VisionBarcodeAddressType';
|
||||
import visionBarcodeDetectorOptions from './visionBarcodeDetectorOptions';
|
||||
import VisionBarcodeEmailType from './VisionBarcodeEmailType';
|
||||
import VisionBarcodeFormat from './VisionBarcodeFormat';
|
||||
import VisionBarcodePhoneType from './VisionBarcodePhoneType';
|
||||
import VisionBarcodeValueType from './VisionBarcodeValueType';
|
||||
import VisionBarcodeWifiEncryptionType from './VisionBarcodeWifiEncryptionType';
|
||||
import visionCloudDocumentTextRecognizerOptions from './visionCloudDocumentTextRecognizerOptions';
|
||||
import visionCloudImageLabelerOptions from './visionCloudImageLabelerOptions';
|
||||
import VisionCloudLandmarkRecognizerModelType from './VisionCloudLandmarkRecognizerModelType';
|
||||
import visionCloudLandmarkRecognizerOptions from './visionCloudLandmarkRecognizerOptions';
|
||||
import VisionCloudTextRecognizerModelType from './VisionCloudTextRecognizerModelType';
|
||||
import visionCloudTextRecognizerOptions from './visionCloudTextRecognizerOptions';
|
||||
import VisionDocumentTextRecognizedBreakType from './VisionDocumentTextRecognizedBreakType';
|
||||
import VisionFaceContourType from './VisionFaceContourType';
|
||||
import VisionFaceDetectorClassificationMode from './VisionFaceDetectorClassificationMode';
|
||||
import VisionFaceDetectorContourMode from './VisionFaceDetectorContourMode';
|
||||
import VisionFaceDetectorLandmarkMode from './VisionFaceDetectorLandmarkMode';
|
||||
import VisionBarcodeWifiEncryptionType from './VisionBarcodeWifiEncryptionType';
|
||||
import VisionFaceDetectorPerformanceMode from './VisionFaceDetectorPerformanceMode';
|
||||
import VisionCloudTextRecognizerModelType from './VisionCloudTextRecognizerModelType';
|
||||
import VisionFaceDetectorClassificationMode from './VisionFaceDetectorClassificationMode';
|
||||
import VisionDocumentTextRecognizedBreakType from './VisionDocumentTextRecognizedBreakType';
|
||||
import VisionCloudLandmarkRecognizerModelType from './VisionCloudLandmarkRecognizerModelType';
|
||||
|
||||
import visionImageLabelerOptions from './visionImageLabelerOptions';
|
||||
import visionFaceDetectorOptions from './visionFaceDetectorOptions';
|
||||
import visionBarcodeDetectorOptions from './visionBarcodeDetectorOptions';
|
||||
import visionCloudImageLabelerOptions from './visionCloudImageLabelerOptions';
|
||||
import visionCloudTextRecognizerOptions from './visionCloudTextRecognizerOptions';
|
||||
import visionCloudLandmarkRecognizerOptions from './visionCloudLandmarkRecognizerOptions';
|
||||
import visionCloudDocumentTextRecognizerOptions from './visionCloudDocumentTextRecognizerOptions';
|
||||
import VisionFaceDetectorPerformanceMode from './VisionFaceDetectorPerformanceMode';
|
||||
import VisionFaceLandmarkType from './VisionFaceLandmarkType';
|
||||
import visionImageLabelerOptions from './visionImageLabelerOptions';
|
||||
|
||||
const statics = {
|
||||
VisionCloudTextRecognizerModelType,
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { isArray, isObject, isUndefined } from '@react-native-firebase/common';
|
||||
import { isArray, isObject, isUndefined } from '@react-native-firebase/app/lib/common';
|
||||
import VisionBarcodeFormat from './VisionBarcodeFormat';
|
||||
|
||||
export default function visionBarcodeDetectorOptions(barcodeDetectorOptions) {
|
||||
|
||||
@@ -22,7 +22,7 @@ import {
|
||||
isObject,
|
||||
isString,
|
||||
isUndefined,
|
||||
} from '@react-native-firebase/common';
|
||||
} from '@react-native-firebase/app/lib/common';
|
||||
|
||||
export default function visionCloudDocumentTextRecognizerOptions(
|
||||
cloudDocumentTextRecognizerOptions,
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user