diff --git a/android/build.gradle b/android/build.gradle index e96367b34e..33720df997 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -115,7 +115,6 @@ dependencies { implementation "androidx.webkit:webkit:${safeExtGet('webkitVersion')}" implementation 'com.github.classtinginc:android-image-picker:1.1.31' implementation 'com.google.code.gson:gson:2.8.3' - implementation 'com.igaworks.ssp:IgawAdPopcornSSP:3.2.1' } if (isNewArchitectureEnabled()) { diff --git a/android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManagerImpl.kt b/android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManagerImpl.kt index 7cfa04804c..a5072d7982 100644 --- a/android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManagerImpl.kt +++ b/android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManagerImpl.kt @@ -26,7 +26,6 @@ import com.facebook.react.bridge.ReadableMap import com.facebook.react.common.MapBuilder import com.facebook.react.common.build.ReactBuildConfig import com.facebook.react.uimanager.ThemedReactContext -import com.igaworks.ssp.part.hybrid.AdPopcornSSPJsBridge import org.json.JSONException import org.json.JSONObject import java.io.File @@ -101,11 +100,6 @@ class RNCWebViewManagerImpl { WebView.setWebContentsDebuggingEnabled(true) } - webView.addJavascriptInterface( - AdPopcornSSPJsBridge(webView.context, webView), - AdPopcornSSPJsBridge.INTERFACE_NAME - ) - webView.addJavascriptInterface( BlobDownloadInterface(context), BlobDownloadInterface.INTERFACE_NAME diff --git a/apple/AdPopcornSSPWKScriptMessageHandler.h b/apple/AdPopcornSSPWKScriptMessageHandler.h deleted file mode 100644 index e2b8466b45..0000000000 --- a/apple/AdPopcornSSPWKScriptMessageHandler.h +++ /dev/null @@ -1,19 +0,0 @@ -// -// AdPopcornSSPWKScriptMessageHandler.h -// RNCWebView -// -// Created by UJ on 2023/05/11. -// Copyright © 2023 Facebook. All rights reserved. -// - -#import -#import - -@interface AdPopcornSSPWKScriptMessageHandler : NSObject - -@property (nonatomic, weak) id scriptDelegate; -@property (nonatomic, weak) WKWebView *webView; - -- (instancetype)initWithDelegate:(id)scriptDelegate; - -@end diff --git a/apple/RNCWebViewImpl.h b/apple/RNCWebViewImpl.h index 617be7bad0..73c351fd06 100644 --- a/apple/RNCWebViewImpl.h +++ b/apple/RNCWebViewImpl.h @@ -12,7 +12,6 @@ #pragma mark - Classting Custom #import -#import "AdPopcornSSPWKScriptMessageHandler.h" // classting custom end #if !TARGET_OS_OSX @@ -53,7 +52,6 @@ shouldStartLoadForRequest:(NSMutableDictionary *)request #pragma mark - Classting Custom @property (nonatomic, copy) RCTDirectEventBlock onBlobDownload; -@property (nonatomic, copy) AdPopcornSSPWKScriptMessageHandler *adPopcornScriptMessageHandler; // classting custom end @property (nonatomic, copy) RCTDirectEventBlock onFileDownload; diff --git a/apple/RNCWebViewImpl.m b/apple/RNCWebViewImpl.m index 929a8b384c..893277bd4c 100644 --- a/apple/RNCWebViewImpl.m +++ b/apple/RNCWebViewImpl.m @@ -20,7 +20,6 @@ #pragma mark Classting Custom #import #import // import for save gifs -#import "AdPopcornSSPWKScriptMessageHandler.h" // classting custom end static NSTimer *keyboardTimer; @@ -33,7 +32,6 @@ #pragma mark - Classting Custom static NSString *const IOSFunc = @"IOSFunc"; -static NSString *const AdpopcornSSP = @"apssp"; static inline BOOL isEmpty(id value) { return value == nil @@ -435,9 +433,6 @@ - (WKWebViewConfiguration *)setUpWkWebViewConfig #pragma mark - Classting Custom [wkWebViewConfig.userContentController addScriptMessageHandler:[[RNCWeakScriptMessageDelegate alloc] initWithDelegate:self] name:IOSFunc]; - - _adPopcornScriptMessageHandler = [[AdPopcornSSPWKScriptMessageHandler alloc] initWithDelegate:nil]; - [wkWebViewConfig.userContentController addScriptMessageHandler:_adPopcornScriptMessageHandler name:AdpopcornSSP]; // classting custom end [self resetupScripts:wkWebViewConfig]; @@ -517,7 +512,6 @@ - (void)didMoveToWindow _webView.inspectable = _webviewDebuggingEnabled; #endif - _adPopcornScriptMessageHandler.webView = _webView; [self addSubview:_webView]; [self setHideKeyboardAccessoryView: _savedHideKeyboardAccessoryView]; [self setKeyboardDisplayRequiresUserAction: _savedKeyboardDisplayRequiresUserAction];