From 61df91f2b09fc1e73a7479b3ea7b510dd002b660 Mon Sep 17 00:00:00 2001 From: Mike Hardy Date: Wed, 30 Sep 2020 13:10:31 -0500 Subject: [PATCH 01/21] fix(publish): never auto-cancel publish workflow (#4330) This is the one workflow where cancellation can become a real problem. Two publish actions are spawned for each workflow run (one is dispatched manually, the second is triggered), and if auto-cancellation is in the workflow then the second one kills the first one Reference #4283 --- .github/workflows/publish.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 03a35417d5..036c40ad55 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -13,9 +13,6 @@ jobs: timeout-minutes: 5 runs-on: ubuntu-latest steps: - - uses: styfle/cancel-workflow-action@0.4.1 - with: - access_token: ${{ github.token }} - uses: actions/checkout@v2 with: ref: 'master' From aa8ee8b7e83443d2c1664993800e15faf4b59b0e Mon Sep 17 00:00:00 2001 From: davidgovea Date: Wed, 30 Sep 2020 12:49:16 -0700 Subject: [PATCH 02/21] fix(types): enable TypeScript libCheck & resolve type conflicts (#4306) * chore: enable TypeScript libcheck & remove "dom" lib "dom" conflicts with @types/react-native * chore: add react types (referenced by admob types) * refactor(types, app): move "app" exports to top-level exports, rather than module declarations with namespace extensions * refactor(types): use top-level exports for module types, rather than declarations * refactor(types): for JSON config, augment existing `ReactNativeFirebase` namespace from /app Re-exporting the namespace causes collision issues -- tramples previous values rather than merging * fix(types, admob): Use string-indexing rather than dot-notation for referring to interface keys * fix(types, analytics): convert missing interface to `any` * fix(types, database): missing `value` type (treated as 'any') * fix(types, dynamic-links): fix dynamic-links `onLink` function type "Function" is not generic * fix(types, firestore): add missing generic to Promise type Keep current behavior with `any` * fix(types, messaging): remove parameter initializer in typedef Only allowed in implementations * fix(types, messaging): avoid implicit `any` via `void` return type for `setBackgroundMessageHandler` * fix(types, ml-vision): import non-ambient types in BarcodeDetectorTypes * fix(types, ml-vision): import non-ambient types in root module from BarcodeDetectorTypes * fix(types, ml-vision): repair invalid `extends` use by duplicating inherited key Could have Omit<>'ed the incompatible `bounds` key, but duplicating the one inherited key seemed less complex * fix(types, perf): add void return types to untyped perf methods * tests(admob): add type override to intentionally-wrong syntax Incorrect type is now caught by TS * tests(types, ml-vision): fix ml-vision test typo, exposed by proper types VisionBarcodeFormat.ALL_POINTS does not exist * chore(website): update typedoc to allow recursive types uses new syntax: TSConfigReader --- package.json | 1 + packages/admob/__tests__/admob.test.ts | 4 +- packages/admob/lib/index.d.ts | 174 +++++++++--------- packages/analytics/lib/index.d.ts | 78 ++++---- packages/app/lib/index.d.ts | 48 ++--- packages/auth/lib/index.d.ts | 26 ++- packages/crashlytics/lib/index.d.ts | 36 ++-- packages/database/lib/index.d.ts | 78 ++++---- packages/dynamic-links/lib/index.d.ts | 26 ++- packages/firestore/lib/index.d.ts | 26 ++- packages/functions/lib/index.d.ts | 24 ++- packages/iid/lib/index.d.ts | 22 +-- packages/in-app-messaging/lib/index.d.ts | 76 ++++---- packages/messaging/lib/index.d.ts | 62 +++---- packages/ml-natural-language/lib/index.d.ts | 46 +++-- .../ml-vision/lib/BarcodeDetectorTypes.d.ts | 8 +- packages/ml-vision/lib/index.d.ts | 99 +++++----- packages/ml-vision/type-test.ts | 2 +- packages/perf/lib/index.d.ts | 94 +++++----- packages/remote-config/lib/index.d.ts | 24 ++- packages/storage/lib/index.d.ts | 26 ++- scripts/_TEMPLATE_/lib/index.d.ts | 17 +- tsconfig.json | 4 +- website/package.json | 2 +- website/scripts/generate-typedoc.js | 3 +- 25 files changed, 468 insertions(+), 538 deletions(-) diff --git a/package.json b/package.json index 16016c924c..123a5cf153 100644 --- a/package.json +++ b/package.json @@ -41,6 +41,7 @@ "@babel/preset-env": "7.9.5", "@babel/preset-flow": "7.9.0", "@types/jest": "^25.2.1", + "@types/react": "^16.9.49", "@types/react-native": "^0.62.0", "@typescript-eslint/eslint-plugin": "^2.18.0", "@typescript-eslint/parser": "^2.18.0", diff --git a/packages/admob/__tests__/admob.test.ts b/packages/admob/__tests__/admob.test.ts index f9b940cbe7..0b03d94f38 100644 --- a/packages/admob/__tests__/admob.test.ts +++ b/packages/admob/__tests__/admob.test.ts @@ -1,4 +1,4 @@ -import { firebase } from '../lib'; +import { firebase, FirebaseAdMobTypes } from '../lib'; describe('Admob', () => { describe('namespace', () => { @@ -21,7 +21,7 @@ describe('Admob', () => { it('throws if maxAdContentRating is invalid', () => { expect(() => firebase.admob().setRequestConfiguration({ - maxAdContentRating: 'Y', + maxAdContentRating: 'Y' as FirebaseAdMobTypes.MaxAdContentRating[keyof FirebaseAdMobTypes.MaxAdContentRating], }), ).toThrowError( "firebase.admob().setRequestConfiguration(*) 'requestConfiguration.maxAdContentRating' expected on of MaxAdContentRating.G, MaxAdContentRating.PG, MaxAdContentRating.T or MaxAdContentRating.MA", diff --git a/packages/admob/lib/index.d.ts b/packages/admob/lib/index.d.ts index eba141c1e2..921d2db4e6 100644 --- a/packages/admob/lib/index.d.ts +++ b/packages/admob/lib/index.d.ts @@ -14,8 +14,8 @@ * limitations under the License. * */ - import { ReactNativeFirebase } from '@react-native-firebase/app'; +import * as React from 'react'; /** * Firebase Admob package for React Native. @@ -398,9 +398,9 @@ export namespace FirebaseAdMobTypes { */ setDebugGeography( geography: - | AdsConsentDebugGeography.DISABLED - | AdsConsentDebugGeography.EEA - | AdsConsentDebugGeography.NOT_EEA, + | AdsConsentDebugGeography['DISABLED'] + | AdsConsentDebugGeography['EEA'] + | AdsConsentDebugGeography['NOT_EEA'], ): Promise; /** @@ -424,9 +424,9 @@ export namespace FirebaseAdMobTypes { */ setStatus( status: - | AdsConsentStatus.UNKNOWN - | AdsConsentStatus.NON_PERSONALIZED - | AdsConsentStatus.PERSONALIZED, + | AdsConsentStatus['UNKNOWN'] + | AdsConsentStatus['NON_PERSONALIZED'] + | AdsConsentStatus['PERSONALIZED'], ): Promise; /** @@ -443,7 +443,9 @@ export namespace FirebaseAdMobTypes { * ``` */ getStatus(): Promise< - AdsConsentStatus.UNKNOWN | AdsConsentStatus.NON_PERSONALIZED | AdsConsentStatus.PERSONALIZED + | AdsConsentStatus['UNKNOWN'] + | AdsConsentStatus['NON_PERSONALIZED'] + | AdsConsentStatus['PERSONALIZED'] >; /** @@ -537,9 +539,9 @@ export namespace FirebaseAdMobTypes { * - PERSONALIZED: The user has accepted personalized ads. */ status: - | AdsConsentStatus.UNKNOWN - | AdsConsentStatus.NON_PERSONALIZED - | AdsConsentStatus.PERSONALIZED; + | AdsConsentStatus['UNKNOWN'] + | AdsConsentStatus['NON_PERSONALIZED'] + | AdsConsentStatus['PERSONALIZED']; /** * If `true`, the user requested an ad-free version of your application. @@ -559,9 +561,9 @@ export namespace FirebaseAdMobTypes { * - PERSONALIZED: The user has accepted personalized ads. */ status: - | AdsConsentStatus.UNKNOWN - | AdsConsentStatus.NON_PERSONALIZED - | AdsConsentStatus.PERSONALIZED; + | AdsConsentStatus['UNKNOWN'] + | AdsConsentStatus['NON_PERSONALIZED'] + | AdsConsentStatus['PERSONALIZED']; /** * If `true` the user is within the EEA or their location could not be determined. @@ -768,10 +770,10 @@ export namespace FirebaseAdMobTypes { * Ratings are based on the [digital content label classifications](https://support.google.com/admob/answer/7562142). */ maxAdContentRating?: - | MaxAdContentRating.G - | MaxAdContentRating.PG - | MaxAdContentRating.T - | MaxAdContentRating.MA; + | MaxAdContentRating['G'] + | MaxAdContentRating['PG'] + | MaxAdContentRating['T'] + | MaxAdContentRating['MA']; /** * If `true`, indicates that you want your content treated as child-directed for purposes of COPPA. @@ -843,14 +845,14 @@ export namespace FirebaseAdMobTypes { */ export type AdEventListener = ( type: - | AdEventType.LOADED - | AdEventType.ERROR - | AdEventType.OPENED - | AdEventType.CLICKED - | AdEventType.LEFT_APPLICATION - | AdEventType.CLOSED - | RewardedAdEventType.LOADED - | RewardedAdEventType.EARNED_REWARD, + | AdEventType['LOADED'] + | AdEventType['ERROR'] + | AdEventType['OPENED'] + | AdEventType['CLICKED'] + | AdEventType['LEFT_APPLICATION'] + | AdEventType['CLOSED'] + | RewardedAdEventType['LOADED'] + | RewardedAdEventType['EARNED_REWARD'], error?: Error, data?: any | RewardedAdReward, ) => void; @@ -1180,35 +1182,29 @@ export namespace FirebaseAdMobTypes { } } -declare module '@react-native-firebase/admob' { - // tslint:disable-next-line:no-duplicate-imports required otherwise doesn't work - import { ReactNativeFirebase } from '@react-native-firebase/app'; - import React from 'react'; - import ReactNativeFirebaseModule = ReactNativeFirebase.Module; - import FirebaseModuleWithStaticsAndApp = ReactNativeFirebase.FirebaseModuleWithStaticsAndApp; - import BannerAd = FirebaseAdMobTypes.BannerAd; - - const firebaseNamedExport: {} & ReactNativeFirebaseModule; - export const firebase = firebaseNamedExport; - - export const AdsConsentDebugGeography: {} & FirebaseAdMobTypes.AdsConsentDebugGeography; - export const AdsConsentStatus: {} & FirebaseAdMobTypes.AdsConsentStatus; - export const MaxAdContentRating: {} & FirebaseAdMobTypes.MaxAdContentRating; - export const TestIds: {} & FirebaseAdMobTypes.TestIds; - export const AdEventType: {} & FirebaseAdMobTypes.AdEventType; - export const BannerAdSize: {} & FirebaseAdMobTypes.BannerAdSize; - export const RewardedAdEventType: {} & FirebaseAdMobTypes.RewardedAdEventType; - export const AdsConsent: {} & FirebaseAdMobTypes.AdsConsent; - export const InterstitialAd: typeof FirebaseAdMobTypes.InterstitialAd; - export const RewardedAd: typeof FirebaseAdMobTypes.RewardedAd; - export const BannerAd: React.SFC; - - const defaultExport: FirebaseModuleWithStaticsAndApp< - FirebaseAdMobTypes.Module, - FirebaseAdMobTypes.Statics - >; - export default defaultExport; -} +export const AdsConsentDebugGeography: FirebaseAdMobTypes.AdsConsentDebugGeography; +export const AdsConsentStatus: FirebaseAdMobTypes.AdsConsentStatus; +export const MaxAdContentRating: FirebaseAdMobTypes.MaxAdContentRating; +export const TestIds: FirebaseAdMobTypes.TestIds; +export const AdEventType: FirebaseAdMobTypes.AdEventType; +export const BannerAdSize: FirebaseAdMobTypes.BannerAdSize; +export const RewardedAdEventType: FirebaseAdMobTypes.RewardedAdEventType; +export const AdsConsent: FirebaseAdMobTypes.AdsConsent; +export const InterstitialAd: typeof FirebaseAdMobTypes.InterstitialAd; +export const RewardedAd: typeof FirebaseAdMobTypes.RewardedAd; +export const BannerAd: React.SFC; + +declare const defaultExport: ReactNativeFirebase.FirebaseModuleWithStaticsAndApp< + FirebaseAdMobTypes.Module, + FirebaseAdMobTypes.Statics +>; + +export const firebase: ReactNativeFirebase.Module & { + storage: typeof defaultExport; + app(name?: string): ReactNativeFirebase.FirebaseApp & { admob(): FirebaseAdMobTypes.Module }; +}; + +export default defaultExport; /** * Attach namespace to `firebase.` and `FirebaseApp.`. @@ -1224,41 +1220,39 @@ declare module '@react-native-firebase/app' { interface FirebaseApp { admob(): FirebaseAdMobTypes.Module; } - } -} - -namespace ReactNativeFirebase { - interface FirebaseJsonConfig { - /** - * The Google AdMob application App ID for Android. - * - * This can be found under: Apps > App settings > App ID on the Google AdMob dashboard. - * - * For testing purposes, use the App ID: `ca-app-pub-3940256099942544~3347511713`. - * - * @android - */ - admob_android_app_id: string; - /** - * The Google AdMob application App ID for iOS. - * - * This can be found under: Apps > App settings > App ID on the Google AdMob dashboard. - * - * For testing purposes, use the App ID: `ca-app-pub-3940256099942544~1458002511`. - * - * @ios - */ - admob_ios_app_id: string; - - /** - * By default, the Google Mobile Ads SDK initializes app measurement and begins sending user-level event data to - * Google immediately when the app starts. This initialization behavior ensures you can enable AdMob user metrics - * without making additional code changes. - * - * If you require your app users to provide consent before collecting data, setting the value to `true` will prevent - * data being sent until the `firebase.admob().initialize()` method has been called. - */ - admob_delay_app_measurement_init: boolean; + interface FirebaseJsonConfig { + /** + * The Google AdMob application App ID for Android. + * + * This can be found under: Apps > App settings > App ID on the Google AdMob dashboard. + * + * For testing purposes, use the App ID: `ca-app-pub-3940256099942544~3347511713`. + * + * @android + */ + admob_android_app_id: string; + + /** + * The Google AdMob application App ID for iOS. + * + * This can be found under: Apps > App settings > App ID on the Google AdMob dashboard. + * + * For testing purposes, use the App ID: `ca-app-pub-3940256099942544~1458002511`. + * + * @ios + */ + admob_ios_app_id: string; + + /** + * By default, the Google Mobile Ads SDK initializes app measurement and begins sending user-level event data to + * Google immediately when the app starts. This initialization behavior ensures you can enable AdMob user metrics + * without making additional code changes. + * + * If you require your app users to provide consent before collecting data, setting the value to `true` will prevent + * data being sent until the `firebase.admob().initialize()` method has been called. + */ + admob_delay_app_measurement_init: boolean; + } } } diff --git a/packages/analytics/lib/index.d.ts b/packages/analytics/lib/index.d.ts index a0796b23b5..077706683f 100644 --- a/packages/analytics/lib/index.d.ts +++ b/packages/analytics/lib/index.d.ts @@ -1262,7 +1262,7 @@ export namespace FirebaseAnalyticsTypes { * * @param params See {@link analytics.SetCheckoutOptionEventParameters}. */ - logSetCheckoutOption(params: SetCheckoutOptionEventParameters): Promise; + logSetCheckoutOption(params: any): Promise; /** * Share event. Apps with social features can log the Share event to identify the most viral content. @@ -1480,21 +1480,19 @@ export namespace FirebaseAnalyticsTypes { } } -declare module '@react-native-firebase/analytics' { - // tslint:disable-next-line:no-duplicate-imports required otherwise doesn't work - import { ReactNativeFirebase } from '@react-native-firebase/app'; - import ReactNativeFirebaseModule = ReactNativeFirebase.Module; - import FirebaseModuleWithStatics = ReactNativeFirebase.FirebaseModuleWithStatics; +declare const defaultExport: ReactNativeFirebase.FirebaseModuleWithStatics< + FirebaseAnalyticsTypes.Module, + FirebaseAnalyticsTypes.Statics +>; - const firebaseNamedExport: {} & ReactNativeFirebaseModule; - export const firebase = firebaseNamedExport; +export const firebase: ReactNativeFirebase.Module & { + analytics: typeof defaultExport; + app( + name?: string, + ): ReactNativeFirebase.FirebaseApp & { analytics(): FirebaseAnalyticsTypes.Module }; +}; - const defaultExport: FirebaseModuleWithStatics< - FirebaseAnalyticsTypes.Module, - FirebaseAnalyticsTypes.Statics - >; - export default defaultExport; -} +export default defaultExport; /** * Attach namespace to `firebase.` and `FirebaseApp.`. @@ -1512,33 +1510,31 @@ declare module '@react-native-firebase/app' { interface FirebaseApp { analytics(): FirebaseAnalyticsTypes.Module; } - } -} -namespace ReactNativeFirebase { - interface FirebaseJsonConfig { - /** - * Disable or enable auto collection of analytics data. - * - * This is useful for opt-in-first data flows, for example when dealing with GDPR compliance. - * This can be overridden in JavaScript. - * - * #### Example - * - * ```json - * // /firebase.json - * { - * "react-native": { - * "analytics_auto_collection_enabled": false - * } - * } - * ``` - * - * ```js - * // Re-enable analytics data collection, e.g. once user has granted permission: - * await firebase.analytics().setAnalyticsCollectionEnabled(true); - * ``` - */ - analytics_auto_collection_enabled: boolean; + interface FirebaseJsonConfig { + /** + * Disable or enable auto collection of analytics data. + * + * This is useful for opt-in-first data flows, for example when dealing with GDPR compliance. + * This can be overridden in JavaScript. + * + * #### Example + * + * ```json + * // /firebase.json + * { + * "react-native": { + * "analytics_auto_collection_enabled": false + * } + * } + * ``` + * + * ```js + * // Re-enable analytics data collection, e.g. once user has granted permission: + * await firebase.analytics().setAnalyticsCollectionEnabled(true); + * ``` + */ + analytics_auto_collection_enabled: boolean; + } } } diff --git a/packages/app/lib/index.d.ts b/packages/app/lib/index.d.ts index 93320d9621..ee81e45e12 100644 --- a/packages/app/lib/index.d.ts +++ b/packages/app/lib/index.d.ts @@ -148,6 +148,8 @@ export namespace ReactNativeFirebase { * Make this app unusable and free up resources. */ delete(): Promise; + + utils(): Utils.Module; } export interface Module { @@ -189,6 +191,13 @@ export namespace ReactNativeFirebase { * The current React Native Firebase version. */ readonly SDK_VERSION: string; + + /** + * Utils provides a collection of utilities to aid in using Firebase + * and related services inside React Native, e.g. Test Lab helpers + * and Google Play Services version helpers. + */ + utils: typeof utils; } /** @@ -536,37 +545,10 @@ export namespace Utils { } } -declare module '@react-native-firebase/app' { - /** - * Add Utils module as a named export for `app`. - */ - export const utils: ReactNativeFirebase.FirebaseModuleWithStatics; - - /** - * Default Firebase export. - */ - const module: {} & ReactNativeFirebase.Module; - export default module; -} +/** + * Add Utils module as a named export for `app`. + */ +export const utils: ReactNativeFirebase.FirebaseModuleWithStatics; -declare module '@react-native-firebase/app' { - /** - * Attach Utils namespace to `firebase.` and `FirebaseApp.`. - */ - namespace ReactNativeFirebase { - import FirebaseModuleWithStatics = ReactNativeFirebase.FirebaseModuleWithStatics; - - interface Module { - /** - * Utils provides a collection of utilities to aid in using Firebase - * and related services inside React Native, e.g. Test Lab helpers - * and Google Play Services version helpers. - */ - utils: FirebaseModuleWithStatics; - } - - interface FirebaseApp { - utils(): Utils.Module; - } - } -} +declare const module: ReactNativeFirebase.Module; +export default module; diff --git a/packages/auth/lib/index.d.ts b/packages/auth/lib/index.d.ts index fc451a56fb..286111a020 100644 --- a/packages/auth/lib/index.d.ts +++ b/packages/auth/lib/index.d.ts @@ -1634,21 +1634,17 @@ export namespace FirebaseAuthTypes { type CallbackOrObserver any> = T | { next: T }; -declare module '@react-native-firebase/auth' { - // tslint:disable-next-line:no-duplicate-imports required otherwise doesn't work - import { ReactNativeFirebase } from '@react-native-firebase/app'; - import ReactNativeFirebaseModule = ReactNativeFirebase.Module; - import FirebaseModuleWithStaticsAndApp = ReactNativeFirebase.FirebaseModuleWithStaticsAndApp; - - const firebaseNamedExport: {} & ReactNativeFirebaseModule; - export const firebase = firebaseNamedExport; - - const defaultExport: FirebaseModuleWithStaticsAndApp< - FirebaseAuthTypes.Module, - FirebaseAuthTypes.Statics - >; - export default defaultExport; -} +declare const defaultExport: ReactNativeFirebase.FirebaseModuleWithStaticsAndApp< + FirebaseAuthTypes.Module, + FirebaseAuthTypes.Statics +>; + +export const firebase: ReactNativeFirebase.Module & { + auth: typeof defaultExport; + app(name?: string): ReactNativeFirebase.FirebaseApp & { auth(): FirebaseAuthTypes.Module }; +}; + +export default defaultExport; /** * Attach namespace to `firebase.` and `FirebaseApp.`. diff --git a/packages/crashlytics/lib/index.d.ts b/packages/crashlytics/lib/index.d.ts index f51861272f..62459baad3 100644 --- a/packages/crashlytics/lib/index.d.ts +++ b/packages/crashlytics/lib/index.d.ts @@ -249,21 +249,19 @@ export namespace FirebaseCrashlyticsTypes { } } -declare module '@react-native-firebase/crashlytics' { - // tslint:disable-next-line:no-duplicate-imports required otherwise doesn't work - import { ReactNativeFirebase } from '@react-native-firebase/app'; - import ReactNativeFirebaseModule = ReactNativeFirebase.Module; - import FirebaseModuleWithStatics = ReactNativeFirebase.FirebaseModuleWithStatics; +declare const defaultExport: ReactNativeFirebase.FirebaseModuleWithStatics< + FirebaseCrashlyticsTypes.Module, + FirebaseCrashlyticsTypes.Statics +>; - const firebaseNamedExport: {} & ReactNativeFirebaseModule; - export const firebase = firebaseNamedExport; +export const firebase: ReactNativeFirebase.Module & { + crashlytics: typeof defaultExport; + app( + name?: string, + ): ReactNativeFirebase.FirebaseApp & { crashlytics(): FirebaseCrashlyticsTypes.Module }; +}; - const defaultExport: FirebaseModuleWithStatics< - FirebaseCrashlyticsTypes.Module, - FirebaseCrashlyticsTypes.Statics - >; - export default defaultExport; -} +export default defaultExport; /** * Attach namespace to `firebase.` and `FirebaseApp.`. @@ -280,13 +278,11 @@ declare module '@react-native-firebase/app' { interface FirebaseApp { crashlytics(): FirebaseCrashlyticsTypes.Module; } - } -} -namespace ReactNativeFirebase { - interface FirebaseJsonConfig { - crashlytics_ndk_enabled: boolean; - crashlytics_debug_enabled: boolean; - crashlytics_auto_collection_enabled: boolean; + interface FirebaseJsonConfig { + crashlytics_ndk_enabled: boolean; + crashlytics_debug_enabled: boolean; + crashlytics_auto_collection_enabled: boolean; + } } } diff --git a/packages/database/lib/index.d.ts b/packages/database/lib/index.d.ts index dcb2894823..31316ceb95 100644 --- a/packages/database/lib/index.d.ts +++ b/packages/database/lib/index.d.ts @@ -264,7 +264,7 @@ export namespace FirebaseDatabaseTypes { * @param values Object containing multiple values. * @param onComplete Callback called when write to server is complete. Contains the parameters (Error | null). */ - update(values: { [key: string]: value }, onComplete?: Function): Promise; + update(values: { [key: string]: any }, onComplete?: Function): Promise; /** * Sets a priority for the data at this Database location. Setting null removes any priority at this location. @@ -915,7 +915,7 @@ export namespace FirebaseDatabaseTypes { * @param values Object containing multiple values. * @param onComplete An optional callback function that will be called when synchronization to the server has completed. The callback will be passed a single parameter: null for success, or an Error object indicating a failure. */ - update(values: { [key: string]: value }, onComplete?: Function): Promise; + update(values: { [key: string]: any }, onComplete?: Function): Promise; } export type EventType = @@ -1248,21 +1248,19 @@ export namespace FirebaseDatabaseTypes { } } -declare module '@react-native-firebase/database' { - // tslint:disable-next-line:no-duplicate-imports required otherwise doesn't work - import { ReactNativeFirebase } from '@react-native-firebase/app'; - import ReactNativeFirebaseModule = ReactNativeFirebase.Module; - import FirebaseModuleWithStaticsAndApp = ReactNativeFirebase.FirebaseModuleWithStaticsAndApp; +declare const defaultExport: ReactNativeFirebase.FirebaseModuleWithStaticsAndApp< + FirebaseDatabaseTypes.Module, + FirebaseDatabaseTypes.Statics +>; - const firebaseNamedExport: {} & ReactNativeFirebaseModule; - export const firebase = firebaseNamedExport; +export const firebase: ReactNativeFirebase.Module & { + database: typeof defaultExport; + app( + name?: string, + ): ReactNativeFirebase.FirebaseApp & { database(): FirebaseDatabaseTypes.Module }; +}; - const defaultExport: FirebaseModuleWithStaticsAndApp< - FirebaseDatabaseTypes.Module, - FirebaseDatabaseTypes.Statics - >; - export default defaultExport; -} +export default defaultExport; /** * Attach namespace to `firebase.` and `FirebaseApp.`. @@ -1280,32 +1278,30 @@ declare module '@react-native-firebase/app' { interface FirebaseApp { database(databaseUrl?: string): FirebaseDatabaseTypes.Module; } - } -} -namespace ReactNativeFirebase { - interface FirebaseJsonConfig { - /** - * Set whether database persistence is enabled or disabled. - * - * This can be overridden in JavaScript, e.g. when requesting permission or on a condition. - * - * #### Example - * - * ```json - * // /firebase.json - * { - * "react-native": { - * "database_persistence_enabled": false - * } - * } - * ``` - * - * ```js - * // Re-enable database persistence - * await firebase.database().setPersistenceEnabled(true); - * ``` - */ - database_persistence_enabled: boolean; + interface FirebaseJsonConfig { + /** + * Set whether database persistence is enabled or disabled. + * + * This can be overridden in JavaScript, e.g. when requesting permission or on a condition. + * + * #### Example + * + * ```json + * // /firebase.json + * { + * "react-native": { + * "database_persistence_enabled": false + * } + * } + * ``` + * + * ```js + * // Re-enable database persistence + * await firebase.database().setPersistenceEnabled(true); + * ``` + */ + database_persistence_enabled: boolean; + } } } diff --git a/packages/dynamic-links/lib/index.d.ts b/packages/dynamic-links/lib/index.d.ts index b72bde382e..fd956a59c8 100644 --- a/packages/dynamic-links/lib/index.d.ts +++ b/packages/dynamic-links/lib/index.d.ts @@ -540,7 +540,7 @@ export namespace FirebaseDynamicLinksTypes { * @returns Unsubscribe function, call the returned function to unsubscribe from all future events. * @param listener The listener callback, called with Dynamic Link instances. */ - onLink(listener: Function): Function; + onLink(listener: (link: DynamicLink) => void): Function; /** * Resolve a given dynamic link (short or long) directly. @@ -566,21 +566,19 @@ export namespace FirebaseDynamicLinksTypes { } } -declare module '@react-native-firebase/dynamic-links' { - // tslint:disable-next-line:no-duplicate-imports required otherwise doesn't work - import { ReactNativeFirebase } from '@react-native-firebase/app'; - import ReactNativeFirebaseModule = ReactNativeFirebase.Module; - import FirebaseModuleWithStatics = ReactNativeFirebase.FirebaseModuleWithStatics; +declare const defaultExport: ReactNativeFirebase.FirebaseModuleWithStatics< + FirebaseDynamicLinksTypes.Module, + FirebaseDynamicLinksTypes.Statics +>; - const firebaseNamedExport: {} & ReactNativeFirebaseModule; - export const firebase = firebaseNamedExport; +export const firebase: ReactNativeFirebase.Module & { + dynamicLinks: typeof defaultExport; + app( + name?: string, + ): ReactNativeFirebase.FirebaseApp & { dynamicLinks(): FirebaseDynamicLinksTypes.Module }; +}; - const defaultExport: FirebaseModuleWithStatics< - FirebaseDynamicLinksTypes.Module, - FirebaseDynamicLinksTypes.Statics - >; - export default defaultExport; -} +export default defaultExport; /** * Attach namespace to `firebase.` and `FirebaseApp.`. diff --git a/packages/firestore/lib/index.d.ts b/packages/firestore/lib/index.d.ts index 8ea648be9b..0c17e0dbef 100644 --- a/packages/firestore/lib/index.d.ts +++ b/packages/firestore/lib/index.d.ts @@ -1962,7 +1962,7 @@ export namespace FirebaseFirestoreTypes { * }); * ``` */ - runTransaction(updateFunction: (transaction: Transaction) => Promise): Promise; + runTransaction(updateFunction: (transaction: Transaction) => Promise): Promise; /** * Specifies custom settings to be used to configure the Firestore instance. Must be set before invoking any other methods. @@ -2023,21 +2023,19 @@ export namespace FirebaseFirestoreTypes { } } -declare module '@react-native-firebase/firestore' { - // tslint:disable-next-line:no-duplicate-imports required otherwise doesn't work - import { ReactNativeFirebase } from '@react-native-firebase/app'; - import ReactNativeFirebaseModule = ReactNativeFirebase.Module; - import FirebaseModuleWithStaticsAndApp = ReactNativeFirebase.FirebaseModuleWithStaticsAndApp; +declare const defaultExport: ReactNativeFirebase.FirebaseModuleWithStaticsAndApp< + FirebaseFirestoreTypes.Module, + FirebaseFirestoreTypes.Statics +>; - const firebaseNamedExport: {} & ReactNativeFirebaseModule; - export const firebase = firebaseNamedExport; +export const firebase: ReactNativeFirebase.Module & { + firestore: typeof defaultExport; + app( + name?: string, + ): ReactNativeFirebase.FirebaseApp & { firestore(): FirebaseFirestoreTypes.Module }; +}; - const defaultExport: FirebaseModuleWithStaticsAndApp< - FirebaseFirestoreTypes.Module, - FirebaseFirestoreTypes.Statics - >; - export default defaultExport; -} +export default defaultExport; /** * Attach namespace to `firebase.` and `FirebaseApp.`. diff --git a/packages/functions/lib/index.d.ts b/packages/functions/lib/index.d.ts index 7bf0f343f1..d1c7ecb539 100644 --- a/packages/functions/lib/index.d.ts +++ b/packages/functions/lib/index.d.ts @@ -359,21 +359,19 @@ export namespace FirebaseFunctionsTypes { } } -declare module '@react-native-firebase/functions' { - // tslint:disable-next-line:no-duplicate-imports required otherwise doesn't work - import { ReactNativeFirebase } from '@react-native-firebase/app'; - import ReactNativeFirebaseModule = ReactNativeFirebase.Module; - import FirebaseModuleWithStaticsAndApp = ReactNativeFirebase.FirebaseModuleWithStaticsAndApp; +declare const defaultExport: ReactNativeFirebase.FirebaseModuleWithStaticsAndApp< + FirebaseFunctionsTypes.Module, + FirebaseFunctionsTypes.Statics +>; - const firebaseNamedExport: {} & ReactNativeFirebaseModule; - export const firebase = firebaseNamedExport; +export const firebase: ReactNativeFirebase.Module & { + functions: typeof defaultExport; + app( + name?: string, + ): ReactNativeFirebase.FirebaseApp & { functions(): FirebaseFunctionsTypes.Module }; +}; - const defaultExport: FirebaseModuleWithStaticsAndApp< - FirebaseFunctionsTypes.Module, - FirebaseFunctionsTypes.Statics - >; - export default defaultExport; -} +export default defaultExport; /** * Attach namespace to `firebase.` and `FirebaseApp.`. diff --git a/packages/iid/lib/index.d.ts b/packages/iid/lib/index.d.ts index 2370a6d4cd..fab2763402 100644 --- a/packages/iid/lib/index.d.ts +++ b/packages/iid/lib/index.d.ts @@ -131,21 +131,17 @@ export namespace FirebaseIidTypes { } } -declare module '@react-native-firebase/iid' { - // tslint:disable-next-line:no-duplicate-imports required otherwise doesn't work - import { ReactNativeFirebase } from '@react-native-firebase/app'; - import ReactNativeFirebaseModule = ReactNativeFirebase.Module; - import FirebaseModuleWithStaticsAndApp = ReactNativeFirebase.FirebaseModuleWithStaticsAndApp; +declare const defaultExport: ReactNativeFirebase.FirebaseModuleWithStaticsAndApp< + FirebaseIidTypes.Module, + FirebaseIidTypes.Statics +>; - const firebaseNamedExport: {} & ReactNativeFirebaseModule; - export const firebase = firebaseNamedExport; +export const firebase: ReactNativeFirebase.Module & { + iid: typeof defaultExport; + app(name?: string): ReactNativeFirebase.FirebaseApp & { iid(): FirebaseIidTypes.Module }; +}; - const defaultExport: FirebaseModuleWithStaticsAndApp< - FirebaseIidTypes.Module, - FirebaseIidTypes.Statics - >; - export default defaultExport; -} +export default defaultExport; /** * Attach namespace to `firebase.` and `FirebaseApp.`. diff --git a/packages/in-app-messaging/lib/index.d.ts b/packages/in-app-messaging/lib/index.d.ts index 28bd6aaf06..ef6eb598b4 100644 --- a/packages/in-app-messaging/lib/index.d.ts +++ b/packages/in-app-messaging/lib/index.d.ts @@ -147,21 +147,19 @@ export namespace FirebaseInAppMessagingTypes { } } -declare module '@react-native-firebase/in-app-messaging' { - // tslint:disable-next-line:no-duplicate-imports required otherwise doesn't work - import { ReactNativeFirebase } from '@react-native-firebase/app'; - import ReactNativeFirebaseModule = ReactNativeFirebase.Module; - import FirebaseModuleWithStatics = ReactNativeFirebase.FirebaseModuleWithStatics; +declare const defaultExport: ReactNativeFirebase.FirebaseModuleWithStatics< + FirebaseInAppMessagingTypes.Module, + FirebaseInAppMessagingTypes.Statics +>; - const firebaseNamedExport: {} & ReactNativeFirebaseModule; - export const firebase = firebaseNamedExport; +export const firebase: ReactNativeFirebase.Module & { + inAppMessaging: typeof defaultExport; + app( + name?: string, + ): ReactNativeFirebase.FirebaseApp & { inAppMessaging(): FirebaseInAppMessagingTypes.Module }; +}; - const module: FirebaseModuleWithStatics< - FirebaseInAppMessagingTypes.Module, - FirebaseInAppMessagingTypes.Statics - >; - export default module; -} +export default defaultExport; /** * Attach namespace to `firebase.` and `FirebaseApp.`. @@ -179,33 +177,31 @@ declare module '@react-native-firebase/app' { interface FirebaseApp { inAppMessaging(): FirebaseInAppMessagingTypes.Module; } - } -} -namespace ReactNativeFirebase { - interface FirebaseJsonConfig { - /** - * Disable or enable auto collection & receiving of in-app messages and data collection. - * - * This is useful for opt-in-first data flows, for example when dealing with GDPR compliance. - * This can be overridden in JavaScript. - * - * #### Example - * - * ```json - * // /firebase.json - * { - * "react-native": { - * "in_app_messaging_auto_collection_enabled": false - * } - * } - * ``` - * - * ```js - * // Re-enable in-app messaging, e.g. once user has granted permission: - * await firebase.inAppMessaging().setAutomaticDataCollectionEnabled(true); - * ``` - */ - in_app_messaging_auto_collection_enabled: boolean; + interface FirebaseJsonConfig { + /** + * Disable or enable auto collection & receiving of in-app messages and data collection. + * + * This is useful for opt-in-first data flows, for example when dealing with GDPR compliance. + * This can be overridden in JavaScript. + * + * #### Example + * + * ```json + * // /firebase.json + * { + * "react-native": { + * "in_app_messaging_auto_collection_enabled": false + * } + * } + * ``` + * + * ```js + * // Re-enable in-app messaging, e.g. once user has granted permission: + * await firebase.inAppMessaging().setAutomaticDataCollectionEnabled(true); + * ``` + */ + in_app_messaging_auto_collection_enabled: boolean; + } } } diff --git a/packages/messaging/lib/index.d.ts b/packages/messaging/lib/index.d.ts index f036f3b798..1d89b7adbb 100644 --- a/packages/messaging/lib/index.d.ts +++ b/packages/messaging/lib/index.d.ts @@ -608,7 +608,7 @@ export namespace FirebaseMessagingTypes { * @param authorizedEntity The messaging sender ID. In most cases this will be the current default app. * @param scope The scope to assign a token, which the sever can use to target messages at. */ - getToken(authorizedEntity?: string, scope?: string = 'FCM'): Promise; + getToken(authorizedEntity?: string, scope?: string): Promise; /** * Removes access to an FCM token previously authorized by it's scope. Messages sent by the server @@ -623,7 +623,7 @@ export namespace FirebaseMessagingTypes { * @param authorizedEntity The messaging sender ID. In most cases this will be the current default app. * @param scope The scope to assign when token will be deleted. */ - deleteToken(authorizedEntity?: string, scope?: string = 'FCM'): Promise; + deleteToken(authorizedEntity?: string, scope?: string): Promise; /** * When any FCM payload is received, the listener callback is called with a `RemoteMessage`. @@ -897,7 +897,7 @@ export namespace FirebaseMessagingTypes { * ``` * */ - setBackgroundMessageHandler(handler: (message: RemoteMessage) => Promise); + setBackgroundMessageHandler(handler: (message: RemoteMessage) => Promise): void; /** * Send a new `RemoteMessage` to the FCM server. @@ -949,21 +949,19 @@ export namespace FirebaseMessagingTypes { } } -declare module '@react-native-firebase/messaging' { - // tslint:disable-next-line:no-duplicate-imports required otherwise doesn't work - import { ReactNativeFirebase } from '@react-native-firebase/app'; - import ReactNativeFirebaseModule = ReactNativeFirebase.Module; - import FirebaseModuleWithStatics = ReactNativeFirebase.FirebaseModuleWithStatics; +declare const defaultExport: ReactNativeFirebase.FirebaseModuleWithStatics< + FirebaseMessagingTypes.Module, + FirebaseMessagingTypes.Statics +>; - const firebaseNamedExport: {} & ReactNativeFirebaseModule; - export const firebase = firebaseNamedExport; +export const firebase: ReactNativeFirebase.Module & { + messaging: typeof defaultExport; + app( + name?: string, + ): ReactNativeFirebase.FirebaseApp & { messaging(): FirebaseMessagingTypes.Module }; +}; - const defaultExport: FirebaseModuleWithStatics< - FirebaseMessagingTypes.Module, - FirebaseMessagingTypes.Statics - >; - export default defaultExport; -} +export default defaultExport; /** * Attach namespace to `firebase.` and `FirebaseApp.`. @@ -981,23 +979,21 @@ declare module '@react-native-firebase/app' { interface FirebaseApp { messaging(): FirebaseMessagingTypes.Module; } - } -} -namespace ReactNativeFirebase { - interface FirebaseJsonConfig { - messaging_auto_init_enabled?: boolean; - messaging_android_headless_task_timeout?: number; - messaging_android_notification_channel_id?: string; - messaging_android_notification_color?: string; - /** - * Whether RNFirebase Messaging automatically calls `[[UIApplication sharedApplication] registerForRemoteNotifications];` - * automatically on app launch (recommended) - defaults to true. - * - * If set to false; make sure to call `firebase.messaging().registerDeviceForRemoteMessages()` - * early on in your app startup - otherwise you will NOT receive remote messages/notifications - * in your app. - */ - messaging_ios_auto_register_for_remote_messages?: boolean; + interface FirebaseJsonConfig { + messaging_auto_init_enabled?: boolean; + messaging_android_headless_task_timeout?: number; + messaging_android_notification_channel_id?: string; + messaging_android_notification_color?: string; + /** + * Whether RNFirebase Messaging automatically calls `[[UIApplication sharedApplication] registerForRemoteNotifications];` + * automatically on app launch (recommended) - defaults to true. + * + * If set to false; make sure to call `firebase.messaging().registerDeviceForRemoteMessages()` + * early on in your app startup - otherwise you will NOT receive remote messages/notifications + * in your app. + */ + messaging_ios_auto_register_for_remote_messages?: boolean; + } } } diff --git a/packages/ml-natural-language/lib/index.d.ts b/packages/ml-natural-language/lib/index.d.ts index 2ec7452e44..ef4e4e12e6 100644 --- a/packages/ml-natural-language/lib/index.d.ts +++ b/packages/ml-natural-language/lib/index.d.ts @@ -224,21 +224,19 @@ export namespace FirebaseLanguageTypes { } } -declare module '@react-native-firebase/ml-natural-language' { - // tslint:disable-next-line:no-duplicate-imports required otherwise doesn't work - import { ReactNativeFirebase } from '@react-native-firebase/app'; - import ReactNativeFirebaseModule = ReactNativeFirebase.Module; - import FirebaseModuleWithStaticsAndApp = ReactNativeFirebase.FirebaseModuleWithStaticsAndApp; +declare const defaultExport: ReactNativeFirebase.FirebaseModuleWithStaticsAndApp< + FirebaseLanguageTypes.Module, + FirebaseLanguageTypes.Statics +>; - const firebaseNamedExport: {} & ReactNativeFirebaseModule; - export const firebase = firebaseNamedExport; +export const firebase: ReactNativeFirebase.Module & { + naturalLanguage: typeof defaultExport; + app( + name?: string, + ): ReactNativeFirebase.FirebaseApp & { naturalLanguage(): FirebaseLanguageTypes.Module }; +}; - const defaultExport: FirebaseModuleWithStaticsAndApp< - FirebaseLanguageTypes.Module, - FirebaseLanguageTypes.Statics - >; - export default defaultExport; -} +export default defaultExport; /** * Attach namespace to `firebase.` and `FirebaseApp.`. @@ -257,19 +255,17 @@ declare module '@react-native-firebase/app' { interface FirebaseApp { naturalLanguage(): FirebaseLanguageTypes.Module; } - } -} -namespace ReactNativeFirebase { - interface FirebaseJsonConfig { - /** - * If `true`, the Language ID Model will be installed onto the device. - */ - ml_natural_language_language_id_model: boolean; + interface FirebaseJsonConfig { + /** + * If `true`, the Language ID Model will be installed onto the device. + */ + ml_natural_language_language_id_model: boolean; - /** - * If `true`, the Smart Reply Model will be installed onto the device. - */ - ml_natural_language_smart_reply_model: boolean; + /** + * If `true`, the Smart Reply Model will be installed onto the device. + */ + ml_natural_language_smart_reply_model: boolean; + } } } diff --git a/packages/ml-vision/lib/BarcodeDetectorTypes.d.ts b/packages/ml-vision/lib/BarcodeDetectorTypes.d.ts index 041202d5b8..8e0cce321f 100644 --- a/packages/ml-vision/lib/BarcodeDetectorTypes.d.ts +++ b/packages/ml-vision/lib/BarcodeDetectorTypes.d.ts @@ -1,3 +1,5 @@ +import { FirebaseVisionTypes } from '.'; + /** * Firebase ML Kit package for React Native. * @@ -49,12 +51,12 @@ export namespace MLKitVision { /** * Returns the bounding rectangle of the detected barcode. */ - boundingBox: VisionRectangle; + boundingBox: FirebaseVisionTypes.VisionRectangle; /** * Gets the four corner points in clockwise direction starting with top-left. Due to the possible perspective distortions, this is not necessarily a rectangle. Parts of the region could be outside of the image. */ - cornerPoints: VisionPoint[]; + cornerPoints: FirebaseVisionTypes.VisionPoint[]; /** * Returns the barcode format, for example `VisionBarcodeFormat.QR_CODE` @@ -178,7 +180,7 @@ export namespace MLKitVision { * } * ``` */ - geoPoint?: VisionGeoPoint; + geoPoint?: FirebaseVisionTypes.VisionGeoPoint; /** * Gets parsed phone details (set if `valueType` is `VisionBarcodeValueType.PHONE`). diff --git a/packages/ml-vision/lib/index.d.ts b/packages/ml-vision/lib/index.d.ts index 156d3a236d..dd18c28578 100644 --- a/packages/ml-vision/lib/index.d.ts +++ b/packages/ml-vision/lib/index.d.ts @@ -16,7 +16,7 @@ */ import { ReactNativeFirebase } from '@react-native-firebase/app'; - +import { MLKitVision } from './BarcodeDetectorTypes'; /** * Firebase ML Kit package for React Native. * @@ -66,12 +66,12 @@ export namespace FirebaseVisionTypes { VisionFaceContourType: typeof VisionFaceContourType; VisionCloudLandmarkRecognizerModelType: typeof VisionCloudLandmarkRecognizerModelType; VisionDocumentTextRecognizedBreakType: typeof VisionDocumentTextRecognizedBreakType; - VisionBarcodeFormat: typeof VisionBarcodeFormat; - VisionBarcodeValueType: typeof VisionBarcodeValueType; - VisionBarcodeAddressType: typeof VisionBarcodeAddressType; - VisionBarcodeEmailType: typeof VisionBarcodeEmailType; - VisionBarcodePhoneType: typeof VisionBarcodePhoneType; - VisionBarcodeWifiEncryptionType: typeof VisionBarcodeWifiEncryptionType; + VisionBarcodeFormat: typeof MLKitVision.VisionBarcodeFormat; + VisionBarcodeValueType: typeof MLKitVision.VisionBarcodeValueType; + VisionBarcodeAddressType: typeof MLKitVision.VisionBarcodeAddressType; + VisionBarcodeEmailType: typeof MLKitVision.VisionBarcodeEmailType; + VisionBarcodePhoneType: typeof MLKitVision.VisionBarcodePhoneType; + VisionBarcodeWifiEncryptionType: typeof MLKitVision.VisionBarcodeWifiEncryptionType; } /** @@ -671,7 +671,12 @@ export namespace FirebaseVisionTypes { /** * A hierarchical representation of document text recognized in an image. */ - export interface VisionDocumentText extends VisionText { + export interface VisionDocumentText { + /** + * Retrieve the recognized text as a string. + */ + text: string; + /** * Gets an array `VisionTextBlock`, which is a block of text that can be further decomposed to an array of `VisionDocumentTextParagraph`. */ @@ -1170,42 +1175,38 @@ export namespace FirebaseVisionTypes { */ barcodeDetectorProcessImage( imageFilePath: string, - barcodeDetectorOptions?: VisionBarcodeDetectorOptions, - ): Promise; + barcodeDetectorOptions?: MLKitVision.VisionBarcodeDetectorOptions, + ): Promise; } } -declare module '@react-native-firebase/ml-vision' { - // tslint:disable-next-line:no-duplicate-imports required otherwise doesn't work - import { ReactNativeFirebase } from '@react-native-firebase/app'; - import ReactNativeFirebaseModule = ReactNativeFirebase.Module; - import FirebaseModuleWithStaticsAndApp = ReactNativeFirebase.FirebaseModuleWithStaticsAndApp; - - const firebaseNamedExport: {} & ReactNativeFirebaseModule; - export const firebase = firebaseNamedExport; - - export const VisionBarcodeFormat: {} & typeof FirebaseVisionTypes.VisionBarcodeFormat; - export const VisionFaceContourType: {} & typeof FirebaseVisionTypes.VisionFaceContourType; - export const VisionFaceLandmarkType: {} & typeof FirebaseVisionTypes.VisionFaceLandmarkType; - export const VisionBarcodeValueType: {} & typeof FirebaseVisionTypes.VisionBarcodeValueType; - export const VisionBarcodeEmailType: {} & typeof FirebaseVisionTypes.VisionBarcodeEmailType; - export const VisionBarcodePhoneType: {} & typeof FirebaseVisionTypes.VisionBarcodePhoneType; - export const VisionBarcodeAddressType: {} & typeof FirebaseVisionTypes.VisionBarcodeAddressType; - export const VisionFaceDetectorContourMode: {} & typeof FirebaseVisionTypes.VisionFaceDetectorContourMode; - export const VisionFaceDetectorLandmarkMode: {} & typeof FirebaseVisionTypes.VisionFaceDetectorLandmarkMode; - export const VisionBarcodeWifiEncryptionType: {} & FirebaseVisionTypes.VisionBarcodeWifiEncryptionType; - export const VisionFaceDetectorPerformanceMode: {} & typeof FirebaseVisionTypes.VisionFaceDetectorPerformanceMode; - export const VisionCloudTextRecognizerModelType: {} & typeof FirebaseVisionTypes.VisionCloudTextRecognizerModelType; - export const VisionFaceDetectorClassificationMode: {} & typeof FirebaseVisionTypes.VisionFaceDetectorClassificationMode; - export const VisionDocumentTextRecognizedBreakType: {} & typeof FirebaseVisionTypes.VisionDocumentTextRecognizedBreakType; - export const VisionCloudLandmarkRecognizerModelType: {} & typeof FirebaseVisionTypes.VisionCloudLandmarkRecognizerModelType; - - const defaultExport: FirebaseModuleWithStaticsAndApp< - FirebaseVisionTypes.Module, - FirebaseVisionTypes.Statics - >; - export default defaultExport; -} +declare const defaultExport: ReactNativeFirebase.FirebaseModuleWithStaticsAndApp< + FirebaseVisionTypes.Module, + FirebaseVisionTypes.Statics +>; + +export const firebase: ReactNativeFirebase.Module & { + analytics: typeof defaultExport; + app(name?: string): ReactNativeFirebase.FirebaseApp & { vision(): FirebaseVisionTypes.Module }; +}; + +export const VisionBarcodeFormat: FirebaseVisionTypes.Statics['VisionBarcodeFormat']; +export const VisionFaceContourType: FirebaseVisionTypes.Statics['VisionFaceContourType']; +export const VisionFaceLandmarkType: FirebaseVisionTypes.Statics['VisionFaceLandmarkType']; +export const VisionBarcodeValueType: FirebaseVisionTypes.Statics['VisionBarcodeValueType']; +export const VisionBarcodeEmailType: FirebaseVisionTypes.Statics['VisionBarcodeEmailType']; +export const VisionBarcodePhoneType: FirebaseVisionTypes.Statics['VisionBarcodePhoneType']; +export const VisionBarcodeAddressType: FirebaseVisionTypes.Statics['VisionBarcodeAddressType']; +export const VisionFaceDetectorContourMode: FirebaseVisionTypes.Statics['VisionFaceDetectorContourMode']; +export const VisionFaceDetectorLandmarkMode: FirebaseVisionTypes.Statics['VisionFaceDetectorLandmarkMode']; +export const VisionBarcodeWifiEncryptionType: FirebaseVisionTypes.Statics['VisionBarcodeWifiEncryptionType']; +export const VisionFaceDetectorPerformanceMode: FirebaseVisionTypes.Statics['VisionFaceDetectorPerformanceMode']; +export const VisionCloudTextRecognizerModelType: FirebaseVisionTypes.Statics['VisionCloudTextRecognizerModelType']; +export const VisionFaceDetectorClassificationMode: FirebaseVisionTypes.Statics['VisionFaceDetectorClassificationMode']; +export const VisionDocumentTextRecognizedBreakType: FirebaseVisionTypes.Statics['VisionDocumentTextRecognizedBreakType']; +export const VisionCloudLandmarkRecognizerModelType: FirebaseVisionTypes.Statics['VisionCloudLandmarkRecognizerModelType']; + +export default defaultExport; /** * Attach namespace to `firebase.` and `FirebaseApp.`. @@ -1223,15 +1224,13 @@ declare module '@react-native-firebase/app' { interface FirebaseApp { vision(): FirebaseVisionTypes.Module; } - } -} -namespace ReactNativeFirebase { - interface FirebaseJsonConfig { - ml_vision_face_model: boolean; - ml_vision_ocr_model: boolean; - ml_vision_barcode_model: boolean; - ml_vision_label_model: boolean; - ml_vision_image_label_model: boolean; + interface FirebaseJsonConfig { + ml_vision_face_model: boolean; + ml_vision_ocr_model: boolean; + ml_vision_barcode_model: boolean; + ml_vision_label_model: boolean; + ml_vision_image_label_model: boolean; + } } } diff --git a/packages/ml-vision/type-test.ts b/packages/ml-vision/type-test.ts index 0617960082..c1c480303a 100644 --- a/packages/ml-vision/type-test.ts +++ b/packages/ml-vision/type-test.ts @@ -27,7 +27,7 @@ console.log(firebase.vision(firebase.app()).app.name); // checks default export supports app arg console.log(firebase.vision(firebase.app('foo')).app.name); -console.log(firebase.vision.VisionBarcodeFormat.ALL_POINTS); +console.log(firebase.vision.VisionBarcodeFormat.ALL_FORMATS); console.log(vision.VisionBarcodeFormat); console.log(firebase.vision.VisionFaceContourType.ALL_POINTS); diff --git a/packages/perf/lib/index.d.ts b/packages/perf/lib/index.d.ts index 5af08886da..f1035b8815 100644 --- a/packages/perf/lib/index.d.ts +++ b/packages/perf/lib/index.d.ts @@ -109,7 +109,7 @@ export namespace FirebasePerformanceTypes { * @param attribute Name of the attribute. Max length is 40 chars. * @param value Value of the attribute. Max length is 100 chars. */ - putAttribute(attribute: string, value: string); + putAttribute(attribute: string, value: string): void; /** * Gets the value of the metric with the given name in the current trace. If the metric @@ -155,7 +155,7 @@ export namespace FirebasePerformanceTypes { * @param metricName Name of the metric to set. Must not have a leading or trailing whitespace, no leading underscore '_' character and have a max length of 32 characters. * @param value The value the metric should be set to. */ - putMetric(metricName: string, value: number); + putMetric(metricName: string, value: number): void; /** * Increments the named metric by the `incrementBy` value. @@ -169,7 +169,7 @@ export namespace FirebasePerformanceTypes { * @param metricName Name of the metric to increment. Must not have a leading or trailing whitespace, no leading underscore '_' character and have a max length of 32 characters. * @param incrementBy The value the metric should be incremented by. */ - incrementMetric(metricName: string, incrementBy: number); + incrementMetric(metricName: string, incrementBy: number): void; /** * Removes a metric by name if it exists. @@ -182,7 +182,7 @@ export namespace FirebasePerformanceTypes { * * @param metricName Name of the metric to remove. */ - removeMetric(metricName: string); + removeMetric(metricName: string): void; /** * Marks the start time of the trace. Does nothing if already started. @@ -256,7 +256,7 @@ export namespace FirebasePerformanceTypes { * @param attribute Name of the attribute. Max length is 40 chars. * @param value Value of the attribute. Max length is 100 chars. */ - putAttribute(attribute: string, value: string); + putAttribute(attribute: string, value: string): void; /** * Removes an already added attribute. Does nothing if attribute does not exist. @@ -269,7 +269,7 @@ export namespace FirebasePerformanceTypes { * * @param attribute Name of the attribute to be removed. */ - removeAttribute(attribute: string); + removeAttribute(attribute: string): void; /** * Sets the httpResponse code of the request. @@ -285,7 +285,7 @@ export namespace FirebasePerformanceTypes { * * @param code Value must be greater than 0. Set to null to remove. Invalid usage will be logged natively. */ - setHttpResponseCode(code: number | null); + setHttpResponseCode(code: number | null): void; /** * Sets the size of the request payload. @@ -299,7 +299,7 @@ export namespace FirebasePerformanceTypes { * * @param bytes Value must be greater than 0. Set to null to remove. Invalid usage will be logged natively. */ - setRequestPayloadSize(bytes: number | null); + setRequestPayloadSize(bytes: number | null): void; /** * Sets the size of the response payload. @@ -313,7 +313,7 @@ export namespace FirebasePerformanceTypes { * * @param bytes Value must be greater than 0. Set to null to remove. Invalid usage will be logged natively. */ - setResponsePayloadSize(bytes: number | null); + setResponsePayloadSize(bytes: number | null): void; /** * Content type of the response e.g. `text/html` or `application/json`. @@ -327,7 +327,7 @@ export namespace FirebasePerformanceTypes { * * @param contentType Valid string of MIME type. Set to null to remove. Invalid usage will be logged natively. */ - setResponseContentType(contentType: string | null); + setResponseContentType(contentType: string | null): void; /** * Marks the start time of the request. Does nothing if already started. @@ -443,21 +443,17 @@ export namespace FirebasePerformanceTypes { } } -declare module '@react-native-firebase/perf' { - // tslint:disable-next-line:no-duplicate-imports required otherwise doesn't work - import { ReactNativeFirebase } from '@react-native-firebase/app'; - import ReactNativeFirebaseModule = ReactNativeFirebase.Module; - import FirebaseModuleWithStatics = ReactNativeFirebase.FirebaseModuleWithStatics; +declare const defaultExport: ReactNativeFirebase.FirebaseModuleWithStatics< + FirebasePerformanceTypes.Module, + FirebasePerformanceTypes.Statics +>; - const firebaseNamedExport: {} & ReactNativeFirebaseModule; - export const firebase = firebaseNamedExport; +export const firebase: ReactNativeFirebase.Module & { + perf: typeof defaultExport; + app(name?: string): ReactNativeFirebase.FirebaseApp & { perf(): FirebasePerformanceTypes.Module }; +}; - const defaultExport: FirebaseModuleWithStatics< - FirebasePerformanceTypes.Module, - FirebasePerformanceTypes.Statics - >; - export default defaultExport; -} +export default defaultExport; /** * Attach namespace to `firebase.` and `FirebaseApp.`. @@ -474,33 +470,31 @@ declare module '@react-native-firebase/app' { interface FirebaseApp { perf(): FirebasePerformanceTypes.Module; } - } -} -namespace ReactNativeFirebase { - interface FirebaseJsonConfig { - /** - * Disable or enable auto collection of performance monitoring data collection. - * - * This is useful for opt-in-first data flows, for example when dealing with GDPR compliance. - * This can be overridden in JavaScript. - * - * #### Example - * - * ```json - * // /firebase.json - * { - * "react-native": { - * "perf_auto_collection_enabled": false - * } - * } - * ``` - * - * ```js - * // Re-enable performance monitoring data collection, e.g. once user has granted permission: - * await firebase.perf().setPerformanceCollectionEnabled(true); - * ``` - */ - perf_auto_collection_enabled: boolean; + interface FirebaseJsonConfig { + /** + * Disable or enable auto collection of performance monitoring data collection. + * + * This is useful for opt-in-first data flows, for example when dealing with GDPR compliance. + * This can be overridden in JavaScript. + * + * #### Example + * + * ```json + * // /firebase.json + * { + * "react-native": { + * "perf_auto_collection_enabled": false + * } + * } + * ``` + * + * ```js + * // Re-enable performance monitoring data collection, e.g. once user has granted permission: + * await firebase.perf().setPerformanceCollectionEnabled(true); + * ``` + */ + perf_auto_collection_enabled: boolean; + } } } diff --git a/packages/remote-config/lib/index.d.ts b/packages/remote-config/lib/index.d.ts index 8165d2e014..9d48256a4e 100644 --- a/packages/remote-config/lib/index.d.ts +++ b/packages/remote-config/lib/index.d.ts @@ -517,21 +517,19 @@ export namespace FirebaseRemoteConfigTypes { } } -declare module '@react-native-firebase/remote-config' { - // tslint:disable-next-line:no-duplicate-imports required otherwise doesn't work - import { ReactNativeFirebase } from '@react-native-firebase/app'; - import ReactNativeFirebaseModule = ReactNativeFirebase.Module; - import FirebaseModuleWithStatics = ReactNativeFirebase.FirebaseModuleWithStatics; +declare const defaultExport: ReactNativeFirebase.FirebaseModuleWithStatics< + FirebaseRemoteConfigTypes.Module, + FirebaseRemoteConfigTypes.Statics +>; - const firebaseNamedExport: {} & ReactNativeFirebaseModule; - export const firebase = firebaseNamedExport; +export const firebase: ReactNativeFirebase.Module & { + remoteConfig: typeof defaultExport; + app( + name?: string, + ): ReactNativeFirebase.FirebaseApp & { remoteConfig(): FirebaseRemoteConfigTypes.Module }; +}; - const defaultExport: FirebaseModuleWithStatics< - FirebaseRemoteConfigTypes.Module, - FirebaseRemoteConfigTypes.Statics - >; - export default defaultExport; -} +export default defaultExport; /** * Attach namespace to `firebase.` and `FirebaseApp.`. diff --git a/packages/storage/lib/index.d.ts b/packages/storage/lib/index.d.ts index 79a5ecc06a..d6ae110a41 100644 --- a/packages/storage/lib/index.d.ts +++ b/packages/storage/lib/index.d.ts @@ -1097,21 +1097,17 @@ export namespace FirebaseStorageTypes { } } -declare module '@react-native-firebase/storage' { - // tslint:disable-next-line:no-duplicate-imports required otherwise doesn't work - import { ReactNativeFirebase } from '@react-native-firebase/app'; - import ReactNativeFirebaseModule = ReactNativeFirebase.Module; - import FirebaseModuleWithStaticsAndApp = ReactNativeFirebase.FirebaseModuleWithStaticsAndApp; - - const firebaseNamedExport: {} & ReactNativeFirebaseModule; - export const firebase = firebaseNamedExport; - - const defaultExport: FirebaseModuleWithStaticsAndApp< - FirebaseStorageTypes.Module, - FirebaseStorageTypes.Statics - >; - export default defaultExport; -} +declare const defaultExport: ReactNativeFirebase.FirebaseModuleWithStaticsAndApp< + FirebaseStorageTypes.Module, + FirebaseStorageTypes.Statics +>; + +export const firebase: ReactNativeFirebase.Module & { + storage: typeof defaultExport; + app(name?: string): ReactNativeFirebase.FirebaseApp & { storage(): FirebaseStorageTypes.Module }; +}; + +export default defaultExport; /** * Attach namespace to `firebase.` and `FirebaseApp.`. diff --git a/scripts/_TEMPLATE_/lib/index.d.ts b/scripts/_TEMPLATE_/lib/index.d.ts index 4c65c20974..97d8e17aae 100644 --- a/scripts/_TEMPLATE_/lib/index.d.ts +++ b/scripts/_TEMPLATE_/lib/index.d.ts @@ -102,16 +102,17 @@ export namespace _Template_ { } } -declare module '@react-native-firebase/_template_' { - import ReactNativeFirebaseModule = ReactNativeFirebase.Module; - import FirebaseModuleWithStaticsAndApp = ReactNativeFirebase.FirebaseModuleWithStaticsAndApp; +declare const defaultExport: ReactNativeFirebase.FirebaseModuleWithStaticsAndApp< + _Template_.Module, + _Template_.Statics +>; - const firebaseNamedExport: {} & ReactNativeFirebaseModule; - export const firebase = firebaseNamedExport; +export const firebase: ReactNativeFirebase.Module & { + auth: typeof defaultExport; + app(name?: string): ReactNativeFirebase.FirebaseApp & { _template_(): _Template_.Module }; +}; - const module: FirebaseModuleWithStaticsAndApp<_Template_.Module, _Template_.Statics>; - export default module; -} +export default defaultExport; /** * Attach namespace to `firebase.` and `FirebaseApp.`. diff --git a/tsconfig.json b/tsconfig.json index 75cfd6e7cb..998e899c88 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -14,10 +14,10 @@ "noImplicitReturns": true, "noFallthroughCasesInSwitch": true, "moduleResolution": "node", - "skipLibCheck": true, + "skipLibCheck": false, "experimentalDecorators": true, "emitDecoratorMetadata": true, - "lib": ["es2015", "es2016", "esnext", "dom"] + "lib": ["es2015", "es2016", "esnext"] }, "exclude": ["node_modules", "**/*.spec.ts"] } diff --git a/website/package.json b/website/package.json index d28bc8d2c6..aaf2ffdc41 100644 --- a/website/package.json +++ b/website/package.json @@ -37,7 +37,7 @@ "tailwindcss": "^1.4.0", "tailwindcss-dark-mode": "^1.1.0", "traverse": "^0.6.6", - "typedoc": "0.15.0", + "typedoc": "~0.19.2", "typescript": "^3.7.5", "use-dark-mode": "^2.3.1" }, diff --git a/website/scripts/generate-typedoc.js b/website/scripts/generate-typedoc.js index b69d19810a..098c615ed5 100644 --- a/website/scripts/generate-typedoc.js +++ b/website/scripts/generate-typedoc.js @@ -17,10 +17,11 @@ const { readFileSync, unlinkSync } = require('fs'); const path = require('path'); -const { Application } = require('typedoc'); +const { Application, TSConfigReader } = require('typedoc'); const tempOutput = path.resolve(process.cwd(), 'typedoc.json'); const app = new Application(); +app.options.addReader(new TSConfigReader()); module.exports.generateTypedoc = function generateTypedoc() { console.log(path.resolve(__dirname, '../../tsconfig.json')); From a7cafc92f4250d2ccb16cb181a4029f14b76b8ca Mon Sep 17 00:00:00 2001 From: vannt1991 Date: Thu, 1 Oct 2020 02:57:20 +0700 Subject: [PATCH 03/21] fix(android, messaging): store notifications for initial/open attribution (#4317) Use a 100-notification limited ring buffer in prefs to store them --- .../firebase/messaging/JsonConvert.java | 129 ++++++++++++++++++ .../ReactNativeFirebaseMessagingModule.java | 6 +- .../ReactNativeFirebaseMessagingReceiver.java | 6 +- .../ReactNativeFirebaseMessagingStore.java | 11 ++ ...actNativeFirebaseMessagingStoreHelper.java | 23 ++++ ...ReactNativeFirebaseMessagingStoreImpl.java | 86 ++++++++++++ 6 files changed, 259 insertions(+), 2 deletions(-) create mode 100644 packages/messaging/android/src/main/java/io/invertase/firebase/messaging/JsonConvert.java create mode 100644 packages/messaging/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingStore.java create mode 100644 packages/messaging/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingStoreHelper.java create mode 100644 packages/messaging/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingStoreImpl.java diff --git a/packages/messaging/android/src/main/java/io/invertase/firebase/messaging/JsonConvert.java b/packages/messaging/android/src/main/java/io/invertase/firebase/messaging/JsonConvert.java new file mode 100644 index 0000000000..8bef978a35 --- /dev/null +++ b/packages/messaging/android/src/main/java/io/invertase/firebase/messaging/JsonConvert.java @@ -0,0 +1,129 @@ +package io.invertase.firebase.messaging; + +import com.facebook.react.bridge.Arguments; +import com.facebook.react.bridge.ReadableArray; +import com.facebook.react.bridge.ReadableMap; +import com.facebook.react.bridge.ReadableMapKeySetIterator; +import com.facebook.react.bridge.ReadableType; +import com.facebook.react.bridge.WritableArray; +import com.facebook.react.bridge.WritableMap; + +import org.json.JSONArray; +import org.json.JSONException; +import org.json.JSONObject; + +import java.util.Iterator; + +public abstract class JsonConvert { + public static JSONObject reactToJSON(ReadableMap readableMap) throws JSONException { + JSONObject jsonObject = new JSONObject(); + ReadableMapKeySetIterator iterator = readableMap.keySetIterator(); + while(iterator.hasNextKey()){ + String key = iterator.nextKey(); + ReadableType valueType = readableMap.getType(key); + switch (valueType){ + case Null: + jsonObject.put(key,JSONObject.NULL); + break; + case Boolean: + jsonObject.put(key, readableMap.getBoolean(key)); + break; + case Number: + try { + jsonObject.put(key, readableMap.getInt(key)); + } catch(Exception e) { + jsonObject.put(key, readableMap.getDouble(key)); + } + break; + case String: + jsonObject.put(key, readableMap.getString(key)); + break; + case Map: + jsonObject.put(key, reactToJSON(readableMap.getMap(key))); + break; + case Array: + jsonObject.put(key, reactToJSON(readableMap.getArray(key))); + break; + } + } + + return jsonObject; + } + + public static JSONArray reactToJSON(ReadableArray readableArray) throws JSONException { + JSONArray jsonArray = new JSONArray(); + for(int i=0; i < readableArray.size(); i++) { + ReadableType valueType = readableArray.getType(i); + switch (valueType){ + case Null: + jsonArray.put(JSONObject.NULL); + break; + case Boolean: + jsonArray.put(readableArray.getBoolean(i)); + break; + case Number: + try { + jsonArray.put(readableArray.getInt(i)); + } catch(Exception e) { + jsonArray.put(readableArray.getDouble(i)); + } + break; + case String: + jsonArray.put(readableArray.getString(i)); + break; + case Map: + jsonArray.put(reactToJSON(readableArray.getMap(i))); + break; + case Array: + jsonArray.put(reactToJSON(readableArray.getArray(i))); + break; + } + } + return jsonArray; + } + + public static WritableMap jsonToReact(JSONObject jsonObject) throws JSONException { + WritableMap writableMap = Arguments.createMap(); + Iterator iterator = jsonObject.keys(); + while(iterator.hasNext()) { + String key = (String) iterator.next(); + Object value = jsonObject.get(key); + if (value instanceof Float || value instanceof Double) { + writableMap.putDouble(key, jsonObject.getDouble(key)); + } else if (value instanceof Number) { + writableMap.putInt(key, jsonObject.getInt(key)); + } else if (value instanceof String) { + writableMap.putString(key, jsonObject.getString(key)); + } else if (value instanceof JSONObject) { + writableMap.putMap(key,jsonToReact(jsonObject.getJSONObject(key))); + } else if (value instanceof JSONArray){ + writableMap.putArray(key, jsonToReact(jsonObject.getJSONArray(key))); + } else if (value == JSONObject.NULL){ + writableMap.putNull(key); + } + } + + return writableMap; + } + + public static WritableArray jsonToReact(JSONArray jsonArray) throws JSONException { + WritableArray writableArray = Arguments.createArray(); + for(int i=0; i < jsonArray.length(); i++) { + Object value = jsonArray.get(i); + if (value instanceof Float || value instanceof Double) { + writableArray.pushDouble(jsonArray.getDouble(i)); + } else if (value instanceof Number) { + writableArray.pushInt(jsonArray.getInt(i)); + } else if (value instanceof String) { + writableArray.pushString(jsonArray.getString(i)); + } else if (value instanceof JSONObject) { + writableArray.pushMap(jsonToReact(jsonArray.getJSONObject(i))); + } else if (value instanceof JSONArray){ + writableArray.pushArray(jsonToReact(jsonArray.getJSONArray(i))); + } else if (value == JSONObject.NULL){ + writableArray.pushNull(); + } + } + return writableArray; + } +} diff --git a/packages/messaging/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingModule.java b/packages/messaging/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingModule.java index 64b86ceb26..efe88d29cc 100644 --- a/packages/messaging/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingModule.java +++ b/packages/messaging/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingModule.java @@ -69,7 +69,11 @@ public void getInitialNotification(Promise promise) { // only handle non-consumed initial notifications if (messageId != null && initialNotificationMap.get(messageId) == null) { RemoteMessage remoteMessage = ReactNativeFirebaseMessagingReceiver.notifications.get(messageId); - + if (remoteMessage == null) { + ReactNativeFirebaseMessagingStore messagingStore = ReactNativeFirebaseMessagingStoreHelper.getInstance().getMessagingStore(); + remoteMessage = messagingStore.getFirebaseMessage(messageId); + messagingStore.clearFirebaseMessage(messageId); + } if (remoteMessage != null) { promise.resolve(ReactNativeFirebaseMessagingSerializer.remoteMessageToWritableMap(remoteMessage)); initialNotificationMap.put(messageId, true); diff --git a/packages/messaging/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingReceiver.java b/packages/messaging/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingReceiver.java index c014b26326..9e391ce0bf 100644 --- a/packages/messaging/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingReceiver.java +++ b/packages/messaging/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingReceiver.java @@ -11,6 +11,7 @@ import java.util.HashMap; +import io.invertase.firebase.app.ReactNativeFirebaseApp; import io.invertase.firebase.common.ReactNativeFirebaseEventEmitter; import io.invertase.firebase.common.SharedUtils; @@ -22,13 +23,16 @@ public class ReactNativeFirebaseMessagingReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { Log.d(TAG, "broadcast received for message"); - + if (ReactNativeFirebaseApp.getApplicationContext() == null) { + ReactNativeFirebaseApp.setApplicationContext(context.getApplicationContext()); + } RemoteMessage remoteMessage = new RemoteMessage(intent.getExtras()); ReactNativeFirebaseEventEmitter emitter = ReactNativeFirebaseEventEmitter.getSharedInstance(); // Add a RemoteMessage if the message contains a notification payload if (remoteMessage.getNotification() != null) { notifications.put(remoteMessage.getMessageId(), remoteMessage); + ReactNativeFirebaseMessagingStoreHelper.getInstance().getMessagingStore().storeFirebaseMessage(remoteMessage); } // |-> --------------------- diff --git a/packages/messaging/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingStore.java b/packages/messaging/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingStore.java new file mode 100644 index 0000000000..c7effba925 --- /dev/null +++ b/packages/messaging/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingStore.java @@ -0,0 +1,11 @@ +package io.invertase.firebase.messaging; + +import com.google.firebase.messaging.RemoteMessage; + +public interface ReactNativeFirebaseMessagingStore { + void storeFirebaseMessage(RemoteMessage remoteMessage); + + RemoteMessage getFirebaseMessage(String remoteMessageId); + + void clearFirebaseMessage(String remoteMessageId); +} diff --git a/packages/messaging/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingStoreHelper.java b/packages/messaging/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingStoreHelper.java new file mode 100644 index 0000000000..2a15d13a92 --- /dev/null +++ b/packages/messaging/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingStoreHelper.java @@ -0,0 +1,23 @@ +package io.invertase.firebase.messaging; + +public class ReactNativeFirebaseMessagingStoreHelper { + + private ReactNativeFirebaseMessagingStore messagingStore; + + private ReactNativeFirebaseMessagingStoreHelper() { + messagingStore = new ReactNativeFirebaseMessagingStoreImpl(); + } + + private static ReactNativeFirebaseMessagingStoreHelper _instance; + + public static ReactNativeFirebaseMessagingStoreHelper getInstance() { + if (_instance == null) { + _instance = new ReactNativeFirebaseMessagingStoreHelper(); + } + return _instance; + } + + public ReactNativeFirebaseMessagingStore getMessagingStore() { + return messagingStore; + } +} diff --git a/packages/messaging/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingStoreImpl.java b/packages/messaging/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingStoreImpl.java new file mode 100644 index 0000000000..94c2b16e12 --- /dev/null +++ b/packages/messaging/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingStoreImpl.java @@ -0,0 +1,86 @@ +package io.invertase.firebase.messaging; + +import com.facebook.react.bridge.WritableMap; +import com.google.firebase.messaging.RemoteMessage; + +import org.json.JSONException; +import org.json.JSONObject; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import io.invertase.firebase.common.UniversalFirebasePreferences; + +import static io.invertase.firebase.messaging.JsonConvert.jsonToReact; +import static io.invertase.firebase.messaging.JsonConvert.reactToJSON; +import static io.invertase.firebase.messaging.ReactNativeFirebaseMessagingSerializer.remoteMessageFromReadableMap; +import static io.invertase.firebase.messaging.ReactNativeFirebaseMessagingSerializer.remoteMessageToWritableMap; + +public class ReactNativeFirebaseMessagingStoreImpl implements ReactNativeFirebaseMessagingStore { + + private static final String S_KEY_ALL_NOTIFICATION_IDS = "all_notification_ids"; + private static final int MAX_SIZE_NOTIFICATIONS = 100; + private final String DELIMITER = ","; + + @Override + public void storeFirebaseMessage(RemoteMessage remoteMessage) { + try { + String remoteMessageString = reactToJSON(remoteMessageToWritableMap(remoteMessage)).toString(); +// Log.d("storeFirebaseMessage", remoteMessageString); + UniversalFirebasePreferences preferences = UniversalFirebasePreferences.getSharedInstance(); + preferences.setStringValue(remoteMessage.getMessageId(), remoteMessageString); + // save new notification id + String notifications = preferences.getStringValue(S_KEY_ALL_NOTIFICATION_IDS, ""); + notifications += remoteMessage.getMessageId() + DELIMITER; // append to last + + // check and remove old notifications message + List allNotificationList = convertToArray(notifications); + if (allNotificationList.size() > MAX_SIZE_NOTIFICATIONS) { + String firstRemoteMessageId = allNotificationList.get(0); + preferences.remove(firstRemoteMessageId); + notifications = removeRemoteMessage(firstRemoteMessageId, notifications); + } + preferences.setStringValue(S_KEY_ALL_NOTIFICATION_IDS, notifications); + } catch (JSONException e) { + e.printStackTrace(); + } + } + + @Override + public RemoteMessage getFirebaseMessage(String remoteMessageId) { + String remoteMessageString = UniversalFirebasePreferences.getSharedInstance().getStringValue(remoteMessageId, null); + if (remoteMessageString != null) { +// Log.d("getFirebaseMessage", remoteMessageString); + try { + WritableMap readableMap = jsonToReact(new JSONObject(remoteMessageString)); + readableMap.putString("to", remoteMessageId);//fake to + return remoteMessageFromReadableMap(readableMap); + } catch (JSONException e) { + e.printStackTrace(); + } + } + return null; + } + + @Override + public void clearFirebaseMessage(String remoteMessageId) { + UniversalFirebasePreferences preferences = UniversalFirebasePreferences.getSharedInstance(); + preferences.remove(remoteMessageId); + // check and remove old notifications message + String notifications = preferences.getStringValue(S_KEY_ALL_NOTIFICATION_IDS, ""); + if (!notifications.isEmpty()) { + notifications = removeRemoteMessage(remoteMessageId, notifications); // remove from list + preferences.setStringValue(S_KEY_ALL_NOTIFICATION_IDS, notifications); + } + } + + private String removeRemoteMessage(String remoteMessageId, String notifications) { + return notifications.replace(remoteMessageId + DELIMITER, ""); + } + + private List convertToArray(String string) { + return new ArrayList<>(Arrays.asList(string.split(DELIMITER))); + } + +} From b6962a9826dee5266b85ca89ec3a4e18aee815fb Mon Sep 17 00:00:00 2001 From: "@Salakar" Date: Wed, 30 Sep 2020 20:13:06 +0000 Subject: [PATCH 04/21] chore(release): release packages - @react-native-firebase/admob@7.6.7 - @react-native-firebase/analytics@7.6.6 - @react-native-firebase/app@8.4.5 - @react-native-firebase/auth@9.2.6 - @react-native-firebase/crashlytics@8.4.8 - @react-native-firebase/database@7.5.10 - @react-native-firebase/dynamic-links@7.5.8 - @react-native-firebase/firestore@7.8.5 - @react-native-firebase/functions@7.4.7 - @react-native-firebase/iid@7.4.7 - @react-native-firebase/in-app-messaging@7.5.5 - @react-native-firebase/messaging@7.8.10 - @react-native-firebase/ml-natural-language@7.4.7 - @react-native-firebase/ml-vision@7.4.7 - @react-native-firebase/perf@7.4.7 - @react-native-firebase/remote-config@9.0.9 - @react-native-firebase/storage@7.4.7 - react-native-firebase-tests@8.4.15 --- packages/admob/CHANGELOG.md | 6 ++++ packages/admob/package.json | 2 +- packages/analytics/CHANGELOG.md | 6 ++++ packages/analytics/package.json | 2 +- packages/app/CHANGELOG.md | 6 ++++ packages/app/package.json | 2 +- packages/auth/CHANGELOG.md | 6 ++++ packages/auth/package.json | 2 +- packages/crashlytics/CHANGELOG.md | 6 ++++ packages/crashlytics/package.json | 2 +- packages/database/CHANGELOG.md | 6 ++++ packages/database/package.json | 2 +- packages/dynamic-links/CHANGELOG.md | 6 ++++ packages/dynamic-links/package.json | 2 +- packages/firestore/CHANGELOG.md | 6 ++++ packages/firestore/package.json | 2 +- packages/functions/CHANGELOG.md | 6 ++++ packages/functions/package.json | 2 +- packages/iid/CHANGELOG.md | 6 ++++ packages/iid/package.json | 2 +- packages/in-app-messaging/CHANGELOG.md | 6 ++++ packages/in-app-messaging/package.json | 2 +- packages/messaging/CHANGELOG.md | 6 ++++ packages/messaging/package.json | 2 +- packages/ml-natural-language/CHANGELOG.md | 6 ++++ packages/ml-natural-language/package.json | 2 +- packages/ml-vision/CHANGELOG.md | 6 ++++ packages/ml-vision/package.json | 2 +- packages/perf/CHANGELOG.md | 6 ++++ packages/perf/package.json | 2 +- packages/remote-config/CHANGELOG.md | 6 ++++ packages/remote-config/package.json | 2 +- packages/storage/CHANGELOG.md | 6 ++++ packages/storage/package.json | 2 +- tests/CHANGELOG.md | 8 +++++ tests/package.json | 36 +++++++++++------------ 36 files changed, 145 insertions(+), 35 deletions(-) diff --git a/packages/admob/CHANGELOG.md b/packages/admob/CHANGELOG.md index bba2eaa057..30a00cf200 100644 --- a/packages/admob/CHANGELOG.md +++ b/packages/admob/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.6.7](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/admob@7.6.6...@react-native-firebase/admob@7.6.7) (2020-09-30) + +### Bug Fixes + +- **types:** enable TypeScript libCheck & resolve type conflicts ([#4306](https://github.com/invertase/react-native-firebase/issues/4306)) ([aa8ee8b](https://github.com/invertase/react-native-firebase/commit/aa8ee8b7e83443d2c1664993800e15faf4b59b0e)) + ## [7.6.6](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/admob@7.6.5...@react-native-firebase/admob@7.6.6) (2020-09-30) **Note:** Version bump only for package @react-native-firebase/admob diff --git a/packages/admob/package.json b/packages/admob/package.json index ee0e9430f8..2710366caf 100644 --- a/packages/admob/package.json +++ b/packages/admob/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-firebase/admob", - "version": "7.6.6", + "version": "7.6.7", "author": "Invertase (http://invertase.io)", "description": "React Native Firebase - Google AdMob is an easy way to monetize mobile apps with targeted, in-app advertising.", "main": "lib/index.js", diff --git a/packages/analytics/CHANGELOG.md b/packages/analytics/CHANGELOG.md index c6972af890..7690a358f5 100644 --- a/packages/analytics/CHANGELOG.md +++ b/packages/analytics/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.6.6](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/analytics@7.6.5...@react-native-firebase/analytics@7.6.6) (2020-09-30) + +### Bug Fixes + +- **types:** enable TypeScript libCheck & resolve type conflicts ([#4306](https://github.com/invertase/react-native-firebase/issues/4306)) ([aa8ee8b](https://github.com/invertase/react-native-firebase/commit/aa8ee8b7e83443d2c1664993800e15faf4b59b0e)) + ## [7.6.5](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/analytics@7.6.4...@react-native-firebase/analytics@7.6.5) (2020-09-30) **Note:** Version bump only for package @react-native-firebase/analytics diff --git a/packages/analytics/package.json b/packages/analytics/package.json index 9a54db4346..541e097e3a 100644 --- a/packages/analytics/package.json +++ b/packages/analytics/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-firebase/analytics", - "version": "7.6.5", + "version": "7.6.6", "author": "Invertase (http://invertase.io)", "description": "React Native Firebase - The analytics module provides out of the box support with Google Analytics for Firebase. Integration with the Android & iOS allows for in-depth analytical insight reporting, such as device information, location, user actions and more.", "main": "lib/index.js", diff --git a/packages/app/CHANGELOG.md b/packages/app/CHANGELOG.md index c9d924e6ec..1f435f590d 100644 --- a/packages/app/CHANGELOG.md +++ b/packages/app/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [8.4.5](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/app@8.4.4...@react-native-firebase/app@8.4.5) (2020-09-30) + +### Bug Fixes + +- **types:** enable TypeScript libCheck & resolve type conflicts ([#4306](https://github.com/invertase/react-native-firebase/issues/4306)) ([aa8ee8b](https://github.com/invertase/react-native-firebase/commit/aa8ee8b7e83443d2c1664993800e15faf4b59b0e)) + ## [8.4.4](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/app@8.4.3...@react-native-firebase/app@8.4.4) (2020-09-30) ### Bug Fixes diff --git a/packages/app/package.json b/packages/app/package.json index afcd3ea5cb..c4f268f8eb 100644 --- a/packages/app/package.json +++ b/packages/app/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-firebase/app", - "version": "8.4.4", + "version": "8.4.5", "author": "Invertase (http://invertase.io)", "description": "A well tested, feature rich Firebase implementation for React Native, supporting iOS & Android. Individual module support for Admob, Analytics, Auth, Crash Reporting, Cloud Firestore, Database, Dynamic Links, Functions, Messaging (FCM), Remote Config, Storage and more.", "main": "lib/index.js", diff --git a/packages/auth/CHANGELOG.md b/packages/auth/CHANGELOG.md index e49792e80b..959dea9c3e 100644 --- a/packages/auth/CHANGELOG.md +++ b/packages/auth/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [9.2.6](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/auth@9.2.5...@react-native-firebase/auth@9.2.6) (2020-09-30) + +### Bug Fixes + +- **types:** enable TypeScript libCheck & resolve type conflicts ([#4306](https://github.com/invertase/react-native-firebase/issues/4306)) ([aa8ee8b](https://github.com/invertase/react-native-firebase/commit/aa8ee8b7e83443d2c1664993800e15faf4b59b0e)) + ## [9.2.5](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/auth@9.2.4...@react-native-firebase/auth@9.2.5) (2020-09-30) **Note:** Version bump only for package @react-native-firebase/auth diff --git a/packages/auth/package.json b/packages/auth/package.json index 568aa3ac6f..f496eac105 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-firebase/auth", - "version": "9.2.5", + "version": "9.2.6", "author": "Invertase (http://invertase.io)", "description": "React Native Firebase - The authentication module provides an easy-to-use API to integrate an authentication workflow into new and existing applications. React Native Firebase provides access to all Firebase authentication methods and identity providers.", "main": "lib/index.js", diff --git a/packages/crashlytics/CHANGELOG.md b/packages/crashlytics/CHANGELOG.md index be22bd48b2..08c7f75af3 100644 --- a/packages/crashlytics/CHANGELOG.md +++ b/packages/crashlytics/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [8.4.8](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/crashlytics@8.4.7...@react-native-firebase/crashlytics@8.4.8) (2020-09-30) + +### Bug Fixes + +- **types:** enable TypeScript libCheck & resolve type conflicts ([#4306](https://github.com/invertase/react-native-firebase/issues/4306)) ([aa8ee8b](https://github.com/invertase/react-native-firebase/commit/aa8ee8b7e83443d2c1664993800e15faf4b59b0e)) + ## [8.4.7](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/crashlytics@8.4.6...@react-native-firebase/crashlytics@8.4.7) (2020-09-30) **Note:** Version bump only for package @react-native-firebase/crashlytics diff --git a/packages/crashlytics/package.json b/packages/crashlytics/package.json index 249bf44738..8b583793d4 100644 --- a/packages/crashlytics/package.json +++ b/packages/crashlytics/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-firebase/crashlytics", - "version": "8.4.7", + "version": "8.4.8", "author": "Invertase (http://invertase.io)", "description": "React Native Firebase - Firebase Crashlytics is a lightweight, realtime crash reporter that helps you track, prioritize, and fix stability issues that erode your app quality. React Native Firebase provides automatic crash reporting for both native and JavaScript errors, including unhandled promise rejections.", "main": "lib/index.js", diff --git a/packages/database/CHANGELOG.md b/packages/database/CHANGELOG.md index e6954ef6cb..149e58bdcb 100644 --- a/packages/database/CHANGELOG.md +++ b/packages/database/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.5.10](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/database@7.5.9...@react-native-firebase/database@7.5.10) (2020-09-30) + +### Bug Fixes + +- **types:** enable TypeScript libCheck & resolve type conflicts ([#4306](https://github.com/invertase/react-native-firebase/issues/4306)) ([aa8ee8b](https://github.com/invertase/react-native-firebase/commit/aa8ee8b7e83443d2c1664993800e15faf4b59b0e)) + ## [7.5.9](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/database@7.5.8...@react-native-firebase/database@7.5.9) (2020-09-30) **Note:** Version bump only for package @react-native-firebase/database diff --git a/packages/database/package.json b/packages/database/package.json index dc0175cc5b..517be6a75a 100644 --- a/packages/database/package.json +++ b/packages/database/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-firebase/database", - "version": "7.5.9", + "version": "7.5.10", "author": "Invertase (http://invertase.io)", "description": "React Native Firebase - The Firebase Realtime Database is a cloud-hosted database. Data is stored as JSON and synchronized in realtime to every connected client. React Native Firebase provides native integration with the Android & iOS Firebase SDKs, supporting both realtime data sync and offline capabilities.", "main": "lib/index.js", diff --git a/packages/dynamic-links/CHANGELOG.md b/packages/dynamic-links/CHANGELOG.md index 1770614161..250002d796 100644 --- a/packages/dynamic-links/CHANGELOG.md +++ b/packages/dynamic-links/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.5.8](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/dynamic-links@7.5.7...@react-native-firebase/dynamic-links@7.5.8) (2020-09-30) + +### Bug Fixes + +- **types:** enable TypeScript libCheck & resolve type conflicts ([#4306](https://github.com/invertase/react-native-firebase/issues/4306)) ([aa8ee8b](https://github.com/invertase/react-native-firebase/commit/aa8ee8b7e83443d2c1664993800e15faf4b59b0e)) + ## [7.5.7](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/dynamic-links@7.5.6...@react-native-firebase/dynamic-links@7.5.7) (2020-09-30) **Note:** Version bump only for package @react-native-firebase/dynamic-links diff --git a/packages/dynamic-links/package.json b/packages/dynamic-links/package.json index 5c98e9efb4..fee30ea776 100644 --- a/packages/dynamic-links/package.json +++ b/packages/dynamic-links/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-firebase/dynamic-links", - "version": "7.5.7", + "version": "7.5.8", "author": "Invertase (http://invertase.io)", "description": "React Native Firebase - Dynamic Links", "main": "lib/index.js", diff --git a/packages/firestore/CHANGELOG.md b/packages/firestore/CHANGELOG.md index 3d1def0507..64fc3d917c 100644 --- a/packages/firestore/CHANGELOG.md +++ b/packages/firestore/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.8.5](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/firestore@7.8.4...@react-native-firebase/firestore@7.8.5) (2020-09-30) + +### Bug Fixes + +- **types:** enable TypeScript libCheck & resolve type conflicts ([#4306](https://github.com/invertase/react-native-firebase/issues/4306)) ([aa8ee8b](https://github.com/invertase/react-native-firebase/commit/aa8ee8b7e83443d2c1664993800e15faf4b59b0e)) + ## [7.8.4](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/firestore@7.8.3...@react-native-firebase/firestore@7.8.4) (2020-09-30) **Note:** Version bump only for package @react-native-firebase/firestore diff --git a/packages/firestore/package.json b/packages/firestore/package.json index dde2fbb1e4..f8b61d6051 100644 --- a/packages/firestore/package.json +++ b/packages/firestore/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-firebase/firestore", - "version": "7.8.4", + "version": "7.8.5", "author": "Invertase (http://invertase.io)", "description": "React Native Firebase - Cloud Firestore is a NoSQL cloud database to store and sync data between your React Native application and Firebase's database. The API matches the Firebase Web SDK whilst taking advantage of the native SDKs performance and offline capabilities.", "main": "lib/index.js", diff --git a/packages/functions/CHANGELOG.md b/packages/functions/CHANGELOG.md index 8764c89ec7..0741ea705e 100644 --- a/packages/functions/CHANGELOG.md +++ b/packages/functions/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.4.7](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/functions@7.4.6...@react-native-firebase/functions@7.4.7) (2020-09-30) + +### Bug Fixes + +- **types:** enable TypeScript libCheck & resolve type conflicts ([#4306](https://github.com/invertase/react-native-firebase/issues/4306)) ([aa8ee8b](https://github.com/invertase/react-native-firebase/commit/aa8ee8b7e83443d2c1664993800e15faf4b59b0e)) + ## [7.4.6](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/functions@7.4.5...@react-native-firebase/functions@7.4.6) (2020-09-30) **Note:** Version bump only for package @react-native-firebase/functions diff --git a/packages/functions/package.json b/packages/functions/package.json index 7491483c2f..babbd0fb60 100644 --- a/packages/functions/package.json +++ b/packages/functions/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-firebase/functions", - "version": "7.4.6", + "version": "7.4.7", "author": "Invertase (http://invertase.io)", "description": "React Native Firebase - Cloud Functions for Firebase lets you automatically run backend code in response to events triggered by Firebase features and HTTPS requests. React Native Firebase supports integration with production and locally emulated Cloud Functions with a simple API interface.\n\n", "main": "lib/index.js", diff --git a/packages/iid/CHANGELOG.md b/packages/iid/CHANGELOG.md index 2500a22003..de8b5d64b7 100644 --- a/packages/iid/CHANGELOG.md +++ b/packages/iid/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.4.7](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/iid@7.4.6...@react-native-firebase/iid@7.4.7) (2020-09-30) + +### Bug Fixes + +- **types:** enable TypeScript libCheck & resolve type conflicts ([#4306](https://github.com/invertase/react-native-firebase/issues/4306)) ([aa8ee8b](https://github.com/invertase/react-native-firebase/commit/aa8ee8b7e83443d2c1664993800e15faf4b59b0e)) + ## [7.4.6](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/iid@7.4.5...@react-native-firebase/iid@7.4.6) (2020-09-30) **Note:** Version bump only for package @react-native-firebase/iid diff --git a/packages/iid/package.json b/packages/iid/package.json index ccc3d77829..33f9bce84f 100644 --- a/packages/iid/package.json +++ b/packages/iid/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-firebase/iid", - "version": "7.4.6", + "version": "7.4.7", "author": "Invertase (http://invertase.io)", "description": "React Native Firebase - Firebase Instance ID provides a unique identifier for each instance of your app and a mechanism to authenticate and authorize actions for it (for example: sending FCM messages).", "main": "lib/index.js", diff --git a/packages/in-app-messaging/CHANGELOG.md b/packages/in-app-messaging/CHANGELOG.md index 0a5be63eb3..faff01f994 100644 --- a/packages/in-app-messaging/CHANGELOG.md +++ b/packages/in-app-messaging/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.5.5](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/in-app-messaging@7.5.4...@react-native-firebase/in-app-messaging@7.5.5) (2020-09-30) + +### Bug Fixes + +- **types:** enable TypeScript libCheck & resolve type conflicts ([#4306](https://github.com/invertase/react-native-firebase/issues/4306)) ([aa8ee8b](https://github.com/invertase/react-native-firebase/commit/aa8ee8b7e83443d2c1664993800e15faf4b59b0e)) + ## [7.5.4](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/in-app-messaging@7.5.3...@react-native-firebase/in-app-messaging@7.5.4) (2020-09-30) **Note:** Version bump only for package @react-native-firebase/in-app-messaging diff --git a/packages/in-app-messaging/package.json b/packages/in-app-messaging/package.json index a26438960d..8aa51d22ad 100644 --- a/packages/in-app-messaging/package.json +++ b/packages/in-app-messaging/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-firebase/in-app-messaging", - "version": "7.5.4", + "version": "7.5.5", "author": "Invertase (http://invertase.io)", "description": "React Native Firebase - Firebase In-App Messaging helps you engage your app's active users by sending them targeted, contextual messages that encourage them to use key app features. React Native Firebase provides support for both native Android & iOS integration with a simple JavaScript API.", "main": "lib/index.js", diff --git a/packages/messaging/CHANGELOG.md b/packages/messaging/CHANGELOG.md index 45a07086df..71581c53c6 100644 --- a/packages/messaging/CHANGELOG.md +++ b/packages/messaging/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.8.10](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/messaging@7.8.9...@react-native-firebase/messaging@7.8.10) (2020-09-30) + +### Bug Fixes + +- **types:** enable TypeScript libCheck & resolve type conflicts ([#4306](https://github.com/invertase/react-native-firebase/issues/4306)) ([aa8ee8b](https://github.com/invertase/react-native-firebase/commit/aa8ee8b7e83443d2c1664993800e15faf4b59b0e)) + ## [7.8.9](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/messaging@7.8.8...@react-native-firebase/messaging@7.8.9) (2020-09-30) **Note:** Version bump only for package @react-native-firebase/messaging diff --git a/packages/messaging/package.json b/packages/messaging/package.json index e2231ed7dc..d9ed9a8cee 100644 --- a/packages/messaging/package.json +++ b/packages/messaging/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-firebase/messaging", - "version": "7.8.9", + "version": "7.8.10", "author": "Invertase (http://invertase.io)", "description": "React Native Firebase - React Native Firebase provides native integration of Firebase Cloud Messaging (FCM) for both Android & iOS. FCM is a cost free service, allowing for server-device and device-device communication. The React Native Firebase Messaging module provides a simple JavaScript API to interact with FCM.", "main": "lib/index.js", diff --git a/packages/ml-natural-language/CHANGELOG.md b/packages/ml-natural-language/CHANGELOG.md index cab5e198bf..a07b8c4782 100644 --- a/packages/ml-natural-language/CHANGELOG.md +++ b/packages/ml-natural-language/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.4.7](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/ml-natural-language@7.4.6...@react-native-firebase/ml-natural-language@7.4.7) (2020-09-30) + +### Bug Fixes + +- **types:** enable TypeScript libCheck & resolve type conflicts ([#4306](https://github.com/invertase/react-native-firebase/issues/4306)) ([aa8ee8b](https://github.com/invertase/react-native-firebase/commit/aa8ee8b7e83443d2c1664993800e15faf4b59b0e)) + ## [7.4.6](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/ml-natural-language@7.4.5...@react-native-firebase/ml-natural-language@7.4.6) (2020-09-30) **Note:** Version bump only for package @react-native-firebase/ml-natural-language diff --git a/packages/ml-natural-language/package.json b/packages/ml-natural-language/package.json index e2fc89cf7e..a7d17008dd 100644 --- a/packages/ml-natural-language/package.json +++ b/packages/ml-natural-language/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-firebase/ml-natural-language", - "version": "7.4.6", + "version": "7.4.7", "author": "Invertase (http://invertase.io)", "description": "React Native Firebase - Firebase ML Kit brings the power of machine learning to your React Native application, supporting both Android & iOS.", "main": "lib/index.js", diff --git a/packages/ml-vision/CHANGELOG.md b/packages/ml-vision/CHANGELOG.md index f29293d3ea..71ccf12cd0 100644 --- a/packages/ml-vision/CHANGELOG.md +++ b/packages/ml-vision/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.4.7](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/ml-vision@7.4.6...@react-native-firebase/ml-vision@7.4.7) (2020-09-30) + +### Bug Fixes + +- **types:** enable TypeScript libCheck & resolve type conflicts ([#4306](https://github.com/invertase/react-native-firebase/issues/4306)) ([aa8ee8b](https://github.com/invertase/react-native-firebase/commit/aa8ee8b7e83443d2c1664993800e15faf4b59b0e)) + ## [7.4.6](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/ml-vision@7.4.5...@react-native-firebase/ml-vision@7.4.6) (2020-09-30) **Note:** Version bump only for package @react-native-firebase/ml-vision diff --git a/packages/ml-vision/package.json b/packages/ml-vision/package.json index 9121b25874..fb3f66b932 100644 --- a/packages/ml-vision/package.json +++ b/packages/ml-vision/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-firebase/ml-vision", - "version": "7.4.6", + "version": "7.4.7", "author": "Invertase (http://invertase.io)", "description": "React Native Firebase - Firebase ML Kit brings the power of machine learning vision to your React Native application, supporting both Android & iOS.", "main": "lib/index.js", diff --git a/packages/perf/CHANGELOG.md b/packages/perf/CHANGELOG.md index 22de18303f..1ba5449bc7 100644 --- a/packages/perf/CHANGELOG.md +++ b/packages/perf/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.4.7](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/perf@7.4.6...@react-native-firebase/perf@7.4.7) (2020-09-30) + +### Bug Fixes + +- **types:** enable TypeScript libCheck & resolve type conflicts ([#4306](https://github.com/invertase/react-native-firebase/issues/4306)) ([aa8ee8b](https://github.com/invertase/react-native-firebase/commit/aa8ee8b7e83443d2c1664993800e15faf4b59b0e)) + ## [7.4.6](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/perf@7.4.5...@react-native-firebase/perf@7.4.6) (2020-09-30) **Note:** Version bump only for package @react-native-firebase/perf diff --git a/packages/perf/package.json b/packages/perf/package.json index 1e0f0e3c4e..43e9db474c 100644 --- a/packages/perf/package.json +++ b/packages/perf/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-firebase/perf", - "version": "7.4.6", + "version": "7.4.7", "author": "Invertase (http://invertase.io)", "description": "React Native Firebase - React Native Firebase provides native integration with Performance Monitoring to gain insight into key performance characteristics within your React Native application.", "main": "lib/index.js", diff --git a/packages/remote-config/CHANGELOG.md b/packages/remote-config/CHANGELOG.md index e3612994fe..32aee08c6d 100644 --- a/packages/remote-config/CHANGELOG.md +++ b/packages/remote-config/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [9.0.9](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/remote-config@9.0.8...@react-native-firebase/remote-config@9.0.9) (2020-09-30) + +### Bug Fixes + +- **types:** enable TypeScript libCheck & resolve type conflicts ([#4306](https://github.com/invertase/react-native-firebase/issues/4306)) ([aa8ee8b](https://github.com/invertase/react-native-firebase/commit/aa8ee8b7e83443d2c1664993800e15faf4b59b0e)) + ## [9.0.8](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/remote-config@9.0.7...@react-native-firebase/remote-config@9.0.8) (2020-09-30) **Note:** Version bump only for package @react-native-firebase/remote-config diff --git a/packages/remote-config/package.json b/packages/remote-config/package.json index 26b7424529..02620fc910 100644 --- a/packages/remote-config/package.json +++ b/packages/remote-config/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-firebase/remote-config", - "version": "9.0.8", + "version": "9.0.9", "author": "Invertase (http://invertase.io)", "description": "React Native Firebase - React Native Firebase provides native integration with Remote Config, allowing you to change the appearance and/or functionality of your app without requiring an app update.", "main": "lib/index.js", diff --git a/packages/storage/CHANGELOG.md b/packages/storage/CHANGELOG.md index b83b02a601..4b4e0c12e0 100644 --- a/packages/storage/CHANGELOG.md +++ b/packages/storage/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.4.7](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/storage@7.4.6...@react-native-firebase/storage@7.4.7) (2020-09-30) + +### Bug Fixes + +- **types:** enable TypeScript libCheck & resolve type conflicts ([#4306](https://github.com/invertase/react-native-firebase/issues/4306)) ([aa8ee8b](https://github.com/invertase/react-native-firebase/commit/aa8ee8b7e83443d2c1664993800e15faf4b59b0e)) + ## [7.4.6](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/storage@7.4.5...@react-native-firebase/storage@7.4.6) (2020-09-30) **Note:** Version bump only for package @react-native-firebase/storage diff --git a/packages/storage/package.json b/packages/storage/package.json index 8d94d3d81d..272b094457 100644 --- a/packages/storage/package.json +++ b/packages/storage/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-firebase/storage", - "version": "7.4.6", + "version": "7.4.7", "author": "Invertase (http://invertase.io)", "description": "React Native Firebase - React Native Firebase provides native integration with Cloud Storage, providing support to upload and download files directly from your device and from your Firebase Cloud Storage bucket.", "main": "lib/index.js", diff --git a/tests/CHANGELOG.md b/tests/CHANGELOG.md index 4b2380d9d5..1f90f18fb7 100644 --- a/tests/CHANGELOG.md +++ b/tests/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [8.4.15](https://github.com/invertase/react-native-firebase/compare/react-native-firebase-tests@8.4.14...react-native-firebase-tests@8.4.15) (2020-09-30) + +**Note:** Version bump only for package react-native-firebase-tests + + + + + ## [8.4.14](https://github.com/invertase/react-native-firebase/compare/react-native-firebase-tests@8.4.13...react-native-firebase-tests@8.4.14) (2020-09-30) **Note:** Version bump only for package react-native-firebase-tests diff --git a/tests/package.json b/tests/package.json index 5442da3d6c..b281e97ca1 100644 --- a/tests/package.json +++ b/tests/package.json @@ -1,30 +1,30 @@ { "name": "react-native-firebase-tests", - "version": "8.4.14", + "version": "8.4.15", "private": true, "scripts": { "build:clean": "rimraf dist && rimraf android/build && rimraf android/app/build && rimraf android/.gradle && rimraf ios/build", "prepare": "patch-package" }, "dependencies": { - "@react-native-firebase/admob": "7.6.6", - "@react-native-firebase/analytics": "7.6.5", - "@react-native-firebase/app": "8.4.4", + "@react-native-firebase/admob": "7.6.7", + "@react-native-firebase/analytics": "7.6.6", + "@react-native-firebase/app": "8.4.5", "@react-native-firebase/app-types": "6.7.2", - "@react-native-firebase/auth": "9.2.5", - "@react-native-firebase/crashlytics": "8.4.7", - "@react-native-firebase/database": "7.5.9", - "@react-native-firebase/dynamic-links": "7.5.7", - "@react-native-firebase/firestore": "7.8.4", - "@react-native-firebase/functions": "7.4.6", - "@react-native-firebase/iid": "7.4.6", - "@react-native-firebase/in-app-messaging": "7.5.4", - "@react-native-firebase/messaging": "7.8.9", - "@react-native-firebase/ml-natural-language": "7.4.6", - "@react-native-firebase/ml-vision": "7.4.6", - "@react-native-firebase/perf": "7.4.6", - "@react-native-firebase/remote-config": "9.0.8", - "@react-native-firebase/storage": "7.4.6", + "@react-native-firebase/auth": "9.2.6", + "@react-native-firebase/crashlytics": "8.4.8", + "@react-native-firebase/database": "7.5.10", + "@react-native-firebase/dynamic-links": "7.5.8", + "@react-native-firebase/firestore": "7.8.5", + "@react-native-firebase/functions": "7.4.7", + "@react-native-firebase/iid": "7.4.7", + "@react-native-firebase/in-app-messaging": "7.5.5", + "@react-native-firebase/messaging": "7.8.10", + "@react-native-firebase/ml-natural-language": "7.4.7", + "@react-native-firebase/ml-vision": "7.4.7", + "@react-native-firebase/perf": "7.4.7", + "@react-native-firebase/remote-config": "9.0.9", + "@react-native-firebase/storage": "7.4.7", "react": "16.11.0", "react-native": "0.62.2" }, From 9aa53d767598cc2a5a14b365cebca33619b918ac Mon Sep 17 00:00:00 2001 From: "@Salakar" Date: Wed, 30 Sep 2020 20:13:06 +0000 Subject: [PATCH 05/21] build(admob): update core peer dependency to v8.4.5 [publish] --- packages/admob/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/admob/package.json b/packages/admob/package.json index 2710366caf..bb54f7e3b6 100644 --- a/packages/admob/package.json +++ b/packages/admob/package.json @@ -27,7 +27,7 @@ "ad consent" ], "peerDependencies": { - "@react-native-firebase/app": "8.4.4" + "@react-native-firebase/app": "8.4.5" }, "publishConfig": { "access": "public" From b575070afdb8b3553ef35e2b7a9d75aa809f9108 Mon Sep 17 00:00:00 2001 From: "@Salakar" Date: Wed, 30 Sep 2020 20:13:06 +0000 Subject: [PATCH 06/21] build(analytics): update core peer dependency to v8.4.5 [publish] --- packages/analytics/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/analytics/package.json b/packages/analytics/package.json index 541e097e3a..24575ba7ed 100644 --- a/packages/analytics/package.json +++ b/packages/analytics/package.json @@ -22,7 +22,7 @@ "analytics" ], "peerDependencies": { - "@react-native-firebase/app": "8.4.4" + "@react-native-firebase/app": "8.4.5" }, "publishConfig": { "access": "public" From a5bb6333b588100070e05ec351f5a377d62c247b Mon Sep 17 00:00:00 2001 From: "@Salakar" Date: Wed, 30 Sep 2020 20:13:06 +0000 Subject: [PATCH 07/21] build(auth): update core peer dependency to v8.4.5 [publish] --- packages/auth/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/auth/package.json b/packages/auth/package.json index f496eac105..29d4ba28c2 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -22,7 +22,7 @@ "auth" ], "peerDependencies": { - "@react-native-firebase/app": "8.4.4" + "@react-native-firebase/app": "8.4.5" }, "publishConfig": { "access": "public" From bb53407620eebe0ade4a5151fa14d374b968d2af Mon Sep 17 00:00:00 2001 From: "@Salakar" Date: Wed, 30 Sep 2020 20:13:06 +0000 Subject: [PATCH 08/21] build(crashlytics): update core peer dependency to v8.4.5 [publish] --- packages/crashlytics/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/crashlytics/package.json b/packages/crashlytics/package.json index 8b583793d4..e4d90f57a3 100644 --- a/packages/crashlytics/package.json +++ b/packages/crashlytics/package.json @@ -27,7 +27,7 @@ "crashlytics" ], "peerDependencies": { - "@react-native-firebase/app": "8.4.4" + "@react-native-firebase/app": "8.4.5" }, "dependencies": { "stacktrace-js": "^2.0.0" From 26c35295302e8acffe63f450213980c4bd4462d4 Mon Sep 17 00:00:00 2001 From: "@Salakar" Date: Wed, 30 Sep 2020 20:13:07 +0000 Subject: [PATCH 09/21] build(database): update core peer dependency to v8.4.5 [publish] --- packages/database/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/database/package.json b/packages/database/package.json index 517be6a75a..4ef869ec02 100644 --- a/packages/database/package.json +++ b/packages/database/package.json @@ -25,7 +25,7 @@ "realtome database" ], "peerDependencies": { - "@react-native-firebase/app": "8.4.4" + "@react-native-firebase/app": "8.4.5" }, "publishConfig": { "access": "public" From 04c2a174bddcdb4e2b1ca9904962937446467ce4 Mon Sep 17 00:00:00 2001 From: "@Salakar" Date: Wed, 30 Sep 2020 20:13:07 +0000 Subject: [PATCH 10/21] build(dynamic-links): update core peer dependency to v8.4.5 [publish] --- packages/dynamic-links/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dynamic-links/package.json b/packages/dynamic-links/package.json index fee30ea776..b535813f41 100644 --- a/packages/dynamic-links/package.json +++ b/packages/dynamic-links/package.json @@ -23,7 +23,7 @@ "dynamic link" ], "peerDependencies": { - "@react-native-firebase/app": "8.4.4" + "@react-native-firebase/app": "8.4.5" }, "publishConfig": { "access": "public" From 152f7796d43edc73042ba468a8308dbc0307f71d Mon Sep 17 00:00:00 2001 From: "@Salakar" Date: Wed, 30 Sep 2020 20:13:07 +0000 Subject: [PATCH 11/21] build(firestore): update core peer dependency to v8.4.5 [publish] --- packages/firestore/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/firestore/package.json b/packages/firestore/package.json index f8b61d6051..88dc6fc32c 100644 --- a/packages/firestore/package.json +++ b/packages/firestore/package.json @@ -27,7 +27,7 @@ "firestore" ], "peerDependencies": { - "@react-native-firebase/app": "8.4.4" + "@react-native-firebase/app": "8.4.5" }, "publishConfig": { "access": "public" From 569931a3e51e92d269a0ee537a13a9ad5fc6ac1f Mon Sep 17 00:00:00 2001 From: "@Salakar" Date: Wed, 30 Sep 2020 20:13:07 +0000 Subject: [PATCH 12/21] build(functions): update core peer dependency to v8.4.5 [publish] --- packages/functions/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/functions/package.json b/packages/functions/package.json index babbd0fb60..612d68e8ae 100644 --- a/packages/functions/package.json +++ b/packages/functions/package.json @@ -24,7 +24,7 @@ "functions" ], "peerDependencies": { - "@react-native-firebase/app": "8.4.4" + "@react-native-firebase/app": "8.4.5" }, "devDependencies": { "@react-native-firebase/private-tests-firebase-functions": "^0.0.1" From ed19c407e7fb6e4441dcf4eccfacd9b7c9c46324 Mon Sep 17 00:00:00 2001 From: "@Salakar" Date: Wed, 30 Sep 2020 20:13:07 +0000 Subject: [PATCH 13/21] build(iid): update core peer dependency to v8.4.5 [publish] --- packages/iid/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/iid/package.json b/packages/iid/package.json index 33f9bce84f..10f2fb49b4 100644 --- a/packages/iid/package.json +++ b/packages/iid/package.json @@ -24,7 +24,7 @@ "iid" ], "peerDependencies": { - "@react-native-firebase/app": "8.4.4" + "@react-native-firebase/app": "8.4.5" }, "publishConfig": { "access": "public" From 89b0bcde1729d15598b076fa46fb08064425d44b Mon Sep 17 00:00:00 2001 From: "@Salakar" Date: Wed, 30 Sep 2020 20:13:07 +0000 Subject: [PATCH 14/21] build(in-app-messaging): update core peer dependency to v8.4.5 [publish] --- packages/in-app-messaging/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/in-app-messaging/package.json b/packages/in-app-messaging/package.json index 8aa51d22ad..3cc11da2db 100644 --- a/packages/in-app-messaging/package.json +++ b/packages/in-app-messaging/package.json @@ -27,7 +27,7 @@ "inAppMessaging" ], "peerDependencies": { - "@react-native-firebase/app": "8.4.4" + "@react-native-firebase/app": "8.4.5" }, "publishConfig": { "access": "public" From 4bbf14e47b975e86d2038f3c5bae50161cdf208c Mon Sep 17 00:00:00 2001 From: "@Salakar" Date: Wed, 30 Sep 2020 20:13:07 +0000 Subject: [PATCH 15/21] build(messaging): update core peer dependency to v8.4.5 [publish] --- packages/messaging/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/messaging/package.json b/packages/messaging/package.json index d9ed9a8cee..0f7325a930 100644 --- a/packages/messaging/package.json +++ b/packages/messaging/package.json @@ -22,7 +22,7 @@ "messaging" ], "peerDependencies": { - "@react-native-firebase/app": "8.4.4" + "@react-native-firebase/app": "8.4.5" }, "publishConfig": { "access": "public" From c9ce5fd03d20a7a0097d21c7314c2deb172d6e14 Mon Sep 17 00:00:00 2001 From: "@Salakar" Date: Wed, 30 Sep 2020 20:13:07 +0000 Subject: [PATCH 16/21] build(ml-natural-language): update core peer dependency to v8.4.5 [publish] --- packages/ml-natural-language/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ml-natural-language/package.json b/packages/ml-natural-language/package.json index a7d17008dd..0000825d8a 100644 --- a/packages/ml-natural-language/package.json +++ b/packages/ml-natural-language/package.json @@ -30,7 +30,7 @@ "vision" ], "peerDependencies": { - "@react-native-firebase/app": "8.4.4" + "@react-native-firebase/app": "8.4.5" }, "publishConfig": { "access": "public" From 7ba4e742e75ab5c089986beb402b13897be2ad1d Mon Sep 17 00:00:00 2001 From: "@Salakar" Date: Wed, 30 Sep 2020 20:13:07 +0000 Subject: [PATCH 17/21] build(ml-vision): update core peer dependency to v8.4.5 [publish] --- packages/ml-vision/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ml-vision/package.json b/packages/ml-vision/package.json index fb3f66b932..a50478d1a3 100644 --- a/packages/ml-vision/package.json +++ b/packages/ml-vision/package.json @@ -32,7 +32,7 @@ "vision" ], "peerDependencies": { - "@react-native-firebase/app": "8.4.4" + "@react-native-firebase/app": "8.4.5" }, "publishConfig": { "access": "public" From a6ffeee7d3c3d4b918a5ce3094b9bdc77f30e05e Mon Sep 17 00:00:00 2001 From: "@Salakar" Date: Wed, 30 Sep 2020 20:13:07 +0000 Subject: [PATCH 18/21] build(perf): update core peer dependency to v8.4.5 [publish] --- packages/perf/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/perf/package.json b/packages/perf/package.json index 43e9db474c..d9e32b5221 100644 --- a/packages/perf/package.json +++ b/packages/perf/package.json @@ -27,7 +27,7 @@ "performance monitoring" ], "peerDependencies": { - "@react-native-firebase/app": "8.4.4" + "@react-native-firebase/app": "8.4.5" }, "publishConfig": { "access": "public" From 79fa3747bc87d9c410e7a4ce700f6e0d8477d8ad Mon Sep 17 00:00:00 2001 From: "@Salakar" Date: Wed, 30 Sep 2020 20:13:07 +0000 Subject: [PATCH 19/21] build(remote-config): update core peer dependency to v8.4.5 [publish] --- packages/remote-config/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/remote-config/package.json b/packages/remote-config/package.json index 02620fc910..d5335f3f00 100644 --- a/packages/remote-config/package.json +++ b/packages/remote-config/package.json @@ -24,7 +24,7 @@ "remote-config" ], "peerDependencies": { - "@react-native-firebase/app": "8.4.4" + "@react-native-firebase/app": "8.4.5" }, "publishConfig": { "access": "public" From 64c16cc67afd1fed368147d50a1c3d3eb244c8b7 Mon Sep 17 00:00:00 2001 From: "@Salakar" Date: Wed, 30 Sep 2020 20:13:07 +0000 Subject: [PATCH 20/21] build(storage): update core peer dependency to v8.4.5 [publish] --- packages/storage/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/storage/package.json b/packages/storage/package.json index 272b094457..0653e22930 100644 --- a/packages/storage/package.json +++ b/packages/storage/package.json @@ -29,7 +29,7 @@ "download" ], "peerDependencies": { - "@react-native-firebase/app": "8.4.4" + "@react-native-firebase/app": "8.4.5" }, "publishConfig": { "access": "public" From 94075a52a95dafeca016de14da0663c3291a3980 Mon Sep 17 00:00:00 2001 From: "@Salakar" Date: Wed, 30 Sep 2020 20:15:00 +0000 Subject: [PATCH 21/21] chore(release): release packages - @react-native-firebase/admob@7.6.8 - @react-native-firebase/analytics@7.6.7 - @react-native-firebase/auth@9.2.7 - @react-native-firebase/crashlytics@8.4.9 - @react-native-firebase/database@7.5.11 - @react-native-firebase/dynamic-links@7.5.9 - @react-native-firebase/firestore@7.8.6 - @react-native-firebase/functions@7.4.8 - @react-native-firebase/iid@7.4.8 - @react-native-firebase/in-app-messaging@7.5.6 - @react-native-firebase/messaging@7.8.11 - @react-native-firebase/ml-natural-language@7.4.8 - @react-native-firebase/ml-vision@7.4.8 - @react-native-firebase/perf@7.4.8 - @react-native-firebase/remote-config@9.0.10 - @react-native-firebase/storage@7.4.8 - react-native-firebase-tests@8.4.16 --- packages/admob/CHANGELOG.md | 4 +++ packages/admob/package.json | 2 +- packages/analytics/CHANGELOG.md | 4 +++ packages/analytics/package.json | 2 +- packages/auth/CHANGELOG.md | 4 +++ packages/auth/package.json | 2 +- packages/crashlytics/CHANGELOG.md | 4 +++ packages/crashlytics/package.json | 2 +- packages/database/CHANGELOG.md | 4 +++ packages/database/package.json | 2 +- packages/dynamic-links/CHANGELOG.md | 4 +++ packages/dynamic-links/package.json | 2 +- packages/firestore/CHANGELOG.md | 4 +++ packages/firestore/package.json | 2 +- packages/functions/CHANGELOG.md | 4 +++ packages/functions/package.json | 2 +- packages/iid/CHANGELOG.md | 4 +++ packages/iid/package.json | 2 +- packages/in-app-messaging/CHANGELOG.md | 4 +++ packages/in-app-messaging/package.json | 2 +- packages/messaging/CHANGELOG.md | 4 +++ packages/messaging/package.json | 2 +- packages/ml-natural-language/CHANGELOG.md | 4 +++ packages/ml-natural-language/package.json | 2 +- packages/ml-vision/CHANGELOG.md | 4 +++ packages/ml-vision/package.json | 2 +- packages/perf/CHANGELOG.md | 4 +++ packages/perf/package.json | 2 +- packages/remote-config/CHANGELOG.md | 4 +++ packages/remote-config/package.json | 2 +- packages/storage/CHANGELOG.md | 4 +++ packages/storage/package.json | 2 +- tests/CHANGELOG.md | 8 ++++++ tests/package.json | 34 +++++++++++------------ 34 files changed, 105 insertions(+), 33 deletions(-) diff --git a/packages/admob/CHANGELOG.md b/packages/admob/CHANGELOG.md index 30a00cf200..d428133769 100644 --- a/packages/admob/CHANGELOG.md +++ b/packages/admob/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.6.8](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/admob@7.6.7...@react-native-firebase/admob@7.6.8) (2020-09-30) + +**Note:** Version bump only for package @react-native-firebase/admob + ## [7.6.7](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/admob@7.6.6...@react-native-firebase/admob@7.6.7) (2020-09-30) ### Bug Fixes diff --git a/packages/admob/package.json b/packages/admob/package.json index bb54f7e3b6..604cec1523 100644 --- a/packages/admob/package.json +++ b/packages/admob/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-firebase/admob", - "version": "7.6.7", + "version": "7.6.8", "author": "Invertase (http://invertase.io)", "description": "React Native Firebase - Google AdMob is an easy way to monetize mobile apps with targeted, in-app advertising.", "main": "lib/index.js", diff --git a/packages/analytics/CHANGELOG.md b/packages/analytics/CHANGELOG.md index 7690a358f5..441a9ff4eb 100644 --- a/packages/analytics/CHANGELOG.md +++ b/packages/analytics/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.6.7](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/analytics@7.6.6...@react-native-firebase/analytics@7.6.7) (2020-09-30) + +**Note:** Version bump only for package @react-native-firebase/analytics + ## [7.6.6](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/analytics@7.6.5...@react-native-firebase/analytics@7.6.6) (2020-09-30) ### Bug Fixes diff --git a/packages/analytics/package.json b/packages/analytics/package.json index 24575ba7ed..38faf28403 100644 --- a/packages/analytics/package.json +++ b/packages/analytics/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-firebase/analytics", - "version": "7.6.6", + "version": "7.6.7", "author": "Invertase (http://invertase.io)", "description": "React Native Firebase - The analytics module provides out of the box support with Google Analytics for Firebase. Integration with the Android & iOS allows for in-depth analytical insight reporting, such as device information, location, user actions and more.", "main": "lib/index.js", diff --git a/packages/auth/CHANGELOG.md b/packages/auth/CHANGELOG.md index 959dea9c3e..6233d29a94 100644 --- a/packages/auth/CHANGELOG.md +++ b/packages/auth/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [9.2.7](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/auth@9.2.6...@react-native-firebase/auth@9.2.7) (2020-09-30) + +**Note:** Version bump only for package @react-native-firebase/auth + ## [9.2.6](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/auth@9.2.5...@react-native-firebase/auth@9.2.6) (2020-09-30) ### Bug Fixes diff --git a/packages/auth/package.json b/packages/auth/package.json index 29d4ba28c2..32dfe4b60d 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-firebase/auth", - "version": "9.2.6", + "version": "9.2.7", "author": "Invertase (http://invertase.io)", "description": "React Native Firebase - The authentication module provides an easy-to-use API to integrate an authentication workflow into new and existing applications. React Native Firebase provides access to all Firebase authentication methods and identity providers.", "main": "lib/index.js", diff --git a/packages/crashlytics/CHANGELOG.md b/packages/crashlytics/CHANGELOG.md index 08c7f75af3..35311d5726 100644 --- a/packages/crashlytics/CHANGELOG.md +++ b/packages/crashlytics/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [8.4.9](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/crashlytics@8.4.8...@react-native-firebase/crashlytics@8.4.9) (2020-09-30) + +**Note:** Version bump only for package @react-native-firebase/crashlytics + ## [8.4.8](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/crashlytics@8.4.7...@react-native-firebase/crashlytics@8.4.8) (2020-09-30) ### Bug Fixes diff --git a/packages/crashlytics/package.json b/packages/crashlytics/package.json index e4d90f57a3..cebab1fd49 100644 --- a/packages/crashlytics/package.json +++ b/packages/crashlytics/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-firebase/crashlytics", - "version": "8.4.8", + "version": "8.4.9", "author": "Invertase (http://invertase.io)", "description": "React Native Firebase - Firebase Crashlytics is a lightweight, realtime crash reporter that helps you track, prioritize, and fix stability issues that erode your app quality. React Native Firebase provides automatic crash reporting for both native and JavaScript errors, including unhandled promise rejections.", "main": "lib/index.js", diff --git a/packages/database/CHANGELOG.md b/packages/database/CHANGELOG.md index 149e58bdcb..5526a0981c 100644 --- a/packages/database/CHANGELOG.md +++ b/packages/database/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.5.11](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/database@7.5.10...@react-native-firebase/database@7.5.11) (2020-09-30) + +**Note:** Version bump only for package @react-native-firebase/database + ## [7.5.10](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/database@7.5.9...@react-native-firebase/database@7.5.10) (2020-09-30) ### Bug Fixes diff --git a/packages/database/package.json b/packages/database/package.json index 4ef869ec02..d1c804da5a 100644 --- a/packages/database/package.json +++ b/packages/database/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-firebase/database", - "version": "7.5.10", + "version": "7.5.11", "author": "Invertase (http://invertase.io)", "description": "React Native Firebase - The Firebase Realtime Database is a cloud-hosted database. Data is stored as JSON and synchronized in realtime to every connected client. React Native Firebase provides native integration with the Android & iOS Firebase SDKs, supporting both realtime data sync and offline capabilities.", "main": "lib/index.js", diff --git a/packages/dynamic-links/CHANGELOG.md b/packages/dynamic-links/CHANGELOG.md index 250002d796..791516dc8b 100644 --- a/packages/dynamic-links/CHANGELOG.md +++ b/packages/dynamic-links/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.5.9](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/dynamic-links@7.5.8...@react-native-firebase/dynamic-links@7.5.9) (2020-09-30) + +**Note:** Version bump only for package @react-native-firebase/dynamic-links + ## [7.5.8](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/dynamic-links@7.5.7...@react-native-firebase/dynamic-links@7.5.8) (2020-09-30) ### Bug Fixes diff --git a/packages/dynamic-links/package.json b/packages/dynamic-links/package.json index b535813f41..d76d28759b 100644 --- a/packages/dynamic-links/package.json +++ b/packages/dynamic-links/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-firebase/dynamic-links", - "version": "7.5.8", + "version": "7.5.9", "author": "Invertase (http://invertase.io)", "description": "React Native Firebase - Dynamic Links", "main": "lib/index.js", diff --git a/packages/firestore/CHANGELOG.md b/packages/firestore/CHANGELOG.md index 64fc3d917c..ceaf0dc67c 100644 --- a/packages/firestore/CHANGELOG.md +++ b/packages/firestore/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.8.6](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/firestore@7.8.5...@react-native-firebase/firestore@7.8.6) (2020-09-30) + +**Note:** Version bump only for package @react-native-firebase/firestore + ## [7.8.5](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/firestore@7.8.4...@react-native-firebase/firestore@7.8.5) (2020-09-30) ### Bug Fixes diff --git a/packages/firestore/package.json b/packages/firestore/package.json index 88dc6fc32c..0834bda6a4 100644 --- a/packages/firestore/package.json +++ b/packages/firestore/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-firebase/firestore", - "version": "7.8.5", + "version": "7.8.6", "author": "Invertase (http://invertase.io)", "description": "React Native Firebase - Cloud Firestore is a NoSQL cloud database to store and sync data between your React Native application and Firebase's database. The API matches the Firebase Web SDK whilst taking advantage of the native SDKs performance and offline capabilities.", "main": "lib/index.js", diff --git a/packages/functions/CHANGELOG.md b/packages/functions/CHANGELOG.md index 0741ea705e..027687f2d4 100644 --- a/packages/functions/CHANGELOG.md +++ b/packages/functions/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.4.8](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/functions@7.4.7...@react-native-firebase/functions@7.4.8) (2020-09-30) + +**Note:** Version bump only for package @react-native-firebase/functions + ## [7.4.7](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/functions@7.4.6...@react-native-firebase/functions@7.4.7) (2020-09-30) ### Bug Fixes diff --git a/packages/functions/package.json b/packages/functions/package.json index 612d68e8ae..c821e17923 100644 --- a/packages/functions/package.json +++ b/packages/functions/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-firebase/functions", - "version": "7.4.7", + "version": "7.4.8", "author": "Invertase (http://invertase.io)", "description": "React Native Firebase - Cloud Functions for Firebase lets you automatically run backend code in response to events triggered by Firebase features and HTTPS requests. React Native Firebase supports integration with production and locally emulated Cloud Functions with a simple API interface.\n\n", "main": "lib/index.js", diff --git a/packages/iid/CHANGELOG.md b/packages/iid/CHANGELOG.md index de8b5d64b7..fb54811831 100644 --- a/packages/iid/CHANGELOG.md +++ b/packages/iid/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.4.8](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/iid@7.4.7...@react-native-firebase/iid@7.4.8) (2020-09-30) + +**Note:** Version bump only for package @react-native-firebase/iid + ## [7.4.7](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/iid@7.4.6...@react-native-firebase/iid@7.4.7) (2020-09-30) ### Bug Fixes diff --git a/packages/iid/package.json b/packages/iid/package.json index 10f2fb49b4..065164b17e 100644 --- a/packages/iid/package.json +++ b/packages/iid/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-firebase/iid", - "version": "7.4.7", + "version": "7.4.8", "author": "Invertase (http://invertase.io)", "description": "React Native Firebase - Firebase Instance ID provides a unique identifier for each instance of your app and a mechanism to authenticate and authorize actions for it (for example: sending FCM messages).", "main": "lib/index.js", diff --git a/packages/in-app-messaging/CHANGELOG.md b/packages/in-app-messaging/CHANGELOG.md index faff01f994..5a4289bc59 100644 --- a/packages/in-app-messaging/CHANGELOG.md +++ b/packages/in-app-messaging/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.5.6](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/in-app-messaging@7.5.5...@react-native-firebase/in-app-messaging@7.5.6) (2020-09-30) + +**Note:** Version bump only for package @react-native-firebase/in-app-messaging + ## [7.5.5](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/in-app-messaging@7.5.4...@react-native-firebase/in-app-messaging@7.5.5) (2020-09-30) ### Bug Fixes diff --git a/packages/in-app-messaging/package.json b/packages/in-app-messaging/package.json index 3cc11da2db..eb0223967f 100644 --- a/packages/in-app-messaging/package.json +++ b/packages/in-app-messaging/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-firebase/in-app-messaging", - "version": "7.5.5", + "version": "7.5.6", "author": "Invertase (http://invertase.io)", "description": "React Native Firebase - Firebase In-App Messaging helps you engage your app's active users by sending them targeted, contextual messages that encourage them to use key app features. React Native Firebase provides support for both native Android & iOS integration with a simple JavaScript API.", "main": "lib/index.js", diff --git a/packages/messaging/CHANGELOG.md b/packages/messaging/CHANGELOG.md index 71581c53c6..cc721c7159 100644 --- a/packages/messaging/CHANGELOG.md +++ b/packages/messaging/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.8.11](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/messaging@7.8.10...@react-native-firebase/messaging@7.8.11) (2020-09-30) + +**Note:** Version bump only for package @react-native-firebase/messaging + ## [7.8.10](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/messaging@7.8.9...@react-native-firebase/messaging@7.8.10) (2020-09-30) ### Bug Fixes diff --git a/packages/messaging/package.json b/packages/messaging/package.json index 0f7325a930..827758d85e 100644 --- a/packages/messaging/package.json +++ b/packages/messaging/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-firebase/messaging", - "version": "7.8.10", + "version": "7.8.11", "author": "Invertase (http://invertase.io)", "description": "React Native Firebase - React Native Firebase provides native integration of Firebase Cloud Messaging (FCM) for both Android & iOS. FCM is a cost free service, allowing for server-device and device-device communication. The React Native Firebase Messaging module provides a simple JavaScript API to interact with FCM.", "main": "lib/index.js", diff --git a/packages/ml-natural-language/CHANGELOG.md b/packages/ml-natural-language/CHANGELOG.md index a07b8c4782..b909f721cc 100644 --- a/packages/ml-natural-language/CHANGELOG.md +++ b/packages/ml-natural-language/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.4.8](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/ml-natural-language@7.4.7...@react-native-firebase/ml-natural-language@7.4.8) (2020-09-30) + +**Note:** Version bump only for package @react-native-firebase/ml-natural-language + ## [7.4.7](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/ml-natural-language@7.4.6...@react-native-firebase/ml-natural-language@7.4.7) (2020-09-30) ### Bug Fixes diff --git a/packages/ml-natural-language/package.json b/packages/ml-natural-language/package.json index 0000825d8a..cbe5d5f38d 100644 --- a/packages/ml-natural-language/package.json +++ b/packages/ml-natural-language/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-firebase/ml-natural-language", - "version": "7.4.7", + "version": "7.4.8", "author": "Invertase (http://invertase.io)", "description": "React Native Firebase - Firebase ML Kit brings the power of machine learning to your React Native application, supporting both Android & iOS.", "main": "lib/index.js", diff --git a/packages/ml-vision/CHANGELOG.md b/packages/ml-vision/CHANGELOG.md index 71ccf12cd0..074b89703e 100644 --- a/packages/ml-vision/CHANGELOG.md +++ b/packages/ml-vision/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.4.8](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/ml-vision@7.4.7...@react-native-firebase/ml-vision@7.4.8) (2020-09-30) + +**Note:** Version bump only for package @react-native-firebase/ml-vision + ## [7.4.7](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/ml-vision@7.4.6...@react-native-firebase/ml-vision@7.4.7) (2020-09-30) ### Bug Fixes diff --git a/packages/ml-vision/package.json b/packages/ml-vision/package.json index a50478d1a3..827544d5ee 100644 --- a/packages/ml-vision/package.json +++ b/packages/ml-vision/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-firebase/ml-vision", - "version": "7.4.7", + "version": "7.4.8", "author": "Invertase (http://invertase.io)", "description": "React Native Firebase - Firebase ML Kit brings the power of machine learning vision to your React Native application, supporting both Android & iOS.", "main": "lib/index.js", diff --git a/packages/perf/CHANGELOG.md b/packages/perf/CHANGELOG.md index 1ba5449bc7..c6d7d6cc70 100644 --- a/packages/perf/CHANGELOG.md +++ b/packages/perf/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.4.8](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/perf@7.4.7...@react-native-firebase/perf@7.4.8) (2020-09-30) + +**Note:** Version bump only for package @react-native-firebase/perf + ## [7.4.7](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/perf@7.4.6...@react-native-firebase/perf@7.4.7) (2020-09-30) ### Bug Fixes diff --git a/packages/perf/package.json b/packages/perf/package.json index d9e32b5221..cf550ae96f 100644 --- a/packages/perf/package.json +++ b/packages/perf/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-firebase/perf", - "version": "7.4.7", + "version": "7.4.8", "author": "Invertase (http://invertase.io)", "description": "React Native Firebase - React Native Firebase provides native integration with Performance Monitoring to gain insight into key performance characteristics within your React Native application.", "main": "lib/index.js", diff --git a/packages/remote-config/CHANGELOG.md b/packages/remote-config/CHANGELOG.md index 32aee08c6d..29fa908fa5 100644 --- a/packages/remote-config/CHANGELOG.md +++ b/packages/remote-config/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [9.0.10](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/remote-config@9.0.9...@react-native-firebase/remote-config@9.0.10) (2020-09-30) + +**Note:** Version bump only for package @react-native-firebase/remote-config + ## [9.0.9](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/remote-config@9.0.8...@react-native-firebase/remote-config@9.0.9) (2020-09-30) ### Bug Fixes diff --git a/packages/remote-config/package.json b/packages/remote-config/package.json index d5335f3f00..c4181f96fa 100644 --- a/packages/remote-config/package.json +++ b/packages/remote-config/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-firebase/remote-config", - "version": "9.0.9", + "version": "9.0.10", "author": "Invertase (http://invertase.io)", "description": "React Native Firebase - React Native Firebase provides native integration with Remote Config, allowing you to change the appearance and/or functionality of your app without requiring an app update.", "main": "lib/index.js", diff --git a/packages/storage/CHANGELOG.md b/packages/storage/CHANGELOG.md index 4b4e0c12e0..a8366213aa 100644 --- a/packages/storage/CHANGELOG.md +++ b/packages/storage/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.4.8](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/storage@7.4.7...@react-native-firebase/storage@7.4.8) (2020-09-30) + +**Note:** Version bump only for package @react-native-firebase/storage + ## [7.4.7](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/storage@7.4.6...@react-native-firebase/storage@7.4.7) (2020-09-30) ### Bug Fixes diff --git a/packages/storage/package.json b/packages/storage/package.json index 0653e22930..3bad2e5398 100644 --- a/packages/storage/package.json +++ b/packages/storage/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-firebase/storage", - "version": "7.4.7", + "version": "7.4.8", "author": "Invertase (http://invertase.io)", "description": "React Native Firebase - React Native Firebase provides native integration with Cloud Storage, providing support to upload and download files directly from your device and from your Firebase Cloud Storage bucket.", "main": "lib/index.js", diff --git a/tests/CHANGELOG.md b/tests/CHANGELOG.md index 1f90f18fb7..2083502ad6 100644 --- a/tests/CHANGELOG.md +++ b/tests/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [8.4.16](https://github.com/invertase/react-native-firebase/compare/react-native-firebase-tests@8.4.15...react-native-firebase-tests@8.4.16) (2020-09-30) + +**Note:** Version bump only for package react-native-firebase-tests + + + + + ## [8.4.15](https://github.com/invertase/react-native-firebase/compare/react-native-firebase-tests@8.4.14...react-native-firebase-tests@8.4.15) (2020-09-30) **Note:** Version bump only for package react-native-firebase-tests diff --git a/tests/package.json b/tests/package.json index b281e97ca1..70aa25cab5 100644 --- a/tests/package.json +++ b/tests/package.json @@ -1,30 +1,30 @@ { "name": "react-native-firebase-tests", - "version": "8.4.15", + "version": "8.4.16", "private": true, "scripts": { "build:clean": "rimraf dist && rimraf android/build && rimraf android/app/build && rimraf android/.gradle && rimraf ios/build", "prepare": "patch-package" }, "dependencies": { - "@react-native-firebase/admob": "7.6.7", - "@react-native-firebase/analytics": "7.6.6", + "@react-native-firebase/admob": "7.6.8", + "@react-native-firebase/analytics": "7.6.7", "@react-native-firebase/app": "8.4.5", "@react-native-firebase/app-types": "6.7.2", - "@react-native-firebase/auth": "9.2.6", - "@react-native-firebase/crashlytics": "8.4.8", - "@react-native-firebase/database": "7.5.10", - "@react-native-firebase/dynamic-links": "7.5.8", - "@react-native-firebase/firestore": "7.8.5", - "@react-native-firebase/functions": "7.4.7", - "@react-native-firebase/iid": "7.4.7", - "@react-native-firebase/in-app-messaging": "7.5.5", - "@react-native-firebase/messaging": "7.8.10", - "@react-native-firebase/ml-natural-language": "7.4.7", - "@react-native-firebase/ml-vision": "7.4.7", - "@react-native-firebase/perf": "7.4.7", - "@react-native-firebase/remote-config": "9.0.9", - "@react-native-firebase/storage": "7.4.7", + "@react-native-firebase/auth": "9.2.7", + "@react-native-firebase/crashlytics": "8.4.9", + "@react-native-firebase/database": "7.5.11", + "@react-native-firebase/dynamic-links": "7.5.9", + "@react-native-firebase/firestore": "7.8.6", + "@react-native-firebase/functions": "7.4.8", + "@react-native-firebase/iid": "7.4.8", + "@react-native-firebase/in-app-messaging": "7.5.6", + "@react-native-firebase/messaging": "7.8.11", + "@react-native-firebase/ml-natural-language": "7.4.8", + "@react-native-firebase/ml-vision": "7.4.8", + "@react-native-firebase/perf": "7.4.8", + "@react-native-firebase/remote-config": "9.0.10", + "@react-native-firebase/storage": "7.4.8", "react": "16.11.0", "react-native": "0.62.2" },