@react-native-firebase/in-app-messaging 26.2.0 → 26.3.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 +6 -0
- package/RNFBInAppMessaging.podspec +9 -0
- package/android/src/reactnative/java/io/invertase/firebase/fiam/generated/jni/CMakeLists.txt +1 -9
- package/android/src/reactnative/java/io/invertase/firebase/fiam/generated/jni/react/renderer/components/RNFBInAppMessagingTurboModules/RNFBInAppMessagingTurboModulesJSI.h +34 -68
- package/dist/module/version.js +1 -1
- package/dist/typescript/lib/index.d.ts +1 -1
- package/dist/typescript/lib/version.d.ts +1 -1
- package/ios/generated/RNFBInAppMessagingTurboModules/RNFBInAppMessagingTurboModules.h +2 -2
- package/ios/generated/RNFBInAppMessagingTurboModulesJSI.h +34 -68
- package/lib/version.ts +1 -1
- package/package.json +7 -7
- package/android/src/reactnative/java/io/invertase/firebase/fiam/generated/jni/react/renderer/components/RNFBInAppMessagingTurboModules/RNFBInAppMessagingTurboModulesJSI-generated.cpp +0 -47
- package/ios/generated/RCTAppDependencyProvider.h +0 -25
- package/ios/generated/RCTAppDependencyProvider.mm +0 -55
- package/ios/generated/RCTModulesConformingToProtocolsProvider.h +0 -18
- package/ios/generated/RCTModulesConformingToProtocolsProvider.mm +0 -33
- package/ios/generated/RCTThirdPartyComponentsProvider.h +0 -16
- package/ios/generated/RCTThirdPartyComponentsProvider.mm +0 -23
- package/ios/generated/RNFBInAppMessagingTurboModulesJSI-generated.cpp +0 -47
- package/ios/generated/ReactAppDependencyProvider.podspec +0 -34
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [26.3.0](https://github.com/invertase/react-native-firebase/compare/v26.2.0...v26.3.0) (2026-08-20)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **ios:** allow non-modular React includes in RNFB podspecs ([#9200](https://github.com/invertase/react-native-firebase/issues/9200)) ([dd453ff](https://github.com/invertase/react-native-firebase/commit/dd453ff17a8bd645b9d0eb56bef74df53f217f93))
|
|
11
|
+
|
|
6
12
|
## [26.2.0](https://github.com/invertase/react-native-firebase/compare/v26.1.0...v26.2.0) (2026-08-10)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
|
@@ -34,6 +34,15 @@ Pod::Spec.new do |s|
|
|
|
34
34
|
s.private_header_files = "ios/**/*.h"
|
|
35
35
|
s.exclude_files = 'ios/generated/RCTThirdPartyComponentsProvider.*', 'ios/generated/RCTAppDependencyProvider.*', 'ios/generated/RCTModuleProviders.*', 'ios/generated/RCTModulesConformingToProtocolsProvider.*', 'ios/generated/RCTUnstableModulesRequiringMainQueueSetupProvider.*'
|
|
36
36
|
|
|
37
|
+
# Must be set before install_modules_dependencies so RN can append use_frameworks
|
|
38
|
+
# HEADER_SEARCH_PATHS (React-debug etc.). Assigning after overwrites those paths
|
|
39
|
+
# and breaks from-source builds: react/timing/primitives.h → react/debug/flags.h.
|
|
40
|
+
# CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES is required so the
|
|
41
|
+
# framework module validates when consumers build with use_frameworks!.
|
|
42
|
+
s.pod_target_xcconfig = {
|
|
43
|
+
"CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES" => "YES",
|
|
44
|
+
}
|
|
45
|
+
|
|
37
46
|
s.dependency 'RNFBApp'
|
|
38
47
|
|
|
39
48
|
install_modules_dependencies(s);
|
package/android/src/reactnative/java/io/invertase/firebase/fiam/generated/jni/CMakeLists.txt
CHANGED
|
@@ -25,12 +25,4 @@ target_link_libraries(
|
|
|
25
25
|
reactnative
|
|
26
26
|
)
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
react_codegen_RNFBInAppMessagingTurboModules
|
|
30
|
-
PRIVATE
|
|
31
|
-
-DLOG_TAG=\"ReactNative\"
|
|
32
|
-
-fexceptions
|
|
33
|
-
-frtti
|
|
34
|
-
-std=c++20
|
|
35
|
-
-Wall
|
|
36
|
-
)
|
|
28
|
+
target_compile_reactnative_options(react_codegen_RNFBInAppMessagingTurboModules PRIVATE)
|
|
@@ -15,84 +15,50 @@
|
|
|
15
15
|
namespace facebook::react {
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
class JSI_EXPORT NativeRNFBTurboFiamCxxSpecJSI : public TurboModule {
|
|
19
|
-
protected:
|
|
20
|
-
NativeRNFBTurboFiamCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
|
|
21
|
-
|
|
22
|
-
public:
|
|
23
|
-
virtual jsi::Object getConstants(jsi::Runtime &rt) = 0;
|
|
24
|
-
virtual jsi::Value setAutomaticDataCollectionEnabled(jsi::Runtime &rt, bool enabled) = 0;
|
|
25
|
-
virtual jsi::Value setMessagesDisplaySuppressed(jsi::Runtime &rt, bool enabled) = 0;
|
|
26
|
-
virtual jsi::Value triggerEvent(jsi::Runtime &rt, jsi::String eventId) = 0;
|
|
27
|
-
|
|
28
|
-
};
|
|
29
|
-
|
|
30
18
|
template <typename T>
|
|
31
19
|
class JSI_EXPORT NativeRNFBTurboFiamCxxSpec : public TurboModule {
|
|
32
20
|
public:
|
|
33
|
-
jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override {
|
|
34
|
-
return delegate_.create(rt, propName);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime& runtime) override {
|
|
38
|
-
return delegate_.getPropertyNames(runtime);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
21
|
static constexpr std::string_view kModuleName = "NativeRNFBTurboFiam";
|
|
42
22
|
|
|
43
23
|
protected:
|
|
44
|
-
NativeRNFBTurboFiamCxxSpec(std::shared_ptr<CallInvoker> jsInvoker)
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
24
|
+
NativeRNFBTurboFiamCxxSpec(std::shared_ptr<CallInvoker> jsInvoker) : TurboModule(std::string{NativeRNFBTurboFiamCxxSpec::kModuleName}, jsInvoker) {
|
|
25
|
+
methodMap_["getConstants"] = MethodMetadata {.argCount = 0, .invoker = __getConstants};
|
|
26
|
+
methodMap_["setAutomaticDataCollectionEnabled"] = MethodMetadata {.argCount = 1, .invoker = __setAutomaticDataCollectionEnabled};
|
|
27
|
+
methodMap_["setMessagesDisplaySuppressed"] = MethodMetadata {.argCount = 1, .invoker = __setMessagesDisplaySuppressed};
|
|
28
|
+
methodMap_["triggerEvent"] = MethodMetadata {.argCount = 1, .invoker = __triggerEvent};
|
|
29
|
+
}
|
|
30
|
+
|
|
49
31
|
private:
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
jsi::Object getConstants(jsi::Runtime &rt) override {
|
|
58
|
-
static_assert(
|
|
59
|
-
bridging::getParameterCount(&T::getConstants) == 1,
|
|
60
|
-
"Expected getConstants(...) to have 1 parameters");
|
|
61
|
-
|
|
62
|
-
return bridging::callFromJs<jsi::Object>(
|
|
63
|
-
rt, &T::getConstants, jsInvoker_, instance_);
|
|
64
|
-
}
|
|
65
|
-
jsi::Value setAutomaticDataCollectionEnabled(jsi::Runtime &rt, bool enabled) override {
|
|
66
|
-
static_assert(
|
|
67
|
-
bridging::getParameterCount(&T::setAutomaticDataCollectionEnabled) == 2,
|
|
68
|
-
"Expected setAutomaticDataCollectionEnabled(...) to have 2 parameters");
|
|
69
|
-
|
|
70
|
-
return bridging::callFromJs<jsi::Value>(
|
|
71
|
-
rt, &T::setAutomaticDataCollectionEnabled, jsInvoker_, instance_, std::move(enabled));
|
|
72
|
-
}
|
|
73
|
-
jsi::Value setMessagesDisplaySuppressed(jsi::Runtime &rt, bool enabled) override {
|
|
74
|
-
static_assert(
|
|
75
|
-
bridging::getParameterCount(&T::setMessagesDisplaySuppressed) == 2,
|
|
76
|
-
"Expected setMessagesDisplaySuppressed(...) to have 2 parameters");
|
|
77
|
-
|
|
78
|
-
return bridging::callFromJs<jsi::Value>(
|
|
79
|
-
rt, &T::setMessagesDisplaySuppressed, jsInvoker_, instance_, std::move(enabled));
|
|
80
|
-
}
|
|
81
|
-
jsi::Value triggerEvent(jsi::Runtime &rt, jsi::String eventId) override {
|
|
82
|
-
static_assert(
|
|
83
|
-
bridging::getParameterCount(&T::triggerEvent) == 2,
|
|
84
|
-
"Expected triggerEvent(...) to have 2 parameters");
|
|
32
|
+
static jsi::Value __getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
|
|
33
|
+
static_assert(
|
|
34
|
+
bridging::getParameterCount(&T::getConstants) == 1,
|
|
35
|
+
"Expected getConstants(...) to have 1 parameters");
|
|
36
|
+
return bridging::callFromJs<jsi::Object>(rt, &T::getConstants, static_cast<NativeRNFBTurboFiamCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
|
|
37
|
+
}
|
|
85
38
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
39
|
+
static jsi::Value __setAutomaticDataCollectionEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
40
|
+
static_assert(
|
|
41
|
+
bridging::getParameterCount(&T::setAutomaticDataCollectionEnabled) == 2,
|
|
42
|
+
"Expected setAutomaticDataCollectionEnabled(...) to have 2 parameters");
|
|
43
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::setAutomaticDataCollectionEnabled, static_cast<NativeRNFBTurboFiamCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
44
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool());
|
|
45
|
+
}
|
|
89
46
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
47
|
+
static jsi::Value __setMessagesDisplaySuppressed(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
48
|
+
static_assert(
|
|
49
|
+
bridging::getParameterCount(&T::setMessagesDisplaySuppressed) == 2,
|
|
50
|
+
"Expected setMessagesDisplaySuppressed(...) to have 2 parameters");
|
|
51
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::setMessagesDisplaySuppressed, static_cast<NativeRNFBTurboFiamCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
52
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool());
|
|
53
|
+
}
|
|
94
54
|
|
|
95
|
-
|
|
55
|
+
static jsi::Value __triggerEvent(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
56
|
+
static_assert(
|
|
57
|
+
bridging::getParameterCount(&T::triggerEvent) == 2,
|
|
58
|
+
"Expected triggerEvent(...) to have 2 parameters");
|
|
59
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::triggerEvent, static_cast<NativeRNFBTurboFiamCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
60
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt));
|
|
61
|
+
}
|
|
96
62
|
};
|
|
97
63
|
|
|
98
64
|
} // namespace facebook::react
|
package/dist/module/version.js
CHANGED
|
@@ -6,7 +6,7 @@ import type { InAppMessaging } from './types/in-app-messaging';
|
|
|
6
6
|
*
|
|
7
7
|
* The firebase-js-sdk does not ship a modular In-App Messaging entry point or `SDK_VERSION` export.
|
|
8
8
|
*/
|
|
9
|
-
export declare const SDK_VERSION = "26.
|
|
9
|
+
export declare const SDK_VERSION = "26.3.0";
|
|
10
10
|
/**
|
|
11
11
|
* Returns the {@link InAppMessaging} instance for the default or given {@link FirebaseApp}.
|
|
12
12
|
*
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "26.
|
|
1
|
+
export declare const version = "26.3.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -74,8 +74,8 @@ namespace JS {
|
|
|
74
74
|
- (void)triggerEvent:(NSString *)eventId
|
|
75
75
|
resolve:(RCTPromiseResolveBlock)resolve
|
|
76
76
|
reject:(RCTPromiseRejectBlock)reject;
|
|
77
|
-
- (facebook::react::ModuleConstants<JS::NativeRNFBTurboFiam::Constants
|
|
78
|
-
- (facebook::react::ModuleConstants<JS::NativeRNFBTurboFiam::Constants
|
|
77
|
+
- (facebook::react::ModuleConstants<JS::NativeRNFBTurboFiam::Constants>)constantsToExport;
|
|
78
|
+
- (facebook::react::ModuleConstants<JS::NativeRNFBTurboFiam::Constants>)getConstants;
|
|
79
79
|
|
|
80
80
|
@end
|
|
81
81
|
|
|
@@ -15,84 +15,50 @@
|
|
|
15
15
|
namespace facebook::react {
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
class JSI_EXPORT NativeRNFBTurboFiamCxxSpecJSI : public TurboModule {
|
|
19
|
-
protected:
|
|
20
|
-
NativeRNFBTurboFiamCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
|
|
21
|
-
|
|
22
|
-
public:
|
|
23
|
-
virtual jsi::Object getConstants(jsi::Runtime &rt) = 0;
|
|
24
|
-
virtual jsi::Value setAutomaticDataCollectionEnabled(jsi::Runtime &rt, bool enabled) = 0;
|
|
25
|
-
virtual jsi::Value setMessagesDisplaySuppressed(jsi::Runtime &rt, bool enabled) = 0;
|
|
26
|
-
virtual jsi::Value triggerEvent(jsi::Runtime &rt, jsi::String eventId) = 0;
|
|
27
|
-
|
|
28
|
-
};
|
|
29
|
-
|
|
30
18
|
template <typename T>
|
|
31
19
|
class JSI_EXPORT NativeRNFBTurboFiamCxxSpec : public TurboModule {
|
|
32
20
|
public:
|
|
33
|
-
jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override {
|
|
34
|
-
return delegate_.create(rt, propName);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime& runtime) override {
|
|
38
|
-
return delegate_.getPropertyNames(runtime);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
21
|
static constexpr std::string_view kModuleName = "NativeRNFBTurboFiam";
|
|
42
22
|
|
|
43
23
|
protected:
|
|
44
|
-
NativeRNFBTurboFiamCxxSpec(std::shared_ptr<CallInvoker> jsInvoker)
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
24
|
+
NativeRNFBTurboFiamCxxSpec(std::shared_ptr<CallInvoker> jsInvoker) : TurboModule(std::string{NativeRNFBTurboFiamCxxSpec::kModuleName}, jsInvoker) {
|
|
25
|
+
methodMap_["getConstants"] = MethodMetadata {.argCount = 0, .invoker = __getConstants};
|
|
26
|
+
methodMap_["setAutomaticDataCollectionEnabled"] = MethodMetadata {.argCount = 1, .invoker = __setAutomaticDataCollectionEnabled};
|
|
27
|
+
methodMap_["setMessagesDisplaySuppressed"] = MethodMetadata {.argCount = 1, .invoker = __setMessagesDisplaySuppressed};
|
|
28
|
+
methodMap_["triggerEvent"] = MethodMetadata {.argCount = 1, .invoker = __triggerEvent};
|
|
29
|
+
}
|
|
30
|
+
|
|
49
31
|
private:
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
jsi::Object getConstants(jsi::Runtime &rt) override {
|
|
58
|
-
static_assert(
|
|
59
|
-
bridging::getParameterCount(&T::getConstants) == 1,
|
|
60
|
-
"Expected getConstants(...) to have 1 parameters");
|
|
61
|
-
|
|
62
|
-
return bridging::callFromJs<jsi::Object>(
|
|
63
|
-
rt, &T::getConstants, jsInvoker_, instance_);
|
|
64
|
-
}
|
|
65
|
-
jsi::Value setAutomaticDataCollectionEnabled(jsi::Runtime &rt, bool enabled) override {
|
|
66
|
-
static_assert(
|
|
67
|
-
bridging::getParameterCount(&T::setAutomaticDataCollectionEnabled) == 2,
|
|
68
|
-
"Expected setAutomaticDataCollectionEnabled(...) to have 2 parameters");
|
|
69
|
-
|
|
70
|
-
return bridging::callFromJs<jsi::Value>(
|
|
71
|
-
rt, &T::setAutomaticDataCollectionEnabled, jsInvoker_, instance_, std::move(enabled));
|
|
72
|
-
}
|
|
73
|
-
jsi::Value setMessagesDisplaySuppressed(jsi::Runtime &rt, bool enabled) override {
|
|
74
|
-
static_assert(
|
|
75
|
-
bridging::getParameterCount(&T::setMessagesDisplaySuppressed) == 2,
|
|
76
|
-
"Expected setMessagesDisplaySuppressed(...) to have 2 parameters");
|
|
77
|
-
|
|
78
|
-
return bridging::callFromJs<jsi::Value>(
|
|
79
|
-
rt, &T::setMessagesDisplaySuppressed, jsInvoker_, instance_, std::move(enabled));
|
|
80
|
-
}
|
|
81
|
-
jsi::Value triggerEvent(jsi::Runtime &rt, jsi::String eventId) override {
|
|
82
|
-
static_assert(
|
|
83
|
-
bridging::getParameterCount(&T::triggerEvent) == 2,
|
|
84
|
-
"Expected triggerEvent(...) to have 2 parameters");
|
|
32
|
+
static jsi::Value __getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
|
|
33
|
+
static_assert(
|
|
34
|
+
bridging::getParameterCount(&T::getConstants) == 1,
|
|
35
|
+
"Expected getConstants(...) to have 1 parameters");
|
|
36
|
+
return bridging::callFromJs<jsi::Object>(rt, &T::getConstants, static_cast<NativeRNFBTurboFiamCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
|
|
37
|
+
}
|
|
85
38
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
39
|
+
static jsi::Value __setAutomaticDataCollectionEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
40
|
+
static_assert(
|
|
41
|
+
bridging::getParameterCount(&T::setAutomaticDataCollectionEnabled) == 2,
|
|
42
|
+
"Expected setAutomaticDataCollectionEnabled(...) to have 2 parameters");
|
|
43
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::setAutomaticDataCollectionEnabled, static_cast<NativeRNFBTurboFiamCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
44
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool());
|
|
45
|
+
}
|
|
89
46
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
47
|
+
static jsi::Value __setMessagesDisplaySuppressed(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
48
|
+
static_assert(
|
|
49
|
+
bridging::getParameterCount(&T::setMessagesDisplaySuppressed) == 2,
|
|
50
|
+
"Expected setMessagesDisplaySuppressed(...) to have 2 parameters");
|
|
51
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::setMessagesDisplaySuppressed, static_cast<NativeRNFBTurboFiamCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
52
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool());
|
|
53
|
+
}
|
|
94
54
|
|
|
95
|
-
|
|
55
|
+
static jsi::Value __triggerEvent(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
56
|
+
static_assert(
|
|
57
|
+
bridging::getParameterCount(&T::triggerEvent) == 2,
|
|
58
|
+
"Expected triggerEvent(...) to have 2 parameters");
|
|
59
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::triggerEvent, static_cast<NativeRNFBTurboFiamCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
60
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt));
|
|
61
|
+
}
|
|
96
62
|
};
|
|
97
63
|
|
|
98
64
|
} // namespace facebook::react
|
package/lib/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '26.
|
|
2
|
+
export const version = '26.3.0';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native-firebase/in-app-messaging",
|
|
3
|
-
"version": "26.
|
|
3
|
+
"version": "26.3.0",
|
|
4
4
|
"author": "Invertase <oss@invertase.io> (http://invertase.io)",
|
|
5
5
|
"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.",
|
|
6
6
|
"main": "./dist/module/index.js",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"compile": "bob build",
|
|
26
26
|
"prepare": "yarn run build && yarn compile",
|
|
27
27
|
"codegen": "yarn android:codegen && yarn ios:codegen",
|
|
28
|
-
"android:codegen": "
|
|
29
|
-
"ios:codegen": "
|
|
28
|
+
"android:codegen": "node ../../scripts/codegen-package.mjs in-app-messaging android",
|
|
29
|
+
"ios:codegen": "node ../../scripts/codegen-package.mjs in-app-messaging ios"
|
|
30
30
|
},
|
|
31
31
|
"repository": {
|
|
32
32
|
"type": "git",
|
|
@@ -45,15 +45,15 @@
|
|
|
45
45
|
"inAppMessaging"
|
|
46
46
|
],
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@react-native-firebase/analytics": "26.
|
|
49
|
-
"@react-native-firebase/app": "26.
|
|
48
|
+
"@react-native-firebase/analytics": "26.3.0",
|
|
49
|
+
"@react-native-firebase/app": "26.3.0"
|
|
50
50
|
},
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public",
|
|
53
53
|
"provenance": true
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@react-native-firebase/app": "26.
|
|
56
|
+
"@react-native-firebase/app": "26.3.0",
|
|
57
57
|
"react-native-builder-bob": "^0.41.0"
|
|
58
58
|
},
|
|
59
59
|
"exports": {
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"node_modules/",
|
|
87
87
|
"dist/"
|
|
88
88
|
],
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "12a52d40c0d156d05a16f4b49eb0e507c0f5d8c5"
|
|
90
90
|
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
3
|
-
*
|
|
4
|
-
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
5
|
-
* once the code is regenerated.
|
|
6
|
-
*
|
|
7
|
-
* @generated by codegen project: GenerateModuleCpp.js
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
#include "RNFBInAppMessagingTurboModulesJSI.h"
|
|
11
|
-
|
|
12
|
-
namespace facebook::react {
|
|
13
|
-
|
|
14
|
-
static jsi::Value __hostFunction_NativeRNFBTurboFiamCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
15
|
-
return static_cast<NativeRNFBTurboFiamCxxSpecJSI *>(&turboModule)->getConstants(
|
|
16
|
-
rt
|
|
17
|
-
);
|
|
18
|
-
}
|
|
19
|
-
static jsi::Value __hostFunction_NativeRNFBTurboFiamCxxSpecJSI_setAutomaticDataCollectionEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
20
|
-
return static_cast<NativeRNFBTurboFiamCxxSpecJSI *>(&turboModule)->setAutomaticDataCollectionEnabled(
|
|
21
|
-
rt,
|
|
22
|
-
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool()
|
|
23
|
-
);
|
|
24
|
-
}
|
|
25
|
-
static jsi::Value __hostFunction_NativeRNFBTurboFiamCxxSpecJSI_setMessagesDisplaySuppressed(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
26
|
-
return static_cast<NativeRNFBTurboFiamCxxSpecJSI *>(&turboModule)->setMessagesDisplaySuppressed(
|
|
27
|
-
rt,
|
|
28
|
-
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool()
|
|
29
|
-
);
|
|
30
|
-
}
|
|
31
|
-
static jsi::Value __hostFunction_NativeRNFBTurboFiamCxxSpecJSI_triggerEvent(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
32
|
-
return static_cast<NativeRNFBTurboFiamCxxSpecJSI *>(&turboModule)->triggerEvent(
|
|
33
|
-
rt,
|
|
34
|
-
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
|
|
35
|
-
);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
NativeRNFBTurboFiamCxxSpecJSI::NativeRNFBTurboFiamCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
|
|
39
|
-
: TurboModule("NativeRNFBTurboFiam", jsInvoker) {
|
|
40
|
-
methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeRNFBTurboFiamCxxSpecJSI_getConstants};
|
|
41
|
-
methodMap_["setAutomaticDataCollectionEnabled"] = MethodMetadata {1, __hostFunction_NativeRNFBTurboFiamCxxSpecJSI_setAutomaticDataCollectionEnabled};
|
|
42
|
-
methodMap_["setMessagesDisplaySuppressed"] = MethodMetadata {1, __hostFunction_NativeRNFBTurboFiamCxxSpecJSI_setMessagesDisplaySuppressed};
|
|
43
|
-
methodMap_["triggerEvent"] = MethodMetadata {1, __hostFunction_NativeRNFBTurboFiamCxxSpecJSI_triggerEvent};
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
} // namespace facebook::react
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
#import <Foundation/Foundation.h>
|
|
10
|
-
|
|
11
|
-
#if __has_include(<React-RCTAppDelegate/RCTDependencyProvider.h>)
|
|
12
|
-
#import <React-RCTAppDelegate/RCTDependencyProvider.h>
|
|
13
|
-
#elif __has_include(<React_RCTAppDelegate/RCTDependencyProvider.h>)
|
|
14
|
-
#import <React_RCTAppDelegate/RCTDependencyProvider.h>
|
|
15
|
-
#else
|
|
16
|
-
#import "RCTDependencyProvider.h"
|
|
17
|
-
#endif
|
|
18
|
-
|
|
19
|
-
NS_ASSUME_NONNULL_BEGIN
|
|
20
|
-
|
|
21
|
-
@interface RCTAppDependencyProvider : NSObject <RCTDependencyProvider>
|
|
22
|
-
|
|
23
|
-
@end
|
|
24
|
-
|
|
25
|
-
NS_ASSUME_NONNULL_END
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
#import "RCTAppDependencyProvider.h"
|
|
9
|
-
#import <ReactCodegen/RCTModulesConformingToProtocolsProvider.h>
|
|
10
|
-
#import <ReactCodegen/RCTThirdPartyComponentsProvider.h>
|
|
11
|
-
|
|
12
|
-
@implementation RCTAppDependencyProvider {
|
|
13
|
-
NSArray<NSString *> * _URLRequestHandlerClassNames;
|
|
14
|
-
NSArray<NSString *> * _imageDataDecoderClassNames;
|
|
15
|
-
NSArray<NSString *> * _imageURLLoaderClassNames;
|
|
16
|
-
NSDictionary<NSString *,Class<RCTComponentViewProtocol>> * _thirdPartyFabricComponents;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
- (nonnull NSArray<NSString *> *)URLRequestHandlerClassNames {
|
|
20
|
-
static dispatch_once_t requestUrlToken;
|
|
21
|
-
dispatch_once(&requestUrlToken, ^{
|
|
22
|
-
self->_URLRequestHandlerClassNames = RCTModulesConformingToProtocolsProvider.URLRequestHandlerClassNames;
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
return _URLRequestHandlerClassNames;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
- (nonnull NSArray<NSString *> *)imageDataDecoderClassNames {
|
|
29
|
-
static dispatch_once_t dataDecoderToken;
|
|
30
|
-
dispatch_once(&dataDecoderToken, ^{
|
|
31
|
-
_imageDataDecoderClassNames = RCTModulesConformingToProtocolsProvider.imageDataDecoderClassNames;
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
return _imageDataDecoderClassNames;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
- (nonnull NSArray<NSString *> *)imageURLLoaderClassNames {
|
|
38
|
-
static dispatch_once_t urlLoaderToken;
|
|
39
|
-
dispatch_once(&urlLoaderToken, ^{
|
|
40
|
-
_imageURLLoaderClassNames = RCTModulesConformingToProtocolsProvider.imageURLLoaderClassNames;
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
return _imageURLLoaderClassNames;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
- (nonnull NSDictionary<NSString *,Class<RCTComponentViewProtocol>> *)thirdPartyFabricComponents {
|
|
47
|
-
static dispatch_once_t nativeComponentsToken;
|
|
48
|
-
dispatch_once(&nativeComponentsToken, ^{
|
|
49
|
-
_thirdPartyFabricComponents = RCTThirdPartyComponentsProvider.thirdPartyFabricComponents;
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
return _thirdPartyFabricComponents;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
@end
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
#import <Foundation/Foundation.h>
|
|
9
|
-
|
|
10
|
-
@interface RCTModulesConformingToProtocolsProvider: NSObject
|
|
11
|
-
|
|
12
|
-
+(NSArray<NSString *> *)imageURLLoaderClassNames;
|
|
13
|
-
|
|
14
|
-
+(NSArray<NSString *> *)imageDataDecoderClassNames;
|
|
15
|
-
|
|
16
|
-
+(NSArray<NSString *> *)URLRequestHandlerClassNames;
|
|
17
|
-
|
|
18
|
-
@end
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
#import "RCTModulesConformingToProtocolsProvider.h"
|
|
9
|
-
|
|
10
|
-
@implementation RCTModulesConformingToProtocolsProvider
|
|
11
|
-
|
|
12
|
-
+(NSArray<NSString *> *)imageURLLoaderClassNames
|
|
13
|
-
{
|
|
14
|
-
return @[
|
|
15
|
-
|
|
16
|
-
];
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
+(NSArray<NSString *> *)imageDataDecoderClassNames
|
|
20
|
-
{
|
|
21
|
-
return @[
|
|
22
|
-
|
|
23
|
-
];
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
+(NSArray<NSString *> *)URLRequestHandlerClassNames
|
|
27
|
-
{
|
|
28
|
-
return @[
|
|
29
|
-
|
|
30
|
-
];
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
@end
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
#import <Foundation/Foundation.h>
|
|
9
|
-
|
|
10
|
-
@protocol RCTComponentViewProtocol;
|
|
11
|
-
|
|
12
|
-
@interface RCTThirdPartyComponentsProvider: NSObject
|
|
13
|
-
|
|
14
|
-
+ (NSDictionary<NSString *, Class<RCTComponentViewProtocol>> *)thirdPartyFabricComponents;
|
|
15
|
-
|
|
16
|
-
@end
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
#import <Foundation/Foundation.h>
|
|
10
|
-
|
|
11
|
-
#import "RCTThirdPartyComponentsProvider.h"
|
|
12
|
-
#import <React/RCTComponentViewProtocol.h>
|
|
13
|
-
|
|
14
|
-
@implementation RCTThirdPartyComponentsProvider
|
|
15
|
-
|
|
16
|
-
+ (NSDictionary<NSString *, Class<RCTComponentViewProtocol>> *)thirdPartyFabricComponents
|
|
17
|
-
{
|
|
18
|
-
return @{
|
|
19
|
-
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
@end
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
3
|
-
*
|
|
4
|
-
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
5
|
-
* once the code is regenerated.
|
|
6
|
-
*
|
|
7
|
-
* @generated by codegen project: GenerateModuleCpp.js
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
#include "RNFBInAppMessagingTurboModulesJSI.h"
|
|
11
|
-
|
|
12
|
-
namespace facebook::react {
|
|
13
|
-
|
|
14
|
-
static jsi::Value __hostFunction_NativeRNFBTurboFiamCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
15
|
-
return static_cast<NativeRNFBTurboFiamCxxSpecJSI *>(&turboModule)->getConstants(
|
|
16
|
-
rt
|
|
17
|
-
);
|
|
18
|
-
}
|
|
19
|
-
static jsi::Value __hostFunction_NativeRNFBTurboFiamCxxSpecJSI_setAutomaticDataCollectionEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
20
|
-
return static_cast<NativeRNFBTurboFiamCxxSpecJSI *>(&turboModule)->setAutomaticDataCollectionEnabled(
|
|
21
|
-
rt,
|
|
22
|
-
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool()
|
|
23
|
-
);
|
|
24
|
-
}
|
|
25
|
-
static jsi::Value __hostFunction_NativeRNFBTurboFiamCxxSpecJSI_setMessagesDisplaySuppressed(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
26
|
-
return static_cast<NativeRNFBTurboFiamCxxSpecJSI *>(&turboModule)->setMessagesDisplaySuppressed(
|
|
27
|
-
rt,
|
|
28
|
-
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool()
|
|
29
|
-
);
|
|
30
|
-
}
|
|
31
|
-
static jsi::Value __hostFunction_NativeRNFBTurboFiamCxxSpecJSI_triggerEvent(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
32
|
-
return static_cast<NativeRNFBTurboFiamCxxSpecJSI *>(&turboModule)->triggerEvent(
|
|
33
|
-
rt,
|
|
34
|
-
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
|
|
35
|
-
);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
NativeRNFBTurboFiamCxxSpecJSI::NativeRNFBTurboFiamCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
|
|
39
|
-
: TurboModule("NativeRNFBTurboFiam", jsInvoker) {
|
|
40
|
-
methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeRNFBTurboFiamCxxSpecJSI_getConstants};
|
|
41
|
-
methodMap_["setAutomaticDataCollectionEnabled"] = MethodMetadata {1, __hostFunction_NativeRNFBTurboFiamCxxSpecJSI_setAutomaticDataCollectionEnabled};
|
|
42
|
-
methodMap_["setMessagesDisplaySuppressed"] = MethodMetadata {1, __hostFunction_NativeRNFBTurboFiamCxxSpecJSI_setMessagesDisplaySuppressed};
|
|
43
|
-
methodMap_["triggerEvent"] = MethodMetadata {1, __hostFunction_NativeRNFBTurboFiamCxxSpecJSI_triggerEvent};
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
} // namespace facebook::react
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
#
|
|
3
|
-
# This source code is licensed under the MIT license found in the
|
|
4
|
-
# LICENSE file in the root directory of this source tree.
|
|
5
|
-
|
|
6
|
-
version = "0.78.3"
|
|
7
|
-
source = { :git => 'https://github.com/facebook/react-native.git' }
|
|
8
|
-
if version == '1000.0.0'
|
|
9
|
-
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
|
|
10
|
-
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
|
11
|
-
else
|
|
12
|
-
source[:tag] = "v#{version}"
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
Pod::Spec.new do |s|
|
|
16
|
-
s.name = "ReactAppDependencyProvider"
|
|
17
|
-
s.version = version
|
|
18
|
-
s.summary = "The third party dependency provider for the app"
|
|
19
|
-
s.homepage = "https://reactnative.dev/"
|
|
20
|
-
s.documentation_url = "https://reactnative.dev/"
|
|
21
|
-
s.license = "MIT"
|
|
22
|
-
s.author = "Meta Platforms, Inc. and its affiliates"
|
|
23
|
-
s.platforms = min_supported_versions
|
|
24
|
-
s.source = source
|
|
25
|
-
s.source_files = "**/RCTAppDependencyProvider.{h,mm}"
|
|
26
|
-
|
|
27
|
-
# This guard prevent to install the dependencies when we run `pod install` in the old architecture.
|
|
28
|
-
s.pod_target_xcconfig = {
|
|
29
|
-
"CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
|
|
30
|
-
"DEFINES_MODULE" => "YES"
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
s.dependency "ReactCodegen"
|
|
34
|
-
end
|