react-native-mapp-plugin 1.3.6 → 1.4.1
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 +19 -10
- package/Mapp.js +27 -4
- package/MappEventEmitter.js +4 -1
- package/RNMappPlugin.podspec +3 -4
- package/android/build.gradle +40 -20
- package/android/gradle/gradle-daemon-jvm.properties +12 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/android/gradle.properties +0 -2
- package/android/gradlew +18 -0
- package/android/gradlew.bat +15 -0
- package/android/settings.gradle +2 -4
- package/android/src/main/java/com/reactlibrary/ActivityListener.java +2 -4
- package/android/src/main/java/com/reactlibrary/HelperActivity.java +2 -2
- package/android/src/main/java/com/reactlibrary/MessageService.java +15 -10
- package/android/src/main/java/com/reactlibrary/MyPushBroadcastReceiver.java +29 -22
- package/android/src/main/java/com/reactlibrary/NativeRNMappPluginModuleSpec.java +232 -0
- package/android/src/main/java/com/reactlibrary/PushNotificationEvent.java +3 -3
- package/android/src/main/java/com/reactlibrary/RNMappPluginModule.java +525 -402
- package/android/src/main/java/com/reactlibrary/RNMappPluginPackage.java +9 -14
- package/android/src/main/java/com/reactlibrary/RNUtils.java +16 -16
- package/android/src/main/jni/CMakeLists.txt +28 -0
- package/android/src/main/jni/RNMappPlugin-generated.cpp +320 -0
- package/android/src/main/jni/RNMappPlugin.h +31 -0
- package/android/src/main/jni/react/renderer/components/RNMappPlugin/RNMappPluginJSI.h +471 -0
- package/ios/Frameworks/AppoxeeInapp.xcframework/Info.plist +5 -5
- package/ios/Frameworks/AppoxeeInapp.xcframework/ios-arm64/libAppoxeeInapp.a +0 -0
- package/ios/Frameworks/AppoxeeInapp.xcframework/ios-arm64_x86_64-simulator/libAppoxeeInapp.a +0 -0
- package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64/libAppoxeeSDK.a +0 -0
- package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/libAppoxeeSDK.a +0 -0
- package/package.json +65 -12
- package/react-native.config.js +6 -3
- package/specs/NativeRNMappPluginModule.js +59 -0
- package/.gitattributes +0 -1
- package/.local-pack/settings.json +0 -1
- package/.vscode/settings.json +0 -4
- package/Helper.md +0 -23
- package/__package.json +0 -33
- package/android/.classpath +0 -6
- package/android/.project +0 -34
- package/android/.settings/org.eclipse.buildship.core.prefs +0 -13
- package/clean.sh +0 -34
- package/ios/RNMappPlugin.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
- package/ios/RNMappPlugin.xcodeproj/project.xcworkspace/xcuserdata/stefan.stevanovic.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/RNMappPlugin.xcodeproj/xcuserdata/stefan.stevanovic.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
- package/jsdoc.conf.json +0 -15
- package/react-native-mapp-plugin-1.3.8.tgz +0 -0
- package/specs/MappEngagePluginSpec.js +0 -8
|
@@ -0,0 +1,471 @@
|
|
|
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: GenerateModuleH.js
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
#pragma once
|
|
11
|
+
|
|
12
|
+
#include <ReactCommon/TurboModule.h>
|
|
13
|
+
#include <react/bridging/Bridging.h>
|
|
14
|
+
|
|
15
|
+
namespace facebook::react {
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
template <typename T>
|
|
19
|
+
class JSI_EXPORT NativeRNMappPluginModuleCxxSpec : public TurboModule {
|
|
20
|
+
public:
|
|
21
|
+
static constexpr std::string_view kModuleName = "RNMappPluginModule";
|
|
22
|
+
|
|
23
|
+
protected:
|
|
24
|
+
NativeRNMappPluginModuleCxxSpec(std::shared_ptr<CallInvoker> jsInvoker) : TurboModule(std::string{NativeRNMappPluginModuleCxxSpec::kModuleName}, jsInvoker) {
|
|
25
|
+
methodMap_["requestGeofenceLocationPermission"] = MethodMetadata {.argCount = 0, .invoker = __requestGeofenceLocationPermission};
|
|
26
|
+
methodMap_["requestPostNotificationPermission"] = MethodMetadata {.argCount = 0, .invoker = __requestPostNotificationPermission};
|
|
27
|
+
methodMap_["setRemoteMessage"] = MethodMetadata {.argCount = 1, .invoker = __setRemoteMessage};
|
|
28
|
+
methodMap_["isPushFromMapp"] = MethodMetadata {.argCount = 1, .invoker = __isPushFromMapp};
|
|
29
|
+
methodMap_["setToken"] = MethodMetadata {.argCount = 1, .invoker = __setToken};
|
|
30
|
+
methodMap_["getToken"] = MethodMetadata {.argCount = 0, .invoker = __getToken};
|
|
31
|
+
methodMap_["setAlias"] = MethodMetadata {.argCount = 1, .invoker = __setAlias};
|
|
32
|
+
methodMap_["setAliasWithResend"] = MethodMetadata {.argCount = 2, .invoker = __setAliasWithResend};
|
|
33
|
+
methodMap_["getAlias"] = MethodMetadata {.argCount = 0, .invoker = __getAlias};
|
|
34
|
+
methodMap_["engage2"] = MethodMetadata {.argCount = 0, .invoker = __engage2};
|
|
35
|
+
methodMap_["engage"] = MethodMetadata {.argCount = 5, .invoker = __engage};
|
|
36
|
+
methodMap_["engageTestServer"] = MethodMetadata {.argCount = 6, .invoker = __engageTestServer};
|
|
37
|
+
methodMap_["onInitCompletedListener"] = MethodMetadata {.argCount = 0, .invoker = __onInitCompletedListener};
|
|
38
|
+
methodMap_["isReady"] = MethodMetadata {.argCount = 0, .invoker = __isReady};
|
|
39
|
+
methodMap_["setPushEnabled"] = MethodMetadata {.argCount = 1, .invoker = __setPushEnabled};
|
|
40
|
+
methodMap_["isPushEnabled"] = MethodMetadata {.argCount = 0, .invoker = __isPushEnabled};
|
|
41
|
+
methodMap_["setAttributes"] = MethodMetadata {.argCount = 1, .invoker = __setAttributes};
|
|
42
|
+
methodMap_["getAttributes"] = MethodMetadata {.argCount = 1, .invoker = __getAttributes};
|
|
43
|
+
methodMap_["setAttribute"] = MethodMetadata {.argCount = 2, .invoker = __setAttribute};
|
|
44
|
+
methodMap_["setAttributeBoolean"] = MethodMetadata {.argCount = 2, .invoker = __setAttributeBoolean};
|
|
45
|
+
methodMap_["setAttributeInt"] = MethodMetadata {.argCount = 2, .invoker = __setAttributeInt};
|
|
46
|
+
methodMap_["removeAttribute"] = MethodMetadata {.argCount = 1, .invoker = __removeAttribute};
|
|
47
|
+
methodMap_["getAttributeStringValue"] = MethodMetadata {.argCount = 1, .invoker = __getAttributeStringValue};
|
|
48
|
+
methodMap_["addTag"] = MethodMetadata {.argCount = 1, .invoker = __addTag};
|
|
49
|
+
methodMap_["removeTag"] = MethodMetadata {.argCount = 1, .invoker = __removeTag};
|
|
50
|
+
methodMap_["getTags"] = MethodMetadata {.argCount = 0, .invoker = __getTags};
|
|
51
|
+
methodMap_["getDeviceInfo"] = MethodMetadata {.argCount = 0, .invoker = __getDeviceInfo};
|
|
52
|
+
methodMap_["getDeviceDmcInfo"] = MethodMetadata {.argCount = 0, .invoker = __getDeviceDmcInfo};
|
|
53
|
+
methodMap_["isDeviceRegistered"] = MethodMetadata {.argCount = 0, .invoker = __isDeviceRegistered};
|
|
54
|
+
methodMap_["lockScreenOrientation"] = MethodMetadata {.argCount = 1, .invoker = __lockScreenOrientation};
|
|
55
|
+
methodMap_["removeBadgeNumber"] = MethodMetadata {.argCount = 0, .invoker = __removeBadgeNumber};
|
|
56
|
+
methodMap_["startGeofencing"] = MethodMetadata {.argCount = 0, .invoker = __startGeofencing};
|
|
57
|
+
methodMap_["stopGeofencing"] = MethodMetadata {.argCount = 0, .invoker = __stopGeofencing};
|
|
58
|
+
methodMap_["startGeoFencing"] = MethodMetadata {.argCount = 0, .invoker = __startGeoFencing};
|
|
59
|
+
methodMap_["stopGeoFencing"] = MethodMetadata {.argCount = 0, .invoker = __stopGeoFencing};
|
|
60
|
+
methodMap_["fetchLatestInboxMessage"] = MethodMetadata {.argCount = 0, .invoker = __fetchLatestInboxMessage};
|
|
61
|
+
methodMap_["fetchInboxMessage"] = MethodMetadata {.argCount = 0, .invoker = __fetchInboxMessage};
|
|
62
|
+
methodMap_["triggerInApp"] = MethodMetadata {.argCount = 1, .invoker = __triggerInApp};
|
|
63
|
+
methodMap_["inAppMarkAsRead"] = MethodMetadata {.argCount = 2, .invoker = __inAppMarkAsRead};
|
|
64
|
+
methodMap_["inAppMarkAsUnRead"] = MethodMetadata {.argCount = 2, .invoker = __inAppMarkAsUnRead};
|
|
65
|
+
methodMap_["inAppMarkAsDeleted"] = MethodMetadata {.argCount = 2, .invoker = __inAppMarkAsDeleted};
|
|
66
|
+
methodMap_["triggerStatistic"] = MethodMetadata {.argCount = 6, .invoker = __triggerStatistic};
|
|
67
|
+
methodMap_["addAndroidListener"] = MethodMetadata {.argCount = 1, .invoker = __addAndroidListener};
|
|
68
|
+
methodMap_["removeAndroidListeners"] = MethodMetadata {.argCount = 1, .invoker = __removeAndroidListeners};
|
|
69
|
+
methodMap_["addListener"] = MethodMetadata {.argCount = 1, .invoker = __addListener};
|
|
70
|
+
methodMap_["removeListeners"] = MethodMetadata {.argCount = 1, .invoker = __removeListeners};
|
|
71
|
+
methodMap_["clearNotifications"] = MethodMetadata {.argCount = 0, .invoker = __clearNotifications};
|
|
72
|
+
methodMap_["clearNotification"] = MethodMetadata {.argCount = 1, .invoker = __clearNotification};
|
|
73
|
+
methodMap_["logOut"] = MethodMetadata {.argCount = 1, .invoker = __logOut};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
private:
|
|
77
|
+
static jsi::Value __requestGeofenceLocationPermission(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
|
|
78
|
+
static_assert(
|
|
79
|
+
bridging::getParameterCount(&T::requestGeofenceLocationPermission) == 1,
|
|
80
|
+
"Expected requestGeofenceLocationPermission(...) to have 1 parameters");
|
|
81
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::requestGeofenceLocationPermission, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
static jsi::Value __requestPostNotificationPermission(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
|
|
85
|
+
static_assert(
|
|
86
|
+
bridging::getParameterCount(&T::requestPostNotificationPermission) == 1,
|
|
87
|
+
"Expected requestPostNotificationPermission(...) to have 1 parameters");
|
|
88
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::requestPostNotificationPermission, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
static jsi::Value __setRemoteMessage(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
92
|
+
static_assert(
|
|
93
|
+
bridging::getParameterCount(&T::setRemoteMessage) == 2,
|
|
94
|
+
"Expected setRemoteMessage(...) to have 2 parameters");
|
|
95
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::setRemoteMessage, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
96
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt));
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
static jsi::Value __isPushFromMapp(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
100
|
+
static_assert(
|
|
101
|
+
bridging::getParameterCount(&T::isPushFromMapp) == 2,
|
|
102
|
+
"Expected isPushFromMapp(...) to have 2 parameters");
|
|
103
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::isPushFromMapp, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
104
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt));
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
static jsi::Value __setToken(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
108
|
+
static_assert(
|
|
109
|
+
bridging::getParameterCount(&T::setToken) == 2,
|
|
110
|
+
"Expected setToken(...) to have 2 parameters");
|
|
111
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::setToken, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
112
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt));
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
static jsi::Value __getToken(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
|
|
116
|
+
static_assert(
|
|
117
|
+
bridging::getParameterCount(&T::getToken) == 1,
|
|
118
|
+
"Expected getToken(...) to have 1 parameters");
|
|
119
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::getToken, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
static jsi::Value __setAlias(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
123
|
+
static_assert(
|
|
124
|
+
bridging::getParameterCount(&T::setAlias) == 2,
|
|
125
|
+
"Expected setAlias(...) to have 2 parameters");
|
|
126
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::setAlias, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
127
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt));
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
static jsi::Value __setAliasWithResend(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
131
|
+
static_assert(
|
|
132
|
+
bridging::getParameterCount(&T::setAliasWithResend) == 3,
|
|
133
|
+
"Expected setAliasWithResend(...) to have 3 parameters");
|
|
134
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::setAliasWithResend, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
135
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
|
|
136
|
+
count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asBool());
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
static jsi::Value __getAlias(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
|
|
140
|
+
static_assert(
|
|
141
|
+
bridging::getParameterCount(&T::getAlias) == 1,
|
|
142
|
+
"Expected getAlias(...) to have 1 parameters");
|
|
143
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::getAlias, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
static jsi::Value __engage2(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
|
|
147
|
+
static_assert(
|
|
148
|
+
bridging::getParameterCount(&T::engage2) == 1,
|
|
149
|
+
"Expected engage2(...) to have 1 parameters");
|
|
150
|
+
bridging::callFromJs<void>(rt, &T::engage2, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));return jsi::Value::undefined();
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
static jsi::Value __engage(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
154
|
+
static_assert(
|
|
155
|
+
bridging::getParameterCount(&T::engage) == 6,
|
|
156
|
+
"Expected engage(...) to have 6 parameters");
|
|
157
|
+
bridging::callFromJs<void>(rt, &T::engage, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
158
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
|
|
159
|
+
count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
|
|
160
|
+
count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asString(rt),
|
|
161
|
+
count <= 3 ? throw jsi::JSError(rt, "Expected argument in position 3 to be passed") : args[3].asString(rt),
|
|
162
|
+
count <= 4 ? throw jsi::JSError(rt, "Expected argument in position 4 to be passed") : args[4].asString(rt));return jsi::Value::undefined();
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
static jsi::Value __engageTestServer(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
166
|
+
static_assert(
|
|
167
|
+
bridging::getParameterCount(&T::engageTestServer) == 7,
|
|
168
|
+
"Expected engageTestServer(...) to have 7 parameters");
|
|
169
|
+
bridging::callFromJs<void>(rt, &T::engageTestServer, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
170
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
|
|
171
|
+
count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
|
|
172
|
+
count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asString(rt),
|
|
173
|
+
count <= 3 ? throw jsi::JSError(rt, "Expected argument in position 3 to be passed") : args[3].asString(rt),
|
|
174
|
+
count <= 4 ? throw jsi::JSError(rt, "Expected argument in position 4 to be passed") : args[4].asString(rt),
|
|
175
|
+
count <= 5 ? throw jsi::JSError(rt, "Expected argument in position 5 to be passed") : args[5].asString(rt));return jsi::Value::undefined();
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
static jsi::Value __onInitCompletedListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
|
|
179
|
+
static_assert(
|
|
180
|
+
bridging::getParameterCount(&T::onInitCompletedListener) == 1,
|
|
181
|
+
"Expected onInitCompletedListener(...) to have 1 parameters");
|
|
182
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::onInitCompletedListener, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
static jsi::Value __isReady(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
|
|
186
|
+
static_assert(
|
|
187
|
+
bridging::getParameterCount(&T::isReady) == 1,
|
|
188
|
+
"Expected isReady(...) to have 1 parameters");
|
|
189
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::isReady, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
static jsi::Value __setPushEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
193
|
+
static_assert(
|
|
194
|
+
bridging::getParameterCount(&T::setPushEnabled) == 2,
|
|
195
|
+
"Expected setPushEnabled(...) to have 2 parameters");
|
|
196
|
+
bridging::callFromJs<void>(rt, &T::setPushEnabled, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
197
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool());return jsi::Value::undefined();
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
static jsi::Value __isPushEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
|
|
201
|
+
static_assert(
|
|
202
|
+
bridging::getParameterCount(&T::isPushEnabled) == 1,
|
|
203
|
+
"Expected isPushEnabled(...) to have 1 parameters");
|
|
204
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::isPushEnabled, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
static jsi::Value __setAttributes(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
208
|
+
static_assert(
|
|
209
|
+
bridging::getParameterCount(&T::setAttributes) == 2,
|
|
210
|
+
"Expected setAttributes(...) to have 2 parameters");
|
|
211
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::setAttributes, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
212
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt));
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
static jsi::Value __getAttributes(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
216
|
+
static_assert(
|
|
217
|
+
bridging::getParameterCount(&T::getAttributes) == 2,
|
|
218
|
+
"Expected getAttributes(...) to have 2 parameters");
|
|
219
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::getAttributes, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
220
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asArray(rt));
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
static jsi::Value __setAttribute(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
224
|
+
static_assert(
|
|
225
|
+
bridging::getParameterCount(&T::setAttribute) == 3,
|
|
226
|
+
"Expected setAttribute(...) to have 3 parameters");
|
|
227
|
+
bridging::callFromJs<void>(rt, &T::setAttribute, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
228
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
|
|
229
|
+
count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt));return jsi::Value::undefined();
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
static jsi::Value __setAttributeBoolean(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
233
|
+
static_assert(
|
|
234
|
+
bridging::getParameterCount(&T::setAttributeBoolean) == 3,
|
|
235
|
+
"Expected setAttributeBoolean(...) to have 3 parameters");
|
|
236
|
+
bridging::callFromJs<void>(rt, &T::setAttributeBoolean, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
237
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
|
|
238
|
+
count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asBool());return jsi::Value::undefined();
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
static jsi::Value __setAttributeInt(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
242
|
+
static_assert(
|
|
243
|
+
bridging::getParameterCount(&T::setAttributeInt) == 3,
|
|
244
|
+
"Expected setAttributeInt(...) to have 3 parameters");
|
|
245
|
+
bridging::callFromJs<void>(rt, &T::setAttributeInt, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
246
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
|
|
247
|
+
count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asNumber());return jsi::Value::undefined();
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
static jsi::Value __removeAttribute(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
251
|
+
static_assert(
|
|
252
|
+
bridging::getParameterCount(&T::removeAttribute) == 2,
|
|
253
|
+
"Expected removeAttribute(...) to have 2 parameters");
|
|
254
|
+
bridging::callFromJs<void>(rt, &T::removeAttribute, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
255
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt));return jsi::Value::undefined();
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
static jsi::Value __getAttributeStringValue(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
259
|
+
static_assert(
|
|
260
|
+
bridging::getParameterCount(&T::getAttributeStringValue) == 2,
|
|
261
|
+
"Expected getAttributeStringValue(...) to have 2 parameters");
|
|
262
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::getAttributeStringValue, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
263
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt));
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
static jsi::Value __addTag(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
267
|
+
static_assert(
|
|
268
|
+
bridging::getParameterCount(&T::addTag) == 2,
|
|
269
|
+
"Expected addTag(...) to have 2 parameters");
|
|
270
|
+
bridging::callFromJs<void>(rt, &T::addTag, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
271
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt));return jsi::Value::undefined();
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
static jsi::Value __removeTag(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
275
|
+
static_assert(
|
|
276
|
+
bridging::getParameterCount(&T::removeTag) == 2,
|
|
277
|
+
"Expected removeTag(...) to have 2 parameters");
|
|
278
|
+
bridging::callFromJs<void>(rt, &T::removeTag, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
279
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt));return jsi::Value::undefined();
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
static jsi::Value __getTags(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
|
|
283
|
+
static_assert(
|
|
284
|
+
bridging::getParameterCount(&T::getTags) == 1,
|
|
285
|
+
"Expected getTags(...) to have 1 parameters");
|
|
286
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::getTags, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
static jsi::Value __getDeviceInfo(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
|
|
290
|
+
static_assert(
|
|
291
|
+
bridging::getParameterCount(&T::getDeviceInfo) == 1,
|
|
292
|
+
"Expected getDeviceInfo(...) to have 1 parameters");
|
|
293
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::getDeviceInfo, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
static jsi::Value __getDeviceDmcInfo(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
|
|
297
|
+
static_assert(
|
|
298
|
+
bridging::getParameterCount(&T::getDeviceDmcInfo) == 1,
|
|
299
|
+
"Expected getDeviceDmcInfo(...) to have 1 parameters");
|
|
300
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::getDeviceDmcInfo, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
static jsi::Value __isDeviceRegistered(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
|
|
304
|
+
static_assert(
|
|
305
|
+
bridging::getParameterCount(&T::isDeviceRegistered) == 1,
|
|
306
|
+
"Expected isDeviceRegistered(...) to have 1 parameters");
|
|
307
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::isDeviceRegistered, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
static jsi::Value __lockScreenOrientation(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
311
|
+
static_assert(
|
|
312
|
+
bridging::getParameterCount(&T::lockScreenOrientation) == 2,
|
|
313
|
+
"Expected lockScreenOrientation(...) to have 2 parameters");
|
|
314
|
+
bridging::callFromJs<void>(rt, &T::lockScreenOrientation, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
315
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber());return jsi::Value::undefined();
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
static jsi::Value __removeBadgeNumber(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
|
|
319
|
+
static_assert(
|
|
320
|
+
bridging::getParameterCount(&T::removeBadgeNumber) == 1,
|
|
321
|
+
"Expected removeBadgeNumber(...) to have 1 parameters");
|
|
322
|
+
bridging::callFromJs<void>(rt, &T::removeBadgeNumber, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));return jsi::Value::undefined();
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
static jsi::Value __startGeofencing(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
|
|
326
|
+
static_assert(
|
|
327
|
+
bridging::getParameterCount(&T::startGeofencing) == 1,
|
|
328
|
+
"Expected startGeofencing(...) to have 1 parameters");
|
|
329
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::startGeofencing, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
static jsi::Value __stopGeofencing(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
|
|
333
|
+
static_assert(
|
|
334
|
+
bridging::getParameterCount(&T::stopGeofencing) == 1,
|
|
335
|
+
"Expected stopGeofencing(...) to have 1 parameters");
|
|
336
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::stopGeofencing, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
static jsi::Value __startGeoFencing(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
|
|
340
|
+
static_assert(
|
|
341
|
+
bridging::getParameterCount(&T::startGeoFencing) == 1,
|
|
342
|
+
"Expected startGeoFencing(...) to have 1 parameters");
|
|
343
|
+
bridging::callFromJs<void>(rt, &T::startGeoFencing, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));return jsi::Value::undefined();
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
static jsi::Value __stopGeoFencing(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
|
|
347
|
+
static_assert(
|
|
348
|
+
bridging::getParameterCount(&T::stopGeoFencing) == 1,
|
|
349
|
+
"Expected stopGeoFencing(...) to have 1 parameters");
|
|
350
|
+
bridging::callFromJs<void>(rt, &T::stopGeoFencing, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));return jsi::Value::undefined();
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
static jsi::Value __fetchLatestInboxMessage(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
|
|
354
|
+
static_assert(
|
|
355
|
+
bridging::getParameterCount(&T::fetchLatestInboxMessage) == 1,
|
|
356
|
+
"Expected fetchLatestInboxMessage(...) to have 1 parameters");
|
|
357
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::fetchLatestInboxMessage, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
static jsi::Value __fetchInboxMessage(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
|
|
361
|
+
static_assert(
|
|
362
|
+
bridging::getParameterCount(&T::fetchInboxMessage) == 1,
|
|
363
|
+
"Expected fetchInboxMessage(...) to have 1 parameters");
|
|
364
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::fetchInboxMessage, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
static jsi::Value __triggerInApp(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
368
|
+
static_assert(
|
|
369
|
+
bridging::getParameterCount(&T::triggerInApp) == 2,
|
|
370
|
+
"Expected triggerInApp(...) to have 2 parameters");
|
|
371
|
+
bridging::callFromJs<void>(rt, &T::triggerInApp, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
372
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt));return jsi::Value::undefined();
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
static jsi::Value __inAppMarkAsRead(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
376
|
+
static_assert(
|
|
377
|
+
bridging::getParameterCount(&T::inAppMarkAsRead) == 3,
|
|
378
|
+
"Expected inAppMarkAsRead(...) to have 3 parameters");
|
|
379
|
+
bridging::callFromJs<void>(rt, &T::inAppMarkAsRead, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
380
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(),
|
|
381
|
+
count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt));return jsi::Value::undefined();
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
static jsi::Value __inAppMarkAsUnRead(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
385
|
+
static_assert(
|
|
386
|
+
bridging::getParameterCount(&T::inAppMarkAsUnRead) == 3,
|
|
387
|
+
"Expected inAppMarkAsUnRead(...) to have 3 parameters");
|
|
388
|
+
bridging::callFromJs<void>(rt, &T::inAppMarkAsUnRead, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
389
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(),
|
|
390
|
+
count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt));return jsi::Value::undefined();
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
static jsi::Value __inAppMarkAsDeleted(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
394
|
+
static_assert(
|
|
395
|
+
bridging::getParameterCount(&T::inAppMarkAsDeleted) == 3,
|
|
396
|
+
"Expected inAppMarkAsDeleted(...) to have 3 parameters");
|
|
397
|
+
bridging::callFromJs<void>(rt, &T::inAppMarkAsDeleted, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
398
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(),
|
|
399
|
+
count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt));return jsi::Value::undefined();
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
static jsi::Value __triggerStatistic(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
403
|
+
static_assert(
|
|
404
|
+
bridging::getParameterCount(&T::triggerStatistic) == 7,
|
|
405
|
+
"Expected triggerStatistic(...) to have 7 parameters");
|
|
406
|
+
bridging::callFromJs<void>(rt, &T::triggerStatistic, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
407
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(),
|
|
408
|
+
count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
|
|
409
|
+
count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asString(rt),
|
|
410
|
+
count <= 3 ? throw jsi::JSError(rt, "Expected argument in position 3 to be passed") : args[3].asNumber(),
|
|
411
|
+
count <= 4 ? throw jsi::JSError(rt, "Expected argument in position 4 to be passed") : args[4].asString(rt),
|
|
412
|
+
count <= 5 ? throw jsi::JSError(rt, "Expected argument in position 5 to be passed") : args[5].asString(rt));return jsi::Value::undefined();
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
static jsi::Value __addAndroidListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
416
|
+
static_assert(
|
|
417
|
+
bridging::getParameterCount(&T::addAndroidListener) == 2,
|
|
418
|
+
"Expected addAndroidListener(...) to have 2 parameters");
|
|
419
|
+
bridging::callFromJs<void>(rt, &T::addAndroidListener, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
420
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt));return jsi::Value::undefined();
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
static jsi::Value __removeAndroidListeners(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
424
|
+
static_assert(
|
|
425
|
+
bridging::getParameterCount(&T::removeAndroidListeners) == 2,
|
|
426
|
+
"Expected removeAndroidListeners(...) to have 2 parameters");
|
|
427
|
+
bridging::callFromJs<void>(rt, &T::removeAndroidListeners, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
428
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber());return jsi::Value::undefined();
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
static jsi::Value __addListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
432
|
+
static_assert(
|
|
433
|
+
bridging::getParameterCount(&T::addListener) == 2,
|
|
434
|
+
"Expected addListener(...) to have 2 parameters");
|
|
435
|
+
bridging::callFromJs<void>(rt, &T::addListener, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
436
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt));return jsi::Value::undefined();
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
static jsi::Value __removeListeners(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
440
|
+
static_assert(
|
|
441
|
+
bridging::getParameterCount(&T::removeListeners) == 2,
|
|
442
|
+
"Expected removeListeners(...) to have 2 parameters");
|
|
443
|
+
bridging::callFromJs<void>(rt, &T::removeListeners, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
444
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber());return jsi::Value::undefined();
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
static jsi::Value __clearNotifications(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
|
|
448
|
+
static_assert(
|
|
449
|
+
bridging::getParameterCount(&T::clearNotifications) == 1,
|
|
450
|
+
"Expected clearNotifications(...) to have 1 parameters");
|
|
451
|
+
bridging::callFromJs<void>(rt, &T::clearNotifications, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));return jsi::Value::undefined();
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
static jsi::Value __clearNotification(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
455
|
+
static_assert(
|
|
456
|
+
bridging::getParameterCount(&T::clearNotification) == 2,
|
|
457
|
+
"Expected clearNotification(...) to have 2 parameters");
|
|
458
|
+
bridging::callFromJs<void>(rt, &T::clearNotification, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
459
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber());return jsi::Value::undefined();
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
static jsi::Value __logOut(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
463
|
+
static_assert(
|
|
464
|
+
bridging::getParameterCount(&T::logOut) == 2,
|
|
465
|
+
"Expected logOut(...) to have 2 parameters");
|
|
466
|
+
bridging::callFromJs<void>(rt, &T::logOut, static_cast<NativeRNMappPluginModuleCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
467
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool());return jsi::Value::undefined();
|
|
468
|
+
}
|
|
469
|
+
};
|
|
470
|
+
|
|
471
|
+
} // namespace facebook::react
|
|
@@ -10,15 +10,18 @@
|
|
|
10
10
|
<key>HeadersPath</key>
|
|
11
11
|
<string>Headers</string>
|
|
12
12
|
<key>LibraryIdentifier</key>
|
|
13
|
-
<string>ios-
|
|
13
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
14
14
|
<key>LibraryPath</key>
|
|
15
15
|
<string>libAppoxeeInapp.a</string>
|
|
16
16
|
<key>SupportedArchitectures</key>
|
|
17
17
|
<array>
|
|
18
18
|
<string>arm64</string>
|
|
19
|
+
<string>x86_64</string>
|
|
19
20
|
</array>
|
|
20
21
|
<key>SupportedPlatform</key>
|
|
21
22
|
<string>ios</string>
|
|
23
|
+
<key>SupportedPlatformVariant</key>
|
|
24
|
+
<string>simulator</string>
|
|
22
25
|
</dict>
|
|
23
26
|
<dict>
|
|
24
27
|
<key>BinaryPath</key>
|
|
@@ -26,18 +29,15 @@
|
|
|
26
29
|
<key>HeadersPath</key>
|
|
27
30
|
<string>Headers</string>
|
|
28
31
|
<key>LibraryIdentifier</key>
|
|
29
|
-
<string>ios-
|
|
32
|
+
<string>ios-arm64</string>
|
|
30
33
|
<key>LibraryPath</key>
|
|
31
34
|
<string>libAppoxeeInapp.a</string>
|
|
32
35
|
<key>SupportedArchitectures</key>
|
|
33
36
|
<array>
|
|
34
37
|
<string>arm64</string>
|
|
35
|
-
<string>x86_64</string>
|
|
36
38
|
</array>
|
|
37
39
|
<key>SupportedPlatform</key>
|
|
38
40
|
<string>ios</string>
|
|
39
|
-
<key>SupportedPlatformVariant</key>
|
|
40
|
-
<string>simulator</string>
|
|
41
41
|
</dict>
|
|
42
42
|
</array>
|
|
43
43
|
<key>CFBundlePackageType</key>
|
|
Binary file
|
package/ios/Frameworks/AppoxeeInapp.xcframework/ios-arm64_x86_64-simulator/libAppoxeeInapp.a
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,8 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-mapp-plugin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "Mapp SDK for React Native.",
|
|
5
5
|
"main": "index.js",
|
|
6
|
+
"files": [
|
|
7
|
+
"android/build.gradle",
|
|
8
|
+
"android/gradle.properties",
|
|
9
|
+
"android/gradle/",
|
|
10
|
+
"android/gradlew",
|
|
11
|
+
"android/gradlew.bat",
|
|
12
|
+
"android/settings.gradle",
|
|
13
|
+
"android/src/main/",
|
|
14
|
+
"ios/Frameworks/",
|
|
15
|
+
"ios/RNMappEventEmmiter.h",
|
|
16
|
+
"ios/RNMappEventEmmiter.m",
|
|
17
|
+
"ios/RNMappPlugin.xcodeproj/project.pbxproj",
|
|
18
|
+
"ios/RNMappPluginModule.h",
|
|
19
|
+
"ios/RNMappPluginModule.m",
|
|
20
|
+
"android/src/main/jni/",
|
|
21
|
+
"specs/",
|
|
22
|
+
"CHANGELOG.md",
|
|
23
|
+
"CustomEvent.js",
|
|
24
|
+
"Mapp.js",
|
|
25
|
+
"MappEventEmitter.js",
|
|
26
|
+
"README.md",
|
|
27
|
+
"RNMappPlugin.podspec",
|
|
28
|
+
"index.js",
|
|
29
|
+
"react-native.config.js"
|
|
30
|
+
],
|
|
6
31
|
"keywords": [
|
|
7
32
|
"react-native",
|
|
8
33
|
"react",
|
|
@@ -13,28 +38,56 @@
|
|
|
13
38
|
],
|
|
14
39
|
"author": "Mapp",
|
|
15
40
|
"license": "MIT",
|
|
41
|
+
"engines": {
|
|
42
|
+
"node": ">=20.19.4"
|
|
43
|
+
},
|
|
16
44
|
"peerDependencies": {
|
|
17
|
-
"react": "^
|
|
18
|
-
"react-native": ">=0.
|
|
45
|
+
"react": "^19.2.3",
|
|
46
|
+
"react-native": ">=0.84"
|
|
19
47
|
},
|
|
20
48
|
"devDependencies": {
|
|
21
|
-
"@
|
|
22
|
-
"@
|
|
49
|
+
"@babel/preset-env": "^7.29.2",
|
|
50
|
+
"@babel/preset-flow": "^7.27.1",
|
|
51
|
+
"@react-native-community/cli": "^20.1.3",
|
|
52
|
+
"@react-native/codegen": "0.84.1",
|
|
53
|
+
"@react-native/gradle-plugin": "0.84.1",
|
|
54
|
+
"babel-jest": "^30.3.0",
|
|
23
55
|
"jest": "^30.2.0",
|
|
24
|
-
"react": "19.
|
|
25
|
-
"react-native": "0.
|
|
26
|
-
"react-native-gradle-plugin": "^0.71.19"
|
|
56
|
+
"react": "19.2.4",
|
|
57
|
+
"react-native": "0.84.1"
|
|
27
58
|
},
|
|
28
59
|
"scripts": {
|
|
29
60
|
"generate:codegen": "react-native codegen specs",
|
|
30
|
-
"build:android": "cd android && ./gradlew assembleDebug"
|
|
61
|
+
"build:android": "cd android && ./gradlew assembleDebug",
|
|
62
|
+
"test": "jest"
|
|
63
|
+
},
|
|
64
|
+
"codegenConfig": {
|
|
65
|
+
"name": "RNMappPlugin",
|
|
66
|
+
"type": "modules",
|
|
67
|
+
"jsSrcsDir": "./specs",
|
|
68
|
+
"includesGeneratedCode": true,
|
|
69
|
+
"android": {
|
|
70
|
+
"javaPackageName": "com.reactlibrary"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"jest": {
|
|
74
|
+
"testEnvironment": "node",
|
|
75
|
+
"testMatch": [
|
|
76
|
+
"**/__tests__/**/*.test.js"
|
|
77
|
+
],
|
|
78
|
+
"transform": {
|
|
79
|
+
"^.+\\.js$": "babel-jest"
|
|
80
|
+
},
|
|
81
|
+
"moduleNameMapper": {
|
|
82
|
+
"^react-native$": "<rootDir>/__mocks__/react-native.js"
|
|
83
|
+
}
|
|
31
84
|
},
|
|
32
85
|
"repository": {
|
|
33
86
|
"type": "git",
|
|
34
|
-
"url": "git+https://github.com/
|
|
87
|
+
"url": "git+https://github.com/mapp-digital/Mapp-Engage-ReactNative-Plugin.git"
|
|
35
88
|
},
|
|
36
89
|
"bugs": {
|
|
37
|
-
"url": "https://github.com/
|
|
90
|
+
"url": "https://github.com/mapp-digital/Mapp-Engage-ReactNative-Plugin/issues"
|
|
38
91
|
},
|
|
39
|
-
"homepage": "https://github.com/
|
|
92
|
+
"homepage": "https://github.com/mapp-digital/Mapp-Engage-ReactNative-Plugin#readme"
|
|
40
93
|
}
|
package/react-native.config.js
CHANGED