Releases: pichillilorenzo/flutter_inappwebview
Releases · pichillilorenzo/flutter_inappwebview
v6.2.0-beta.1
- Updated dependencies to the latest versions for all platform implementations:
flutter_inappwebview_platform_interface
:^1.3.0
->^1.4.0-beta.1
flutter_inappwebview_android
:^1.1.3
->^1.2.0-beta.1
flutter_inappwebview_ios
:^1.1.2
->^1.2.0-beta.1
flutter_inappwebview_macos
:^1.1.2
->^1.2.0-beta.1
flutter_inappwebview_web
:^1.1.2
->^1.2.0-beta.1
flutter_inappwebview_windows
:^0.6.0
->^0.7.0-beta.1
Implemented security features to better manage access to the native javascript bridge.
Platform Interface
- Updated static
fromMap
implementation for some classes - Updated
kJavaScriptHandlerForbiddenNames
list - Added
PlatformInAppLocalhostServer.onData
parameter to set a custom on data server callback - Added
javaScriptBridgeEnabled
,javaScriptBridgeOriginAllowList
,javaScriptBridgeForMainFrameOnly
,pluginScriptsOriginAllowList
,pluginScriptsForMainFrameOnly
,javaScriptHandlersOriginAllowList
,javaScriptHandlersForMainFrameOnly
,scrollMultiplier
InAppWebViewSettings parameters - Added
setJavaScriptBridgeName
,getJavaScriptBridgeName
static WebView controller methods - Added
requestFocus
WebView method - Added
onProcessFailed
WebView event - Added
regexToAllowSyncUrlLoading
Android-specific property toInAppWebViewSettings
- Added
JavaScriptHandlerFunctionData
type - Deprecated
JavaScriptHandlerCallback
type in favor ofJavaScriptHandlerFunction
type - Deprecated
InAppWebViewSettings.forceDark
andInAppWebViewSettings.forceDarkStrategy
Android-only properties in favor ofInAppWebViewSettings.algorithmicDarkeningAllowed
- Fixed X509Certificate PEM base64 decoding
- Fixed specific URLAuthenticationChallenge type for
onReceivedHttpAuthRequest
,onReceivedServerTrustAuthRequest
,onReceivedClientCertRequest
events
Android Platform
- Added
InAppWebViewController.enableSlowWholeDocumentDraw
static method - Added
CookieManager.flush
method - Added support for
UserScript.forMainFrameOnly
parameter - Implemented
requestFocus
WebView method - Updated UserScript at document end implementation
- Updated
InAppWebViewController.takeScreenshot
implementation to support screenshot out of visible viewport whenInAppWebViewController.enableSlowWholeDocumentDraw
is called - Fixed "After dispose a InAppWebViewKeepAlive using InAppWebViewController.disposeKeepAlive. NullPointerException is thrown when main activity enter destroyed state." #2025
- Fixed crash when trying to open InAppBrowser with R.menu.menu_main on release mode
- Fixed "android.webkit.WebSettingsWrapper cannot be cast to com.android.webview.chromium.ContentSettingsAdapter" #2397
- Merged "Prevent blank InAppBrowser Activity from being restored" #1984 (thanks to ShuheiSuzuki-07)
- Merged "Update Android Cookie Expiration date format to 24-hour format (HH)" #2389 (thanks to takuyaaaaaaahaaaaaa)
- Merged "[Android] allow sync navigation requests using a regular expression" #2008 (thanks to lyb5834)
macOS and iOS Platforms
- Implemented
requestFocus
WebView method - Updated ConsoleLogJS internal PluginScript to main-frame only as using it on non-main frames could cause issues such as #1738
- Moved
WKUserContentController
initialization onpreWKWebViewConfiguration
to fix possibleundefined is not an object (evaluating 'window.webkit.messageHandlers')
javascript error - Added support for
UserScript.allowedOriginRules
parameter - Merged "change priority of DispatchQueue" #2322 (thanks to nnnlog)
- ios: Fixed
show
,hide
methods andhidden
setting forInAppBrowser
- macOS: Implemented also
clearFocus
WebView method - macOS: Implemented workaround for "[macOS] Copy Shortcut does not work if TextField outside of WebView has focus" #2380
Windows Platform
- Updated
scrollMultiplier
default value from 6 to 1 - Added support for
UserScript.allowedOriginRules
andUserScript.forMainFrameOnly
parameters - Implemented
onReceivedHttpAuthRequest
,onReceivedClientCertRequest
,onReceivedServerTrustAuthRequest
,onRenderProcessGone
,onRenderProcessUnresponsive
,onWebContentProcessDidTerminate
,onProcessFailed
WebView events - Implemented
clearSslPreferences
WebView method - Fixed
get_optional_fl_map_value
implementation inutils/flutter.h
- Fixed "Error in transparentBackground handling in Windows" #2391
Web Platform
v6.1.5
- Updated dependencies to the latest versions for all platform implementations:
flutter_inappwebview_windows
:^0.5.0
->^0.6.0
Windows Platform
- Updated code to support multiple flutter windows
- Fixed
InAppWebViewController.callAsyncJavaScript
not working with JSON objects - Fixed
onLoadResourceWithCustomScheme
WebView event called every time
v6.1.4
6.1.4
- Updated dependencies to the latest versions for all platform implementations:
flutter_inappwebview_platform_interface
:^1.2.0
->^1.3.0
flutter_inappwebview_android
:^1.1.1
->^1.1.3
flutter_inappwebview_ios
:^1.1.1
->^1.1.2
flutter_inappwebview_macos
:^1.1.1
->^1.1.2
flutter_inappwebview_web
:^1.1.1
->^1.1.2
flutter_inappwebview_windows
:^0.4.0
->^0.5.0
Android Platform
- Removed webview/plugin_scripts_js/ConsoleLogJS.java file, use native WebChromeClient.onConsoleMessage instead
Windows Platform
- Implemented
shouldInterceptRequest
,onLoadResourceWithCustomScheme
WebView events
v6.1.3
- Updated dependencies to the latest versions for all platform implementations:
flutter_inappwebview_platform_interface
:^1.1.0
->^1.2.0
flutter_inappwebview_android
:^1.1.0+4
->^1.1.1
flutter_inappwebview_ios
:^1.1.0+3
->^1.1.1
flutter_inappwebview_macos
:^1.1.0+3
->^1.1.1
flutter_inappwebview_web
:^1.1.0+2
->^1.1.1
flutter_inappwebview_windows
:^0.3.0
->^0.4.0
Windows Platform
- Updated
shouldOverrideUrlLoading
implementation using the Chrome DevTools Protocol API Fetch.requestPaused event
v6.1.2
- Updated minimum platform implementation versions
Windows Platform
- Implemented
pause
,resume
,getCertificate
methods forInAppWebViewController
- Implemented
onPermissionRequest
WebView event - Fixed
InAppWebViewController.evaluateJavascript
not working with JSON objects - Fixed
InAppWebViewManager::METHOD_CHANNEL_NAME
c++ value - Fixed
InAppWebViewController.takeScreenshot
to behave consistently with the other platforms
v6.1.1
- Updated README
- Updated pubspec.yaml
- Updated minimum platform implementation versions
v6.1.0
- Added initial Windows support
- Added
InAppWebView
widget MacOS support - Added privacy manifest for MacOS
- Migrated web support to
package:web
. - Updated minimum supported SDK version to Flutter 3.24/Dart 3.5.
- Updated androidx.webkit:webkit:1.8.0 to androidx.webkit:webkit:1.12.0
- Updated androidx.browser:browser:1.6.0 to androidx.browser:browser:1.8.0
- Fixed "[MACOS] launching InAppBrowser with 'hidden: true' calls onExit immediately" #1939
- Fixed XCode 16 build
- Removed unsupported WebViewFeature.SUPPRESS_ERROR_PAGE
- Merged "Add privacy manifest for iOS" #2029 (thanks to ueman)
- Merged "Remove references to deprecated v1 Android embedding" #2176 (thanks to gmackall)
v6.0.0
- Updated minimum platform interface and implementation versions
- Merged "Added == operator and hashCode to WebUri" #1941 (thanks to daisukeueta)
v6.0.0-rc.3
- Updated minimum platform interface and implementation versions
- Fix typos and other code improvements (thanks to michalsrutek)
- Fixed "runtime issue of SecTrustCopyExceptions 'This method should not be called on the main thread as it may lead to UI unresponsiveness.' when using onReceivedServerTrustAuthRequest" #1924
- Merged "💥 Fix iPad crash due to missing sourceView" #1933 (thanks to michalsrutek)
- Merged "💥 Fix crash - remove force unwrapping from dispose method" #1932 (thanks to michalsrutek)
v6.0.0-rc.2
- Updated minimum platform interface and implementation versions
- Added
CustomPathHandler
class to be able to implement Android custom path handlers forWebViewAssetLoader