From bc6bed1891d2d1848ad1997dc16e6a41b2696781 Mon Sep 17 00:00:00 2001 From: Lorenzo Pichilli Date: Mon, 28 Oct 2019 04:58:25 +0100 Subject: [PATCH] Added new WebView option minimumFontSize, Added new Android WebView options, Added new iOS WebView options, Added onGeolocationPermissionsShowPrompt event and GeolocationPermissionShowPromptResponse class (available only for Android), updated Android ContentBlocker, updated Android build.gradle compileSdkVersion 29 --- .idea/workspace.xml | 490 +++++++++--------- CHANGELOG.md | 7 +- android/build.gradle | 2 +- .../ContentBlocker/ContentBlocker.java | 234 +-------- .../ContentBlocker/ContentBlockerHandler.java | 251 +++++++++ .../ContentBlocker/ContentBlockerTrigger.java | 4 + .../flutter_inappbrowser/FlutterWebView.java | 6 +- .../InAppWebView/InAppWebChromeClient.java | 32 ++ .../InAppWebView/InAppWebView.java | 235 +++++++-- .../InAppWebView/InAppWebViewClient.java | 4 +- .../InAppWebView/InAppWebViewOptions.java | 34 +- .../RequestPermissionHandler.java | 5 +- .../flutter_inappbrowser/Util.java | 1 - .../android/app/src/main/AndroidManifest.xml | 6 + example/assets/index.html | 9 + example/ios/Runner.xcodeproj/project.pbxproj | 6 +- .../xcshareddata/xcschemes/Runner.xcscheme | 10 +- .../xcshareddata/WorkspaceSettings.xcsettings | 2 + example/ios/Runner/AppDelegate.swift | 6 +- example/ios/Runner/Info.plist | 60 ++- example/lib/inline_example.screen.dart | 48 +- example/lib/main.dart | 7 +- example/lib/webview_example.screen.dart | 5 + example/pubspec.yaml | 1 + ios/Classes/FlutterWebViewController.swift | 3 +- ios/Classes/InAppWebView.swift | 145 ++++-- ios/Classes/InAppWebViewOptions.swift | 7 + lib/src/content_blocker.dart | 12 +- lib/src/in_app_browser.dart | 11 +- lib/src/in_app_webview.dart | 15 + lib/src/types.dart | 27 +- lib/src/webview_options.dart | 187 ++++++- pubspec.yaml | 2 +- 33 files changed, 1249 insertions(+), 625 deletions(-) create mode 100644 android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/ContentBlocker/ContentBlockerHandler.java diff --git a/.idea/workspace.xml b/.idea/workspace.xml index b80552a6..dc97bd14 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -15,22 +15,39 @@ + + + + + + + + + - + + + + + + + - - + + + + @@ -50,20 +67,20 @@ - - + + - - + + - + - - + + @@ -71,17 +88,8 @@ - - - - - - - - - - - + + @@ -90,22 +98,31 @@ - + - - + + - + - - + + - - + + + + + + + + + + + @@ -116,8 +133,8 @@ - - + + @@ -125,8 +142,8 @@ - - + + @@ -134,8 +151,8 @@ - - + + @@ -144,10 +161,10 @@ - + - - + + @@ -167,36 +184,36 @@ - initialUrl - InAppBrowser - onCustomScheme - print - onTargetBlank - customSchemes - customSchemes__ - toJson - onCustom - schemes - schemes_ - onDownload - resourceCustomSchemes - onLoadResourceCustomScheme - and return a [Cu - encoded in `base64` - _ - _throwIsNotOpened( - _throwIsNotOpened - _hand - _ChannelManager - onDo - initialData - assert - Level - options - options = const {} - List<WebViewOptions> options = const [] options) WebViewOptions + websiteDataStore + CacheMode + toStr + cacheMode + disabledActionModeMenuItems + AndroidInAppWebViewModeMenuItem + fantasyFontFamily + AndroidInAppWebViewLayoutAlgorithm + loadWithOverviewMode + AndroidInAppWebViewCacheMode + mixedContentMode + disable + appCachePath + List<Con + appCacheEnabled + List<Content + NOTE + onGeolocationPermissionsShowPrompt + "onGeolocationPermissionsShowPrompt" + databaseEnabled + RequestPermission + geolocation + userInterfaceDirectionPolicy + WKSelectionGranularityDynamic + minimumFontSize + defaultWebpagePreferences + contentBlockers + preferredContentMode activity.getPreferences(0) @@ -232,7 +249,6 @@ @@ -281,6 +298,67 @@ + + + + + + + + + + + @@ -310,61 +388,7 @@ - - - - - - - - - - -