mobilyflow-react-native-sdk 0.6.1 → 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.
- package/MobilyflowReactNativeSdk.podspec +1 -1
- package/android/build.gradle +12 -16
- package/android/generated/jni/CMakeLists.txt +1 -9
- package/android/generated/jni/react/renderer/components/RNMobilyflowReactNativeSdkSpec/RNMobilyflowReactNativeSdkSpecJSI.h +178 -218
- package/ios/MobilyflowReactNativeSdk.h +2 -4
- package/ios/MobilyflowReactNativeSdk.mm +4 -0
- package/ios/generated/Package.swift +66 -0
- package/ios/generated/ReactAppDependencyProvider/RCTAppDependencyProvider.h +25 -0
- package/ios/generated/ReactAppDependencyProvider/RCTAppDependencyProvider.mm +40 -0
- package/ios/generated/ReactAppDependencyProvider/ReactAppDependencyProvider.podspec +34 -0
- package/ios/generated/ReactCodegen/RCTModuleProviders.h +16 -0
- package/ios/generated/ReactCodegen/RCTModuleProviders.mm +51 -0
- package/ios/generated/ReactCodegen/RCTModulesConformingToProtocolsProvider.h +18 -0
- package/ios/generated/ReactCodegen/RCTModulesConformingToProtocolsProvider.mm +54 -0
- package/ios/generated/ReactCodegen/RCTThirdPartyComponentsProvider.h +16 -0
- package/ios/generated/ReactCodegen/RCTThirdPartyComponentsProvider.mm +30 -0
- package/ios/generated/ReactCodegen/RCTUnstableModulesRequiringMainQueueSetupProvider.h +14 -0
- package/ios/generated/ReactCodegen/RCTUnstableModulesRequiringMainQueueSetupProvider.mm +19 -0
- package/ios/generated/ReactCodegen/RNMobilyflowReactNativeSdkSpecJSI.h +328 -0
- package/ios/generated/ReactCodegen/ReactCodegen.podspec +110 -0
- package/lib/commonjs/enums/mobily-event-type.js +15 -15
- package/lib/commonjs/enums/mobily-product-status.js +3 -3
- package/lib/commonjs/enums/mobily-product-type.js +2 -2
- package/lib/commonjs/enums/mobily-refund-dialog-result.js +3 -3
- package/lib/commonjs/enums/mobily-transaction-status.js +3 -3
- package/lib/commonjs/enums/mobily-transfer-ownership-status.js +5 -4
- package/lib/commonjs/enums/mobily-transfer-ownership-status.js.map +1 -1
- package/lib/commonjs/enums/mobily-webhook-status.js +4 -3
- package/lib/commonjs/enums/mobily-webhook-status.js.map +1 -1
- package/lib/module/enums/mobily-event-type.js +15 -15
- package/lib/module/enums/mobily-product-status.js +3 -3
- package/lib/module/enums/mobily-product-type.js +2 -2
- package/lib/module/enums/mobily-refund-dialog-result.js +3 -3
- package/lib/module/enums/mobily-transaction-status.js +3 -3
- package/lib/module/enums/mobily-transfer-ownership-status.js +5 -4
- package/lib/module/enums/mobily-transfer-ownership-status.js.map +1 -1
- package/lib/module/enums/mobily-webhook-status.js +4 -3
- package/lib/module/enums/mobily-webhook-status.js.map +1 -1
- package/lib/typescript/commonjs/src/enums/mobily-event-type.d.ts +15 -15
- package/lib/typescript/commonjs/src/enums/mobily-event-type.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/enums/mobily-product-status.d.ts +3 -3
- package/lib/typescript/commonjs/src/enums/mobily-product-type.d.ts +2 -2
- package/lib/typescript/commonjs/src/enums/mobily-refund-dialog-result.d.ts +3 -3
- package/lib/typescript/commonjs/src/enums/mobily-transaction-status.d.ts +3 -3
- package/lib/typescript/commonjs/src/enums/mobily-transfer-ownership-status.d.ts +5 -4
- package/lib/typescript/commonjs/src/enums/mobily-transfer-ownership-status.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/enums/mobily-webhook-status.d.ts +4 -3
- package/lib/typescript/commonjs/src/enums/mobily-webhook-status.d.ts.map +1 -1
- package/lib/typescript/module/src/enums/mobily-event-type.d.ts +15 -15
- package/lib/typescript/module/src/enums/mobily-event-type.d.ts.map +1 -1
- package/lib/typescript/module/src/enums/mobily-product-status.d.ts +3 -3
- package/lib/typescript/module/src/enums/mobily-product-type.d.ts +2 -2
- package/lib/typescript/module/src/enums/mobily-refund-dialog-result.d.ts +3 -3
- package/lib/typescript/module/src/enums/mobily-transaction-status.d.ts +3 -3
- package/lib/typescript/module/src/enums/mobily-transfer-ownership-status.d.ts +5 -4
- package/lib/typescript/module/src/enums/mobily-transfer-ownership-status.d.ts.map +1 -1
- package/lib/typescript/module/src/enums/mobily-webhook-status.d.ts +4 -3
- package/lib/typescript/module/src/enums/mobily-webhook-status.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/enums/mobily-event-type.ts +15 -15
- package/src/enums/mobily-product-status.ts +3 -3
- package/src/enums/mobily-product-type.ts +2 -2
- package/src/enums/mobily-refund-dialog-result.ts +3 -3
- package/src/enums/mobily-transaction-status.ts +3 -3
- package/src/enums/mobily-transfer-ownership-status.ts +5 -4
- package/src/enums/mobily-webhook-status.ts +4 -3
- package/android/generated/jni/react/renderer/components/RNMobilyflowReactNativeSdkSpec/RNMobilyflowReactNativeSdkSpecJSI-generated.cpp +0 -172
- package/android/gradle.properties +0 -5
- package/ios/generated/RNMobilyflowReactNativeSdkSpecJSI-generated.cpp +0 -172
- package/ios/generated/RNMobilyflowReactNativeSdkSpecJSI.h +0 -368
- /package/ios/generated/{RNMobilyflowReactNativeSdkSpec → ReactCodegen/RNMobilyflowReactNativeSdkSpec}/RNMobilyflowReactNativeSdkSpec-generated.mm +0 -0
- /package/ios/generated/{RNMobilyflowReactNativeSdkSpec → ReactCodegen/RNMobilyflowReactNativeSdkSpec}/RNMobilyflowReactNativeSdkSpec.h +0 -0
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
)
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|