react-native-webview-bootpay 11.22.83 → 11.22.86

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/android/build/.transforms/28ceacf58c1f53104331b6d3900dca4f/transformed/classes/classes.dex +0 -0
  2. package/android/build/intermediates/compile_library_classes_jar/debug/classes.jar +0 -0
  3. package/android/build/intermediates/compiled_local_resources/debug/out/xml_file_provider_paths.xml.flat +0 -0
  4. package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +1 -1
  5. package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +1 -1
  6. package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +1 -1
  7. package/android/build/intermediates/incremental/packageDebugResources/compile-file-map.properties +2 -2
  8. package/android/build/intermediates/incremental/packageDebugResources/merger.xml +1 -1
  9. package/android/build/intermediates/library_java_res/debug/res.jar +0 -0
  10. package/android/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt +104 -104
  11. package/android/build/intermediates/runtime_library_classes_jar/debug/classes.jar +0 -0
  12. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
  13. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
  14. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
  15. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
  16. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
  17. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
  18. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
  19. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
  20. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
  21. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
  22. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
  23. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
  24. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
  25. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
  26. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
  27. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
  28. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
  29. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
  30. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
  31. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
  32. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
  33. package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
  34. package/android/build/kotlin/compileDebugKotlin/localstate/build-history.bin +0 -0
  35. package/android/build/outputs/logs/manifest-merger-debug-report.txt +120 -120
  36. package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  37. package/android/build/{intermediates/runtime_library_classes_dir/debug/META-INF/react-native-webview_debug.kotlin_module → tmp/kotlin-classes/debug/META-INF/react-native-webview-bootpay_debug.kotlin_module} +0 -0
  38. package/android/build/tmp/kotlin-classes/debug/kr/co/bootpay/webview/BPCWebViewPackage.class +0 -0
  39. package/android/build/tmp/kotlin-classes/debug/kr/co/bootpay/webview/events/TopHttpErrorEvent$Companion.class +0 -0
  40. package/android/build/tmp/kotlin-classes/debug/kr/co/bootpay/webview/events/TopHttpErrorEvent.class +0 -0
  41. package/android/build/tmp/kotlin-classes/debug/kr/co/bootpay/webview/events/TopLoadingErrorEvent$Companion.class +0 -0
  42. package/android/build/tmp/kotlin-classes/debug/kr/co/bootpay/webview/events/TopLoadingErrorEvent.class +0 -0
  43. package/android/build/tmp/kotlin-classes/debug/kr/co/bootpay/webview/events/TopLoadingFinishEvent$Companion.class +0 -0
  44. package/android/build/tmp/kotlin-classes/debug/kr/co/bootpay/webview/events/TopLoadingFinishEvent.class +0 -0
  45. package/android/build/tmp/kotlin-classes/debug/kr/co/bootpay/webview/events/TopLoadingProgressEvent$Companion.class +0 -0
  46. package/android/build/tmp/kotlin-classes/debug/kr/co/bootpay/webview/events/TopLoadingProgressEvent.class +0 -0
  47. package/android/build/tmp/kotlin-classes/debug/kr/co/bootpay/webview/events/TopLoadingStartEvent$Companion.class +0 -0
  48. package/android/build/tmp/kotlin-classes/debug/kr/co/bootpay/webview/events/TopLoadingStartEvent.class +0 -0
  49. package/android/build/tmp/kotlin-classes/debug/kr/co/bootpay/webview/events/TopMessageEvent$Companion.class +0 -0
  50. package/android/build/tmp/kotlin-classes/debug/kr/co/bootpay/webview/events/TopMessageEvent.class +0 -0
  51. package/android/build/tmp/kotlin-classes/debug/kr/co/bootpay/webview/events/TopRenderProcessGoneEvent$Companion.class +0 -0
  52. package/android/build/tmp/kotlin-classes/debug/kr/co/bootpay/webview/events/TopRenderProcessGoneEvent.class +0 -0
  53. package/android/build/tmp/kotlin-classes/debug/kr/co/bootpay/webview/events/TopShouldStartLoadWithRequestEvent$Companion.class +0 -0
  54. package/android/build/tmp/kotlin-classes/debug/kr/co/bootpay/webview/events/TopShouldStartLoadWithRequestEvent.class +0 -0
  55. package/android/build.gradle +1 -1
  56. package/apple/BPCWebView.h +13 -0
  57. package/apple/BPCWebView.m +190 -18
  58. package/ios/BPCWebView.xcodeproj/project.xcworkspace/xcuserdata/ehowlsla.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  59. package/ios/BPCWebView.xcodeproj/xcuserdata/ehowlsla.xcuserdatad/xcschemes/xcschememanagement.plist +1 -1
  60. package/package.json +1 -1
  61. package/react-native.config.js +1 -1
  62. package/android/build/.transforms/51cb61441c00f43d07400187762c0edf/results.bin +0 -1
  63. package/android/build/.transforms/51cb61441c00f43d07400187762c0edf/transformed/classes/classes.dex +0 -0
  64. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/results.bin +0 -1
  65. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/debug/kr/co/bootpay/webview/BPCWebChromeClient$1.dex +0 -0
  66. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/debug/kr/co/bootpay/webview/BPCWebChromeClient.dex +0 -0
  67. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/debug/kr/co/bootpay/webview/BPCWebView$1.dex +0 -0
  68. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/debug/kr/co/bootpay/webview/BPCWebView$BPCWebViewBridge.dex +0 -0
  69. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/debug/kr/co/bootpay/webview/BPCWebView$ProgressChangedFilter.dex +0 -0
  70. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/debug/kr/co/bootpay/webview/BPCWebView.dex +0 -0
  71. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/debug/kr/co/bootpay/webview/BPCWebViewClient.dex +0 -0
  72. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/debug/kr/co/bootpay/webview/BPCWebViewFileProvider.dex +0 -0
  73. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/debug/kr/co/bootpay/webview/BPCWebViewManager$1.dex +0 -0
  74. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/debug/kr/co/bootpay/webview/BPCWebViewManager$2.dex +0 -0
  75. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/debug/kr/co/bootpay/webview/BPCWebViewManager$3.dex +0 -0
  76. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/debug/kr/co/bootpay/webview/BPCWebViewManager$4.dex +0 -0
  77. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/debug/kr/co/bootpay/webview/BPCWebViewManager.dex +0 -0
  78. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/debug/kr/co/bootpay/webview/BPCWebViewModule$1.dex +0 -0
  79. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/debug/kr/co/bootpay/webview/BPCWebViewModule$2.dex +0 -0
  80. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/debug/kr/co/bootpay/webview/BPCWebViewModule$MimeType.dex +0 -0
  81. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/debug/kr/co/bootpay/webview/BPCWebViewModule$ShouldOverrideUrlLoadingLock$ShouldOverrideCallbackState.dex +0 -0
  82. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/debug/kr/co/bootpay/webview/BPCWebViewModule$ShouldOverrideUrlLoadingLock.dex +0 -0
  83. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/debug/kr/co/bootpay/webview/BPCWebViewModule.dex +0 -0
  84. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/debug/kr/co/bootpay/webview/BPCWebViewPackage.dex +0 -0
  85. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/debug/kr/co/bootpay/webview/BasicAuthCredential.dex +0 -0
  86. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/debug/kr/co/bootpay/webview/BuildConfig.dex +0 -0
  87. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/debug/kr/co/bootpay/webview/WebViewConfig.dex +0 -0
  88. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/debug/kr/co/bootpay/webview/events/TopHttpErrorEvent$Companion.dex +0 -0
  89. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/debug/kr/co/bootpay/webview/events/TopHttpErrorEvent.dex +0 -0
  90. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/debug/kr/co/bootpay/webview/events/TopLoadingErrorEvent$Companion.dex +0 -0
  91. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/debug/kr/co/bootpay/webview/events/TopLoadingErrorEvent.dex +0 -0
  92. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/debug/kr/co/bootpay/webview/events/TopLoadingFinishEvent$Companion.dex +0 -0
  93. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/debug/kr/co/bootpay/webview/events/TopLoadingFinishEvent.dex +0 -0
  94. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/debug/kr/co/bootpay/webview/events/TopLoadingProgressEvent$Companion.dex +0 -0
  95. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/debug/kr/co/bootpay/webview/events/TopLoadingProgressEvent.dex +0 -0
  96. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/debug/kr/co/bootpay/webview/events/TopLoadingStartEvent$Companion.dex +0 -0
  97. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/debug/kr/co/bootpay/webview/events/TopLoadingStartEvent.dex +0 -0
  98. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/debug/kr/co/bootpay/webview/events/TopMessageEvent$Companion.dex +0 -0
  99. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/debug/kr/co/bootpay/webview/events/TopMessageEvent.dex +0 -0
  100. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/debug/kr/co/bootpay/webview/events/TopRenderProcessGoneEvent$Companion.dex +0 -0
  101. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/debug/kr/co/bootpay/webview/events/TopRenderProcessGoneEvent.dex +0 -0
  102. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/debug/kr/co/bootpay/webview/events/TopShouldStartLoadWithRequestEvent$Companion.dex +0 -0
  103. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/debug/kr/co/bootpay/webview/events/TopShouldStartLoadWithRequestEvent.dex +0 -0
  104. package/android/build/.transforms/c0e3d8f6408bfb0237947517dbd71608/transformed/desugar_graph.bin +0 -0
  105. package/android/build/.transforms/fb29541d9d3f14fd2af0228851f54ad5/results.bin +0 -1
  106. package/android/build/intermediates/runtime_library_classes_dir/debug/kr/co/bootpay/webview/BPCWebChromeClient$1.class +0 -0
  107. package/android/build/intermediates/runtime_library_classes_dir/debug/kr/co/bootpay/webview/BPCWebChromeClient.class +0 -0
  108. package/android/build/intermediates/runtime_library_classes_dir/debug/kr/co/bootpay/webview/BPCWebView$1.class +0 -0
  109. package/android/build/intermediates/runtime_library_classes_dir/debug/kr/co/bootpay/webview/BPCWebView$BPCWebViewBridge.class +0 -0
  110. package/android/build/intermediates/runtime_library_classes_dir/debug/kr/co/bootpay/webview/BPCWebView$ProgressChangedFilter.class +0 -0
  111. package/android/build/intermediates/runtime_library_classes_dir/debug/kr/co/bootpay/webview/BPCWebView.class +0 -0
  112. package/android/build/intermediates/runtime_library_classes_dir/debug/kr/co/bootpay/webview/BPCWebViewClient.class +0 -0
  113. package/android/build/intermediates/runtime_library_classes_dir/debug/kr/co/bootpay/webview/BPCWebViewFileProvider.class +0 -0
  114. package/android/build/intermediates/runtime_library_classes_dir/debug/kr/co/bootpay/webview/BPCWebViewManager$1.class +0 -0
  115. package/android/build/intermediates/runtime_library_classes_dir/debug/kr/co/bootpay/webview/BPCWebViewManager$2.class +0 -0
  116. package/android/build/intermediates/runtime_library_classes_dir/debug/kr/co/bootpay/webview/BPCWebViewManager$3.class +0 -0
  117. package/android/build/intermediates/runtime_library_classes_dir/debug/kr/co/bootpay/webview/BPCWebViewManager$4.class +0 -0
  118. package/android/build/intermediates/runtime_library_classes_dir/debug/kr/co/bootpay/webview/BPCWebViewManager.class +0 -0
  119. package/android/build/intermediates/runtime_library_classes_dir/debug/kr/co/bootpay/webview/BPCWebViewModule$1.class +0 -0
  120. package/android/build/intermediates/runtime_library_classes_dir/debug/kr/co/bootpay/webview/BPCWebViewModule$2.class +0 -0
  121. package/android/build/intermediates/runtime_library_classes_dir/debug/kr/co/bootpay/webview/BPCWebViewModule$MimeType.class +0 -0
  122. package/android/build/intermediates/runtime_library_classes_dir/debug/kr/co/bootpay/webview/BPCWebViewModule$ShouldOverrideUrlLoadingLock$ShouldOverrideCallbackState.class +0 -0
  123. package/android/build/intermediates/runtime_library_classes_dir/debug/kr/co/bootpay/webview/BPCWebViewModule$ShouldOverrideUrlLoadingLock.class +0 -0
  124. package/android/build/intermediates/runtime_library_classes_dir/debug/kr/co/bootpay/webview/BPCWebViewModule.class +0 -0
  125. package/android/build/intermediates/runtime_library_classes_dir/debug/kr/co/bootpay/webview/BPCWebViewPackage.class +0 -0
  126. package/android/build/intermediates/runtime_library_classes_dir/debug/kr/co/bootpay/webview/BasicAuthCredential.class +0 -0
  127. package/android/build/intermediates/runtime_library_classes_dir/debug/kr/co/bootpay/webview/BuildConfig.class +0 -0
  128. package/android/build/intermediates/runtime_library_classes_dir/debug/kr/co/bootpay/webview/WebViewConfig.class +0 -0
  129. package/android/build/intermediates/runtime_library_classes_dir/debug/kr/co/bootpay/webview/events/TopHttpErrorEvent$Companion.class +0 -0
  130. package/android/build/intermediates/runtime_library_classes_dir/debug/kr/co/bootpay/webview/events/TopHttpErrorEvent.class +0 -0
  131. package/android/build/intermediates/runtime_library_classes_dir/debug/kr/co/bootpay/webview/events/TopLoadingErrorEvent$Companion.class +0 -0
  132. package/android/build/intermediates/runtime_library_classes_dir/debug/kr/co/bootpay/webview/events/TopLoadingErrorEvent.class +0 -0
  133. package/android/build/intermediates/runtime_library_classes_dir/debug/kr/co/bootpay/webview/events/TopLoadingFinishEvent$Companion.class +0 -0
  134. package/android/build/intermediates/runtime_library_classes_dir/debug/kr/co/bootpay/webview/events/TopLoadingFinishEvent.class +0 -0
  135. package/android/build/intermediates/runtime_library_classes_dir/debug/kr/co/bootpay/webview/events/TopLoadingProgressEvent$Companion.class +0 -0
  136. package/android/build/intermediates/runtime_library_classes_dir/debug/kr/co/bootpay/webview/events/TopLoadingProgressEvent.class +0 -0
  137. package/android/build/intermediates/runtime_library_classes_dir/debug/kr/co/bootpay/webview/events/TopLoadingStartEvent$Companion.class +0 -0
  138. package/android/build/intermediates/runtime_library_classes_dir/debug/kr/co/bootpay/webview/events/TopLoadingStartEvent.class +0 -0
  139. package/android/build/intermediates/runtime_library_classes_dir/debug/kr/co/bootpay/webview/events/TopMessageEvent$Companion.class +0 -0
  140. package/android/build/intermediates/runtime_library_classes_dir/debug/kr/co/bootpay/webview/events/TopMessageEvent.class +0 -0
  141. package/android/build/intermediates/runtime_library_classes_dir/debug/kr/co/bootpay/webview/events/TopRenderProcessGoneEvent$Companion.class +0 -0
  142. package/android/build/intermediates/runtime_library_classes_dir/debug/kr/co/bootpay/webview/events/TopRenderProcessGoneEvent.class +0 -0
  143. package/android/build/intermediates/runtime_library_classes_dir/debug/kr/co/bootpay/webview/events/TopShouldStartLoadWithRequestEvent$Companion.class +0 -0
  144. package/android/build/intermediates/runtime_library_classes_dir/debug/kr/co/bootpay/webview/events/TopShouldStartLoadWithRequestEvent.class +0 -0
  145. package/android/build/tmp/kotlin-classes/debug/META-INF/react-native-webview_debug.kotlin_module +0 -0
@@ -25,15 +25,15 @@ static NSString *const MessageHandlerName = @"BootpayRNWebView";
25
25
  static NSURLCredential* clientAuthenticationCredential;
26
26
  static NSDictionary* customCertificatesForHost;
27
27
 
28
- NSString *const CUSTOM_SELECTOR = @"_CUSTOM_SELECTOR_";
28
+ NSString *const CUSTOM_SELECTOR = @"_BPCUSTOM_SELECTOR_";
29
29
 
30
30
  #if !TARGET_OS_OSX
31
31
  // runtime trick to remove WKWebView keyboard default toolbar
32
32
  // see: http://stackoverflow.com/questions/19033292/ios-7-uiwebview-keyboard-issue/19042279#19042279
33
- @interface _SwizzleHelperWK : UIView
33
+ @interface _BPSwizzleHelperWK : UIView
34
34
  @property (nonatomic, copy) WKWebView *webView;
35
35
  @end
36
- @implementation _SwizzleHelperWK
36
+ @implementation _BPSwizzleHelperWK
37
37
  -(id)inputAccessoryView
38
38
  {
39
39
  if (_webView == nil) {
@@ -311,10 +311,24 @@ RCTAutoInsetsProtocol>
311
311
  */
312
312
  - (WKWebView *)webView:(WKWebView *)webView createWebViewWithConfiguration:(WKWebViewConfiguration *)configuration forNavigationAction:(WKNavigationAction *)navigationAction windowFeatures:(WKWindowFeatures *)windowFeatures
313
313
  {
314
- if (!navigationAction.targetFrame.isMainFrame) {
315
- [webView loadRequest:navigationAction.request];
316
- }
317
- return nil;
314
+ // if (!navigationAction.targetFrame.isMainFrame) {
315
+ // [webView loadRequest:navigationAction.request];
316
+ // }
317
+ // return nil;
318
+
319
+ WKWebView *popupView = [[WKWebView alloc] initWithFrame:CGRectMake(0, 0, self.bounds.size.width, self.bounds.size.height) configuration:configuration];
320
+
321
+ [popupView autoresizingMask];
322
+ popupView.navigationDelegate = self;
323
+ popupView.UIDelegate = self;
324
+
325
+ [self addSubview:popupView];
326
+
327
+ return popupView;
328
+ }
329
+
330
+ - (void)webViewDidClose:(WKWebView *)webView {
331
+ [webView removeFromSuperview];
318
332
  }
319
333
 
320
334
  - (WKWebViewConfiguration *)setUpWkWebViewConfig
@@ -821,7 +835,7 @@ RCTAutoInsetsProtocol>
821
835
  newClass = objc_allocateClassPair(subview.class, [name cStringUsingEncoding:NSASCIIStringEncoding], 0);
822
836
  if(!newClass) return;
823
837
 
824
- Method method = class_getInstanceMethod([_SwizzleHelperWK class], @selector(inputAccessoryView));
838
+ Method method = class_getInstanceMethod([_BPSwizzleHelperWK class], @selector(inputAccessoryView));
825
839
  class_addMethod(newClass, @selector(inputAccessoryView), method_getImplementation(method), method_getTypeEncoding(method));
826
840
 
827
841
  objc_registerClassPair(newClass);
@@ -999,7 +1013,7 @@ RCTAutoInsetsProtocol>
999
1013
  {
1000
1014
  #if !TARGET_OS_OSX
1001
1015
  UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"" message:message preferredStyle:UIAlertControllerStyleAlert];
1002
- [alert addAction:[UIAlertAction actionWithTitle:@"Ok" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {
1016
+ [alert addAction:[UIAlertAction actionWithTitle:@"확인" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {
1003
1017
  completionHandler();
1004
1018
  }]];
1005
1019
  [[self topViewController] presentViewController:alert animated:YES completion:NULL];
@@ -1018,18 +1032,18 @@ RCTAutoInsetsProtocol>
1018
1032
  - (void)webView:(WKWebView *)webView runJavaScriptConfirmPanelWithMessage:(NSString *)message initiatedByFrame:(WKFrameInfo *)frame completionHandler:(void (^)(BOOL))completionHandler{
1019
1033
  #if !TARGET_OS_OSX
1020
1034
  UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"" message:message preferredStyle:UIAlertControllerStyleAlert];
1021
- [alert addAction:[UIAlertAction actionWithTitle:@"Ok" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {
1035
+ [alert addAction:[UIAlertAction actionWithTitle:@"확인" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {
1022
1036
  completionHandler(YES);
1023
1037
  }]];
1024
- [alert addAction:[UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleCancel handler:^(UIAlertAction *action) {
1038
+ [alert addAction:[UIAlertAction actionWithTitle:@"취소" style:UIAlertActionStyleCancel handler:^(UIAlertAction *action) {
1025
1039
  completionHandler(NO);
1026
1040
  }]];
1027
1041
  [[self topViewController] presentViewController:alert animated:YES completion:NULL];
1028
1042
  #else
1029
1043
  NSAlert *alert = [[NSAlert alloc] init];
1030
1044
  [alert setMessageText:message];
1031
- [alert addButtonWithTitle:NSLocalizedString(@"OK", @"OK button")];
1032
- [alert addButtonWithTitle:NSLocalizedString(@"Cancel", @"Cancel button")];
1045
+ [alert addButtonWithTitle:NSLocalizedString(@"확인", @"OK button")];
1046
+ [alert addButtonWithTitle:NSLocalizedString(@"취소", @"Cancel button")];
1033
1047
  void (^callbacksHandlers)(NSModalResponse response) = ^void(NSModalResponse response) {
1034
1048
  completionHandler(response == NSAlertFirstButtonReturn);
1035
1049
  };
@@ -1046,11 +1060,11 @@ RCTAutoInsetsProtocol>
1046
1060
  [alert addTextFieldWithConfigurationHandler:^(UITextField *textField) {
1047
1061
  textField.text = defaultText;
1048
1062
  }];
1049
- UIAlertAction *okAction = [UIAlertAction actionWithTitle:@"Ok" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {
1063
+ UIAlertAction *okAction = [UIAlertAction actionWithTitle:@"확인" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {
1050
1064
  completionHandler([[alert.textFields lastObject] text]);
1051
1065
  }];
1052
1066
  [alert addAction:okAction];
1053
- UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleCancel handler:^(UIAlertAction *action) {
1067
+ UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@"취소" style:UIAlertActionStyleCancel handler:^(UIAlertAction *action) {
1054
1068
  completionHandler(nil);
1055
1069
  }];
1056
1070
  [alert addAction:cancelAction];
@@ -1069,8 +1083,8 @@ RCTAutoInsetsProtocol>
1069
1083
  textField.stringValue = defaultText;
1070
1084
  [alert setAccessoryView:textField];
1071
1085
 
1072
- [alert addButtonWithTitle:NSLocalizedString(@"OK", @"OK button")];
1073
- [alert addButtonWithTitle:NSLocalizedString(@"Cancel", @"Cancel button")];
1086
+ [alert addButtonWithTitle:NSLocalizedString(@"확인", @"OK button")];
1087
+ [alert addButtonWithTitle:NSLocalizedString(@"취소", @"Cancel button")];
1074
1088
  [alert beginSheetModalForWindow:[NSApp keyWindow] completionHandler:^(NSModalResponse response) {
1075
1089
  if (response == NSAlertFirstButtonReturn) {
1076
1090
  completionHandler([textField stringValue]);
@@ -1117,11 +1131,37 @@ RCTAutoInsetsProtocol>
1117
1131
 
1118
1132
  #endif // !TARGET_OS_OSX
1119
1133
 
1134
+
1135
+
1136
+ - (void) webView:(WKWebView *)webView
1137
+ decidePolicyForNavigationAction:(WKNavigationAction *)navigationAction
1138
+ decisionHandler:(void (^)(WKNavigationActionPolicy))decisionHandler
1139
+ {
1140
+ NSString *url = navigationAction.request.URL.absoluteString;
1141
+
1142
+ _beforeUrl = url;
1143
+
1144
+ // [self updateBlindViewIfNaverLogin:url];
1145
+
1146
+ if([self isItunesURL:url]) {
1147
+ [self startAppToApp:[NSURL URLWithString:url]];
1148
+ decisionHandler(WKNavigationActionPolicyCancel);
1149
+ } else if([url hasPrefix:@"about:blank"]) {
1150
+ decisionHandler(WKNavigationActionPolicyAllow);
1151
+ } else if(![url hasPrefix:@"http"]) {
1152
+ [self startAppToApp:[NSURL URLWithString:url]];
1153
+ decisionHandler(WKNavigationActionPolicyCancel);
1154
+ } else {
1155
+ decisionHandler(WKNavigationActionPolicyAllow);
1156
+ }
1157
+ }
1158
+
1159
+
1120
1160
  /**
1121
1161
  * Decides whether to allow or cancel a navigation.
1122
1162
  * @see https://fburl.com/42r9fxob
1123
1163
  */
1124
- - (void) webView:(WKWebView *)webView
1164
+ - (void) webViewRN:(WKWebView *)webView
1125
1165
  decidePolicyForNavigationAction:(WKNavigationAction *)navigationAction
1126
1166
  decisionHandler:(void (^)(WKNavigationActionPolicy))decisionHandler
1127
1167
  {
@@ -1643,6 +1683,138 @@ didFinishNavigation:(WKNavigation *)navigation
1643
1683
  return request;
1644
1684
  }
1645
1685
 
1686
+
1687
+ #pragma mark - WebVoew Javascript
1688
+
1689
+ -(void) doJavascript:(NSString*) script {
1690
+ [_webView evaluateJavaScript:script completionHandler:nil];
1691
+ }
1692
+
1693
+ - (void) loadUrl:(NSString*) urlString {
1694
+ NSURL *url = [NSURL URLWithString:urlString];
1695
+ NSURLRequest *request = [[NSURLRequest alloc] initWithURL:url];
1696
+ [_webView loadRequest:request];
1697
+ }
1698
+
1699
+ - (void) naverLoginBugFix {
1700
+ if([_beforeUrl hasPrefix:@"naversearchthirdlogin://"]) {
1701
+ NSString* value = [self getQueryStringParameter:_beforeUrl :@"session"];
1702
+ if(value != nil && [value length] > 0) {
1703
+ NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"https://nid.naver.com/login/scheme.redirect?session=%@", value]];
1704
+ NSURLRequest *request = [[NSURLRequest alloc] initWithURL:url];
1705
+ [_webView loadRequest:request];
1706
+ }
1707
+ }
1708
+ }
1709
+
1710
+ - (NSString*) getQueryStringParameter:(NSString*)url :(NSString*)param {
1711
+ NSMutableDictionary *queryStringDictionary = [[NSMutableDictionary alloc] init];
1712
+ NSArray *urlComponents = [url componentsSeparatedByString:@"&"];
1713
+
1714
+ for (NSString *keyValuePair in urlComponents)
1715
+ {
1716
+ NSArray *pairComponents = [keyValuePair componentsSeparatedByString:@"="];
1717
+ NSString *key = [[pairComponents firstObject] stringByRemovingPercentEncoding];
1718
+ NSString *value = [[pairComponents lastObject] stringByRemovingPercentEncoding];
1719
+
1720
+ if([param isEqualToString:key]) {
1721
+ return value;
1722
+ }
1723
+ }
1724
+
1725
+ return @"";
1726
+ }
1727
+
1728
+ - (void) startAppToApp:(NSURL*) url {
1729
+ UIApplication *application = [UIApplication sharedApplication];
1730
+
1731
+ if (@available(iOS 10.0, *)) {
1732
+ [application openURL:url options:@{} completionHandler: ^(BOOL success) {
1733
+ if(success == false) {
1734
+ [self startItunesToInstall:url];
1735
+ }
1736
+ }];
1737
+ } else {
1738
+ [application openURL:url];
1739
+ }
1740
+ }
1741
+
1742
+
1743
+ - (void) startItunesToInstall:(NSURL*) url {
1744
+ NSString *sUrl = url.absoluteString;
1745
+ NSString *itunesUrl = @"";
1746
+
1747
+ if([sUrl hasPrefix: @"kfc-bankpay"]) {
1748
+ itunesUrl = @"https://apps.apple.com/kr/app/%EB%B1%85%ED%81%AC%ED%8E%98%EC%9D%B4-%EA%B8%88%EC%9C%B5%EA%B8%B0%EA%B4%80-%EA%B3%B5%EB%8F%99-%EA%B3%84%EC%A2%8C%EC%9D%B4%EC%B2%B4-%EA%B2%B0%EC%A0%9C-%EC%A0%9C%EB%A1%9C%ED%8E%98%EC%9D%B4/id398456030";
1749
+ } else if([sUrl hasPrefix: @"ispmobile"]) {
1750
+ itunesUrl = @"https://apps.apple.com/kr/app/isp/id369125087";
1751
+ } else if([sUrl hasPrefix: @"hdcardappcardansimclick"] || [sUrl hasPrefix: @"smhyundaiansimclick"]) {
1752
+ itunesUrl = @"https://apps.apple.com/kr/app/%ED%98%84%EB%8C%80%EC%B9%B4%EB%93%9C/id702653088";
1753
+ } else if([sUrl hasPrefix: @"shinhan-sr-ansimclick"] || [sUrl hasPrefix: @"smshinhanansimclick"]) {
1754
+ itunesUrl = @"https://apps.apple.com/kr/app/%EC%8B%A0%ED%95%9C%ED%8E%98%EC%9D%B4%ED%8C%90/id572462317";
1755
+ } else if([sUrl hasPrefix: @"kb-acp"]) {
1756
+ itunesUrl = @"https://apps.apple.com/kr/app/kb-pay/id695436326";
1757
+ } else if([sUrl hasPrefix: @"liivbank"]) {
1758
+ itunesUrl = @"https://apps.apple.com/kr/app/%EB%A6%AC%EB%B8%8C/id1126232922";
1759
+ } else if([sUrl hasPrefix: @"mpocket.online.ansimclick"] || [sUrl hasPrefix: @"ansimclickscard"] || [sUrl hasPrefix: @"ansimclickipcollect"] || [sUrl hasPrefix: @"samsungpay"] || [sUrl hasPrefix: @"scardcertiapp"]) {
1760
+ itunesUrl = @"https://apps.apple.com/kr/app/%EC%82%BC%EC%84%B1%EC%B9%B4%EB%93%9C/id535125356";
1761
+ } else if([sUrl hasPrefix: @"lottesmartpay"]) {
1762
+ itunesUrl = @"https://apps.apple.com/us/app/%EB%A1%AF%EB%8D%B0%EC%B9%B4%EB%93%9C-%EC%95%B1%EC%B9%B4%EB%93%9C/id688047200";
1763
+ } else if([sUrl hasPrefix: @"lotteappcard"]) {
1764
+ itunesUrl = @"https://apps.apple.com/kr/app/%EB%94%94%EC%A7%80%EB%A1%9C%EC%B9%B4-%EB%A1%AF%EB%8D%B0%EC%B9%B4%EB%93%9C/id688047200";
1765
+ } else if([sUrl hasPrefix: @"newsmartpib"]) {
1766
+ itunesUrl = @"https://apps.apple.com/kr/app/%EC%9A%B0%EB%A6%AC-won-%EB%B1%85%ED%82%B9/id1470181651";
1767
+ } else if([sUrl hasPrefix: @"com.wooricard.wcard"]) {
1768
+ itunesUrl = @"https://apps.apple.com/kr/app/%EC%9A%B0%EB%A6%ACwon%EC%B9%B4%EB%93%9C/id1499598869";
1769
+ } else if([sUrl hasPrefix: @"citispay"] || [sUrl hasPrefix: @"citicardappkr"] || [sUrl hasPrefix: @"citimobileapp"]) {
1770
+ itunesUrl = @"https://apps.apple.com/kr/app/%EC%94%A8%ED%8B%B0%EB%AA%A8%EB%B0%94%EC%9D%BC/id1179759666";
1771
+ } else if([sUrl hasPrefix: @"shinsegaeeasypayment"]) {
1772
+ itunesUrl = @"https://apps.apple.com/kr/app/ssgpay/id666237916";
1773
+ } else if([sUrl hasPrefix: @"cloudpay"]) {
1774
+ itunesUrl = @"https://apps.apple.com/kr/app/%ED%95%98%EB%82%98%EC%B9%B4%EB%93%9C-%EC%9B%90%ED%81%90%ED%8E%98%EC%9D%B4/id847268987";
1775
+ } else if([sUrl hasPrefix: @"hanawalletmembers"]) {
1776
+ itunesUrl = @"https://apps.apple.com/kr/app/n-wallet/id492190784";
1777
+ } else if([sUrl hasPrefix: @"nhappvardansimclick"]) {
1778
+ itunesUrl = @"https://apps.apple.com/kr/app/%EC%98%AC%EC%9B%90%ED%8E%98%EC%9D%B4-nh%EC%95%B1%EC%B9%B4%EB%93%9C/id1177889176";
1779
+ } else if([sUrl hasPrefix: @"nhallonepayansimclick"] || [sUrl hasPrefix: @"nhappcardansimclick"] || [sUrl hasPrefix: @"nhallonepayansimclick"] || [sUrl hasPrefix: @"nonghyupcardansimclick"]) {
1780
+ itunesUrl = @"https://apps.apple.com/kr/app/%EC%98%AC%EC%9B%90%ED%8E%98%EC%9D%B4-nh%EC%95%B1%EC%B9%B4%EB%93%9C/id1177889176";
1781
+ } else if([sUrl hasPrefix: @"payco"]) {
1782
+ itunesUrl = @"https://apps.apple.com/kr/app/payco/id924292102";
1783
+ } else if([sUrl hasPrefix: @"lpayapp"] || [sUrl hasPrefix: @"lmslpay"]) {
1784
+ itunesUrl = @"https://apps.apple.com/kr/app/l-point-with-l-pay/id473250588";
1785
+ } else if([sUrl hasPrefix: @"naversearchapp"]) {
1786
+ itunesUrl = @"https://apps.apple.com/kr/app/%EB%84%A4%EC%9D%B4%EB%B2%84-naver/id393499958";
1787
+ } else if([sUrl hasPrefix: @"tauthlink"]) {
1788
+ itunesUrl = @"https://apps.apple.com/kr/app/pass-by-skt/id1141258007";
1789
+ } else if([sUrl hasPrefix: @"uplusauth"] || [sUrl hasPrefix: @"upluscorporation"] ) {
1790
+ itunesUrl = @"https://apps.apple.com/kr/app/pass-by-u/id1147394645";
1791
+ } else if([sUrl hasPrefix: @"ktauthexternalcall"]) {
1792
+ itunesUrl = @"https://apps.apple.com/kr/app/pass-by-kt/id1134371550";
1793
+ } else if([sUrl hasPrefix: @"supertoss"]) {
1794
+ itunesUrl = @"https://apps.apple.com/kr/app/%ED%86%A0%EC%8A%A4/id839333328";
1795
+ } else if([sUrl hasPrefix: @"kakaotalk"]) {
1796
+ itunesUrl = @"https://apps.apple.com/kr/app/kakaotalk/id362057947";
1797
+ } else if([sUrl hasPrefix: @"chaipayment"]) {
1798
+ itunesUrl = @"https://apps.apple.com/kr/app/%EC%B0%A8%EC%9D%B4/id1459979272";
1799
+ } else if([sUrl hasPrefix: @"ukbanksmartbanknonloginpay"]) {
1800
+ itunesUrl = @"https://itunes.apple.com/kr/developer/%EC%BC%80%EC%9D%B4%EB%B1%85%ED%81%AC/id1178872626?mt=8";
1801
+ } else if([sUrl hasPrefix: @"newliiv"]) {
1802
+ itunesUrl = @"https://apps.apple.com/us/app/%EB%A6%AC%EB%B8%8C-next/id1573528126";
1803
+ } else if([sUrl hasPrefix: @"kbbank"]) {
1804
+ itunesUrl = @"https://apps.apple.com/kr/app/kb%EC%8A%A4%ED%83%80%EB%B1%85%ED%82%B9/id373742138";
1805
+ }
1806
+
1807
+ if(itunesUrl.length > 0) {
1808
+ NSURL *appstore = [NSURL URLWithString: itunesUrl];
1809
+ [self startAppToApp: appstore];
1810
+ }
1811
+ }
1812
+
1813
+ - (BOOL) isItunesURL:(NSString*) urlString {
1814
+ NSRange match = [urlString rangeOfString: @"itunes.apple.com"];
1815
+ return match.location != NSNotFound;
1816
+ }
1817
+
1646
1818
  @end
1647
1819
 
1648
1820
  @implementation BPCWeakScriptMessageDelegate
@@ -7,7 +7,7 @@
7
7
  <key>BPCWebView.xcscheme_^#shared#^_</key>
8
8
  <dict>
9
9
  <key>orderHint</key>
10
- <integer>2</integer>
10
+ <integer>0</integer>
11
11
  </dict>
12
12
  <key>BPcWebView (iOS).xcscheme_^#shared#^_</key>
13
13
  <dict>
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "Thibault Malbranche <malbranche.thibault@gmail.com>"
11
11
  ],
12
12
  "license": "MIT",
13
- "version": "11.22.83",
13
+ "version": "11.22.86",
14
14
  "homepage": "https://www.bootpay.co.kr",
15
15
  "scripts": {
16
16
  "android": "react-native run-android",
@@ -31,7 +31,7 @@ const project = (() => {
31
31
  module.exports = {
32
32
  dependencies: {
33
33
  // Help rn-cli find and autolink this library
34
- 'react-native-webview': {
34
+ 'react-native-webview-bootpay': {
35
35
  root: __dirname,
36
36
  },
37
37
  },