mobilyflow-react-native-sdk 0.7.0-alpha.4 → 0.7.0-alpha.6
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/MobilyflowReactNativeSdk.podspec +1 -1
- package/android/build.gradle +6 -6
- package/ios/Utils/ParserMobilyPurchaseSDKOptions.h +1 -1
- package/lib/commonjs/MobilyPurchaseSDK.js +5 -1
- package/lib/commonjs/MobilyPurchaseSDK.js.map +1 -1
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/version.js +8 -0
- package/lib/commonjs/version.js.map +1 -0
- package/lib/module/MobilyPurchaseSDK.js +5 -1
- package/lib/module/MobilyPurchaseSDK.js.map +1 -1
- package/lib/module/package.json +1 -0
- package/lib/module/version.js +4 -0
- package/lib/module/version.js.map +1 -0
- package/lib/typescript/commonjs/src/MobilyPurchaseSDK.d.ts +2 -1
- package/lib/typescript/commonjs/src/MobilyPurchaseSDK.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/object-transformer.d.ts +1 -1
- package/lib/typescript/commonjs/src/utils/object-transformer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/version.d.ts +2 -0
- package/lib/typescript/commonjs/src/version.d.ts.map +1 -0
- package/lib/typescript/module/src/MobilyPurchaseSDK.d.ts +2 -1
- package/lib/typescript/module/src/MobilyPurchaseSDK.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/object-transformer.d.ts +1 -1
- package/lib/typescript/module/src/utils/object-transformer.d.ts.map +1 -1
- package/lib/typescript/module/src/version.d.ts +2 -0
- package/lib/typescript/module/src/version.d.ts.map +1 -0
- package/package.json +6 -17
- package/src/MobilyPurchaseSDK.tsx +6 -1
- package/src/version.ts +1 -0
- package/LICENSE +0 -20
- package/README.md +0 -33
- package/ios/generated/Package.swift +0 -66
- package/ios/generated/ReactAppDependencyProvider/RCTAppDependencyProvider.h +0 -25
- package/ios/generated/ReactAppDependencyProvider/RCTAppDependencyProvider.mm +0 -40
- package/ios/generated/ReactAppDependencyProvider/ReactAppDependencyProvider.podspec +0 -34
- package/ios/generated/ReactCodegen/RCTModuleProviders.h +0 -16
- package/ios/generated/ReactCodegen/RCTModuleProviders.mm +0 -51
- package/ios/generated/ReactCodegen/RCTModulesConformingToProtocolsProvider.h +0 -18
- package/ios/generated/ReactCodegen/RCTModulesConformingToProtocolsProvider.mm +0 -54
- package/ios/generated/ReactCodegen/RCTThirdPartyComponentsProvider.h +0 -16
- package/ios/generated/ReactCodegen/RCTThirdPartyComponentsProvider.mm +0 -30
- package/ios/generated/ReactCodegen/RCTUnstableModulesRequiringMainQueueSetupProvider.h +0 -14
- package/ios/generated/ReactCodegen/RCTUnstableModulesRequiringMainQueueSetupProvider.mm +0 -19
- package/ios/generated/ReactCodegen/ReactCodegen.podspec +0 -110
|
@@ -21,7 +21,7 @@ Pod::Spec.new do |s|
|
|
|
21
21
|
s.swift_versions = '5.0'
|
|
22
22
|
|
|
23
23
|
# Install MobilyFlow SDK
|
|
24
|
-
s.dependency 'MobilyflowSDK', '0.7.0-alpha.
|
|
24
|
+
s.dependency 'MobilyflowSDK', '0.7.0-alpha.6'
|
|
25
25
|
|
|
26
26
|
#s.subspec 'MobilyflowSDK' do |ss|
|
|
27
27
|
# ss.source_files = '../mobilyflow-ios-sdk/Sources/MobilyflowSDK/**/*'
|
package/android/build.gradle
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
buildscript {
|
|
2
|
+
ext.safeExtGet = { name, fallback ->
|
|
3
|
+
return rootProject.ext.has(name) ? rootProject.ext.get(name) : fallback
|
|
4
|
+
}
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
ext.kotlin_version = safeExtGet("kotlinVersion", "2.1.20")
|
|
6
7
|
|
|
7
|
-
buildscript {
|
|
8
8
|
repositories {
|
|
9
9
|
google()
|
|
10
10
|
mavenCentral()
|
|
@@ -97,7 +97,7 @@ dependencies {
|
|
|
97
97
|
implementation "com.facebook.react:react-android"
|
|
98
98
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
99
99
|
implementation "org.jetbrains.kotlinx:kotlinx-datetime:[0.7.0,0.8.0["
|
|
100
|
-
implementation "com.mobilyflow:mobilyflow-android-sdk:0.7.0-alpha.
|
|
100
|
+
implementation "com.mobilyflow:mobilyflow-android-sdk:0.7.0-alpha.6"
|
|
101
101
|
implementation "org.jetbrains.kotlin:kotlin-reflect"
|
|
102
102
|
}
|
|
103
103
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
#import <Foundation/Foundation.h>
|
|
9
9
|
#import <RCTTypeSafety/RCTConvertHelpers.h>
|
|
10
|
-
#import "../generated/RNMobilyflowReactNativeSdkSpec/RNMobilyflowReactNativeSdkSpec.h"
|
|
10
|
+
#import "../generated/ReactCodegen/RNMobilyflowReactNativeSdkSpec/RNMobilyflowReactNativeSdkSpec.h"
|
|
11
11
|
#import <MobilyflowSDK/MobilyflowSDK.h>
|
|
12
12
|
|
|
13
13
|
NS_ASSUME_NONNULL_BEGIN
|
|
@@ -13,6 +13,7 @@ var _mobilyError = require("./errors/mobily-error.js");
|
|
|
13
13
|
var _mobilyPurchaseError = require("./errors/mobily-purchase-error.js");
|
|
14
14
|
var _mobilyTransferOwnershipError = require("./errors/mobily-transfer-ownership-error.js");
|
|
15
15
|
var _mobilyCustomer = require("./models/mobily-customer.js");
|
|
16
|
+
var _version = require("./version.js");
|
|
16
17
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
18
|
function throwError(error) {
|
|
18
19
|
if (_reactNative.Platform.OS === 'android') {
|
|
@@ -206,12 +207,15 @@ const MobilyPurchaseSDK = exports.MobilyPurchaseSDK = {
|
|
|
206
207
|
throw throwError(error);
|
|
207
208
|
}
|
|
208
209
|
},
|
|
209
|
-
|
|
210
|
+
getSDKNativeVersion: async () => {
|
|
210
211
|
try {
|
|
211
212
|
return await _NativeMobilyflowReactNativeSdk.default.getSDKVersion();
|
|
212
213
|
} catch (error) {
|
|
213
214
|
throw throwError(error);
|
|
214
215
|
}
|
|
216
|
+
},
|
|
217
|
+
getSDKBridgeVersion: () => {
|
|
218
|
+
return _version.BRIDGE_VERSION;
|
|
215
219
|
}
|
|
216
220
|
};
|
|
217
221
|
//# sourceMappingURL=MobilyPurchaseSDK.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_NativeMobilyflowReactNativeSdk","_interopRequireDefault","require","_mobilyProduct","_mobilySubscriptionGroup","_mobilyCustomerEntitlement","_reactNative","_mobilyError","_mobilyPurchaseError","_mobilyTransferOwnershipError","_mobilyCustomer","e","__esModule","default","throwError","error","RNPlatform","OS","name","MobilyError","parseInt","code","message","nativeStackAndroid","MobilyPurchaseError","MobilyTransferOwnershipError","domain","nativeStackIOS","MobilyPurchaseSDK","exports","initialize","appId","apiKey","environment","options","MobilyflowReactNativeSdk","close","login","externalRef","customer","MobilyCustomer","parseFromAPI","logout","getProducts","identifiers","onlyAvailable","products","map","MobilyProduct","getSubscriptionGroups","groups","MobilySubscriptionGroup","getSubscriptionGroupById","id","group","getEntitlementForSubscription","subscriptionGroupId","entitlement","MobilyCustomerEntitlement","getEntitlement","productId","getEntitlements","productIds","entitlements","getExternalEntitlements","requestTransferOwnership","openManageSubscription","openRefundDialogForProduct","product","Error","result","openRefundDialogForTransactionId","transactionId","purchaseProduct","offerId","offer","quantity","sendDiagnostic","getStoreCountry","isBillingAvailable","isForwardingEnable","getCustomer","getSDKVersion"],"sourceRoot":"../../src","sources":["MobilyPurchaseSDK.tsx"],"mappings":";;;;;;AAAA,IAAAA,+BAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,wBAAA,GAAAF,OAAA;AACA,IAAAG,0BAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,YAAA,GAAAL,OAAA;AACA,IAAAM,oBAAA,GAAAN,OAAA;AACA,IAAAO,6BAAA,GAAAP,OAAA;AACA,IAAAQ,eAAA,GAAAR,OAAA;
|
|
1
|
+
{"version":3,"names":["_NativeMobilyflowReactNativeSdk","_interopRequireDefault","require","_mobilyProduct","_mobilySubscriptionGroup","_mobilyCustomerEntitlement","_reactNative","_mobilyError","_mobilyPurchaseError","_mobilyTransferOwnershipError","_mobilyCustomer","_version","e","__esModule","default","throwError","error","RNPlatform","OS","name","MobilyError","parseInt","code","message","nativeStackAndroid","MobilyPurchaseError","MobilyTransferOwnershipError","domain","nativeStackIOS","MobilyPurchaseSDK","exports","initialize","appId","apiKey","environment","options","MobilyflowReactNativeSdk","close","login","externalRef","customer","MobilyCustomer","parseFromAPI","logout","getProducts","identifiers","onlyAvailable","products","map","MobilyProduct","getSubscriptionGroups","groups","MobilySubscriptionGroup","getSubscriptionGroupById","id","group","getEntitlementForSubscription","subscriptionGroupId","entitlement","MobilyCustomerEntitlement","getEntitlement","productId","getEntitlements","productIds","entitlements","getExternalEntitlements","requestTransferOwnership","openManageSubscription","openRefundDialogForProduct","product","Error","result","openRefundDialogForTransactionId","transactionId","purchaseProduct","offerId","offer","quantity","sendDiagnostic","getStoreCountry","isBillingAvailable","isForwardingEnable","getCustomer","getSDKNativeVersion","getSDKVersion","getSDKBridgeVersion","BRIDGE_VERSION"],"sourceRoot":"../../src","sources":["MobilyPurchaseSDK.tsx"],"mappings":";;;;;;AAAA,IAAAA,+BAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,wBAAA,GAAAF,OAAA;AACA,IAAAG,0BAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,YAAA,GAAAL,OAAA;AACA,IAAAM,oBAAA,GAAAN,OAAA;AACA,IAAAO,6BAAA,GAAAP,OAAA;AACA,IAAAQ,eAAA,GAAAR,OAAA;AAKA,IAAAS,QAAA,GAAAT,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ings":";;;;;;AAAO,MAAMA,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG,eAAe","ignoreList":[]}
|
|
@@ -9,6 +9,7 @@ import { MobilyError } from "./errors/mobily-error.js";
|
|
|
9
9
|
import { MobilyPurchaseError } from "./errors/mobily-purchase-error.js";
|
|
10
10
|
import { MobilyTransferOwnershipError } from "./errors/mobily-transfer-ownership-error.js";
|
|
11
11
|
import { MobilyCustomer } from "./models/mobily-customer.js";
|
|
12
|
+
import { BRIDGE_VERSION } from "./version.js";
|
|
12
13
|
function throwError(error) {
|
|
13
14
|
if (RNPlatform.OS === 'android') {
|
|
14
15
|
switch (error.name) {
|
|
@@ -201,12 +202,15 @@ export const MobilyPurchaseSDK = {
|
|
|
201
202
|
throw throwError(error);
|
|
202
203
|
}
|
|
203
204
|
},
|
|
204
|
-
|
|
205
|
+
getSDKNativeVersion: async () => {
|
|
205
206
|
try {
|
|
206
207
|
return await MobilyflowReactNativeSdk.getSDKVersion();
|
|
207
208
|
} catch (error) {
|
|
208
209
|
throw throwError(error);
|
|
209
210
|
}
|
|
211
|
+
},
|
|
212
|
+
getSDKBridgeVersion: () => {
|
|
213
|
+
return BRIDGE_VERSION;
|
|
210
214
|
}
|
|
211
215
|
};
|
|
212
216
|
//# sourceMappingURL=MobilyPurchaseSDK.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["MobilyflowReactNativeSdk","MobilyProduct","MobilySubscriptionGroup","MobilyCustomerEntitlement","Platform","RNPlatform","MobilyError","MobilyPurchaseError","MobilyTransferOwnershipError","MobilyCustomer","throwError","error","OS","name","parseInt","code","message","nativeStackAndroid","domain","nativeStackIOS","MobilyPurchaseSDK","initialize","appId","apiKey","environment","options","close","login","externalRef","customer","parseFromAPI","logout","getProducts","identifiers","onlyAvailable","products","map","getSubscriptionGroups","groups","getSubscriptionGroupById","id","group","getEntitlementForSubscription","subscriptionGroupId","entitlement","getEntitlement","productId","getEntitlements","productIds","entitlements","getExternalEntitlements","requestTransferOwnership","openManageSubscription","openRefundDialogForProduct","product","Error","result","openRefundDialogForTransactionId","transactionId","purchaseProduct","offerId","offer","quantity","sendDiagnostic","getStoreCountry","isBillingAvailable","isForwardingEnable","getCustomer","getSDKVersion"],"sourceRoot":"../../src","sources":["MobilyPurchaseSDK.tsx"],"mappings":";;AAAA,OAAOA,wBAAwB,MAAyC,qCAAkC;AAC1G,SAASC,aAAa,QAAQ,oCAAiC;AAC/D,SAASC,uBAAuB,QAAQ,+CAA4C;AACpF,SAASC,yBAAyB,QAAQ,qDAAkD;AAC5F,SAASC,QAAQ,IAAIC,UAAU,QAAQ,cAAc;AACrD,SAASC,WAAW,QAAQ,0BAAuB;AACnD,SAASC,mBAAmB,QAAQ,mCAAgC;AACpE,SAASC,4BAA4B,QAAQ,6CAA0C;AACvF,SAASC,cAAc,QAAQ,6BAA0B;
|
|
1
|
+
{"version":3,"names":["MobilyflowReactNativeSdk","MobilyProduct","MobilySubscriptionGroup","MobilyCustomerEntitlement","Platform","RNPlatform","MobilyError","MobilyPurchaseError","MobilyTransferOwnershipError","MobilyCustomer","BRIDGE_VERSION","throwError","error","OS","name","parseInt","code","message","nativeStackAndroid","domain","nativeStackIOS","MobilyPurchaseSDK","initialize","appId","apiKey","environment","options","close","login","externalRef","customer","parseFromAPI","logout","getProducts","identifiers","onlyAvailable","products","map","getSubscriptionGroups","groups","getSubscriptionGroupById","id","group","getEntitlementForSubscription","subscriptionGroupId","entitlement","getEntitlement","productId","getEntitlements","productIds","entitlements","getExternalEntitlements","requestTransferOwnership","openManageSubscription","openRefundDialogForProduct","product","Error","result","openRefundDialogForTransactionId","transactionId","purchaseProduct","offerId","offer","quantity","sendDiagnostic","getStoreCountry","isBillingAvailable","isForwardingEnable","getCustomer","getSDKNativeVersion","getSDKVersion","getSDKBridgeVersion"],"sourceRoot":"../../src","sources":["MobilyPurchaseSDK.tsx"],"mappings":";;AAAA,OAAOA,wBAAwB,MAAyC,qCAAkC;AAC1G,SAASC,aAAa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AM;IACzB,OAAO7D,cAAc;EACvB;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["BRIDGE_VERSION"],"sourceRoot":"../../src","sources":["version.ts"],"mappings":";;AAAA,OAAO,MAAMA,cAAc,GAAG,eAAe","ignoreList":[]}
|
|
@@ -29,6 +29,7 @@ export declare const MobilyPurchaseSDK: {
|
|
|
29
29
|
isBillingAvailable: () => Promise<boolean>;
|
|
30
30
|
isForwardingEnable: (externalRef: string) => Promise<boolean>;
|
|
31
31
|
getCustomer: () => Promise<MobilyCustomer>;
|
|
32
|
-
|
|
32
|
+
getSDKNativeVersion: () => Promise<string>;
|
|
33
|
+
getSDKBridgeVersion: () => string;
|
|
33
34
|
};
|
|
34
35
|
//# sourceMappingURL=MobilyPurchaseSDK.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobilyPurchaseSDK.d.ts","sourceRoot":"","sources":["../../../../src/MobilyPurchaseSDK.tsx"],"names":[],"mappings":"AAAA,OAAiC,EAAE,KAAK,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC3G,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,yBAAyB,EAAE,MAAM,kDAAkD,CAAC;AAK7F,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,6BAA6B,EAAE,MAAM,0CAA0C,CAAC;AACzF,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"MobilyPurchaseSDK.d.ts","sourceRoot":"","sources":["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AAC,MAAM,GAAG,IAAI,CAAC;8BAQnB,OAAO,CAAC,OAAO,CAAC;sCAQN,MAAM;;;;CA4B/C,CAAC"}
|
|
@@ -34,5 +34,5 @@ export type ObjectTransformer = {
|
|
|
34
34
|
* @param obj
|
|
35
35
|
* @param tranformer
|
|
36
36
|
*/
|
|
37
|
-
export declare const objectTransformer: <T extends
|
|
37
|
+
export declare const objectTransformer: <T extends any>(obj: T, tranformer: ObjectTransformer) => T;
|
|
38
38
|
//# sourceMappingURL=object-transformer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"object-transformer.d.ts","sourceRoot":"","sources":["../../../../../src/utils/object-transformer.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,CAAC,EAAE;SACP,GAAG,IAAI,MAAM,GAAG,CAAC,GAAG,EAAE,GAAG,KAAK,GAAG;KACnC,CAAC;IACF,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;CAC5B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,iBAAiB,GAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"object-transformer.d.ts","sourceRoot":"","sources":["../../../../../src/utils/object-transformer.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,CAAC,EAAE;SACP,GAAG,IAAI,MAAM,GAAG,CAAC,GAAG,EAAE,GAAG,KAAK,GAAG;KACnC,CAAC;IACF,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;CAC5B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAAS,GAAG,EAAE,KAAK,CAAC,EAAE,YAAY,iBAAiB,MAoCrF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,kBAAkB,CAAC"}
|
|
@@ -29,6 +29,7 @@ export declare const MobilyPurchaseSDK: {
|
|
|
29
29
|
isBillingAvailable: () => Promise<boolean>;
|
|
30
30
|
isForwardingEnable: (externalRef: string) => Promise<boolean>;
|
|
31
31
|
getCustomer: () => Promise<MobilyCustomer>;
|
|
32
|
-
|
|
32
|
+
getSDKNativeVersion: () => Promise<string>;
|
|
33
|
+
getSDKBridgeVersion: () => string;
|
|
33
34
|
};
|
|
34
35
|
//# sourceMappingURL=MobilyPurchaseSDK.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobilyPurchaseSDK.d.ts","sourceRoot":"","sources":["../../../../src/MobilyPurchaseSDK.tsx"],"names":[],"mappings":"AAAA,OAAiC,EAAE,KAAK,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC3G,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,yBAAyB,EAAE,MAAM,kDAAkD,CAAC;AAK7F,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,6BAA6B,EAAE,MAAM,0CAA0C,CAAC;AACzF,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"MobilyPurchaseSDK.d.ts","sourceRoot":"","sources":["../../../../src/MobilyPurchaseSDK.tsx"],"names":[],"mappings":"AAAA,OAAiC,EAAE,KAAK,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC3G,OAAO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 @@ export type ObjectTransformer = {
|
|
|
34
34
|
* @param obj
|
|
35
35
|
* @param tranformer
|
|
36
36
|
*/
|
|
37
|
-
export declare const objectTransformer: <T extends
|
|
37
|
+
export declare const objectTransformer: <T extends any>(obj: T, tranformer: ObjectTransformer) => T;
|
|
38
38
|
//# sourceMappingURL=object-transformer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"object-transformer.d.ts","sourceRoot":"","sources":["../../../../../src/utils/object-transformer.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,CAAC,EAAE;SACP,GAAG,IAAI,MAAM,GAAG,CAAC,GAAG,EAAE,GAAG,KAAK,GAAG;KACnC,CAAC;IACF,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;CAC5B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,iBAAiB,GAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"object-transformer.d.ts","sourceRoot":"","sources":["../../../../../src/utils/object-transformer.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,CAAC,EAAE;SACP,GAAG,IAAI,MAAM,GAAG,CAAC,GAAG,EAAE,GAAG,KAAK,GAAG;KACnC,CAAC;IACF,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;CAC5B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAAS,GAAG,EAAE,KAAK,CAAC,EAAE,YAAY,iBAAiB,MAoCrF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,kBAAkB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mobilyflow-react-native-sdk",
|
|
3
|
-
"version": "0.7.0-alpha.
|
|
3
|
+
"version": "0.7.0-alpha.6",
|
|
4
4
|
"description": "MobilyFlow React Native SDK",
|
|
5
5
|
"source": "./src/index.tsx",
|
|
6
6
|
"main": "./lib/commonjs/index.js",
|
|
@@ -41,13 +41,12 @@
|
|
|
41
41
|
"!**/.*"
|
|
42
42
|
],
|
|
43
43
|
"scripts": {
|
|
44
|
-
"example": "yarn workspace mobilyflow-react-native-sdk-example",
|
|
45
44
|
"test": "jest",
|
|
46
45
|
"compile": "tsc",
|
|
47
46
|
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
48
|
-
"clean": "del-cli android/build
|
|
49
|
-
"
|
|
50
|
-
"pub": "yarn
|
|
47
|
+
"clean": "del-cli android/build lib",
|
|
48
|
+
"build": "sh ./scripts/prebuild.sh && bob build",
|
|
49
|
+
"pub": "yarn build && npm publish --access public"
|
|
51
50
|
},
|
|
52
51
|
"keywords": [
|
|
53
52
|
"react-native",
|
|
@@ -80,25 +79,16 @@
|
|
|
80
79
|
"prettier": "^3.0.3",
|
|
81
80
|
"react": "19.2.0",
|
|
82
81
|
"react-native": ">=0.80.0",
|
|
83
|
-
"react-native-builder-bob": "^0.
|
|
84
|
-
"turbo": "^1.10.7",
|
|
82
|
+
"react-native-builder-bob": "^0.41.0",
|
|
85
83
|
"typescript": "^5.2.2"
|
|
86
84
|
},
|
|
87
|
-
"resolutions": {
|
|
88
|
-
"@types/react": "^18.2.44"
|
|
89
|
-
},
|
|
90
85
|
"peerDependencies": {
|
|
91
86
|
"react": "*",
|
|
92
87
|
"react-native": "*"
|
|
93
88
|
},
|
|
94
|
-
"workspaces": [
|
|
95
|
-
"example"
|
|
96
|
-
],
|
|
97
|
-
"packageManager": "yarn@3.6.1",
|
|
98
89
|
"jest": {
|
|
99
90
|
"preset": "react-native",
|
|
100
91
|
"modulePathIgnorePatterns": [
|
|
101
|
-
"<rootDir>/example/node_modules",
|
|
102
92
|
"<rootDir>/lib/"
|
|
103
93
|
]
|
|
104
94
|
},
|
|
@@ -160,8 +150,7 @@
|
|
|
160
150
|
[
|
|
161
151
|
"typescript",
|
|
162
152
|
{
|
|
163
|
-
"project": "tsconfig.build.json"
|
|
164
|
-
"esm": true
|
|
153
|
+
"project": "tsconfig.build.json"
|
|
165
154
|
}
|
|
166
155
|
]
|
|
167
156
|
]
|
|
@@ -11,6 +11,7 @@ import { PurchaseOptions } from './models/internal/purchase-options';
|
|
|
11
11
|
import { MobilyTransferOwnershipStatus } from './enums/mobily-transfer-ownership-status';
|
|
12
12
|
import { MobilyEvent } from './models/mobily-event';
|
|
13
13
|
import { MobilyRefundDialogResult } from './enums/mobily-refund-dialog-result';
|
|
14
|
+
import { BRIDGE_VERSION } from './version';
|
|
14
15
|
|
|
15
16
|
function throwError(error: any) {
|
|
16
17
|
if (RNPlatform.OS === 'android') {
|
|
@@ -227,11 +228,15 @@ export const MobilyPurchaseSDK = {
|
|
|
227
228
|
}
|
|
228
229
|
},
|
|
229
230
|
|
|
230
|
-
|
|
231
|
+
getSDKNativeVersion: async () => {
|
|
231
232
|
try {
|
|
232
233
|
return await MobilyflowReactNativeSdk.getSDKVersion();
|
|
233
234
|
} catch (error: any) {
|
|
234
235
|
throw throwError(error);
|
|
235
236
|
}
|
|
236
237
|
},
|
|
238
|
+
|
|
239
|
+
getSDKBridgeVersion: () => {
|
|
240
|
+
return BRIDGE_VERSION;
|
|
241
|
+
},
|
|
237
242
|
};
|
package/src/version.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const BRIDGE_VERSION = '0.7.0-alpha.6';
|
package/LICENSE
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 MobilyFlow
|
|
4
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
6
|
-
in the Software without restriction, including without limitation the rights
|
|
7
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
9
|
-
furnished to do so, subject to the following conditions:
|
|
10
|
-
|
|
11
|
-
The above copyright notice and this permission notice shall be included in all
|
|
12
|
-
copies or substantial portions of the Software.
|
|
13
|
-
|
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
20
|
-
SOFTWARE.
|
package/README.md
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# mobilyflow-react-native-sdk
|
|
2
|
-
|
|
3
|
-
MobilyFlow React Native SDK
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```sh
|
|
8
|
-
npm install mobilyflow-react-native-sdk
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Usage
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
```js
|
|
15
|
-
import { multiply } from 'mobilyflow-react-native-sdk';
|
|
16
|
-
|
|
17
|
-
// ...
|
|
18
|
-
|
|
19
|
-
const result = multiply(3, 7);
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
## Contributing
|
|
24
|
-
|
|
25
|
-
See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
|
|
26
|
-
|
|
27
|
-
## License
|
|
28
|
-
|
|
29
|
-
MIT
|
|
30
|
-
|
|
31
|
-
---
|
|
32
|
-
|
|
33
|
-
Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
|
|
@@ -1,66 +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
|
-
// swift-tools-version: 6.1
|
|
9
|
-
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
|
10
|
-
|
|
11
|
-
import PackageDescription
|
|
12
|
-
|
|
13
|
-
let package = Package(
|
|
14
|
-
name: "React-GeneratedCode",
|
|
15
|
-
platforms: [.iOS(.v15), .macCatalyst(SupportedPlatform.MacCatalystVersion.v13)],
|
|
16
|
-
products: [
|
|
17
|
-
// Products define the executables and libraries a package produces, making them visible to other packages.
|
|
18
|
-
.library(
|
|
19
|
-
name: "ReactCodegen",
|
|
20
|
-
targets: ["ReactCodegen"]),
|
|
21
|
-
.library(
|
|
22
|
-
name: "ReactAppDependencyProvider",
|
|
23
|
-
targets: ["ReactAppDependencyProvider"]),
|
|
24
|
-
],
|
|
25
|
-
dependencies: [
|
|
26
|
-
.package(name: "React", path: "../../../../../../../node_modules/react-native")
|
|
27
|
-
],
|
|
28
|
-
targets: [
|
|
29
|
-
// Targets are the basic building blocks of a package, defining a module or a test suite.
|
|
30
|
-
// Targets can depend on other targets in this package and products from dependencies.
|
|
31
|
-
.target(
|
|
32
|
-
name: "ReactCodegen",
|
|
33
|
-
dependencies: ["React"],
|
|
34
|
-
path: "ReactCodegen",
|
|
35
|
-
exclude: ["ReactCodegen.podspec"],
|
|
36
|
-
publicHeadersPath: ".",
|
|
37
|
-
cSettings: [
|
|
38
|
-
.headerSearchPath("headers")
|
|
39
|
-
],
|
|
40
|
-
cxxSettings: [
|
|
41
|
-
.headerSearchPath("headers"),
|
|
42
|
-
.unsafeFlags(["-std=c++20"]),
|
|
43
|
-
],
|
|
44
|
-
linkerSettings: [
|
|
45
|
-
.linkedFramework("Foundation")
|
|
46
|
-
]
|
|
47
|
-
),
|
|
48
|
-
.target(
|
|
49
|
-
name: "ReactAppDependencyProvider",
|
|
50
|
-
dependencies: ["ReactCodegen"],
|
|
51
|
-
path: "ReactAppDependencyProvider",
|
|
52
|
-
exclude: ["ReactAppDependencyProvider.podspec"],
|
|
53
|
-
publicHeadersPath: ".",
|
|
54
|
-
cSettings: [
|
|
55
|
-
.headerSearchPath("headers"),
|
|
56
|
-
],
|
|
57
|
-
cxxSettings: [
|
|
58
|
-
.headerSearchPath("headers"),
|
|
59
|
-
.unsafeFlags(["-std=c++20"]),
|
|
60
|
-
],
|
|
61
|
-
linkerSettings: [
|
|
62
|
-
.linkedFramework("Foundation")
|
|
63
|
-
]
|
|
64
|
-
)
|
|
65
|
-
]
|
|
66
|
-
)
|
|
@@ -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,40 +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
|
-
#import <ReactCodegen/RCTUnstableModulesRequiringMainQueueSetupProvider.h>
|
|
12
|
-
#import <ReactCodegen/RCTModuleProviders.h>
|
|
13
|
-
|
|
14
|
-
@implementation RCTAppDependencyProvider
|
|
15
|
-
|
|
16
|
-
- (nonnull NSArray<NSString *> *)URLRequestHandlerClassNames {
|
|
17
|
-
return RCTModulesConformingToProtocolsProvider.URLRequestHandlerClassNames;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
- (nonnull NSArray<NSString *> *)imageDataDecoderClassNames {
|
|
21
|
-
return RCTModulesConformingToProtocolsProvider.imageDataDecoderClassNames;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
- (nonnull NSArray<NSString *> *)imageURLLoaderClassNames {
|
|
25
|
-
return RCTModulesConformingToProtocolsProvider.imageURLLoaderClassNames;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
- (nonnull NSArray<NSString *> *)unstableModulesRequiringMainQueueSetup {
|
|
29
|
-
return RCTUnstableModulesRequiringMainQueueSetupProvider.modules;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
- (nonnull NSDictionary<NSString *,Class<RCTComponentViewProtocol>> *)thirdPartyFabricComponents {
|
|
33
|
-
return RCTThirdPartyComponentsProvider.thirdPartyFabricComponents;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
- (nonnull NSDictionary<NSString *, id<RCTModuleProvider>> *)moduleProviders {
|
|
37
|
-
return RCTModuleProviders.moduleProviders;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@end
|
|
@@ -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.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
|
-
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
|
|
@@ -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 RCTModuleProvider;
|
|
11
|
-
|
|
12
|
-
@interface RCTModuleProviders: NSObject
|
|
13
|
-
|
|
14
|
-
+ (NSDictionary<NSString *, id<RCTModuleProvider>> *)moduleProviders;
|
|
15
|
-
|
|
16
|
-
@end
|
|
@@ -1,51 +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
|
-
#import "RCTModuleProviders.h"
|
|
11
|
-
#import <ReactCommon/RCTTurboModule.h>
|
|
12
|
-
#import <React/RCTLog.h>
|
|
13
|
-
|
|
14
|
-
@implementation RCTModuleProviders
|
|
15
|
-
|
|
16
|
-
+ (NSDictionary<NSString *, id<RCTModuleProvider>> *)moduleProviders
|
|
17
|
-
{
|
|
18
|
-
static NSDictionary<NSString *, id<RCTModuleProvider>> *providers = nil;
|
|
19
|
-
static dispatch_once_t onceToken;
|
|
20
|
-
|
|
21
|
-
dispatch_once(&onceToken, ^{
|
|
22
|
-
NSDictionary<NSString *, NSString *> * moduleMapping = @{
|
|
23
|
-
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
NSMutableDictionary *dict = [[NSMutableDictionary alloc] initWithCapacity:moduleMapping.count];
|
|
27
|
-
|
|
28
|
-
for (NSString *key in moduleMapping) {
|
|
29
|
-
NSString * moduleProviderName = moduleMapping[key];
|
|
30
|
-
Class klass = NSClassFromString(moduleProviderName);
|
|
31
|
-
if (!klass) {
|
|
32
|
-
RCTLogError(@"Module provider %@ cannot be found in the runtime", moduleProviderName);
|
|
33
|
-
continue;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
id instance = [klass new];
|
|
37
|
-
if (![instance respondsToSelector:@selector(getTurboModule:)]) {
|
|
38
|
-
RCTLogError(@"Module provider %@ does not conform to RCTModuleProvider", moduleProviderName);
|
|
39
|
-
continue;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
[dict setObject:instance forKey:key];
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
providers = dict;
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
return providers;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
@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,54 +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
|
-
static NSArray<NSString *> *classNames = nil;
|
|
15
|
-
static dispatch_once_t onceToken;
|
|
16
|
-
|
|
17
|
-
dispatch_once(&onceToken, ^{
|
|
18
|
-
classNames = @[
|
|
19
|
-
|
|
20
|
-
];
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
return classNames;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
+(NSArray<NSString *> *)imageDataDecoderClassNames
|
|
27
|
-
{
|
|
28
|
-
static NSArray<NSString *> *classNames = nil;
|
|
29
|
-
static dispatch_once_t onceToken;
|
|
30
|
-
|
|
31
|
-
dispatch_once(&onceToken, ^{
|
|
32
|
-
classNames = @[
|
|
33
|
-
|
|
34
|
-
];
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
return classNames;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
+(NSArray<NSString *> *)URLRequestHandlerClassNames
|
|
41
|
-
{
|
|
42
|
-
static NSArray<NSString *> *classNames = nil;
|
|
43
|
-
static dispatch_once_t onceToken;
|
|
44
|
-
|
|
45
|
-
dispatch_once(&onceToken, ^{
|
|
46
|
-
classNames = @[
|
|
47
|
-
|
|
48
|
-
];
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
return classNames;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
@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,30 +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
|
-
static NSDictionary<NSString *, Class<RCTComponentViewProtocol>> *thirdPartyComponents = nil;
|
|
19
|
-
static dispatch_once_t nativeComponentsToken;
|
|
20
|
-
|
|
21
|
-
dispatch_once(&nativeComponentsToken, ^{
|
|
22
|
-
thirdPartyComponents = @{
|
|
23
|
-
|
|
24
|
-
};
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
return thirdPartyComponents;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
@end
|
|
@@ -1,14 +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 RCTUnstableModulesRequiringMainQueueSetupProvider: NSObject
|
|
11
|
-
|
|
12
|
-
+(NSArray<NSString *> *)modules;
|
|
13
|
-
|
|
14
|
-
@end
|
|
@@ -1,19 +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 "RCTUnstableModulesRequiringMainQueueSetupProvider.h"
|
|
9
|
-
|
|
10
|
-
@implementation RCTUnstableModulesRequiringMainQueueSetupProvider
|
|
11
|
-
|
|
12
|
-
+(NSArray<NSString *> *)modules
|
|
13
|
-
{
|
|
14
|
-
return @[
|
|
15
|
-
|
|
16
|
-
];
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@end
|
|
@@ -1,110 +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.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
|