@react-native-firebase/in-app-messaging 25.0.1 → 26.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/RNFBInAppMessaging.podspec +7 -6
- package/android/build.gradle +19 -0
- package/android/src/reactnative/java/io/invertase/firebase/fiam/{ReactNativeFirebaseFiamModule.java → NativeRNFBTurboFiam.java} +17 -18
- package/android/src/reactnative/java/io/invertase/firebase/fiam/ReactNativeFirebaseFiamPackage.java +1 -1
- package/android/src/reactnative/java/io/invertase/firebase/fiam/generated/java/com/facebook/fbreact/specs/NativeRNFBTurboFiamSpec.java +79 -0
- package/android/src/reactnative/java/io/invertase/firebase/fiam/generated/jni/CMakeLists.txt +36 -0
- package/android/src/reactnative/java/io/invertase/firebase/fiam/generated/jni/RNFBInAppMessagingTurboModules-generated.cpp +50 -0
- package/android/src/reactnative/java/io/invertase/firebase/fiam/generated/jni/RNFBInAppMessagingTurboModules.h +31 -0
- package/android/src/reactnative/java/io/invertase/firebase/fiam/generated/jni/react/renderer/components/RNFBInAppMessagingTurboModules/RNFBInAppMessagingTurboModulesJSI-generated.cpp +47 -0
- package/android/src/reactnative/java/io/invertase/firebase/fiam/generated/jni/react/renderer/components/RNFBInAppMessagingTurboModules/RNFBInAppMessagingTurboModulesJSI.h +98 -0
- package/dist/module/index.js +113 -3
- package/dist/module/index.js.map +1 -1
- package/dist/module/version.js +1 -1
- package/dist/module/web/RNFBFiamModule.js +34 -0
- package/dist/module/web/RNFBFiamModule.js.map +1 -0
- package/dist/typescript/lib/index.d.ts +46 -4
- package/dist/typescript/lib/index.d.ts.map +1 -1
- package/dist/typescript/lib/types/internal.d.ts +1 -8
- package/dist/typescript/lib/types/internal.d.ts.map +1 -1
- package/dist/typescript/lib/version.d.ts +1 -1
- package/dist/typescript/lib/web/RNFBFiamModule.d.ts +4 -0
- package/dist/typescript/lib/web/RNFBFiamModule.d.ts.map +1 -0
- package/ios/RNFBFiam/RNFBFiamModule.h +2 -3
- package/ios/RNFBFiam/{RNFBFiamModule.m → RNFBFiamModule.mm} +25 -21
- package/ios/RNFBFiam.xcodeproj/project.pbxproj +8 -8
- package/ios/generated/RCTAppDependencyProvider.h +25 -0
- package/ios/generated/RCTAppDependencyProvider.mm +55 -0
- package/ios/generated/RCTModulesConformingToProtocolsProvider.h +18 -0
- package/ios/generated/RCTModulesConformingToProtocolsProvider.mm +33 -0
- package/ios/generated/RCTThirdPartyComponentsProvider.h +16 -0
- package/ios/generated/RCTThirdPartyComponentsProvider.mm +23 -0
- package/ios/generated/RNFBInAppMessagingTurboModules/RNFBInAppMessagingTurboModules-generated.mm +60 -0
- package/ios/generated/RNFBInAppMessagingTurboModules/RNFBInAppMessagingTurboModules.h +112 -0
- package/ios/generated/RNFBInAppMessagingTurboModulesJSI-generated.cpp +47 -0
- package/ios/generated/RNFBInAppMessagingTurboModulesJSI.h +98 -0
- package/ios/generated/ReactAppDependencyProvider.podspec +34 -0
- package/lib/index.ts +141 -5
- package/lib/types/internal.ts +1 -16
- package/lib/version.ts +1 -1
- package/lib/web/RNFBFiamModule.ts +34 -0
- package/package.json +23 -5
- package/react-native.config.js +10 -0
- package/specs/NativeRNFBTurboFiam.ts +15 -0
- package/tsconfig.json +4 -0
- package/typedoc.json +1 -1
- package/dist/module/modular.js +0 -80
- package/dist/module/modular.js.map +0 -1
- package/dist/module/namespaced.js +0 -78
- package/dist/module/namespaced.js.map +0 -1
- package/dist/module/types/namespaced.js +0 -62
- package/dist/module/types/namespaced.js.map +0 -1
- package/dist/typescript/lib/modular.d.ts +0 -36
- package/dist/typescript/lib/modular.d.ts.map +0 -1
- package/dist/typescript/lib/namespaced.d.ts +0 -12
- package/dist/typescript/lib/namespaced.d.ts.map +0 -1
- package/dist/typescript/lib/types/namespaced.d.ts +0 -107
- package/dist/typescript/lib/types/namespaced.d.ts.map +0 -1
- package/lib/modular.ts +0 -101
- package/lib/namespaced.ts +0 -117
- package/lib/types/namespaced.ts +0 -137
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
/*
|
|
4
|
-
* Copyright (c) 2016-present Invertase Limited & Contributors
|
|
5
|
-
*
|
|
6
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
-
* you may not use this library except in compliance with the License.
|
|
8
|
-
* You may obtain a copy of the License at
|
|
9
|
-
*
|
|
10
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
*
|
|
12
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
-
* See the License for the specific language governing permissions and
|
|
16
|
-
* limitations under the License.
|
|
17
|
-
*
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
import { isBoolean, isString } from '@react-native-firebase/app/dist/module/common';
|
|
21
|
-
import { createModuleNamespace, FirebaseModule, getFirebaseRoot } from '@react-native-firebase/app/dist/module/internal';
|
|
22
|
-
import "./types/internal.js";
|
|
23
|
-
import { version } from "./version.js";
|
|
24
|
-
const statics = {};
|
|
25
|
-
const namespace = 'inAppMessaging';
|
|
26
|
-
const nativeModuleName = 'RNFBFiamModule';
|
|
27
|
-
class FirebaseFiamModule extends FirebaseModule {
|
|
28
|
-
constructor(...args) {
|
|
29
|
-
super(...args);
|
|
30
|
-
this._isMessagesDisplaySuppressed = this.native.isMessagesDisplaySuppressed;
|
|
31
|
-
this._isAutomaticDataCollectionEnabled = this.native.isAutomaticDataCollectionEnabled;
|
|
32
|
-
}
|
|
33
|
-
get isMessagesDisplaySuppressed() {
|
|
34
|
-
return this._isMessagesDisplaySuppressed;
|
|
35
|
-
}
|
|
36
|
-
get isAutomaticDataCollectionEnabled() {
|
|
37
|
-
return this._isAutomaticDataCollectionEnabled;
|
|
38
|
-
}
|
|
39
|
-
setMessagesDisplaySuppressed(enabled) {
|
|
40
|
-
if (!isBoolean(enabled)) {
|
|
41
|
-
throw new Error("firebase.inAppMessaging().setMessagesDisplaySuppressed(*) 'enabled' must be a boolean.");
|
|
42
|
-
}
|
|
43
|
-
this._isMessagesDisplaySuppressed = enabled;
|
|
44
|
-
return this.native.setMessagesDisplaySuppressed(enabled);
|
|
45
|
-
}
|
|
46
|
-
setAutomaticDataCollectionEnabled(enabled) {
|
|
47
|
-
if (!isBoolean(enabled)) {
|
|
48
|
-
throw new Error("firebase.inAppMessaging().setAutomaticDataCollectionEnabled(*) 'enabled' must be a boolean.");
|
|
49
|
-
}
|
|
50
|
-
this._isAutomaticDataCollectionEnabled = enabled;
|
|
51
|
-
return this.native.setAutomaticDataCollectionEnabled(enabled);
|
|
52
|
-
}
|
|
53
|
-
triggerEvent(eventId) {
|
|
54
|
-
if (!isString(eventId)) {
|
|
55
|
-
throw new Error("firebase.inAppMessaging().triggerEvent(*) 'eventId' must be a string.");
|
|
56
|
-
}
|
|
57
|
-
return this.native.triggerEvent(eventId);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
// import { SDK_VERSION } from '@react-native-firebase/in-app-messaging';
|
|
61
|
-
export const SDK_VERSION = version;
|
|
62
|
-
const defaultExport = createModuleNamespace({
|
|
63
|
-
statics,
|
|
64
|
-
version,
|
|
65
|
-
namespace,
|
|
66
|
-
nativeModuleName,
|
|
67
|
-
nativeEvents: false,
|
|
68
|
-
hasMultiAppSupport: false,
|
|
69
|
-
hasCustomUrlOrRegionSupport: false,
|
|
70
|
-
ModuleClass: FirebaseFiamModule
|
|
71
|
-
});
|
|
72
|
-
export default defaultExport;
|
|
73
|
-
|
|
74
|
-
// import inAppMessaging, { firebase } from '@react-native-firebase/in-app-messaging';
|
|
75
|
-
// inAppMessaging().X(...);
|
|
76
|
-
// firebase.inAppMessaging().X(...);
|
|
77
|
-
export const firebase = getFirebaseRoot();
|
|
78
|
-
//# sourceMappingURL=namespaced.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["isBoolean","isString","createModuleNamespace","FirebaseModule","getFirebaseRoot","version","statics","namespace","nativeModuleName","FirebaseFiamModule","constructor","args","_isMessagesDisplaySuppressed","native","isMessagesDisplaySuppressed","_isAutomaticDataCollectionEnabled","isAutomaticDataCollectionEnabled","setMessagesDisplaySuppressed","enabled","Error","setAutomaticDataCollectionEnabled","triggerEvent","eventId","SDK_VERSION","defaultExport","nativeEvents","hasMultiAppSupport","hasCustomUrlOrRegionSupport","ModuleClass","firebase"],"sourceRoot":"../../lib","sources":["namespaced.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,SAAS,EAAEC,QAAQ,QAAQ,+CAA+C;AACnF,SACEC,qBAAqB,EACrBC,cAAc,EACdC,eAAe,QACV,iDAAiD;AAGxD,OAAO,qBAAkB;AAEzB,SAASC,OAAO,QAAQ,cAAW;AAEnC,MAAMC,OAAO,GAAG,CAAC,CAAC;AAElB,MAAMC,SAAS,GAAG,gBAAgB;AAElC,MAAMC,gBAAgB,GAAG,gBAAgB;AAEzC,MAAMC,kBAAkB,SAASN,cAAc,CAA0B;EAIvEO,WAAWA,CAAC,GAAGC,IAAkD,EAAE;IACjE,KAAK,CAAC,GAAGA,IAAI,CAAC;IACd,IAAI,CAACC,4BAA4B,GAAG,IAAI,CAACC,MAAM,CAACC,2BAA2B;IAC3E,IAAI,CAACC,iCAAiC,GAAG,IAAI,CAACF,MAAM,CAACG,gCAAgC;EACvF;EAEA,IAAIF,2BAA2BA,CAAA,EAAY;IACzC,OAAO,IAAI,CAACF,4BAA4B;EAC1C;EAEA,IAAII,gCAAgCA,CAAA,EAAY;IAC9C,OAAO,IAAI,CAACD,iCAAiC;EAC/C;EAEAE,4BAA4BA,CAACC,OAAgB,EAAiB;IAC5D,IAAI,CAAClB,SAAS,CAACkB,OAAO,CAAC,EAAE;MACvB,MAAM,IAAIC,KAAK,CACb,wFACF,CAAC;IACH;IAEA,IAAI,CAACP,4BAA4B,GAAGM,OAAO;IAC3C,OAAO,IAAI,CAACL,MAAM,CAACI,4BAA4B,CAACC,OAAO,CAAC;EAC1D;EAEAE,iCAAiCA,CAACF,OAAgB,EAAiB;IACjE,IAAI,CAAClB,SAAS,CAACkB,OAAO,CAAC,EAAE;MACvB,MAAM,IAAIC,KAAK,CACb,6FACF,CAAC;IACH;IAEA,IAAI,CAACJ,iCAAiC,GAAGG,OAAO;IAChD,OAAO,IAAI,CAACL,MAAM,CAACO,iCAAiC,CAACF,OAAO,CAAC;EAC/D;EAEAG,YAAYA,CAACC,OAAe,EAAiB;IAC3C,IAAI,CAACrB,QAAQ,CAACqB,OAAO,CAAC,EAAE;MACtB,MAAM,IAAIH,KAAK,CAAC,uEAAuE,CAAC;IAC1F;IACA,OAAO,IAAI,CAACN,MAAM,CAACQ,YAAY,CAACC,OAAO,CAAC;EAC1C;AACF;AAUA;AACA,OAAO,MAAMC,WAAW,GAAGlB,OAAO;AAElC,MAAMmB,aAAa,GAAGtB,qBAAqB,CAAC;EAC1CI,OAAO;EACPD,OAAO;EACPE,SAAS;EACTC,gBAAgB;EAChBiB,YAAY,EAAE,KAAK;EACnBC,kBAAkB,EAAE,KAAK;EACzBC,2BAA2B,EAAE,KAAK;EAClCC,WAAW,EAAEnB;AACf,CAAC,CAAuC;AAExC,eAAee,aAAa;;AAE5B;AACA;AACA;AACA,OAAO,MAAMK,QAAQ,GACnBzB,eAAe,CAAC,CAKf","ignoreList":[]}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
/*
|
|
4
|
-
* Copyright (c) 2016-present Invertase Limited & Contributors
|
|
5
|
-
*
|
|
6
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
-
* you may not use this library except in compliance with the License.
|
|
8
|
-
* You may obtain a copy of the License at
|
|
9
|
-
*
|
|
10
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
*
|
|
12
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
-
* See the License for the specific language governing permissions and
|
|
16
|
-
* limitations under the License.
|
|
17
|
-
*
|
|
18
|
-
*/
|
|
19
|
-
/**
|
|
20
|
-
* Firebase In-App Messaging package for React Native.
|
|
21
|
-
*
|
|
22
|
-
* #### Example 1
|
|
23
|
-
*
|
|
24
|
-
* Access the firebase export from the `inAppMessaging` package:
|
|
25
|
-
*
|
|
26
|
-
* ```js
|
|
27
|
-
* import { firebase } from '@react-native-firebase/in-app-messaging';
|
|
28
|
-
*
|
|
29
|
-
* // firebase.inAppMessaging().X
|
|
30
|
-
* ```
|
|
31
|
-
*
|
|
32
|
-
* #### Example 2
|
|
33
|
-
*
|
|
34
|
-
* Using the default export from the `in-app-messaging` package:
|
|
35
|
-
*
|
|
36
|
-
* ```js
|
|
37
|
-
* import inAppMessaging from '@react-native-firebase/in-app-messaging';
|
|
38
|
-
*
|
|
39
|
-
* // inAppMessaging().X
|
|
40
|
-
* ```
|
|
41
|
-
*
|
|
42
|
-
* #### Example 3
|
|
43
|
-
*
|
|
44
|
-
* Using the default export from the `app` package:
|
|
45
|
-
*
|
|
46
|
-
* ```js
|
|
47
|
-
* import firebase from '@react-native-firebase/app';
|
|
48
|
-
* import '@react-native-firebase/in-app-messaging';
|
|
49
|
-
*
|
|
50
|
-
* // firebase.inAppMessaging().X
|
|
51
|
-
* ```
|
|
52
|
-
*
|
|
53
|
-
* @firebase in-app-messaging
|
|
54
|
-
*/
|
|
55
|
-
/**
|
|
56
|
-
* @deprecated Use the exported types directly instead.
|
|
57
|
-
* FirebaseInAppMessagingTypes namespace is kept for backwards compatibility.
|
|
58
|
-
*/
|
|
59
|
-
/* eslint-disable @typescript-eslint/no-namespace */
|
|
60
|
-
export let FirebaseInAppMessagingTypes;
|
|
61
|
-
/* eslint-enable @typescript-eslint/no-namespace */
|
|
62
|
-
//# sourceMappingURL=namespaced.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["FirebaseInAppMessagingTypes"],"sourceRoot":"../../../lib","sources":["types/namespaced.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA,WACiBA,2BAA2B;AA4E5C","ignoreList":[]}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { InAppMessaging } from './types/in-app-messaging';
|
|
2
|
-
/**
|
|
3
|
-
* Returns the {@link InAppMessaging} instance for the default app.
|
|
4
|
-
*/
|
|
5
|
-
export declare function getInAppMessaging(): InAppMessaging;
|
|
6
|
-
/**
|
|
7
|
-
* Determines whether messages are suppressed or not.
|
|
8
|
-
*/
|
|
9
|
-
export declare function isMessagesDisplaySuppressed(inAppMessaging: InAppMessaging): boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Enable or disable suppression of Firebase In App Messaging messages.
|
|
12
|
-
*
|
|
13
|
-
* When enabled, no in app messages will be rendered until either you disable suppression, or the app
|
|
14
|
-
* restarts. This state is not persisted between app restarts.
|
|
15
|
-
*/
|
|
16
|
-
export declare function setMessagesDisplaySuppressed(inAppMessaging: InAppMessaging, enabled: boolean): Promise<null>;
|
|
17
|
-
/**
|
|
18
|
-
* Determines whether automatic data collection is enabled or not.
|
|
19
|
-
*/
|
|
20
|
-
export declare function isAutomaticDataCollectionEnabled(inAppMessaging: InAppMessaging): boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Enable or disable automatic data collection for Firebase In-App Messaging.
|
|
23
|
-
*
|
|
24
|
-
* When enabled, generates a registration token on app startup if there is no valid one and
|
|
25
|
-
* generates a new token when it is deleted (which prevents `deleteInstanceId()` from stopping the
|
|
26
|
-
* periodic sending of data).
|
|
27
|
-
*
|
|
28
|
-
* This setting is persisted across app restarts and overrides the setting specified in your
|
|
29
|
-
* manifest/plist file.
|
|
30
|
-
*/
|
|
31
|
-
export declare function setAutomaticDataCollectionEnabled(inAppMessaging: InAppMessaging, enabled: boolean): Promise<null>;
|
|
32
|
-
/**
|
|
33
|
-
* Trigger in-app messages programmatically.
|
|
34
|
-
*/
|
|
35
|
-
export declare function triggerEvent(inAppMessaging: InAppMessaging, eventId: string): Promise<null>;
|
|
36
|
-
//# sourceMappingURL=modular.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"modular.d.ts","sourceRoot":"","sources":["../../../lib/modular.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAO/D;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,cAAc,CAElD;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,cAAc,EAAE,cAAc,GAAG,OAAO,CAEnF;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAC1C,cAAc,EAAE,cAAc,EAC9B,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,IAAI,CAAC,CAOf;AAED;;GAEG;AACH,wBAAgB,gCAAgC,CAAC,cAAc,EAAE,cAAc,GAAG,OAAO,CAExF;AAED;;;;;;;;;GASG;AACH,wBAAgB,iCAAiC,CAC/C,cAAc,EAAE,cAAc,EAC9B,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,IAAI,CAAC,CAOf;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,cAAc,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAO3F"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ReactNativeFirebase } from '@react-native-firebase/app';
|
|
2
|
-
import './types/internal';
|
|
3
|
-
import type { FirebaseInAppMessagingTypes } from './types/namespaced';
|
|
4
|
-
type InAppMessagingNamespace = ReactNativeFirebase.FirebaseModuleWithStaticsAndApp<FirebaseInAppMessagingTypes.Module, FirebaseInAppMessagingTypes.Statics> & {
|
|
5
|
-
firebase: ReactNativeFirebase.Module;
|
|
6
|
-
app(name?: string): ReactNativeFirebase.FirebaseApp;
|
|
7
|
-
};
|
|
8
|
-
export declare const SDK_VERSION = "25.0.1";
|
|
9
|
-
declare const defaultExport: InAppMessagingNamespace;
|
|
10
|
-
export default defaultExport;
|
|
11
|
-
export declare const firebase: ReactNativeFirebase.FirebaseNamespacedExport<"inAppMessaging", FirebaseInAppMessagingTypes.Module, FirebaseInAppMessagingTypes.Statics, false>;
|
|
12
|
-
//# sourceMappingURL=namespaced.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"namespaced.d.ts","sourceRoot":"","sources":["../../../lib/namespaced.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,OAAO,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AAyDtE,KAAK,uBAAuB,GAAG,mBAAmB,CAAC,+BAA+B,CAChF,2BAA2B,CAAC,MAAM,EAClC,2BAA2B,CAAC,OAAO,CACpC,GAAG;IACF,QAAQ,EAAE,mBAAmB,CAAC,MAAM,CAAC;IACrC,GAAG,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,mBAAmB,CAAC,WAAW,CAAC;CACrD,CAAC;AAGF,eAAO,MAAM,WAAW,WAAU,CAAC;AAEnC,QAAA,MAAM,aAAa,EASF,uBAAuB,CAAC;AAEzC,eAAe,aAAa,CAAC;AAK7B,eAAO,MAAM,QAAQ,EACa,mBAAmB,CAAC,wBAAwB,CAC1E,gBAAgB,EAChB,2BAA2B,CAAC,MAAM,EAClC,2BAA2B,CAAC,OAAO,EACnC,KAAK,CACN,CAAC"}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import type { ReactNativeFirebase } from '@react-native-firebase/app';
|
|
2
|
-
/**
|
|
3
|
-
* Firebase In-App Messaging package for React Native.
|
|
4
|
-
*
|
|
5
|
-
* #### Example 1
|
|
6
|
-
*
|
|
7
|
-
* Access the firebase export from the `inAppMessaging` package:
|
|
8
|
-
*
|
|
9
|
-
* ```js
|
|
10
|
-
* import { firebase } from '@react-native-firebase/in-app-messaging';
|
|
11
|
-
*
|
|
12
|
-
* // firebase.inAppMessaging().X
|
|
13
|
-
* ```
|
|
14
|
-
*
|
|
15
|
-
* #### Example 2
|
|
16
|
-
*
|
|
17
|
-
* Using the default export from the `in-app-messaging` package:
|
|
18
|
-
*
|
|
19
|
-
* ```js
|
|
20
|
-
* import inAppMessaging from '@react-native-firebase/in-app-messaging';
|
|
21
|
-
*
|
|
22
|
-
* // inAppMessaging().X
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
* #### Example 3
|
|
26
|
-
*
|
|
27
|
-
* Using the default export from the `app` package:
|
|
28
|
-
*
|
|
29
|
-
* ```js
|
|
30
|
-
* import firebase from '@react-native-firebase/app';
|
|
31
|
-
* import '@react-native-firebase/in-app-messaging';
|
|
32
|
-
*
|
|
33
|
-
* // firebase.inAppMessaging().X
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @firebase in-app-messaging
|
|
37
|
-
*/
|
|
38
|
-
/**
|
|
39
|
-
* @deprecated Use the exported types directly instead.
|
|
40
|
-
* FirebaseInAppMessagingTypes namespace is kept for backwards compatibility.
|
|
41
|
-
*/
|
|
42
|
-
export declare namespace FirebaseInAppMessagingTypes {
|
|
43
|
-
/**
|
|
44
|
-
* @deprecated Use the exported types directly instead. FirebaseInAppMessagingTypes namespace is kept for backwards compatibility.
|
|
45
|
-
*/
|
|
46
|
-
type FirebaseModule = ReactNativeFirebase.FirebaseModule;
|
|
47
|
-
/**
|
|
48
|
-
* @deprecated Use the default export statics instead.
|
|
49
|
-
*/
|
|
50
|
-
export interface Statics {
|
|
51
|
-
/** @deprecated Use the default export statics instead. */
|
|
52
|
-
SDK_VERSION: string;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* @deprecated Use the exported `InAppMessaging` type instead.
|
|
56
|
-
*/
|
|
57
|
-
export interface Module extends FirebaseModule {
|
|
58
|
-
/**
|
|
59
|
-
* @deprecated Use the exported `InAppMessaging` type instead.
|
|
60
|
-
*
|
|
61
|
-
* The current `FirebaseApp` instance for this Firebase service.
|
|
62
|
-
*/
|
|
63
|
-
app: ReactNativeFirebase.FirebaseApp;
|
|
64
|
-
/**
|
|
65
|
-
* @deprecated Use the exported `InAppMessaging` type instead.
|
|
66
|
-
*
|
|
67
|
-
* Determines whether messages are suppressed or not.
|
|
68
|
-
*/
|
|
69
|
-
isMessagesDisplaySuppressed: boolean;
|
|
70
|
-
/**
|
|
71
|
-
* @deprecated Use the exported `InAppMessaging` type instead.
|
|
72
|
-
*
|
|
73
|
-
* Determines whether automatic data collection is enabled or not.
|
|
74
|
-
*/
|
|
75
|
-
isAutomaticDataCollectionEnabled: boolean;
|
|
76
|
-
/**
|
|
77
|
-
* @deprecated Use the exported `InAppMessaging` type instead.
|
|
78
|
-
*
|
|
79
|
-
* Enable or disable suppression of Firebase In App Messaging messages.
|
|
80
|
-
*/
|
|
81
|
-
setMessagesDisplaySuppressed(enabled: boolean): Promise<null>;
|
|
82
|
-
/**
|
|
83
|
-
* @deprecated Use the exported `InAppMessaging` type instead.
|
|
84
|
-
*
|
|
85
|
-
* Enable or disable automatic data collection for Firebase In-App Messaging.
|
|
86
|
-
*/
|
|
87
|
-
setAutomaticDataCollectionEnabled(enabled: boolean): Promise<null>;
|
|
88
|
-
/**
|
|
89
|
-
* @deprecated Use the exported `InAppMessaging` type instead.
|
|
90
|
-
*
|
|
91
|
-
* Trigger in-app messages programmatically.
|
|
92
|
-
*/
|
|
93
|
-
triggerEvent(eventId: string): Promise<null>;
|
|
94
|
-
}
|
|
95
|
-
export {};
|
|
96
|
-
}
|
|
97
|
-
declare module '@react-native-firebase/app' {
|
|
98
|
-
namespace ReactNativeFirebase {
|
|
99
|
-
interface Module {
|
|
100
|
-
inAppMessaging: FirebaseModuleWithStaticsAndApp<FirebaseInAppMessagingTypes.Module, FirebaseInAppMessagingTypes.Statics>;
|
|
101
|
-
}
|
|
102
|
-
interface FirebaseApp {
|
|
103
|
-
inAppMessaging(): FirebaseInAppMessagingTypes.Module;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
//# sourceMappingURL=namespaced.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"namespaced.d.ts","sourceRoot":"","sources":["../../../../lib/types/namespaced.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEtE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH;;;GAGG;AAEH,yBAAiB,2BAA2B,CAAC;IAC3C;;OAEG;IACH,KAAK,cAAc,GAAG,mBAAmB,CAAC,cAAc,CAAC;IAEzD;;OAEG;IACH,MAAM,WAAW,OAAO;QACtB,0DAA0D;QAC1D,WAAW,EAAE,MAAM,CAAC;KACrB;IAED;;OAEG;IACH,MAAM,WAAW,MAAO,SAAQ,cAAc;QAC5C;;;;WAIG;QACH,GAAG,EAAE,mBAAmB,CAAC,WAAW,CAAC;QAErC;;;;WAIG;QACH,2BAA2B,EAAE,OAAO,CAAC;QAErC;;;;WAIG;QACH,gCAAgC,EAAE,OAAO,CAAC;QAE1C;;;;WAIG;QACH,4BAA4B,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;QAE9D;;;;WAIG;QACH,iCAAiC,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;QAEnE;;;;WAIG;QACH,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;KAC9C;;CACF;AAED,OAAO,QAAQ,4BAA4B,CAAC;IAC1C,UAAU,mBAAmB,CAAC;QAC5B,UAAU,MAAM;YACd,cAAc,EAAE,+BAA+B,CAC7C,2BAA2B,CAAC,MAAM,EAClC,2BAA2B,CAAC,OAAO,CACpC,CAAC;SACH;QAED,UAAU,WAAW;YACnB,cAAc,IAAI,2BAA2B,CAAC,MAAM,CAAC;SACtD;KACF;CACF"}
|
package/lib/modular.ts
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2016-present Invertase Limited & Contributors
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this library except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
import { getApp } from '@react-native-firebase/app';
|
|
19
|
-
import {
|
|
20
|
-
MODULAR_DEPRECATION_ARG,
|
|
21
|
-
withModularFlag,
|
|
22
|
-
} from '@react-native-firebase/app/dist/module/common';
|
|
23
|
-
import type { InAppMessaging } from './types/in-app-messaging';
|
|
24
|
-
import type { InAppMessagingWithDeprecationArg } from './types/internal';
|
|
25
|
-
|
|
26
|
-
function withModularDeprecationArg(inAppMessaging: InAppMessaging): InAppMessagingWithDeprecationArg {
|
|
27
|
-
return inAppMessaging as InAppMessagingWithDeprecationArg;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Returns the {@link InAppMessaging} instance for the default app.
|
|
32
|
-
*/
|
|
33
|
-
export function getInAppMessaging(): InAppMessaging {
|
|
34
|
-
return getApp().inAppMessaging();
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Determines whether messages are suppressed or not.
|
|
39
|
-
*/
|
|
40
|
-
export function isMessagesDisplaySuppressed(inAppMessaging: InAppMessaging): boolean {
|
|
41
|
-
return withModularFlag(() => inAppMessaging.isMessagesDisplaySuppressed);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Enable or disable suppression of Firebase In App Messaging messages.
|
|
46
|
-
*
|
|
47
|
-
* When enabled, no in app messages will be rendered until either you disable suppression, or the app
|
|
48
|
-
* restarts. This state is not persisted between app restarts.
|
|
49
|
-
*/
|
|
50
|
-
export function setMessagesDisplaySuppressed(
|
|
51
|
-
inAppMessaging: InAppMessaging,
|
|
52
|
-
enabled: boolean,
|
|
53
|
-
): Promise<null> {
|
|
54
|
-
const internalInAppMessaging = withModularDeprecationArg(inAppMessaging);
|
|
55
|
-
return internalInAppMessaging.setMessagesDisplaySuppressed.call(
|
|
56
|
-
internalInAppMessaging,
|
|
57
|
-
enabled,
|
|
58
|
-
MODULAR_DEPRECATION_ARG,
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Determines whether automatic data collection is enabled or not.
|
|
64
|
-
*/
|
|
65
|
-
export function isAutomaticDataCollectionEnabled(inAppMessaging: InAppMessaging): boolean {
|
|
66
|
-
return withModularFlag(() => inAppMessaging.isAutomaticDataCollectionEnabled);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Enable or disable automatic data collection for Firebase In-App Messaging.
|
|
71
|
-
*
|
|
72
|
-
* When enabled, generates a registration token on app startup if there is no valid one and
|
|
73
|
-
* generates a new token when it is deleted (which prevents `deleteInstanceId()` from stopping the
|
|
74
|
-
* periodic sending of data).
|
|
75
|
-
*
|
|
76
|
-
* This setting is persisted across app restarts and overrides the setting specified in your
|
|
77
|
-
* manifest/plist file.
|
|
78
|
-
*/
|
|
79
|
-
export function setAutomaticDataCollectionEnabled(
|
|
80
|
-
inAppMessaging: InAppMessaging,
|
|
81
|
-
enabled: boolean,
|
|
82
|
-
): Promise<null> {
|
|
83
|
-
const internalInAppMessaging = withModularDeprecationArg(inAppMessaging);
|
|
84
|
-
return internalInAppMessaging.setAutomaticDataCollectionEnabled.call(
|
|
85
|
-
internalInAppMessaging,
|
|
86
|
-
enabled,
|
|
87
|
-
MODULAR_DEPRECATION_ARG,
|
|
88
|
-
);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Trigger in-app messages programmatically.
|
|
93
|
-
*/
|
|
94
|
-
export function triggerEvent(inAppMessaging: InAppMessaging, eventId: string): Promise<null> {
|
|
95
|
-
const internalInAppMessaging = withModularDeprecationArg(inAppMessaging);
|
|
96
|
-
return internalInAppMessaging.triggerEvent.call(
|
|
97
|
-
internalInAppMessaging,
|
|
98
|
-
eventId,
|
|
99
|
-
MODULAR_DEPRECATION_ARG,
|
|
100
|
-
);
|
|
101
|
-
}
|
package/lib/namespaced.ts
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2016-present Invertase Limited & Contributors
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this library except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
import { isBoolean, isString } from '@react-native-firebase/app/dist/module/common';
|
|
19
|
-
import {
|
|
20
|
-
createModuleNamespace,
|
|
21
|
-
FirebaseModule,
|
|
22
|
-
getFirebaseRoot,
|
|
23
|
-
} from '@react-native-firebase/app/dist/module/internal';
|
|
24
|
-
import type { ReactNativeFirebase } from '@react-native-firebase/app';
|
|
25
|
-
|
|
26
|
-
import './types/internal';
|
|
27
|
-
import type { FirebaseInAppMessagingTypes } from './types/namespaced';
|
|
28
|
-
import { version } from './version';
|
|
29
|
-
|
|
30
|
-
const statics = {};
|
|
31
|
-
|
|
32
|
-
const namespace = 'inAppMessaging';
|
|
33
|
-
|
|
34
|
-
const nativeModuleName = 'RNFBFiamModule';
|
|
35
|
-
|
|
36
|
-
class FirebaseFiamModule extends FirebaseModule<typeof nativeModuleName> {
|
|
37
|
-
private _isMessagesDisplaySuppressed: boolean;
|
|
38
|
-
private _isAutomaticDataCollectionEnabled: boolean;
|
|
39
|
-
|
|
40
|
-
constructor(...args: ConstructorParameters<typeof FirebaseModule>) {
|
|
41
|
-
super(...args);
|
|
42
|
-
this._isMessagesDisplaySuppressed = this.native.isMessagesDisplaySuppressed;
|
|
43
|
-
this._isAutomaticDataCollectionEnabled = this.native.isAutomaticDataCollectionEnabled;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
get isMessagesDisplaySuppressed(): boolean {
|
|
47
|
-
return this._isMessagesDisplaySuppressed;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
get isAutomaticDataCollectionEnabled(): boolean {
|
|
51
|
-
return this._isAutomaticDataCollectionEnabled;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
setMessagesDisplaySuppressed(enabled: boolean): Promise<null> {
|
|
55
|
-
if (!isBoolean(enabled)) {
|
|
56
|
-
throw new Error(
|
|
57
|
-
"firebase.inAppMessaging().setMessagesDisplaySuppressed(*) 'enabled' must be a boolean.",
|
|
58
|
-
);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
this._isMessagesDisplaySuppressed = enabled;
|
|
62
|
-
return this.native.setMessagesDisplaySuppressed(enabled);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
setAutomaticDataCollectionEnabled(enabled: boolean): Promise<null> {
|
|
66
|
-
if (!isBoolean(enabled)) {
|
|
67
|
-
throw new Error(
|
|
68
|
-
"firebase.inAppMessaging().setAutomaticDataCollectionEnabled(*) 'enabled' must be a boolean.",
|
|
69
|
-
);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
this._isAutomaticDataCollectionEnabled = enabled;
|
|
73
|
-
return this.native.setAutomaticDataCollectionEnabled(enabled);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
triggerEvent(eventId: string): Promise<null> {
|
|
77
|
-
if (!isString(eventId)) {
|
|
78
|
-
throw new Error("firebase.inAppMessaging().triggerEvent(*) 'eventId' must be a string.");
|
|
79
|
-
}
|
|
80
|
-
return this.native.triggerEvent(eventId);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
type InAppMessagingNamespace = ReactNativeFirebase.FirebaseModuleWithStaticsAndApp<
|
|
85
|
-
FirebaseInAppMessagingTypes.Module,
|
|
86
|
-
FirebaseInAppMessagingTypes.Statics
|
|
87
|
-
> & {
|
|
88
|
-
firebase: ReactNativeFirebase.Module;
|
|
89
|
-
app(name?: string): ReactNativeFirebase.FirebaseApp;
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
// import { SDK_VERSION } from '@react-native-firebase/in-app-messaging';
|
|
93
|
-
export const SDK_VERSION = version;
|
|
94
|
-
|
|
95
|
-
const defaultExport = createModuleNamespace({
|
|
96
|
-
statics,
|
|
97
|
-
version,
|
|
98
|
-
namespace,
|
|
99
|
-
nativeModuleName,
|
|
100
|
-
nativeEvents: false,
|
|
101
|
-
hasMultiAppSupport: false,
|
|
102
|
-
hasCustomUrlOrRegionSupport: false,
|
|
103
|
-
ModuleClass: FirebaseFiamModule,
|
|
104
|
-
}) as unknown as InAppMessagingNamespace;
|
|
105
|
-
|
|
106
|
-
export default defaultExport;
|
|
107
|
-
|
|
108
|
-
// import inAppMessaging, { firebase } from '@react-native-firebase/in-app-messaging';
|
|
109
|
-
// inAppMessaging().X(...);
|
|
110
|
-
// firebase.inAppMessaging().X(...);
|
|
111
|
-
export const firebase =
|
|
112
|
-
getFirebaseRoot() as unknown as ReactNativeFirebase.FirebaseNamespacedExport<
|
|
113
|
-
'inAppMessaging',
|
|
114
|
-
FirebaseInAppMessagingTypes.Module,
|
|
115
|
-
FirebaseInAppMessagingTypes.Statics,
|
|
116
|
-
false
|
|
117
|
-
>;
|
package/lib/types/namespaced.ts
DELETED
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2016-present Invertase Limited & Contributors
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this library except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
import type { ReactNativeFirebase } from '@react-native-firebase/app';
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Firebase In-App Messaging package for React Native.
|
|
22
|
-
*
|
|
23
|
-
* #### Example 1
|
|
24
|
-
*
|
|
25
|
-
* Access the firebase export from the `inAppMessaging` package:
|
|
26
|
-
*
|
|
27
|
-
* ```js
|
|
28
|
-
* import { firebase } from '@react-native-firebase/in-app-messaging';
|
|
29
|
-
*
|
|
30
|
-
* // firebase.inAppMessaging().X
|
|
31
|
-
* ```
|
|
32
|
-
*
|
|
33
|
-
* #### Example 2
|
|
34
|
-
*
|
|
35
|
-
* Using the default export from the `in-app-messaging` package:
|
|
36
|
-
*
|
|
37
|
-
* ```js
|
|
38
|
-
* import inAppMessaging from '@react-native-firebase/in-app-messaging';
|
|
39
|
-
*
|
|
40
|
-
* // inAppMessaging().X
|
|
41
|
-
* ```
|
|
42
|
-
*
|
|
43
|
-
* #### Example 3
|
|
44
|
-
*
|
|
45
|
-
* Using the default export from the `app` package:
|
|
46
|
-
*
|
|
47
|
-
* ```js
|
|
48
|
-
* import firebase from '@react-native-firebase/app';
|
|
49
|
-
* import '@react-native-firebase/in-app-messaging';
|
|
50
|
-
*
|
|
51
|
-
* // firebase.inAppMessaging().X
|
|
52
|
-
* ```
|
|
53
|
-
*
|
|
54
|
-
* @firebase in-app-messaging
|
|
55
|
-
*/
|
|
56
|
-
/**
|
|
57
|
-
* @deprecated Use the exported types directly instead.
|
|
58
|
-
* FirebaseInAppMessagingTypes namespace is kept for backwards compatibility.
|
|
59
|
-
*/
|
|
60
|
-
/* eslint-disable @typescript-eslint/no-namespace */
|
|
61
|
-
export namespace FirebaseInAppMessagingTypes {
|
|
62
|
-
/**
|
|
63
|
-
* @deprecated Use the exported types directly instead. FirebaseInAppMessagingTypes namespace is kept for backwards compatibility.
|
|
64
|
-
*/
|
|
65
|
-
type FirebaseModule = ReactNativeFirebase.FirebaseModule;
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* @deprecated Use the default export statics instead.
|
|
69
|
-
*/
|
|
70
|
-
export interface Statics {
|
|
71
|
-
/** @deprecated Use the default export statics instead. */
|
|
72
|
-
SDK_VERSION: string;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* @deprecated Use the exported `InAppMessaging` type instead.
|
|
77
|
-
*/
|
|
78
|
-
export interface Module extends FirebaseModule {
|
|
79
|
-
/**
|
|
80
|
-
* @deprecated Use the exported `InAppMessaging` type instead.
|
|
81
|
-
*
|
|
82
|
-
* The current `FirebaseApp` instance for this Firebase service.
|
|
83
|
-
*/
|
|
84
|
-
app: ReactNativeFirebase.FirebaseApp;
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* @deprecated Use the exported `InAppMessaging` type instead.
|
|
88
|
-
*
|
|
89
|
-
* Determines whether messages are suppressed or not.
|
|
90
|
-
*/
|
|
91
|
-
isMessagesDisplaySuppressed: boolean;
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* @deprecated Use the exported `InAppMessaging` type instead.
|
|
95
|
-
*
|
|
96
|
-
* Determines whether automatic data collection is enabled or not.
|
|
97
|
-
*/
|
|
98
|
-
isAutomaticDataCollectionEnabled: boolean;
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* @deprecated Use the exported `InAppMessaging` type instead.
|
|
102
|
-
*
|
|
103
|
-
* Enable or disable suppression of Firebase In App Messaging messages.
|
|
104
|
-
*/
|
|
105
|
-
setMessagesDisplaySuppressed(enabled: boolean): Promise<null>;
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* @deprecated Use the exported `InAppMessaging` type instead.
|
|
109
|
-
*
|
|
110
|
-
* Enable or disable automatic data collection for Firebase In-App Messaging.
|
|
111
|
-
*/
|
|
112
|
-
setAutomaticDataCollectionEnabled(enabled: boolean): Promise<null>;
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* @deprecated Use the exported `InAppMessaging` type instead.
|
|
116
|
-
*
|
|
117
|
-
* Trigger in-app messages programmatically.
|
|
118
|
-
*/
|
|
119
|
-
triggerEvent(eventId: string): Promise<null>;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
declare module '@react-native-firebase/app' {
|
|
124
|
-
namespace ReactNativeFirebase {
|
|
125
|
-
interface Module {
|
|
126
|
-
inAppMessaging: FirebaseModuleWithStaticsAndApp<
|
|
127
|
-
FirebaseInAppMessagingTypes.Module,
|
|
128
|
-
FirebaseInAppMessagingTypes.Statics
|
|
129
|
-
>;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
interface FirebaseApp {
|
|
133
|
-
inAppMessaging(): FirebaseInAppMessagingTypes.Module;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
/* eslint-enable @typescript-eslint/no-namespace */
|