This commit is contained in:
Lorenzo Pichilli 2023-06-12 08:58:53 +02:00
parent 7d49baa8e0
commit 93f51086e1
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,7 @@
## 6.0.0-beta.24+1
- Fixed "Can't compile on Android" [#1691](https://github.com/pichillilorenzo/flutter_inappwebview/issues/1691)
## 6.0.0-beta.24
- Added InAppWebView keep alive feature

View File

@ -670,7 +670,7 @@ public class InAppWebViewChromeClient extends WebChromeClient implements PluginR
}
if (inAppWebView != null && inAppWebView.channelDelegate != null) {
int finalWindowId = windowId;
final int finalWindowId = windowId;
inAppWebView.channelDelegate.onCreateWindow(createWindowAction, new WebViewChannelDelegate.CreateWindowCallback() {
@Override
public boolean nonNullSuccess(@NonNull Boolean handledByClient) {
@ -1185,6 +1185,9 @@ public class InAppWebViewChromeClient extends WebChromeClient implements PluginR
Log.e(LOG_TAG, "Error occurred while creating the File", e);
e.printStackTrace();
}
if (capturedFile == null) {
return null;
}
// for versions below 6.0 (23) we use the old File creation & permissions model
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {

View File

@ -1,6 +1,6 @@
name: flutter_inappwebview
description: A Flutter plugin that allows you to add an inline webview, to use an headless webview, and to open an in-app browser window.
version: 6.0.0-beta.24
version: 6.0.0-beta.24+1
homepage: https://inappwebview.dev/
repository: https://github.com/pichillilorenzo/flutter_inappwebview
issue_tracker: https://github.com/pichillilorenzo/flutter_inappwebview/issues