From 64f6995d83d02fab8799a74399fd6c159b0ba618 Mon Sep 17 00:00:00 2001 From: Lorenzo Pichilli Date: Thu, 21 Nov 2019 02:19:43 +0100 Subject: [PATCH] added onLoadHttpError event, fixed InAppWebView handleMethod, updated example, updated driver tests --- .idea/workspace.xml | 637 ++++++++++-------- CHANGELOG.md | 2 +- .../InAppWebView/InAppWebView.java | 9 +- ...ent.java => InAppWebViewChromeClient.java} | 4 +- .../InAppWebView/InAppWebViewClient.java | 18 +- .../chrome_safari_browser_example.screen.dart | 6 +- .../lib/in_app_browser_example.screen.dart | 6 +- example/lib/in_app_webiew_example.screen.dart | 19 +- example/test_driver/app_test.dart | 24 + .../in_app_webview_initial_url_test.dart | 4 +- ...ew_on_received_http_auth_request_test.dart | 64 ++ ...app_webview_on_safe_browsing_hit_test.dart | 70 ++ example/test_driver/main_test.dart | 4 + ios/Classes/InAppWebView.swift | 20 +- lib/src/content_blocker.dart | 12 +- lib/src/in_app_browser.dart | 13 + lib/src/in_app_webview.dart | 25 +- lib/src/types.dart | 213 +++++- .../index.js | 15 +- 19 files changed, 812 insertions(+), 353 deletions(-) rename android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/InAppWebView/{InAppWebChromeClient.java => InAppWebViewChromeClient.java} (99%) create mode 100644 example/test_driver/in_app_webview_on_received_http_auth_request_test.dart create mode 100644 example/test_driver/in_app_webview_on_safe_browsing_hit_test.dart diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 177cf086..9f439786 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -15,21 +15,25 @@ - - + + - + + + + + - - - - - - - + + + + + + + @@ -50,19 +54,10 @@ - + - - - - - - - - - - - + + @@ -73,29 +68,17 @@ - - + + - + - - - - - - - - - - - - - - + + @@ -104,10 +87,67 @@ - + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -123,18 +163,6 @@ - onConsoleM - return this - return await - onCallJsHandler - ListenerCallback - jsonDecode - CallBac - dart - ``` - JavaScriptHandlerCallback - addJavaScriptHandler - indexTest removeJavaScriptHandler __safeBrowsingEnabled__ __safe @@ -144,7 +172,6 @@ __builtInZoomControls__ android.support.v4 __transparentBackground__ - dispose _dispose รน setC @@ -153,6 +180,19 @@ createPromptDialog houldOverrideUrlLoad InAppWebViewShouldOverrideUrlLoadingTest + toValue + toValue() + url + targetB + availa + onLoadHttpError + onReceivedHttpAuthRequest + onLoadHtt + onLoadError + startSafeBrowsing + onSafeBrowsingHit + dispose + onSafe activity.getPreferences(0) @@ -170,16 +210,6 @@ @@ -235,55 +275,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +