Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
19 changes: 0 additions & 19 deletions apple/AdPopcornSSPWKScriptMessageHandler.h

This file was deleted.

2 changes: 0 additions & 2 deletions apple/RNCWebViewImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

#pragma mark - Classting Custom
#import <React/RCTBridgeModule.h>
#import "AdPopcornSSPWKScriptMessageHandler.h"
// classting custom end

#if !TARGET_OS_OSX
Expand Down Expand Up @@ -53,7 +52,6 @@ shouldStartLoadForRequest:(NSMutableDictionary<NSString *, id> *)request

#pragma mark - Classting Custom
@property (nonatomic, copy) RCTDirectEventBlock onBlobDownload;
@property (nonatomic, copy) AdPopcornSSPWKScriptMessageHandler *adPopcornScriptMessageHandler;
// classting custom end

@property (nonatomic, copy) RCTDirectEventBlock onFileDownload;
Expand Down
6 changes: 0 additions & 6 deletions apple/RNCWebViewImpl.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#pragma mark Classting Custom
#import <React/RCTBridgeModule.h>
#import <Photos/Photos.h> // import for save gifs
#import "AdPopcornSSPWKScriptMessageHandler.h"
// classting custom end

static NSTimer *keyboardTimer;
Expand All @@ -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
Expand Down Expand Up @@ -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];
Expand Down Expand Up @@ -517,7 +512,6 @@ - (void)didMoveToWindow
_webView.inspectable = _webviewDebuggingEnabled;
#endif

_adPopcornScriptMessageHandler.webView = _webView;
[self addSubview:_webView];
[self setHideKeyboardAccessoryView: _savedHideKeyboardAccessoryView];
[self setKeyboardDisplayRequiresUserAction: _savedKeyboardDisplayRequiresUserAction];
Expand Down
Loading