react-native-webview-bootpay 13.13.4 → 13.13.41
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.
|
@@ -10,4 +10,88 @@
|
|
|
10
10
|
android:resource="@xml/file_provider_paths" />
|
|
11
11
|
</provider>
|
|
12
12
|
</application>
|
|
13
|
+
|
|
14
|
+
<!-- android 11 모든 앱 접근 권한 사용 (Google Play 가이드라인 참고 - 2021-02-19 기준 못찾았음) -->
|
|
15
|
+
<!-- <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" tools:ignore="QueryAllPackagesPermission" />-->
|
|
16
|
+
<!-- android 11 Package Visibility 설정 (compileSdkVersion, targetSdkVersion 30 이상 설정시 필수) -->
|
|
17
|
+
<!-- 2021-02-19 -->
|
|
18
|
+
<queries>
|
|
19
|
+
<!-- 다날[신한, BC(페이북), 국민, 현대, 삼성, 하나, 롯데, 농협, 우리, 씨티, 페이코, 삼성페이, 카카오페이, 뱅크페이, SSG페이, 스마일페이, 엘페이] -->
|
|
20
|
+
<!-- KCP [페이코, 현대, BC(페이북), 롯데, 국민, 농협, 삼성, 신한, 우리, 하나, 씨티] -->
|
|
21
|
+
<!-- 이니시스 [카카오페이, 네이버페이, 신한, 하나, 현대, 삼성, 국민, BC(페이북), 농협, 롯데, 씨티, 페이코, 엘페이, SSG페이, 차이, 토스, 삼성페이] -->
|
|
22
|
+
<!-- 나이스페이 [신한, 국민, 삼성, BC(페이북), 롯데, 현대, 하나 농협, 씨티, 우리] -->
|
|
23
|
+
<!-- 토스페이먼츠 [현대, 신한, 페이북, 국민, 삼성, 롯데, 농협, 우리] -->
|
|
24
|
+
<!-- 이지페이 [현대, 하나, 국민, 롯데, 삼성, BC(페이북) 신한, 하나, 농협, 씨티, 우리, 페이코] -->
|
|
25
|
+
<!-- 티페이 [BC(페이북), 국민, 하나, 삼성, 신한, 현대, 롯데, 농협, 씨티, 우리] -->
|
|
26
|
+
<!-- 페이레터 [BC(페이북), 국민, 하나, 삼성, 신한, 현대. 롯데, 농협, 씨티, ] -->
|
|
27
|
+
<!-- 월컴페이먼츠 [카카오스, 엘페이, 현대, BC(페이북), 국민, 삼성, 신한, 롯데, 농협, 하나, 씨티, 하나, 우리] -->
|
|
28
|
+
|
|
29
|
+
<!-- 간편결제 -->
|
|
30
|
+
<package android:name="com.nhnent.payapp" /> <!-- 페이코 -->
|
|
31
|
+
<package android:name="com.lottemembers.android" /> <!-- LPAY -->
|
|
32
|
+
<package android:name="com.ssg.serviceapp.android.egiftcertificate" /> <!-- SSG 페이 -->
|
|
33
|
+
<package android:name="com.inicis.kpay" /> <!-- 이니시스 KPAY -->
|
|
34
|
+
<package android:name="com.tmoney.tmpay" /> <!-- 티머니페이 -->
|
|
35
|
+
<package android:name="viva.republica.toss" /> <!-- 토스페이 -->
|
|
36
|
+
<package android:name="com.kakao.talk" /> <!-- 카카오페이 -->
|
|
37
|
+
<package android:name="com.mysmilepay.app" /> <!-- 스마일 페이 -->
|
|
38
|
+
<package android:name="com.lotte.lpay" /> <!-- 엘페이 -->
|
|
39
|
+
<package android:name="finance.chai.app" /> <!-- 차이 -->
|
|
40
|
+
<package android:name="com.nhn.android.search" /> <!-- 네이버 -->
|
|
41
|
+
|
|
42
|
+
<!-- 앱카드 -->
|
|
43
|
+
<package android:name="kvp.jjy.MispAndroid320" /> <!-- BC 페이북 -->
|
|
44
|
+
<package android:name="com.kbcard.kbkookmincard" /> <!-- 국민카드 -->
|
|
45
|
+
<package android:name="com.kbcard.cxh.appcard" /> <!-- 국민카드 -->
|
|
46
|
+
<package android:name="com.kbstar.liivbank" /> <!-- 국민 리브 -->
|
|
47
|
+
<package android:name="com.kbstar.reboot" /> <!-- 국민 new 리브 -->
|
|
48
|
+
<package android:name="com.kbstar.kbbank" /> <!-- KB 스타뱅킹 -->
|
|
49
|
+
|
|
50
|
+
<package android:name="com.samsung.android.spay" /> <!-- 삼성페이 -->
|
|
51
|
+
<package android:name="com.samsung.android.spaylite" /> <!-- 삼성페이 미니 -->
|
|
52
|
+
<package android:name="com.lge.lgpay" /> <!-- 엘지페이 -->
|
|
53
|
+
<package android:name="com.hanaskcard.paycla" /> <!-- 하나카드 -->
|
|
54
|
+
<package android:name="kr.co.hanamembers.hmscustomer" /> <!-- 하나카드(멤버스결제) -->
|
|
55
|
+
<package android:name="com.lcacApp" /> <!-- 롯데카드 -->
|
|
56
|
+
<package android:name="kr.co.samsungcard.mpocket" /> <!-- 삼성카드 -->
|
|
57
|
+
<package android:name="com.shcard.smartpay" /> <!-- 신한카드-->
|
|
58
|
+
<package android:name="com.shinhan.smartcaremgr" /> <!-- 신한 쏠-->
|
|
59
|
+
<package android:name="com.shinhancard.smartshinhan" /> <!-- 신한카드 (ARS/일반결제/Smart결제) -->
|
|
60
|
+
<package android:name="com.hyundaicard.appcard" /> <!-- 현대카드 -->
|
|
61
|
+
<package android:name="nh.smart.nhallonepay" /> <!-- 농협카드 -->
|
|
62
|
+
<package android:name="com.wooricard.wpay" /> <!-- 우리카드 -->
|
|
63
|
+
<package android:name="com.wooricard.smartapp" /> <!-- 우리 WON 카드 -->
|
|
64
|
+
<package android:name="com.wooribank.smart.npib" /> <!-- 우리 WON 뱅킹 -->
|
|
65
|
+
<package android:name="kr.co.citibank.citimobile" /> <!-- 씨티카드 -->
|
|
66
|
+
<package android:name="com.mobiletoong.travelwallet" /> <!-- 트레블월렛 -->
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
<!-- 계좌이체 -->
|
|
71
|
+
<package android:name="com.kftc.bankpay.android" /> <!-- 뱅크페이 -->
|
|
72
|
+
<package android:name="com.kbankwith.smartbank" /> <!-- 케이뱅크 -->
|
|
73
|
+
<package android:name="com.knb.psb" /> <!-- BNK 경남은행 모바일뱅킹 -->
|
|
74
|
+
<package android:name="kr.co.kfcc.mobilebank" /> <!-- MG 새마을금고 -->
|
|
75
|
+
<package android:name="com.nh.cashcardapp" /> <!-- NH앱캐시 -->
|
|
76
|
+
|
|
77
|
+
<!-- 공인인증(신용카드) -->
|
|
78
|
+
<package android:name="com.hanaskcard.rocomo.potal" /> <!-- 하나카드 -->
|
|
79
|
+
<package android:name="com.lumensoft.touchenappfree" /> <!-- 현대카드 -->
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
<!-- 보안앱 -->
|
|
83
|
+
<package android:name="com.TouchEn.mVaccine.webs" /> <!-- 신한, 씨티 -->
|
|
84
|
+
<package android:name="kr.co.shiftworks.vguardweb" /> <!-- 삼성 -->
|
|
85
|
+
<package android:name="com.ahnlab.v3mobileplus" /> <!-- 하나, 농협, 우리, 국민 리브 -->
|
|
86
|
+
|
|
87
|
+
<!-- 휴대폰 결제 -->
|
|
88
|
+
<package android:name="com.kt.ktauth" /> <!-- KT 본인인증 -->
|
|
89
|
+
<package android:name="kr.danal.app.damoum" /> <!-- 다모음 -->
|
|
90
|
+
<package android:name="uplus.membership" /> <!-- U+ 멤버스 -->
|
|
91
|
+
<package android:name="com.sktelecom.tauth" /> <!--PASS-->
|
|
92
|
+
<package android:name="com.lguplus.smartotp" /> <!--PASS-->
|
|
93
|
+
|
|
94
|
+
<!--해외결제-->
|
|
95
|
+
<package android:name="com.eg.android.AlipayGphone" />
|
|
96
|
+
</queries>
|
|
13
97
|
</manifest>
|
package/apple/BPCWebViewImpl.h
CHANGED
|
@@ -36,7 +36,7 @@ shouldStartLoadForRequest:(NSMutableDictionary<NSString *, id> *)request
|
|
|
36
36
|
|
|
37
37
|
@end
|
|
38
38
|
|
|
39
|
-
@interface
|
|
39
|
+
@interface BPCWeakScriptMessageDelegate : NSObject<WKScriptMessageHandler>
|
|
40
40
|
|
|
41
41
|
@property (nonatomic, weak, nullable) id<WKScriptMessageHandler> scriptDelegate;
|
|
42
42
|
|
package/apple/BPCWebViewImpl.m
CHANGED
|
@@ -28,10 +28,10 @@ NSString *const BPCUSTOM_SELECTOR = @"_BPCUSTOM_SELECTOR_";
|
|
|
28
28
|
#if TARGET_OS_IOS
|
|
29
29
|
// runtime trick to remove WKWebView keyboard default toolbar
|
|
30
30
|
// see: http://stackoverflow.com/questions/19033292/ios-7-uiwebview-keyboard-issue/19042279#19042279
|
|
31
|
-
@interface
|
|
31
|
+
@interface _BPSwizzleHelperWK : UIView
|
|
32
32
|
@property (nonatomic, copy) WKWebView *webView;
|
|
33
33
|
@end
|
|
34
|
-
@implementation
|
|
34
|
+
@implementation _BPSwizzleHelperWK
|
|
35
35
|
-(id)inputAccessoryView
|
|
36
36
|
{
|
|
37
37
|
if (_webView == nil) {
|
|
@@ -48,13 +48,13 @@ NSString *const BPCUSTOM_SELECTOR = @"_BPCUSTOM_SELECTOR_";
|
|
|
48
48
|
@end
|
|
49
49
|
#endif // TARGET_OS_IOS
|
|
50
50
|
|
|
51
|
-
@interface
|
|
51
|
+
@interface BPCWKWebView : WKWebView
|
|
52
52
|
#if !TARGET_OS_OSX
|
|
53
53
|
@property (nonatomic, copy) NSArray<NSDictionary *> * _Nullable menuItems;
|
|
54
54
|
@property (nonatomic, copy) NSArray<NSString *> * _Nullable suppressMenuItems;
|
|
55
55
|
#endif // !TARGET_OS_OSX
|
|
56
56
|
@end
|
|
57
|
-
@implementation
|
|
57
|
+
@implementation BPCWKWebView
|
|
58
58
|
#if !TARGET_OS_OSX
|
|
59
59
|
- (NSString *)stringFromAction:(SEL) action {
|
|
60
60
|
NSString *sel = NSStringFromSelector(action);
|
|
@@ -121,7 +121,7 @@ UIGestureRecognizerDelegate,
|
|
|
121
121
|
#endif // !TARGET_OS_OSX
|
|
122
122
|
RCTAutoInsetsProtocol>
|
|
123
123
|
|
|
124
|
-
@property (nonatomic, copy)
|
|
124
|
+
@property (nonatomic, copy) BPCWKWebView *webView;
|
|
125
125
|
@property (nonatomic, strong) WKUserScript *postMessageScript;
|
|
126
126
|
@property (nonatomic, strong) WKUserScript *injectedObjectJsonScript;
|
|
127
127
|
@property (nonatomic, strong) WKUserScript *atStartScript;
|
|
@@ -512,7 +512,7 @@ RCTAutoInsetsProtocol>
|
|
|
512
512
|
#endif
|
|
513
513
|
|
|
514
514
|
// Shim the HTML5 history API:
|
|
515
|
-
[wkWebViewConfig.userContentController addScriptMessageHandler:[[
|
|
515
|
+
[wkWebViewConfig.userContentController addScriptMessageHandler:[[BPCWeakScriptMessageDelegate alloc] initWithDelegate:self]
|
|
516
516
|
name:HistoryShimName];
|
|
517
517
|
[self resetupScripts:wkWebViewConfig];
|
|
518
518
|
|
|
@@ -540,7 +540,7 @@ RCTAutoInsetsProtocol>
|
|
|
540
540
|
{
|
|
541
541
|
if (self.window != nil && _webView == nil) {
|
|
542
542
|
WKWebViewConfiguration *wkWebViewConfig = [self setUpWkWebViewConfig];
|
|
543
|
-
_webView = [[
|
|
543
|
+
_webView = [[BPCWKWebView alloc] initWithFrame:self.bounds configuration: wkWebViewConfig];
|
|
544
544
|
[self setBackgroundColor: _savedBackgroundColor];
|
|
545
545
|
#if !TARGET_OS_OSX
|
|
546
546
|
_webView.menuItems = _menuItems;
|
|
@@ -1003,7 +1003,7 @@ RCTAutoInsetsProtocol>
|
|
|
1003
1003
|
|
|
1004
1004
|
if(subview == nil) return;
|
|
1005
1005
|
|
|
1006
|
-
NSString* name = [NSString stringWithFormat:@"%@
|
|
1006
|
+
NSString* name = [NSString stringWithFormat:@"%@_BPSwizzleHelperWK", subview.class.superclass];
|
|
1007
1007
|
Class newClass = NSClassFromString(name);
|
|
1008
1008
|
|
|
1009
1009
|
if(newClass == nil)
|
|
@@ -1011,7 +1011,7 @@ RCTAutoInsetsProtocol>
|
|
|
1011
1011
|
newClass = objc_allocateClassPair(subview.class, [name cStringUsingEncoding:NSASCIIStringEncoding], 0);
|
|
1012
1012
|
if(!newClass) return;
|
|
1013
1013
|
|
|
1014
|
-
Method method = class_getInstanceMethod([
|
|
1014
|
+
Method method = class_getInstanceMethod([_BPSwizzleHelperWK class], @selector(inputAccessoryView));
|
|
1015
1015
|
class_addMethod(newClass, @selector(inputAccessoryView), method_getImplementation(method), method_getTypeEncoding(method));
|
|
1016
1016
|
|
|
1017
1017
|
objc_registerClassPair(newClass);
|
|
@@ -1025,7 +1025,7 @@ RCTAutoInsetsProtocol>
|
|
|
1025
1025
|
UIView* subview;
|
|
1026
1026
|
|
|
1027
1027
|
for (UIView* view in _webView.scrollView.subviews) {
|
|
1028
|
-
if([[view.class description] hasSuffix:@"
|
|
1028
|
+
if([[view.class description] hasSuffix:@"_BPSwizzleHelperWK"])
|
|
1029
1029
|
subview = view;
|
|
1030
1030
|
}
|
|
1031
1031
|
|
|
@@ -1854,7 +1854,7 @@ didFinishNavigation:(WKNavigation *)navigation
|
|
|
1854
1854
|
[wkWebViewConfig.userContentController removeScriptMessageHandlerForName:MessageHandlerName];
|
|
1855
1855
|
if(self.enableApplePay){
|
|
1856
1856
|
if (self.postMessageScript){
|
|
1857
|
-
[wkWebViewConfig.userContentController addScriptMessageHandler:[[
|
|
1857
|
+
[wkWebViewConfig.userContentController addScriptMessageHandler:[[BPCWeakScriptMessageDelegate alloc] initWithDelegate:self]
|
|
1858
1858
|
name:MessageHandlerName];
|
|
1859
1859
|
}
|
|
1860
1860
|
return;
|
|
@@ -1945,7 +1945,7 @@ didFinishNavigation:(WKNavigation *)navigation
|
|
|
1945
1945
|
|
|
1946
1946
|
if(_messagingEnabled){
|
|
1947
1947
|
if (self.postMessageScript){
|
|
1948
|
-
[wkWebViewConfig.userContentController addScriptMessageHandler:[[
|
|
1948
|
+
[wkWebViewConfig.userContentController addScriptMessageHandler:[[BPCWeakScriptMessageDelegate alloc] initWithDelegate:self]
|
|
1949
1949
|
name:MessageHandlerName];
|
|
1950
1950
|
[wkWebViewConfig.userContentController addUserScript:self.postMessageScript];
|
|
1951
1951
|
}
|
|
@@ -2115,7 +2115,7 @@ didFinishNavigation:(WKNavigation *)navigation
|
|
|
2115
2115
|
|
|
2116
2116
|
@end
|
|
2117
2117
|
|
|
2118
|
-
@implementation
|
|
2118
|
+
@implementation BPCWeakScriptMessageDelegate
|
|
2119
2119
|
|
|
2120
2120
|
- (instancetype)initWithDelegate:(id<WKScriptMessageHandler>)scriptDelegate {
|
|
2121
2121
|
self = [super init];
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"Thibault Malbranche <malbranche.thibault@gmail.com>"
|
|
11
11
|
],
|
|
12
12
|
"license": "MIT",
|
|
13
|
-
"version": "13.13.
|
|
13
|
+
"version": "13.13.41",
|
|
14
14
|
"homepage": "https://github.com/react-native-webview/react-native-webview#readme",
|
|
15
15
|
"scripts": {
|
|
16
16
|
"android": "react-native run-android",
|