banking_dcb_sdk_react_native 1.0.775 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/android/app/build/generated/source/codegen/RCTAppDependencyProvider.h +25 -0
- package/android/app/build/generated/source/codegen/RCTAppDependencyProvider.mm +55 -0
- package/android/app/build/generated/source/codegen/RCTModulesConformingToProtocolsProvider.h +18 -0
- package/android/app/build/generated/source/codegen/RCTModulesConformingToProtocolsProvider.mm +33 -0
- package/android/app/build/generated/source/codegen/RCTThirdPartyComponentsProvider.h +16 -0
- package/android/app/build/generated/source/codegen/RCTThirdPartyComponentsProvider.mm +62 -0
- package/android/app/build/generated/source/codegen/ReactAppDependencyProvider.podspec +34 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/fbreact/specs/NativeAsyncStorageModuleSpec.java +59 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/fbreact/specs/NativeBlobUtilsSpec.java +280 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/fbreact/specs/NativeRNCWebViewModuleSpec.java +42 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/fbreact/specs/NativeRNPermissionsSpec.java +87 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/fbreact/specs/NativeSafeAreaContextSpec.java +65 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/fbreact/specs/NativeScreensModuleSpec.java +35 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNCSafeAreaProviderManagerDelegate.java +26 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNCSafeAreaProviderManagerInterface.java +17 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNCSafeAreaViewManagerDelegate.java +36 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNCSafeAreaViewManagerInterface.java +20 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNCWebViewManagerDelegate.java +301 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNCWebViewManagerInterface.java +107 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNSBottomTabsManagerDelegate.java +84 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNSBottomTabsManagerInterface.java +35 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNSBottomTabsScreenManagerDelegate.java +101 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNSBottomTabsScreenManagerInterface.java +42 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNSFullWindowOverlayManagerDelegate.java +32 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNSFullWindowOverlayManagerInterface.java +17 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNSModalScreenManagerDelegate.java +128 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNSModalScreenManagerInterface.java +51 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNSSafeAreaViewManagerDelegate.java +36 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNSSafeAreaViewManagerInterface.java +20 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNSScreenContainerManagerDelegate.java +26 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNSScreenContainerManagerInterface.java +17 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNSScreenContentWrapperManagerDelegate.java +26 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNSScreenContentWrapperManagerInterface.java +17 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNSScreenFooterManagerDelegate.java +26 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNSScreenFooterManagerInterface.java +17 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNSScreenManagerDelegate.java +140 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNSScreenManagerInterface.java +55 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNSScreenNavigationContainerManagerDelegate.java +26 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNSScreenNavigationContainerManagerInterface.java +17 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNSScreenStackHeaderConfigManagerDelegate.java +121 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNSScreenStackHeaderConfigManagerInterface.java +48 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNSScreenStackHeaderSubviewManagerDelegate.java +35 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNSScreenStackHeaderSubviewManagerInterface.java +19 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNSScreenStackHostManagerDelegate.java +26 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNSScreenStackHostManagerInterface.java +17 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNSScreenStackManagerDelegate.java +26 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNSScreenStackManagerInterface.java +17 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNSSearchBarManagerDelegate.java +106 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNSSearchBarManagerInterface.java +40 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNSSplitViewHostManagerDelegate.java +57 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNSSplitViewHostManagerInterface.java +27 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNSSplitViewScreenManagerDelegate.java +32 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNSSplitViewScreenManagerInterface.java +18 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNSStackScreenManagerDelegate.java +35 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/RNSStackScreenManagerInterface.java +19 -0
- package/android/app/build/generated/source/codegen/jni/BankingDcbSdkReactNative-generated.cpp +22 -0
- package/android/app/build/generated/source/codegen/jni/BankingDcbSdkReactNative.h +24 -0
- package/android/app/build/generated/source/codegen/jni/CMakeLists.txt +36 -0
- package/android/app/build/generated/source/codegen/jni/RNCWebViewSpec-generated.cpp +38 -0
- package/android/app/build/generated/source/codegen/jni/RNCWebViewSpec.h +31 -0
- package/android/app/build/generated/source/codegen/jni/RNPermissionsSpec-generated.cpp +104 -0
- package/android/app/build/generated/source/codegen/jni/RNPermissionsSpec.h +31 -0
- package/android/app/build/generated/source/codegen/jni/ReactNativeBlobUtilSpec-generated.cpp +320 -0
- package/android/app/build/generated/source/codegen/jni/ReactNativeBlobUtilSpec.h +31 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/BankingDcbSdkReactNative/BankingDcbSdkReactNativeJSI-generated.cpp +17 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/BankingDcbSdkReactNative/BankingDcbSdkReactNativeJSI.h +19 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/BankingDcbSdkReactNative/ComponentDescriptors.cpp +22 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/BankingDcbSdkReactNative/ComponentDescriptors.h +24 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/BankingDcbSdkReactNative/EventEmitters.cpp +16 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/BankingDcbSdkReactNative/EventEmitters.h +17 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/BankingDcbSdkReactNative/Props.cpp +19 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/BankingDcbSdkReactNative/Props.h +18 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/BankingDcbSdkReactNative/ShadowNodes.cpp +17 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/BankingDcbSdkReactNative/ShadowNodes.h +23 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/BankingDcbSdkReactNative/States.cpp +16 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/BankingDcbSdkReactNative/States.h +19 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNCWebViewSpec/ComponentDescriptors.cpp +22 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNCWebViewSpec/ComponentDescriptors.h +24 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNCWebViewSpec/EventEmitters.cpp +258 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNCWebViewSpec/EventEmitters.h +277 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNCWebViewSpec/Props.cpp +101 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNCWebViewSpec/Props.h +507 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNCWebViewSpec/RNCWebViewSpecJSI-generated.cpp +35 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNCWebViewSpec/RNCWebViewSpecJSI.h +80 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNCWebViewSpec/ShadowNodes.cpp +17 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNCWebViewSpec/ShadowNodes.h +32 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNCWebViewSpec/States.cpp +16 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNCWebViewSpec/States.h +29 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNPermissionsSpec/RNPermissionsSpecJSI-generated.cpp +106 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNPermissionsSpec/RNPermissionsSpecJSI.h +226 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/ReactNativeBlobUtilSpec/ReactNativeBlobUtilSpecJSI-generated.cpp +449 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/ReactNativeBlobUtilSpec/ReactNativeBlobUtilSpecJSI.h +503 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/rnasyncstorage/rnasyncstorageJSI-generated.cpp +72 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/rnasyncstorage/rnasyncstorageJSI.h +116 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/rnscreens/ComponentDescriptors.cpp +31 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/rnscreens/ComponentDescriptors.h +33 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/rnscreens/EventEmitters.cpp +499 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/rnscreens/EventEmitters.h +422 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/rnscreens/Props.cpp +307 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/rnscreens/Props.h +1391 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/rnscreens/ShadowNodes.cpp +26 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/rnscreens/ShadowNodes.h +131 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/rnscreens/States.cpp +16 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/rnscreens/States.h +137 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/rnscreens/rnscreensJSI-generated.cpp +22 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/rnscreens/rnscreensJSI.h +64 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/ComponentDescriptors.cpp +22 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/ComponentDescriptors.h +24 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/EventEmitters.cpp +40 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/EventEmitters.h +47 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/Props.cpp +33 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/Props.h +85 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/ShadowNodes.cpp +17 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/ShadowNodes.h +32 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/States.cpp +16 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/States.h +29 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/safeareacontextJSI-generated.cpp +26 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/safeareacontextJSI.h +71 -0
- package/android/app/build/generated/source/codegen/jni/rnasyncstorage-generated.cpp +62 -0
- package/android/app/build/generated/source/codegen/jni/rnasyncstorage.h +31 -0
- package/android/app/build/generated/source/codegen/jni/rnscreens-generated.cpp +29 -0
- package/android/app/build/generated/source/codegen/jni/rnscreens.h +31 -0
- package/android/app/build/generated/source/codegen/jni/safeareacontext-generated.cpp +32 -0
- package/android/app/build/generated/source/codegen/jni/safeareacontext.h +31 -0
- package/android/build.gradle +5 -5
- package/android/gradle.properties +5 -5
- package/android/src/main/AndroidManifest.xml +2 -2
- package/android/src/main/java/com/{partnerreactnativesdk/PartnerReactNativeSdkModule.kt → bankingdcbsdkreactnative/BankingDcbSdkReactNativeModule.kt} +3 -3
- package/android/src/main/java/com/{partnerreactnativesdk/PartnerReactNativeSdkPackage.kt → bankingdcbsdkreactnative/BankingDcbSdkReactNativePackage.kt} +3 -3
- package/ios/BankingDcbSdkReactNative.h +6 -0
- package/ios/PartnerReactNativeSdk.mm +3 -3
- package/lib/module/helpers/banking_dcb_react_native.js +74 -14
- package/lib/module/helpers/banking_dcb_react_native.js.map +1 -1
- package/lib/module/helpers/utils/Constants.js +10 -7
- package/lib/module/helpers/utils/Constants.js.map +1 -1
- package/lib/module/helpers/utils/webviewCallback.js +11 -0
- package/lib/module/helpers/utils/webviewCallback.js.map +1 -1
- package/lib/module/helpers/webview.js +26 -104
- package/lib/module/helpers/webview.js.map +1 -1
- package/lib/typescript/src/helpers/banking_dcb_react_native.d.ts +2 -2
- package/lib/typescript/src/helpers/banking_dcb_react_native.d.ts.map +1 -1
- package/lib/typescript/src/helpers/utils/Constants.d.ts +3 -0
- package/lib/typescript/src/helpers/utils/Constants.d.ts.map +1 -1
- package/lib/typescript/src/helpers/utils/webviewCallback.d.ts +10 -1
- package/lib/typescript/src/helpers/utils/webviewCallback.d.ts.map +1 -1
- package/lib/typescript/src/helpers/webview.d.ts.map +1 -1
- package/package.json +3 -2
- package/src/helpers/banking_dcb_react_native.tsx +138 -19
- package/src/helpers/utils/Constants.tsx +11 -9
- package/src/helpers/utils/webviewCallback.tsx +32 -16
- package/src/helpers/webview.tsx +28 -108
- package/ios/PartnerReactNativeSdk.h +0 -6
package/README.md
CHANGED
|
@@ -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,55 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
#import "RCTAppDependencyProvider.h"
|
|
9
|
+
#import <ReactCodegen/RCTModulesConformingToProtocolsProvider.h>
|
|
10
|
+
#import <ReactCodegen/RCTThirdPartyComponentsProvider.h>
|
|
11
|
+
|
|
12
|
+
@implementation RCTAppDependencyProvider {
|
|
13
|
+
NSArray<NSString *> * _URLRequestHandlerClassNames;
|
|
14
|
+
NSArray<NSString *> * _imageDataDecoderClassNames;
|
|
15
|
+
NSArray<NSString *> * _imageURLLoaderClassNames;
|
|
16
|
+
NSDictionary<NSString *,Class<RCTComponentViewProtocol>> * _thirdPartyFabricComponents;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
- (nonnull NSArray<NSString *> *)URLRequestHandlerClassNames {
|
|
20
|
+
static dispatch_once_t requestUrlToken;
|
|
21
|
+
dispatch_once(&requestUrlToken, ^{
|
|
22
|
+
self->_URLRequestHandlerClassNames = RCTModulesConformingToProtocolsProvider.URLRequestHandlerClassNames;
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
return _URLRequestHandlerClassNames;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
- (nonnull NSArray<NSString *> *)imageDataDecoderClassNames {
|
|
29
|
+
static dispatch_once_t dataDecoderToken;
|
|
30
|
+
dispatch_once(&dataDecoderToken, ^{
|
|
31
|
+
_imageDataDecoderClassNames = RCTModulesConformingToProtocolsProvider.imageDataDecoderClassNames;
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
return _imageDataDecoderClassNames;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
- (nonnull NSArray<NSString *> *)imageURLLoaderClassNames {
|
|
38
|
+
static dispatch_once_t urlLoaderToken;
|
|
39
|
+
dispatch_once(&urlLoaderToken, ^{
|
|
40
|
+
_imageURLLoaderClassNames = RCTModulesConformingToProtocolsProvider.imageURLLoaderClassNames;
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
return _imageURLLoaderClassNames;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
- (nonnull NSDictionary<NSString *,Class<RCTComponentViewProtocol>> *)thirdPartyFabricComponents {
|
|
47
|
+
static dispatch_once_t nativeComponentsToken;
|
|
48
|
+
dispatch_once(&nativeComponentsToken, ^{
|
|
49
|
+
_thirdPartyFabricComponents = RCTThirdPartyComponentsProvider.thirdPartyFabricComponents;
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
return _thirdPartyFabricComponents;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@end
|
|
@@ -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,33 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
#import "RCTModulesConformingToProtocolsProvider.h"
|
|
9
|
+
|
|
10
|
+
@implementation RCTModulesConformingToProtocolsProvider
|
|
11
|
+
|
|
12
|
+
+(NSArray<NSString *> *)imageURLLoaderClassNames
|
|
13
|
+
{
|
|
14
|
+
return @[
|
|
15
|
+
|
|
16
|
+
];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
+(NSArray<NSString *> *)imageDataDecoderClassNames
|
|
20
|
+
{
|
|
21
|
+
return @[
|
|
22
|
+
|
|
23
|
+
];
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
+(NSArray<NSString *> *)URLRequestHandlerClassNames
|
|
27
|
+
{
|
|
28
|
+
return @[
|
|
29
|
+
|
|
30
|
+
];
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@end
|
|
@@ -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,62 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
#import "RCTThirdPartyComponentsProvider.h"
|
|
12
|
+
#import <React/RCTComponentViewProtocol.h>
|
|
13
|
+
|
|
14
|
+
@implementation RCTThirdPartyComponentsProvider
|
|
15
|
+
|
|
16
|
+
+ (NSDictionary<NSString *, Class<RCTComponentViewProtocol>> *)thirdPartyFabricComponents
|
|
17
|
+
{
|
|
18
|
+
return @{
|
|
19
|
+
@"RNCSafeAreaProvider": NSClassFromString(@"RNCSafeAreaProviderComponentView"), // banking_dcb_sdk_react_native
|
|
20
|
+
@"RNCSafeAreaView": NSClassFromString(@"RNCSafeAreaViewComponentView"), // banking_dcb_sdk_react_native
|
|
21
|
+
@"RNSFullWindowOverlay": NSClassFromString(@"RNSFullWindowOverlay"), // banking_dcb_sdk_react_native
|
|
22
|
+
@"RNSModalScreen": NSClassFromString(@"RNSModalScreen"), // banking_dcb_sdk_react_native
|
|
23
|
+
@"RNSScreen": NSClassFromString(@"RNSScreenView.class;,},#endif,,#pragma mark - RNSScreen,,@implementation RNSScreen {, __weak id _previousFirstResponder;, CGRect _lastViewFrame;, RNSScreenView *_initialView;, UIView *_fakeView;, CADisplayLink *_animationTimer;, CGFloat _currentAlpha;, BOOL _closing;, BOOL _goingForward;, int _dismissCount;, BOOL _isSwiping;, BOOL _shouldNotify;,},,#pragma mark - Common,,- (instancetype)initWithView:(UIView *)view,{, if (self = [super init]) {, self.view = view;, _fakeView = [UIView new];, _shouldNotify = YES;,#ifdef RCT_NEW_ARCH_ENABLED, _initialView = (RNSScreenView *)view;,#endif, }, return self;,},,// TODO: Find out why this is executed when screen is going out,- (void)viewWillAppear:(BOOL)animated,{, [super viewWillAppear:animated];, if (!_isSwiping) {, [self.screenView notifyWillAppear];, if (self.transitionCoordinator.isInteractive) {, // we started dismissing with swipe gesture, _isSwiping = YES;, }, } else {, // this event is also triggered if we cancelled the swipe., // The _isSwiping is still true, but we don't want to notify then, _shouldNotify = NO;, },, [self hideHeaderIfNecessary];, // as per documentation of these methods, _goingForward = [self isBeingPresented] || [self isMovingToParentViewController];,, [RNSScreenWindowTraits updateWindowTraits];, if (_shouldNotify) {, _closing = NO;, [self notifyTransitionProgress:0.0 closing:_closing goingForward:_goingForward];, [self setupProgressNotification];, },},,- (void)viewWillDisappear:(BOOL)animated,{, [super viewWillDisappear:animated];, // self.navigationController might be null when we are dismissing a modal, if (!self.transitionCoordinator.isInteractive && self.navigationController != nil) {, // user might have long pressed ios 14 back button item,, // so he can go back more than one screen and we need to dismiss more screens in JS stack then., // We check it by calculating the difference between the index of currently displayed screen, // and the index of the target screen, which is the view of topViewController at this point., // If the value is lower than 1, it means we are dismissing a modal, or navigating forward, or going back with JS., int selfIndex = [self getIndexOfView:self.screenView];, int targetIndex = [self getIndexOfView:self.navigationController.topViewController.view];, _dismissCount = selfIndex - targetIndex > 0 ? selfIndex - targetIndex : 1;, } else {, _dismissCount = 1;, },, // same flow as in viewWillAppear, if (!_isSwiping) {, [self.screenView notifyWillDisappear];, if (self.transitionCoordinator.isInteractive) {, _isSwiping = YES;, }, } else {, _shouldNotify = NO;, },, // as per documentation of these methods, _goingForward = !([self isBeingDismissed] || [self isMovingFromParentViewController]);,, if (_shouldNotify) {, _closing = YES;, [self notifyTransitionProgress:0.0 closing:_closing goingForward:_goingForward];, [self setupProgressNotification];, },},,- (void)viewDidAppear:(BOOL)animated,{, if (@available(iOS 26, *)) {, // Reenable interactions, see willMoveToWindow, self.view.window.userInteractionEnabled = true;, }, [super viewDidAppear:animated];, if (!_isSwiping || _shouldNotify) {, // we are going forward or dismissing without swipe, // or successfully swiped back, [self.screenView notifyAppear];, [self notifyTransitionProgress:1.0 closing:NO goingForward:_goingForward];, } else {, [self.screenView notifyGestureCancel];, },, _isSwiping = NO;, _shouldNotify = YES;,},,- (void)viewDidDisappear:(BOOL)animated,{, [super viewDidDisappear:animated];, if (self.parentViewController == nil && self.presentingViewController == nil) {, if (self.screenView.preventNativeDismiss) {, // if we want to prevent the native dismiss, we do not send dismissal event,, // but instead call `updateContainer`, which restores the JS navigation stack, [self.screenView.reactSuperview updateContainer];, [self.screenView notifyDismissCancelledWithDismissCount:_dismissCount];, } else {, // screen dismissed, send event, [self.screenView notifyDismissedWithCount:_dismissCount];, }, }, // same flow as in viewDidAppear, if (!_isSwiping || _shouldNotify) {, [self.screenView notifyDisappear];, [self notifyTransitionProgress:1.0 closing:YES goingForward:_goingForward];, },, _isSwiping = NO;, _shouldNotify = YES;,#ifdef RCT_NEW_ARCH_ENABLED,#else, [self traverseForScrollView:self.screenView];,#endif,},,- (void)viewDidLayoutSubviews,{, [super viewDidLayoutSubviews];,, // The below code makes the screen view adapt dimensions provided by the system. We take these, // into account only when the view is mounted under RNSNavigationController in which case system, // provides additional padding to account for possible header, and in the case when screen is, // shown as a native modal, as the final dimensions of the modal on iOS 12+ are shorter than the, // screen size, BOOL isDisplayedWithinUINavController = [self.parentViewController isKindOfClass:[RNSNavigationController class]];, BOOL isTabScreen = [self.parentViewController isKindOfClass:RNSTabBarController.class];,, // Calculate header height on modal open, if (self.screenView.isPresentedAsNativeModal) {, [self calculateAndNotifyHeaderHeightChangeIsModal:YES];, },, if (isDisplayedWithinUINavController || isTabScreen || self.screenView.isPresentedAsNativeModal) {,#ifdef RCT_NEW_ARCH_ENABLED, [self.screenView updateBounds];,#else, if (!CGRectEqualToRect(_lastViewFrame, self.screenView.frame)) {, _lastViewFrame = self.screenView.frame;, [((RNSScreenView *)self.viewIfLoaded) updateBounds];, },#endif, },},,- (BOOL)isModalWithHeader,{, return self.screenView.isModal && self.childViewControllers.count == 1 &&, [self.childViewControllers[0] isKindOfClass:UINavigationController"), // banking_dcb_sdk_react_native
|
|
24
|
+
@"RNSScreenContainer": NSClassFromString(@"RNSScreenContainerView"), // banking_dcb_sdk_react_native
|
|
25
|
+
@"RNSScreenContentWrapper": NSClassFromString(@"RNSScreenContentWrapper"), // banking_dcb_sdk_react_native
|
|
26
|
+
@"RNSScreenFooter": NSClassFromString(@"RNSScreenFooter"), // banking_dcb_sdk_react_native
|
|
27
|
+
@"RNSScreenNavigationContainer": NSClassFromString(@"RNSScreenNavigationContainerView"), // banking_dcb_sdk_react_native
|
|
28
|
+
@"RNSScreenStack": NSClassFromString(@"RNSScreenStackView"), // banking_dcb_sdk_react_native
|
|
29
|
+
@"RNSScreenStackHeaderConfig": NSClassFromString(@"RNSScreenStackHeaderConfig.class;,},#endif,,@implementation RNSScreenStackHeaderConfigManager,,RCT_EXPORT_MODULE(),,#ifdef RCT_NEW_ARCH_ENABLED,#else,,- (UIView *)view,{, return [[RNSScreenStackHeaderConfig alloc] initWithBridge:self.bridge];,},,- (RCTShadowView *)shadowView,{, return [RNSScreenStackHeaderConfigShadowView new];,},,#endif // RCT_NEW_ARCH_ENABLED,,RCT_EXPORT_VIEW_PROPERTY(title, NSString),RCT_EXPORT_VIEW_PROPERTY(titleFontFamily, NSString),RCT_EXPORT_VIEW_PROPERTY(titleFontSize, NSNumber),RCT_EXPORT_VIEW_PROPERTY(titleFontWeight, NSString),RCT_EXPORT_VIEW_PROPERTY(titleColor, UIColor),RCT_EXPORT_VIEW_PROPERTY(backTitle, NSString),RCT_EXPORT_VIEW_PROPERTY(backTitleFontFamily, NSString),RCT_EXPORT_VIEW_PROPERTY(backTitleFontSize, NSNumber),RCT_EXPORT_VIEW_PROPERTY(backgroundColor, UIColor),RCT_EXPORT_VIEW_PROPERTY(backTitleVisible, BOOL),RCT_EXPORT_VIEW_PROPERTY(blurEffect, RNSBlurEffectStyle),RCT_EXPORT_VIEW_PROPERTY(color, UIColor),RCT_EXPORT_VIEW_PROPERTY(direction, UISemanticContentAttribute),RCT_EXPORT_VIEW_PROPERTY(largeTitle, BOOL),RCT_EXPORT_VIEW_PROPERTY(largeTitleFontFamily, NSString),RCT_EXPORT_VIEW_PROPERTY(largeTitleFontSize, NSNumber),RCT_EXPORT_VIEW_PROPERTY(largeTitleFontWeight, NSString),RCT_EXPORT_VIEW_PROPERTY(largeTitleColor, UIColor),RCT_EXPORT_VIEW_PROPERTY(largeTitleBackgroundColor, UIColor),RCT_EXPORT_VIEW_PROPERTY(largeTitleHideShadow, BOOL),RCT_EXPORT_VIEW_PROPERTY(hideBackButton, BOOL),RCT_EXPORT_VIEW_PROPERTY(hideShadow, BOOL),RCT_EXPORT_VIEW_PROPERTY(backButtonInCustomView, BOOL),RCT_EXPORT_VIEW_PROPERTY(disableBackButtonMenu, BOOL),RCT_EXPORT_VIEW_PROPERTY(backButtonDisplayMode, UINavigationItemBackButtonDisplayMode),RCT_REMAP_VIEW_PROPERTY(hidden, hide, BOOL) // `hidden` is an UIView property, we need to use different name internally,RCT_EXPORT_VIEW_PROPERTY(translucent, BOOL),RCT_EXPORT_VIEW_PROPERTY(headerLeftBarButtonItems, NSArray),RCT_EXPORT_VIEW_PROPERTY(headerRightBarButtonItems, NSArray),RCT_EXPORT_VIEW_PROPERTY(onPressHeaderBarButtonItem, RCTDirectEventBlock);,RCT_EXPORT_VIEW_PROPERTY(onPressHeaderBarButtonMenuItem, RCTDirectEventBlock);,,@end,,#ifdef RCT_NEW_ARCH_ENABLED,#else,,@implementation RNSHeaderConfigInsetsPayload,,- (instancetype)init,{, return [self initWithInsets:NSDirectionalEdgeInsets{}];,},,- (instancetype)initWithInsets:(NSDirectionalEdgeInsets)insets,{, if (self = [super init]) {, self.insets = insets;, }, return self;,},,@end,,@implementation RNSScreenStackHeaderConfigShadowView {,},,- (void)setLocalData:(NSObject *)localData,{, if ([localData isKindOfClass:RNSHeaderConfigInsetsPayload"), // banking_dcb_sdk_react_native
|
|
30
|
+
@"RNSScreenStackHeaderSubview": NSClassFromString(@"RNSScreenStackHeaderSubview"), // banking_dcb_sdk_react_native
|
|
31
|
+
@"RNSSearchBar": NSClassFromString(@"RNSSearchBar"), // banking_dcb_sdk_react_native
|
|
32
|
+
@"RNSBottomTabs": NSClassFromString(@"RNSBottomTabsHostComponentView"), // banking_dcb_sdk_react_native
|
|
33
|
+
@"RNSSplitViewHost": NSClassFromString(@"RNSSplitViewHostComponentView"), // banking_dcb_sdk_react_native
|
|
34
|
+
@"RNSSplitViewScreen": NSClassFromString(@"RNSSplitViewScreenComponentView"), // banking_dcb_sdk_react_native
|
|
35
|
+
@"RNSScreenStackHost": NSClassFromString(@"RNSScreenStackHostComponentView"), // banking_dcb_sdk_react_native
|
|
36
|
+
@"RNSStackScreen": NSClassFromString(@"RNSStackScreenComponentView"), // banking_dcb_sdk_react_native
|
|
37
|
+
@"RNCWebView": NSClassFromString(@"RNCWebView"), // banking_dcb_sdk_react_native
|
|
38
|
+
@"RNCSafeAreaProvider": NSClassFromString(@"RNCSafeAreaProviderComponentView"), // react-native-safe-area-context
|
|
39
|
+
@"RNCSafeAreaView": NSClassFromString(@"RNCSafeAreaViewComponentView"), // react-native-safe-area-context
|
|
40
|
+
@"RNSStackScreen": NSClassFromString(@"RNSStackScreenComponentView"), // react-native-screens
|
|
41
|
+
@"RNSScreenStackHost": NSClassFromString(@"RNSScreenStackHostComponentView"), // react-native-screens
|
|
42
|
+
@"RNSBottomTabsScreen": NSClassFromString(@"RNSBottomTabsScreenComponentView"), // react-native-screens
|
|
43
|
+
@"RNSBottomTabs": NSClassFromString(@"RNSBottomTabsHostComponentView"), // react-native-screens
|
|
44
|
+
@"RNSFullWindowOverlay": NSClassFromString(@"RNSFullWindowOverlay"), // react-native-screens
|
|
45
|
+
@"RNSModalScreen": NSClassFromString(@"RNSModalScreen"), // react-native-screens
|
|
46
|
+
@"RNSScreenContainer": NSClassFromString(@"RNSScreenContainerView"), // react-native-screens
|
|
47
|
+
@"RNSScreenContentWrapper": NSClassFromString(@"RNSScreenContentWrapper"), // react-native-screens
|
|
48
|
+
@"RNSScreenFooter": NSClassFromString(@"RNSScreenFooter"), // react-native-screens
|
|
49
|
+
@"RNSScreen": NSClassFromString(@"RNSScreenView"), // react-native-screens
|
|
50
|
+
@"RNSScreenNavigationContainer": NSClassFromString(@"RNSScreenNavigationContainerView"), // react-native-screens
|
|
51
|
+
@"RNSScreenStackHeaderConfig": NSClassFromString(@"RNSScreenStackHeaderConfig"), // react-native-screens
|
|
52
|
+
@"RNSScreenStackHeaderSubview": NSClassFromString(@"RNSScreenStackHeaderSubview"), // react-native-screens
|
|
53
|
+
@"RNSScreenStack": NSClassFromString(@"RNSScreenStackView"), // react-native-screens
|
|
54
|
+
@"RNSSearchBar": NSClassFromString(@"RNSSearchBar"), // react-native-screens
|
|
55
|
+
@"RNSSplitViewHost": NSClassFromString(@"RNSSplitViewHostComponentView"), // react-native-screens
|
|
56
|
+
@"RNSSplitViewScreen": NSClassFromString(@"RNSSplitViewScreenComponentView"), // react-native-screens
|
|
57
|
+
@"RNSSafeAreaView": NSClassFromString(@"RNSSafeAreaViewComponentView"), // react-native-screens
|
|
58
|
+
@"RNCWebView": NSClassFromString(@"RNCWebView"), // react-native-webview
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@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.78.2"
|
|
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,59 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
+
*
|
|
5
|
+
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
+
* once the code is regenerated.
|
|
7
|
+
*
|
|
8
|
+
* @generated by codegen project: GenerateModuleJavaSpec.js
|
|
9
|
+
*
|
|
10
|
+
* @nolint
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
package com.facebook.fbreact.specs;
|
|
14
|
+
|
|
15
|
+
import com.facebook.proguard.annotations.DoNotStrip;
|
|
16
|
+
import com.facebook.react.bridge.Callback;
|
|
17
|
+
import com.facebook.react.bridge.ReactApplicationContext;
|
|
18
|
+
import com.facebook.react.bridge.ReactContextBaseJavaModule;
|
|
19
|
+
import com.facebook.react.bridge.ReactMethod;
|
|
20
|
+
import com.facebook.react.bridge.ReadableArray;
|
|
21
|
+
import com.facebook.react.turbomodule.core.interfaces.TurboModule;
|
|
22
|
+
import javax.annotation.Nonnull;
|
|
23
|
+
|
|
24
|
+
public abstract class NativeAsyncStorageModuleSpec extends ReactContextBaseJavaModule implements TurboModule {
|
|
25
|
+
public static final String NAME = "RNCAsyncStorage";
|
|
26
|
+
|
|
27
|
+
public NativeAsyncStorageModuleSpec(ReactApplicationContext reactContext) {
|
|
28
|
+
super(reactContext);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@Override
|
|
32
|
+
public @Nonnull String getName() {
|
|
33
|
+
return NAME;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@ReactMethod
|
|
37
|
+
@DoNotStrip
|
|
38
|
+
public abstract void multiGet(ReadableArray keys, Callback callback);
|
|
39
|
+
|
|
40
|
+
@ReactMethod
|
|
41
|
+
@DoNotStrip
|
|
42
|
+
public abstract void multiSet(ReadableArray kvPairs, Callback callback);
|
|
43
|
+
|
|
44
|
+
@ReactMethod
|
|
45
|
+
@DoNotStrip
|
|
46
|
+
public abstract void multiRemove(ReadableArray keys, Callback callback);
|
|
47
|
+
|
|
48
|
+
@ReactMethod
|
|
49
|
+
@DoNotStrip
|
|
50
|
+
public abstract void multiMerge(ReadableArray kvPairs, Callback callback);
|
|
51
|
+
|
|
52
|
+
@ReactMethod
|
|
53
|
+
@DoNotStrip
|
|
54
|
+
public abstract void getAllKeys(Callback callback);
|
|
55
|
+
|
|
56
|
+
@ReactMethod
|
|
57
|
+
@DoNotStrip
|
|
58
|
+
public abstract void clear(Callback callback);
|
|
59
|
+
}
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
+
*
|
|
5
|
+
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
+
* once the code is regenerated.
|
|
7
|
+
*
|
|
8
|
+
* @generated by codegen project: GenerateModuleJavaSpec.js
|
|
9
|
+
*
|
|
10
|
+
* @nolint
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
package com.facebook.fbreact.specs;
|
|
14
|
+
|
|
15
|
+
import com.facebook.proguard.annotations.DoNotStrip;
|
|
16
|
+
import com.facebook.react.bridge.Callback;
|
|
17
|
+
import com.facebook.react.bridge.Promise;
|
|
18
|
+
import com.facebook.react.bridge.ReactApplicationContext;
|
|
19
|
+
import com.facebook.react.bridge.ReactContextBaseJavaModule;
|
|
20
|
+
import com.facebook.react.bridge.ReactMethod;
|
|
21
|
+
import com.facebook.react.bridge.ReadableArray;
|
|
22
|
+
import com.facebook.react.bridge.ReadableMap;
|
|
23
|
+
import com.facebook.react.common.build.ReactBuildConfig;
|
|
24
|
+
import com.facebook.react.turbomodule.core.interfaces.TurboModule;
|
|
25
|
+
import java.util.Arrays;
|
|
26
|
+
import java.util.HashSet;
|
|
27
|
+
import java.util.Map;
|
|
28
|
+
import java.util.Set;
|
|
29
|
+
import javax.annotation.Nonnull;
|
|
30
|
+
import javax.annotation.Nullable;
|
|
31
|
+
|
|
32
|
+
public abstract class NativeBlobUtilsSpec extends ReactContextBaseJavaModule implements TurboModule {
|
|
33
|
+
public static final String NAME = "ReactNativeBlobUtil";
|
|
34
|
+
|
|
35
|
+
public NativeBlobUtilsSpec(ReactApplicationContext reactContext) {
|
|
36
|
+
super(reactContext);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@Override
|
|
40
|
+
public @Nonnull String getName() {
|
|
41
|
+
return NAME;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
protected abstract Map<String, Object> getTypedExportedConstants();
|
|
45
|
+
|
|
46
|
+
@Override
|
|
47
|
+
@DoNotStrip
|
|
48
|
+
public final @Nullable Map<String, Object> getConstants() {
|
|
49
|
+
Map<String, Object> constants = getTypedExportedConstants();
|
|
50
|
+
if (ReactBuildConfig.DEBUG || ReactBuildConfig.IS_INTERNAL_BUILD) {
|
|
51
|
+
Set<String> obligatoryFlowConstants = new HashSet<>(Arrays.asList(
|
|
52
|
+
"ApplicationSupportDir",
|
|
53
|
+
"CacheDir",
|
|
54
|
+
"DCIMDir",
|
|
55
|
+
"DocumentDir",
|
|
56
|
+
"DownloadDir",
|
|
57
|
+
"LegacyDCIMDir",
|
|
58
|
+
"LegacyDownloadDir",
|
|
59
|
+
"LegacyMovieDir",
|
|
60
|
+
"LegacyMusicDir",
|
|
61
|
+
"LegacyPictureDir",
|
|
62
|
+
"LegacyRingtoneDir",
|
|
63
|
+
"LegacySDCardDir",
|
|
64
|
+
"LibraryDir",
|
|
65
|
+
"MainBundleDir",
|
|
66
|
+
"MovieDir",
|
|
67
|
+
"MusicDir",
|
|
68
|
+
"PictureDir",
|
|
69
|
+
"RingtoneDir",
|
|
70
|
+
"SDCardApplicationDir",
|
|
71
|
+
"SDCardDir"
|
|
72
|
+
));
|
|
73
|
+
Set<String> optionalFlowConstants = new HashSet<>();
|
|
74
|
+
Set<String> undeclaredConstants = new HashSet<>(constants.keySet());
|
|
75
|
+
undeclaredConstants.removeAll(obligatoryFlowConstants);
|
|
76
|
+
undeclaredConstants.removeAll(optionalFlowConstants);
|
|
77
|
+
if (!undeclaredConstants.isEmpty()) {
|
|
78
|
+
throw new IllegalStateException(String.format("Native Module Flow doesn't declare constants: %s", undeclaredConstants));
|
|
79
|
+
}
|
|
80
|
+
undeclaredConstants = obligatoryFlowConstants;
|
|
81
|
+
undeclaredConstants.removeAll(constants.keySet());
|
|
82
|
+
if (!undeclaredConstants.isEmpty()) {
|
|
83
|
+
throw new IllegalStateException(String.format("Native Module doesn't fill in constants: %s", undeclaredConstants));
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return constants;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@ReactMethod
|
|
90
|
+
@DoNotStrip
|
|
91
|
+
public abstract void fetchBlobForm(ReadableMap options, String taskId, String method, String url, ReadableMap headers, ReadableArray form, Callback callback);
|
|
92
|
+
|
|
93
|
+
@ReactMethod
|
|
94
|
+
@DoNotStrip
|
|
95
|
+
public abstract void fetchBlob(ReadableMap options, String taskId, String method, String url, ReadableMap headers, String body, Callback callback);
|
|
96
|
+
|
|
97
|
+
@ReactMethod
|
|
98
|
+
@DoNotStrip
|
|
99
|
+
public abstract void createFile(String path, String data, String encoding, Promise promise);
|
|
100
|
+
|
|
101
|
+
@ReactMethod
|
|
102
|
+
@DoNotStrip
|
|
103
|
+
public abstract void createFileASCII(String path, ReadableArray data, Promise promise);
|
|
104
|
+
|
|
105
|
+
@ReactMethod
|
|
106
|
+
@DoNotStrip
|
|
107
|
+
public abstract void pathForAppGroup(String groupName, Promise promise);
|
|
108
|
+
|
|
109
|
+
@ReactMethod(isBlockingSynchronousMethod = true)
|
|
110
|
+
@DoNotStrip
|
|
111
|
+
public abstract String syncPathAppGroup(String groupName);
|
|
112
|
+
|
|
113
|
+
@ReactMethod
|
|
114
|
+
@DoNotStrip
|
|
115
|
+
public abstract void exists(String path, Callback callback);
|
|
116
|
+
|
|
117
|
+
@ReactMethod
|
|
118
|
+
@DoNotStrip
|
|
119
|
+
public abstract void writeFile(String path, String encoding, String data, boolean transformFile, boolean append, Promise promise);
|
|
120
|
+
|
|
121
|
+
@ReactMethod
|
|
122
|
+
@DoNotStrip
|
|
123
|
+
public abstract void writeFileArray(String path, ReadableArray data, boolean append, Promise promise);
|
|
124
|
+
|
|
125
|
+
@ReactMethod
|
|
126
|
+
@DoNotStrip
|
|
127
|
+
public abstract void writeStream(String path, String withEncoding, boolean appendData, Callback callback);
|
|
128
|
+
|
|
129
|
+
@ReactMethod
|
|
130
|
+
@DoNotStrip
|
|
131
|
+
public abstract void writeArrayChunk(String streamId, ReadableArray withArray, Callback callback);
|
|
132
|
+
|
|
133
|
+
@ReactMethod
|
|
134
|
+
@DoNotStrip
|
|
135
|
+
public abstract void writeChunk(String streamId, String withData, Callback callback);
|
|
136
|
+
|
|
137
|
+
@ReactMethod
|
|
138
|
+
@DoNotStrip
|
|
139
|
+
public abstract void closeStream(String streamId, Callback callback);
|
|
140
|
+
|
|
141
|
+
@ReactMethod
|
|
142
|
+
@DoNotStrip
|
|
143
|
+
public abstract void unlink(String path, Callback callback);
|
|
144
|
+
|
|
145
|
+
@ReactMethod
|
|
146
|
+
@DoNotStrip
|
|
147
|
+
public abstract void removeSession(ReadableArray paths, Callback callback);
|
|
148
|
+
|
|
149
|
+
@ReactMethod
|
|
150
|
+
@DoNotStrip
|
|
151
|
+
public abstract void ls(String path, Promise promise);
|
|
152
|
+
|
|
153
|
+
@ReactMethod
|
|
154
|
+
@DoNotStrip
|
|
155
|
+
public abstract void stat(String target, Callback callback);
|
|
156
|
+
|
|
157
|
+
@ReactMethod
|
|
158
|
+
@DoNotStrip
|
|
159
|
+
public abstract void lstat(String path, Callback callback);
|
|
160
|
+
|
|
161
|
+
@ReactMethod
|
|
162
|
+
@DoNotStrip
|
|
163
|
+
public abstract void cp(String src, String dest, Callback callback);
|
|
164
|
+
|
|
165
|
+
@ReactMethod
|
|
166
|
+
@DoNotStrip
|
|
167
|
+
public abstract void mv(String path, String dest, Callback callback);
|
|
168
|
+
|
|
169
|
+
@ReactMethod
|
|
170
|
+
@DoNotStrip
|
|
171
|
+
public abstract void mkdir(String path, Promise promise);
|
|
172
|
+
|
|
173
|
+
@ReactMethod
|
|
174
|
+
@DoNotStrip
|
|
175
|
+
public abstract void readFile(String path, String encoding, boolean transformFile, Promise promise);
|
|
176
|
+
|
|
177
|
+
@ReactMethod
|
|
178
|
+
@DoNotStrip
|
|
179
|
+
public abstract void hash(String path, String algorithm, Promise promise);
|
|
180
|
+
|
|
181
|
+
@ReactMethod
|
|
182
|
+
@DoNotStrip
|
|
183
|
+
public abstract void readStream(String path, String encoding, double bufferSize, double tick, String streamId);
|
|
184
|
+
|
|
185
|
+
@ReactMethod
|
|
186
|
+
@DoNotStrip
|
|
187
|
+
public abstract void getEnvironmentDirs(Callback callback);
|
|
188
|
+
|
|
189
|
+
@ReactMethod
|
|
190
|
+
@DoNotStrip
|
|
191
|
+
public abstract void cancelRequest(String taskId, Callback callback);
|
|
192
|
+
|
|
193
|
+
@ReactMethod
|
|
194
|
+
@DoNotStrip
|
|
195
|
+
public abstract void enableProgressReport(String taskId, double interval, double count);
|
|
196
|
+
|
|
197
|
+
@ReactMethod
|
|
198
|
+
@DoNotStrip
|
|
199
|
+
public abstract void enableUploadProgressReport(String taskId, double interval, double count);
|
|
200
|
+
|
|
201
|
+
@ReactMethod
|
|
202
|
+
@DoNotStrip
|
|
203
|
+
public abstract void slice(String src, String dest, double start, double end, Promise promise);
|
|
204
|
+
|
|
205
|
+
@ReactMethod
|
|
206
|
+
@DoNotStrip
|
|
207
|
+
public abstract void presentOptionsMenu(String uri, String scheme, Promise promise);
|
|
208
|
+
|
|
209
|
+
@ReactMethod
|
|
210
|
+
@DoNotStrip
|
|
211
|
+
public abstract void presentOpenInMenu(String uri, String scheme, Promise promise);
|
|
212
|
+
|
|
213
|
+
@ReactMethod
|
|
214
|
+
@DoNotStrip
|
|
215
|
+
public abstract void presentPreview(String uri, String scheme, Promise promise);
|
|
216
|
+
|
|
217
|
+
@ReactMethod
|
|
218
|
+
@DoNotStrip
|
|
219
|
+
public abstract void excludeFromBackupKey(String url, Promise promise);
|
|
220
|
+
|
|
221
|
+
@ReactMethod
|
|
222
|
+
@DoNotStrip
|
|
223
|
+
public abstract void df(Callback callback);
|
|
224
|
+
|
|
225
|
+
@ReactMethod
|
|
226
|
+
@DoNotStrip
|
|
227
|
+
public abstract void emitExpiredEvent(Callback callback);
|
|
228
|
+
|
|
229
|
+
@ReactMethod
|
|
230
|
+
@DoNotStrip
|
|
231
|
+
public abstract void actionViewIntent(String path, String mime, String chooserTitle, Promise promise);
|
|
232
|
+
|
|
233
|
+
@ReactMethod
|
|
234
|
+
@DoNotStrip
|
|
235
|
+
public abstract void addCompleteDownload(ReadableMap config, Promise promise);
|
|
236
|
+
|
|
237
|
+
@ReactMethod
|
|
238
|
+
@DoNotStrip
|
|
239
|
+
public abstract void copyToInternal(String contentUri, String destpath, Promise promise);
|
|
240
|
+
|
|
241
|
+
@ReactMethod
|
|
242
|
+
@DoNotStrip
|
|
243
|
+
public abstract void copyToMediaStore(ReadableMap filedata, String mt, String path, Promise promise);
|
|
244
|
+
|
|
245
|
+
@ReactMethod
|
|
246
|
+
@DoNotStrip
|
|
247
|
+
public abstract void createMediaFile(ReadableMap filedata, String mt, Promise promise);
|
|
248
|
+
|
|
249
|
+
@ReactMethod
|
|
250
|
+
@DoNotStrip
|
|
251
|
+
public abstract void getBlob(String contentUri, String encoding, Promise promise);
|
|
252
|
+
|
|
253
|
+
@ReactMethod
|
|
254
|
+
@DoNotStrip
|
|
255
|
+
public abstract void getContentIntent(String mime, Promise promise);
|
|
256
|
+
|
|
257
|
+
@ReactMethod
|
|
258
|
+
@DoNotStrip
|
|
259
|
+
public abstract void getSDCardDir(Promise promise);
|
|
260
|
+
|
|
261
|
+
@ReactMethod
|
|
262
|
+
@DoNotStrip
|
|
263
|
+
public abstract void getSDCardApplicationDir(Promise promise);
|
|
264
|
+
|
|
265
|
+
@ReactMethod
|
|
266
|
+
@DoNotStrip
|
|
267
|
+
public abstract void scanFile(ReadableArray pairs, Callback callback);
|
|
268
|
+
|
|
269
|
+
@ReactMethod
|
|
270
|
+
@DoNotStrip
|
|
271
|
+
public abstract void writeToMediaFile(String fileUri, String path, boolean transformFile, Promise promise);
|
|
272
|
+
|
|
273
|
+
@ReactMethod
|
|
274
|
+
@DoNotStrip
|
|
275
|
+
public abstract void addListener(String eventName);
|
|
276
|
+
|
|
277
|
+
@ReactMethod
|
|
278
|
+
@DoNotStrip
|
|
279
|
+
public abstract void removeListeners(double count);
|
|
280
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
+
*
|
|
5
|
+
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
+
* once the code is regenerated.
|
|
7
|
+
*
|
|
8
|
+
* @generated by codegen project: GenerateModuleJavaSpec.js
|
|
9
|
+
*
|
|
10
|
+
* @nolint
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
package com.facebook.fbreact.specs;
|
|
14
|
+
|
|
15
|
+
import com.facebook.proguard.annotations.DoNotStrip;
|
|
16
|
+
import com.facebook.react.bridge.Promise;
|
|
17
|
+
import com.facebook.react.bridge.ReactApplicationContext;
|
|
18
|
+
import com.facebook.react.bridge.ReactContextBaseJavaModule;
|
|
19
|
+
import com.facebook.react.bridge.ReactMethod;
|
|
20
|
+
import com.facebook.react.turbomodule.core.interfaces.TurboModule;
|
|
21
|
+
import javax.annotation.Nonnull;
|
|
22
|
+
|
|
23
|
+
public abstract class NativeRNCWebViewModuleSpec extends ReactContextBaseJavaModule implements TurboModule {
|
|
24
|
+
public static final String NAME = "RNCWebViewModule";
|
|
25
|
+
|
|
26
|
+
public NativeRNCWebViewModuleSpec(ReactApplicationContext reactContext) {
|
|
27
|
+
super(reactContext);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@Override
|
|
31
|
+
public @Nonnull String getName() {
|
|
32
|
+
return NAME;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@ReactMethod
|
|
36
|
+
@DoNotStrip
|
|
37
|
+
public abstract void isFileUploadSupported(Promise promise);
|
|
38
|
+
|
|
39
|
+
@ReactMethod
|
|
40
|
+
@DoNotStrip
|
|
41
|
+
public abstract void shouldStartLoadWithLockIdentifier(boolean shouldStart, double lockIdentifier);
|
|
42
|
+
}
|