mobilyflow-react-native-sdk 0.7.0-alpha.2 → 0.7.0-alpha.4

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.
Files changed (26) hide show
  1. package/android/build.gradle +12 -16
  2. package/android/generated/jni/CMakeLists.txt +1 -9
  3. package/android/generated/jni/react/renderer/components/RNMobilyflowReactNativeSdkSpec/RNMobilyflowReactNativeSdkSpecJSI.h +178 -218
  4. package/ios/MobilyflowReactNativeSdk.h +2 -4
  5. package/ios/MobilyflowReactNativeSdk.mm +4 -0
  6. package/ios/generated/Package.swift +66 -0
  7. package/ios/generated/ReactAppDependencyProvider/RCTAppDependencyProvider.h +25 -0
  8. package/ios/generated/ReactAppDependencyProvider/RCTAppDependencyProvider.mm +40 -0
  9. package/ios/generated/ReactAppDependencyProvider/ReactAppDependencyProvider.podspec +34 -0
  10. package/ios/generated/ReactCodegen/RCTModuleProviders.h +16 -0
  11. package/ios/generated/ReactCodegen/RCTModuleProviders.mm +51 -0
  12. package/ios/generated/ReactCodegen/RCTModulesConformingToProtocolsProvider.h +18 -0
  13. package/ios/generated/ReactCodegen/RCTModulesConformingToProtocolsProvider.mm +54 -0
  14. package/ios/generated/ReactCodegen/RCTThirdPartyComponentsProvider.h +16 -0
  15. package/ios/generated/ReactCodegen/RCTThirdPartyComponentsProvider.mm +30 -0
  16. package/ios/generated/ReactCodegen/RCTUnstableModulesRequiringMainQueueSetupProvider.h +14 -0
  17. package/ios/generated/ReactCodegen/RCTUnstableModulesRequiringMainQueueSetupProvider.mm +19 -0
  18. package/ios/generated/ReactCodegen/RNMobilyflowReactNativeSdkSpecJSI.h +328 -0
  19. package/ios/generated/ReactCodegen/ReactCodegen.podspec +110 -0
  20. package/package.json +3 -3
  21. package/android/generated/jni/react/renderer/components/RNMobilyflowReactNativeSdkSpec/RNMobilyflowReactNativeSdkSpecJSI-generated.cpp +0 -172
  22. package/android/gradle.properties +0 -5
  23. package/ios/generated/RNMobilyflowReactNativeSdkSpecJSI-generated.cpp +0 -172
  24. package/ios/generated/RNMobilyflowReactNativeSdkSpecJSI.h +0 -368
  25. /package/ios/generated/{RNMobilyflowReactNativeSdkSpec → ReactCodegen/RNMobilyflowReactNativeSdkSpec}/RNMobilyflowReactNativeSdkSpec-generated.mm +0 -0
  26. /package/ios/generated/{RNMobilyflowReactNativeSdkSpec → ReactCodegen/RNMobilyflowReactNativeSdkSpec}/RNMobilyflowReactNativeSdkSpec.h +0 -0
@@ -0,0 +1,328 @@
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
+ #pragma mark - NativeMobilyflowReactNativeSdkMobilyPurchaseSDKOptions
19
+
20
+ template <typename P0, typename P1, typename P2>
21
+ struct NativeMobilyflowReactNativeSdkMobilyPurchaseSDKOptions {
22
+ P0 languages{};
23
+ P1 debug{};
24
+ P2 apiURL;
25
+ bool operator==(const NativeMobilyflowReactNativeSdkMobilyPurchaseSDKOptions &other) const {
26
+ return languages == other.languages && debug == other.debug && apiURL == other.apiURL;
27
+ }
28
+ };
29
+
30
+ template <typename T>
31
+ struct NativeMobilyflowReactNativeSdkMobilyPurchaseSDKOptionsBridging {
32
+ static T types;
33
+
34
+ static T fromJs(
35
+ jsi::Runtime &rt,
36
+ const jsi::Object &value,
37
+ const std::shared_ptr<CallInvoker> &jsInvoker) {
38
+ T result{
39
+ bridging::fromJs<decltype(types.languages)>(rt, value.getProperty(rt, "languages"), jsInvoker),
40
+ bridging::fromJs<decltype(types.debug)>(rt, value.getProperty(rt, "debug"), jsInvoker),
41
+ bridging::fromJs<decltype(types.apiURL)>(rt, value.getProperty(rt, "apiURL"), jsInvoker)};
42
+ return result;
43
+ }
44
+
45
+ #ifdef DEBUG
46
+ static jsi::Array languagesToJs(jsi::Runtime &rt, decltype(types.languages) value) {
47
+ return bridging::toJs(rt, value);
48
+ }
49
+ static bool debugToJs(jsi::Runtime &rt, decltype(types.debug) value) {
50
+ return bridging::toJs(rt, value);
51
+ }
52
+ static jsi::String apiURLToJs(jsi::Runtime &rt, decltype(types.apiURL) value) {
53
+ return bridging::toJs(rt, value);
54
+ }
55
+ #endif
56
+
57
+ static jsi::Object toJs(
58
+ jsi::Runtime &rt,
59
+ const T &value,
60
+ const std::shared_ptr<CallInvoker> &jsInvoker) {
61
+ auto result = facebook::jsi::Object(rt);
62
+ if (value.languages) {
63
+ result.setProperty(rt, "languages", bridging::toJs(rt, value.languages.value(), jsInvoker));
64
+ }
65
+ if (value.debug) {
66
+ result.setProperty(rt, "debug", bridging::toJs(rt, value.debug.value(), jsInvoker));
67
+ }
68
+ if (value.apiURL) {
69
+ result.setProperty(rt, "apiURL", bridging::toJs(rt, value.apiURL.value(), jsInvoker));
70
+ }
71
+ return result;
72
+ }
73
+ };
74
+
75
+
76
+
77
+ #pragma mark - NativeMobilyflowReactNativeSdkPurchaseOptions
78
+
79
+ template <typename P0, typename P1>
80
+ struct NativeMobilyflowReactNativeSdkPurchaseOptions {
81
+ P0 offerId{};
82
+ P1 quantity;
83
+ bool operator==(const NativeMobilyflowReactNativeSdkPurchaseOptions &other) const {
84
+ return offerId == other.offerId && quantity == other.quantity;
85
+ }
86
+ };
87
+
88
+ template <typename T>
89
+ struct NativeMobilyflowReactNativeSdkPurchaseOptionsBridging {
90
+ static T types;
91
+
92
+ static T fromJs(
93
+ jsi::Runtime &rt,
94
+ const jsi::Object &value,
95
+ const std::shared_ptr<CallInvoker> &jsInvoker) {
96
+ T result{
97
+ bridging::fromJs<decltype(types.offerId)>(rt, value.getProperty(rt, "offerId"), jsInvoker),
98
+ bridging::fromJs<decltype(types.quantity)>(rt, value.getProperty(rt, "quantity"), jsInvoker)};
99
+ return result;
100
+ }
101
+
102
+ #ifdef DEBUG
103
+ static std::optional<jsi::String> offerIdToJs(jsi::Runtime &rt, decltype(types.offerId) value) {
104
+ return bridging::toJs(rt, value);
105
+ }
106
+ static std::optional<double> quantityToJs(jsi::Runtime &rt, decltype(types.quantity) value) {
107
+ return bridging::toJs(rt, value);
108
+ }
109
+ #endif
110
+
111
+ static jsi::Object toJs(
112
+ jsi::Runtime &rt,
113
+ const T &value,
114
+ const std::shared_ptr<CallInvoker> &jsInvoker) {
115
+ auto result = facebook::jsi::Object(rt);
116
+ result.setProperty(rt, "offerId", bridging::toJs(rt, value.offerId, jsInvoker));
117
+ result.setProperty(rt, "quantity", bridging::toJs(rt, value.quantity, jsInvoker));
118
+ return result;
119
+ }
120
+ };
121
+
122
+
123
+ template <typename T>
124
+ class JSI_EXPORT NativeMobilyflowReactNativeSdkCxxSpec : public TurboModule {
125
+ public:
126
+ static constexpr std::string_view kModuleName = "MobilyflowReactNativeSdk";
127
+
128
+ protected:
129
+ NativeMobilyflowReactNativeSdkCxxSpec(std::shared_ptr<CallInvoker> jsInvoker) : TurboModule(std::string{NativeMobilyflowReactNativeSdkCxxSpec::kModuleName}, jsInvoker) {
130
+ methodMap_["initialize"] = MethodMetadata {.argCount = 4, .invoker = __initialize};
131
+ methodMap_["close"] = MethodMetadata {.argCount = 0, .invoker = __close};
132
+ methodMap_["login"] = MethodMetadata {.argCount = 1, .invoker = __login};
133
+ methodMap_["logout"] = MethodMetadata {.argCount = 0, .invoker = __logout};
134
+ methodMap_["getProducts"] = MethodMetadata {.argCount = 2, .invoker = __getProducts};
135
+ methodMap_["getSubscriptionGroups"] = MethodMetadata {.argCount = 2, .invoker = __getSubscriptionGroups};
136
+ methodMap_["getSubscriptionGroupById"] = MethodMetadata {.argCount = 1, .invoker = __getSubscriptionGroupById};
137
+ methodMap_["getEntitlementForSubscription"] = MethodMetadata {.argCount = 1, .invoker = __getEntitlementForSubscription};
138
+ methodMap_["getEntitlement"] = MethodMetadata {.argCount = 1, .invoker = __getEntitlement};
139
+ methodMap_["getEntitlements"] = MethodMetadata {.argCount = 1, .invoker = __getEntitlements};
140
+ methodMap_["getExternalEntitlements"] = MethodMetadata {.argCount = 0, .invoker = __getExternalEntitlements};
141
+ methodMap_["requestTransferOwnership"] = MethodMetadata {.argCount = 0, .invoker = __requestTransferOwnership};
142
+ methodMap_["openManageSubscription"] = MethodMetadata {.argCount = 0, .invoker = __openManageSubscription};
143
+ methodMap_["openRefundDialogForProduct"] = MethodMetadata {.argCount = 1, .invoker = __openRefundDialogForProduct};
144
+ methodMap_["openRefundDialogForTransactionId"] = MethodMetadata {.argCount = 1, .invoker = __openRefundDialogForTransactionId};
145
+ methodMap_["purchaseProduct"] = MethodMetadata {.argCount = 2, .invoker = __purchaseProduct};
146
+ methodMap_["sendDiagnostic"] = MethodMetadata {.argCount = 0, .invoker = __sendDiagnostic};
147
+ methodMap_["getStoreCountry"] = MethodMetadata {.argCount = 0, .invoker = __getStoreCountry};
148
+ methodMap_["isBillingAvailable"] = MethodMetadata {.argCount = 0, .invoker = __isBillingAvailable};
149
+ methodMap_["isForwardingEnable"] = MethodMetadata {.argCount = 1, .invoker = __isForwardingEnable};
150
+ methodMap_["getCustomer"] = MethodMetadata {.argCount = 0, .invoker = __getCustomer};
151
+ methodMap_["getSDKVersion"] = MethodMetadata {.argCount = 0, .invoker = __getSDKVersion};
152
+ }
153
+
154
+ private:
155
+ static jsi::Value __initialize(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
156
+ static_assert(
157
+ bridging::getParameterCount(&T::initialize) == 5,
158
+ "Expected initialize(...) to have 5 parameters");
159
+ bridging::callFromJs<void>(rt, &T::initialize, static_cast<NativeMobilyflowReactNativeSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
160
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
161
+ count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
162
+ count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asString(rt),
163
+ count <= 3 || args[3].isUndefined() ? std::nullopt : std::make_optional(args[3].asObject(rt)));return jsi::Value::undefined();
164
+ }
165
+
166
+ static jsi::Value __close(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
167
+ static_assert(
168
+ bridging::getParameterCount(&T::close) == 1,
169
+ "Expected close(...) to have 1 parameters");
170
+ bridging::callFromJs<void>(rt, &T::close, static_cast<NativeMobilyflowReactNativeSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));return jsi::Value::undefined();
171
+ }
172
+
173
+ static jsi::Value __login(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
174
+ static_assert(
175
+ bridging::getParameterCount(&T::login) == 2,
176
+ "Expected login(...) to have 2 parameters");
177
+ return bridging::callFromJs<jsi::Value>(rt, &T::login, static_cast<NativeMobilyflowReactNativeSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
178
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt));
179
+ }
180
+
181
+ static jsi::Value __logout(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
182
+ static_assert(
183
+ bridging::getParameterCount(&T::logout) == 1,
184
+ "Expected logout(...) to have 1 parameters");
185
+ return bridging::callFromJs<jsi::Value>(rt, &T::logout, static_cast<NativeMobilyflowReactNativeSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
186
+ }
187
+
188
+ static jsi::Value __getProducts(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
189
+ static_assert(
190
+ bridging::getParameterCount(&T::getProducts) == 3,
191
+ "Expected getProducts(...) to have 3 parameters");
192
+ return bridging::callFromJs<jsi::Value>(rt, &T::getProducts, static_cast<NativeMobilyflowReactNativeSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
193
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asArray(rt),
194
+ count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asBool());
195
+ }
196
+
197
+ static jsi::Value __getSubscriptionGroups(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
198
+ static_assert(
199
+ bridging::getParameterCount(&T::getSubscriptionGroups) == 3,
200
+ "Expected getSubscriptionGroups(...) to have 3 parameters");
201
+ return bridging::callFromJs<jsi::Value>(rt, &T::getSubscriptionGroups, static_cast<NativeMobilyflowReactNativeSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
202
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asArray(rt),
203
+ count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asBool());
204
+ }
205
+
206
+ static jsi::Value __getSubscriptionGroupById(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
207
+ static_assert(
208
+ bridging::getParameterCount(&T::getSubscriptionGroupById) == 2,
209
+ "Expected getSubscriptionGroupById(...) to have 2 parameters");
210
+ return bridging::callFromJs<jsi::Value>(rt, &T::getSubscriptionGroupById, static_cast<NativeMobilyflowReactNativeSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
211
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt));
212
+ }
213
+
214
+ static jsi::Value __getEntitlementForSubscription(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
215
+ static_assert(
216
+ bridging::getParameterCount(&T::getEntitlementForSubscription) == 2,
217
+ "Expected getEntitlementForSubscription(...) to have 2 parameters");
218
+ return bridging::callFromJs<jsi::Value>(rt, &T::getEntitlementForSubscription, static_cast<NativeMobilyflowReactNativeSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
219
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt));
220
+ }
221
+
222
+ static jsi::Value __getEntitlement(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
223
+ static_assert(
224
+ bridging::getParameterCount(&T::getEntitlement) == 2,
225
+ "Expected getEntitlement(...) to have 2 parameters");
226
+ return bridging::callFromJs<jsi::Value>(rt, &T::getEntitlement, static_cast<NativeMobilyflowReactNativeSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
227
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt));
228
+ }
229
+
230
+ static jsi::Value __getEntitlements(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
231
+ static_assert(
232
+ bridging::getParameterCount(&T::getEntitlements) == 2,
233
+ "Expected getEntitlements(...) to have 2 parameters");
234
+ return bridging::callFromJs<jsi::Value>(rt, &T::getEntitlements, static_cast<NativeMobilyflowReactNativeSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
235
+ count <= 0 || args[0].isUndefined() ? std::nullopt : std::make_optional(args[0].asObject(rt).asArray(rt)));
236
+ }
237
+
238
+ static jsi::Value __getExternalEntitlements(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
239
+ static_assert(
240
+ bridging::getParameterCount(&T::getExternalEntitlements) == 1,
241
+ "Expected getExternalEntitlements(...) to have 1 parameters");
242
+ return bridging::callFromJs<jsi::Value>(rt, &T::getExternalEntitlements, static_cast<NativeMobilyflowReactNativeSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
243
+ }
244
+
245
+ static jsi::Value __requestTransferOwnership(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
246
+ static_assert(
247
+ bridging::getParameterCount(&T::requestTransferOwnership) == 1,
248
+ "Expected requestTransferOwnership(...) to have 1 parameters");
249
+ return bridging::callFromJs<jsi::Value>(rt, &T::requestTransferOwnership, static_cast<NativeMobilyflowReactNativeSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
250
+ }
251
+
252
+ static jsi::Value __openManageSubscription(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
253
+ static_assert(
254
+ bridging::getParameterCount(&T::openManageSubscription) == 1,
255
+ "Expected openManageSubscription(...) to have 1 parameters");
256
+ return bridging::callFromJs<jsi::Value>(rt, &T::openManageSubscription, static_cast<NativeMobilyflowReactNativeSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
257
+ }
258
+
259
+ static jsi::Value __openRefundDialogForProduct(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
260
+ static_assert(
261
+ bridging::getParameterCount(&T::openRefundDialogForProduct) == 2,
262
+ "Expected openRefundDialogForProduct(...) to have 2 parameters");
263
+ return bridging::callFromJs<jsi::Value>(rt, &T::openRefundDialogForProduct, static_cast<NativeMobilyflowReactNativeSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
264
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt));
265
+ }
266
+
267
+ static jsi::Value __openRefundDialogForTransactionId(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
268
+ static_assert(
269
+ bridging::getParameterCount(&T::openRefundDialogForTransactionId) == 2,
270
+ "Expected openRefundDialogForTransactionId(...) to have 2 parameters");
271
+ return bridging::callFromJs<jsi::Value>(rt, &T::openRefundDialogForTransactionId, static_cast<NativeMobilyflowReactNativeSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
272
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt));
273
+ }
274
+
275
+ static jsi::Value __purchaseProduct(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
276
+ static_assert(
277
+ bridging::getParameterCount(&T::purchaseProduct) == 3,
278
+ "Expected purchaseProduct(...) to have 3 parameters");
279
+ return bridging::callFromJs<jsi::Value>(rt, &T::purchaseProduct, static_cast<NativeMobilyflowReactNativeSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
280
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
281
+ count <= 1 || args[1].isUndefined() ? std::nullopt : std::make_optional(args[1].asObject(rt)));
282
+ }
283
+
284
+ static jsi::Value __sendDiagnostic(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
285
+ static_assert(
286
+ bridging::getParameterCount(&T::sendDiagnostic) == 1,
287
+ "Expected sendDiagnostic(...) to have 1 parameters");
288
+ return bridging::callFromJs<jsi::Value>(rt, &T::sendDiagnostic, static_cast<NativeMobilyflowReactNativeSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
289
+ }
290
+
291
+ static jsi::Value __getStoreCountry(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
292
+ static_assert(
293
+ bridging::getParameterCount(&T::getStoreCountry) == 1,
294
+ "Expected getStoreCountry(...) to have 1 parameters");
295
+ return bridging::callFromJs<jsi::Value>(rt, &T::getStoreCountry, static_cast<NativeMobilyflowReactNativeSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
296
+ }
297
+
298
+ static jsi::Value __isBillingAvailable(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
299
+ static_assert(
300
+ bridging::getParameterCount(&T::isBillingAvailable) == 1,
301
+ "Expected isBillingAvailable(...) to have 1 parameters");
302
+ return bridging::callFromJs<jsi::Value>(rt, &T::isBillingAvailable, static_cast<NativeMobilyflowReactNativeSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
303
+ }
304
+
305
+ static jsi::Value __isForwardingEnable(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
306
+ static_assert(
307
+ bridging::getParameterCount(&T::isForwardingEnable) == 2,
308
+ "Expected isForwardingEnable(...) to have 2 parameters");
309
+ return bridging::callFromJs<jsi::Value>(rt, &T::isForwardingEnable, static_cast<NativeMobilyflowReactNativeSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
310
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt));
311
+ }
312
+
313
+ static jsi::Value __getCustomer(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
314
+ static_assert(
315
+ bridging::getParameterCount(&T::getCustomer) == 1,
316
+ "Expected getCustomer(...) to have 1 parameters");
317
+ return bridging::callFromJs<jsi::Value>(rt, &T::getCustomer, static_cast<NativeMobilyflowReactNativeSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
318
+ }
319
+
320
+ static jsi::Value __getSDKVersion(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
321
+ static_assert(
322
+ bridging::getParameterCount(&T::getSDKVersion) == 1,
323
+ "Expected getSDKVersion(...) to have 1 parameters");
324
+ return bridging::callFromJs<jsi::Value>(rt, &T::getSDKVersion, static_cast<NativeMobilyflowReactNativeSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
325
+ }
326
+ };
327
+
328
+ } // namespace facebook::react
@@ -0,0 +1,110 @@
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.85.1"
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
+ use_frameworks = ENV['USE_FRAMEWORKS'] != nil
16
+ folly_compiler_flags = Helpers::Constants.folly_config[:compiler_flags]
17
+ boost_compiler_flags = Helpers::Constants.boost_config[:compiler_flags]
18
+
19
+ header_search_paths = []
20
+ framework_search_paths = []
21
+
22
+ header_search_paths = [
23
+ "\"$(PODS_ROOT)/ReactNativeDependencies\"",
24
+ "\"${PODS_ROOT}/Headers/Public/ReactCodegen/react/renderer/components\"",
25
+ "\"$(PODS_ROOT)/Headers/Private/React-Fabric\"",
26
+ "\"$(PODS_ROOT)/Headers/Private/React-RCTFabric\"",
27
+ "\"$(PODS_ROOT)/Headers/Private/Yoga\"",
28
+ "\"$(PODS_TARGET_SRCROOT)\"",
29
+ ]
30
+
31
+ if use_frameworks
32
+ ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-Fabric", "React_Fabric", ["react/renderer/components/view/platform/cxx"])
33
+ .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-FabricImage", "React_FabricImage", []))
34
+ .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-graphics", "React_graphics", ["react/renderer/graphics/platform/ios"]))
35
+ .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "ReactCommon", "ReactCommon", ["react/nativemodule/core"]))
36
+ .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-runtimeexecutor", "React_runtimeexecutor", ["platform/ios"]))
37
+ .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-NativeModulesApple", "React_NativeModulesApple", []))
38
+ .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-RCTFabric", "RCTFabric", []))
39
+ .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-debug", "React_debug", []))
40
+ .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-rendererdebug", "React_rendererdebug", []))
41
+ .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-utils", "React_utils", []))
42
+ .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-featureflags", "React_featureflags", []))
43
+ .each { |search_path|
44
+ header_search_paths << "\"#{search_path}\""
45
+ }
46
+ end
47
+
48
+ Pod::Spec.new do |s|
49
+ s.name = "ReactCodegen"
50
+ s.version = version
51
+ s.summary = 'Temp pod for generated files for React Native'
52
+ s.homepage = 'https://facebook.com/'
53
+ s.license = 'Unlicense'
54
+ s.authors = 'Facebook'
55
+ s.compiler_flags = "#{folly_compiler_flags} #{boost_compiler_flags} -Wno-nullability-completeness -std=c++20"
56
+ s.source = { :git => '' }
57
+ s.header_mappings_dir = './'
58
+ s.platforms = min_supported_versions
59
+ s.source_files = "**/*.{h,mm,cpp}"
60
+ s.exclude_files = "RCTAppDependencyProvider.{h,mm}" # these files are generated in the same codegen path but needs to belong to a different pod
61
+ s.pod_target_xcconfig = {
62
+ "HEADER_SEARCH_PATHS" => header_search_paths.join(' '),
63
+ "FRAMEWORK_SEARCH_PATHS" => framework_search_paths,
64
+ "OTHER_CPLUSPLUSFLAGS" => "$(inherited) #{folly_compiler_flags} #{boost_compiler_flags}"
65
+ }
66
+
67
+ s.dependency "React-jsiexecutor"
68
+ s.dependency "RCTRequired"
69
+ s.dependency "RCTTypeSafety"
70
+ s.dependency "React-Core"
71
+ s.dependency "React-jsi"
72
+ s.dependency "ReactCommon/turbomodule/bridging"
73
+ s.dependency "ReactCommon/turbomodule/core"
74
+ s.dependency "React-NativeModulesApple"
75
+ s.dependency 'React-graphics'
76
+ s.dependency 'React-rendererdebug'
77
+ s.dependency 'React-Fabric'
78
+ s.dependency 'React-FabricImage'
79
+ s.dependency 'React-debug'
80
+ s.dependency 'React-utils'
81
+ s.dependency 'React-featureflags'
82
+ s.dependency 'React-RCTAppDelegate'
83
+
84
+ depend_on_js_engine(s)
85
+ add_rn_third_party_dependencies(s)
86
+ add_rncore_dependency(s)
87
+
88
+ s.script_phases = {
89
+ 'name' => 'Generate Specs',
90
+ 'execution_position' => :before_compile,
91
+ 'input_files' => ["${PODS_ROOT}/../../../src/NativeMobilyflowReactNativeSdk.ts"],
92
+ 'show_env_vars_in_log' => true,
93
+ 'output_files' => ["${DERIVED_FILE_DIR}/react-codegen.log"],
94
+ 'script': <<-SCRIPT
95
+ pushd "$PODS_ROOT/../" > /dev/null
96
+ RCT_SCRIPT_POD_INSTALLATION_ROOT=$(pwd)
97
+ popd >/dev/null
98
+
99
+ export RCT_SCRIPT_RN_DIR="$RCT_SCRIPT_POD_INSTALLATION_ROOT/../../node_modules/react-native"
100
+ export RCT_SCRIPT_APP_PATH="$RCT_SCRIPT_POD_INSTALLATION_ROOT/../.."
101
+ export RCT_SCRIPT_OUTPUT_DIR="$RCT_SCRIPT_POD_INSTALLATION_ROOT"
102
+ export RCT_SCRIPT_TYPE="withCodegenDiscovery"
103
+
104
+ export SCRIPT_PHASES_SCRIPT="$RCT_SCRIPT_RN_DIR/scripts/react_native_pods_utils/script_phases.sh"
105
+ export WITH_ENVIRONMENT="$RCT_SCRIPT_RN_DIR/scripts/xcode/with-environment.sh"
106
+ /bin/sh -c '"$WITH_ENVIRONMENT" "$SCRIPT_PHASES_SCRIPT"'
107
+ SCRIPT
108
+ }
109
+
110
+ end
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mobilyflow-react-native-sdk",
3
- "version": "0.7.0-alpha.2",
3
+ "version": "0.7.0-alpha.4",
4
4
  "description": "MobilyFlow React Native SDK",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",
@@ -78,8 +78,8 @@
78
78
  "eslint-plugin-prettier": "^5.0.1",
79
79
  "jest": "^29.7.0",
80
80
  "prettier": "^3.0.3",
81
- "react": "19.0.0",
82
- "react-native": "0.78.0",
81
+ "react": "19.2.0",
82
+ "react-native": ">=0.80.0",
83
83
  "react-native-builder-bob": "^0.36.0",
84
84
  "turbo": "^1.10.7",
85
85
  "typescript": "^5.2.2"
@@ -1,172 +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 "RNMobilyflowReactNativeSdkSpecJSI.h"
11
-
12
- namespace facebook::react {
13
-
14
- static jsi::Value __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_initialize(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
15
- static_cast<NativeMobilyflowReactNativeSdkCxxSpecJSI *>(&turboModule)->initialize(
16
- rt,
17
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
18
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
19
- count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asString(rt),
20
- count <= 3 || args[3].isUndefined() ? std::nullopt : std::make_optional(args[3].asObject(rt))
21
- );
22
- return jsi::Value::undefined();
23
- }
24
- static jsi::Value __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_close(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
25
- static_cast<NativeMobilyflowReactNativeSdkCxxSpecJSI *>(&turboModule)->close(
26
- rt
27
- );
28
- return jsi::Value::undefined();
29
- }
30
- static jsi::Value __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_login(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
31
- return static_cast<NativeMobilyflowReactNativeSdkCxxSpecJSI *>(&turboModule)->login(
32
- rt,
33
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
34
- );
35
- }
36
- static jsi::Value __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_logout(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
37
- return static_cast<NativeMobilyflowReactNativeSdkCxxSpecJSI *>(&turboModule)->logout(
38
- rt
39
- );
40
- }
41
- static jsi::Value __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_getProducts(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
42
- return static_cast<NativeMobilyflowReactNativeSdkCxxSpecJSI *>(&turboModule)->getProducts(
43
- rt,
44
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asArray(rt),
45
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asBool()
46
- );
47
- }
48
- static jsi::Value __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_getSubscriptionGroups(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
49
- return static_cast<NativeMobilyflowReactNativeSdkCxxSpecJSI *>(&turboModule)->getSubscriptionGroups(
50
- rt,
51
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asArray(rt),
52
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asBool()
53
- );
54
- }
55
- static jsi::Value __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_getSubscriptionGroupById(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
56
- return static_cast<NativeMobilyflowReactNativeSdkCxxSpecJSI *>(&turboModule)->getSubscriptionGroupById(
57
- rt,
58
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
59
- );
60
- }
61
- static jsi::Value __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_getEntitlementForSubscription(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
62
- return static_cast<NativeMobilyflowReactNativeSdkCxxSpecJSI *>(&turboModule)->getEntitlementForSubscription(
63
- rt,
64
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
65
- );
66
- }
67
- static jsi::Value __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_getEntitlement(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
68
- return static_cast<NativeMobilyflowReactNativeSdkCxxSpecJSI *>(&turboModule)->getEntitlement(
69
- rt,
70
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
71
- );
72
- }
73
- static jsi::Value __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_getEntitlements(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
74
- return static_cast<NativeMobilyflowReactNativeSdkCxxSpecJSI *>(&turboModule)->getEntitlements(
75
- rt,
76
- count <= 0 || args[0].isUndefined() ? std::nullopt : std::make_optional(args[0].asObject(rt).asArray(rt))
77
- );
78
- }
79
- static jsi::Value __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_getExternalEntitlements(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
80
- return static_cast<NativeMobilyflowReactNativeSdkCxxSpecJSI *>(&turboModule)->getExternalEntitlements(
81
- rt
82
- );
83
- }
84
- static jsi::Value __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_requestTransferOwnership(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
85
- return static_cast<NativeMobilyflowReactNativeSdkCxxSpecJSI *>(&turboModule)->requestTransferOwnership(
86
- rt
87
- );
88
- }
89
- static jsi::Value __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_openManageSubscription(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
90
- return static_cast<NativeMobilyflowReactNativeSdkCxxSpecJSI *>(&turboModule)->openManageSubscription(
91
- rt
92
- );
93
- }
94
- static jsi::Value __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_openRefundDialogForProduct(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
95
- return static_cast<NativeMobilyflowReactNativeSdkCxxSpecJSI *>(&turboModule)->openRefundDialogForProduct(
96
- rt,
97
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
98
- );
99
- }
100
- static jsi::Value __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_openRefundDialogForTransactionId(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
101
- return static_cast<NativeMobilyflowReactNativeSdkCxxSpecJSI *>(&turboModule)->openRefundDialogForTransactionId(
102
- rt,
103
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
104
- );
105
- }
106
- static jsi::Value __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_purchaseProduct(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
107
- return static_cast<NativeMobilyflowReactNativeSdkCxxSpecJSI *>(&turboModule)->purchaseProduct(
108
- rt,
109
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
110
- count <= 1 || args[1].isUndefined() ? std::nullopt : std::make_optional(args[1].asObject(rt))
111
- );
112
- }
113
- static jsi::Value __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_sendDiagnostic(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
114
- return static_cast<NativeMobilyflowReactNativeSdkCxxSpecJSI *>(&turboModule)->sendDiagnostic(
115
- rt
116
- );
117
- }
118
- static jsi::Value __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_getStoreCountry(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
119
- return static_cast<NativeMobilyflowReactNativeSdkCxxSpecJSI *>(&turboModule)->getStoreCountry(
120
- rt
121
- );
122
- }
123
- static jsi::Value __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_isBillingAvailable(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
124
- return static_cast<NativeMobilyflowReactNativeSdkCxxSpecJSI *>(&turboModule)->isBillingAvailable(
125
- rt
126
- );
127
- }
128
- static jsi::Value __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_isForwardingEnable(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
129
- return static_cast<NativeMobilyflowReactNativeSdkCxxSpecJSI *>(&turboModule)->isForwardingEnable(
130
- rt,
131
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
132
- );
133
- }
134
- static jsi::Value __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_getCustomer(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
135
- return static_cast<NativeMobilyflowReactNativeSdkCxxSpecJSI *>(&turboModule)->getCustomer(
136
- rt
137
- );
138
- }
139
- static jsi::Value __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_getSDKVersion(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
140
- return static_cast<NativeMobilyflowReactNativeSdkCxxSpecJSI *>(&turboModule)->getSDKVersion(
141
- rt
142
- );
143
- }
144
-
145
- NativeMobilyflowReactNativeSdkCxxSpecJSI::NativeMobilyflowReactNativeSdkCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
146
- : TurboModule("MobilyflowReactNativeSdk", jsInvoker) {
147
- methodMap_["initialize"] = MethodMetadata {4, __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_initialize};
148
- methodMap_["close"] = MethodMetadata {0, __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_close};
149
- methodMap_["login"] = MethodMetadata {1, __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_login};
150
- methodMap_["logout"] = MethodMetadata {0, __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_logout};
151
- methodMap_["getProducts"] = MethodMetadata {2, __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_getProducts};
152
- methodMap_["getSubscriptionGroups"] = MethodMetadata {2, __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_getSubscriptionGroups};
153
- methodMap_["getSubscriptionGroupById"] = MethodMetadata {1, __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_getSubscriptionGroupById};
154
- methodMap_["getEntitlementForSubscription"] = MethodMetadata {1, __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_getEntitlementForSubscription};
155
- methodMap_["getEntitlement"] = MethodMetadata {1, __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_getEntitlement};
156
- methodMap_["getEntitlements"] = MethodMetadata {1, __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_getEntitlements};
157
- methodMap_["getExternalEntitlements"] = MethodMetadata {0, __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_getExternalEntitlements};
158
- methodMap_["requestTransferOwnership"] = MethodMetadata {0, __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_requestTransferOwnership};
159
- methodMap_["openManageSubscription"] = MethodMetadata {0, __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_openManageSubscription};
160
- methodMap_["openRefundDialogForProduct"] = MethodMetadata {1, __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_openRefundDialogForProduct};
161
- methodMap_["openRefundDialogForTransactionId"] = MethodMetadata {1, __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_openRefundDialogForTransactionId};
162
- methodMap_["purchaseProduct"] = MethodMetadata {2, __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_purchaseProduct};
163
- methodMap_["sendDiagnostic"] = MethodMetadata {0, __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_sendDiagnostic};
164
- methodMap_["getStoreCountry"] = MethodMetadata {0, __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_getStoreCountry};
165
- methodMap_["isBillingAvailable"] = MethodMetadata {0, __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_isBillingAvailable};
166
- methodMap_["isForwardingEnable"] = MethodMetadata {1, __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_isForwardingEnable};
167
- methodMap_["getCustomer"] = MethodMetadata {0, __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_getCustomer};
168
- methodMap_["getSDKVersion"] = MethodMetadata {0, __hostFunction_NativeMobilyflowReactNativeSdkCxxSpecJSI_getSDKVersion};
169
- }
170
-
171
-
172
- } // namespace facebook::react
@@ -1,5 +0,0 @@
1
- MobilyflowReactNativeSdk_kotlinVersion=2.1.0
2
- MobilyflowReactNativeSdk_minSdkVersion=24
3
- MobilyflowReactNativeSdk_targetSdkVersion=34
4
- MobilyflowReactNativeSdk_compileSdkVersion=35
5
- MobilyflowReactNativeSdk_ndkVersion=27.1.12297006