From 88d88bd11d0c6c40dc3f8eee7f39a0b3f59524e4 Mon Sep 17 00:00:00 2001 From: pichillilorenzo Date: Sat, 13 Oct 2018 21:12:32 +0200 Subject: [PATCH] fixed onLoadResource, added InAppBrowser.addJavaScriptHandler() and InAppBrowser.removeJavaScriptHandler() methods, v0.3.0 --- .idea/workspace.xml | 154 +++++------ CHANGELOG.md | 12 +- README.md | 65 ++++- .../InAppBrowserOptions.java | 1 + .../InAppBrowserWebViewClient.java | 43 ++- .../JavaScriptBridgeInterface.java | 29 ++ .../flutter_inappbrowser/WebViewActivity.java | 9 +- example/lib/main.dart | 41 ++- ios/Classes/InAppBrowserOptions.swift | 1 + .../InAppBrowserWebViewController.swift | 254 ++++++++++++------ ios/Classes/MyURLProtocol.swift | 149 ---------- ios/Classes/NSURLProtocol+WKWebVIew.h | 23 -- ios/Classes/NSURLProtocol+WKWebVIew.m | 54 ---- ios/Classes/SwiftFlutterPlugin.swift | 34 ++- lib/flutter_inappbrowser.dart | 62 ++++- 15 files changed, 499 insertions(+), 432 deletions(-) create mode 100644 android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/JavaScriptBridgeInterface.java delete mode 100644 ios/Classes/MyURLProtocol.swift delete mode 100644 ios/Classes/NSURLProtocol+WKWebVIew.h delete mode 100644 ios/Classes/NSURLProtocol+WKWebVIew.m diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 24408d2b..924b998e 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -16,13 +16,19 @@ + + + + + - + + + - @@ -42,8 +48,8 @@ - - + + @@ -54,18 +60,18 @@ - + - + - - + + @@ -74,11 +80,11 @@ - - + + - - + + @@ -87,7 +93,9 @@ - + + + @@ -95,15 +103,6 @@ - - - - - - - - - @@ -180,19 +179,18 @@ - -