diff --git a/CHANGELOG.md b/CHANGELOG.md index 996ffd8d..8fd74f9c 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## 6.0.0-beta.7 + +- Updated Android hybrid composition implementation + +### BREAKING CHANGES + +- Minimum Flutter version `3.0.0` + ## 6.0.0-beta.6 - Added `InAppWebViewSettings.allowBackgroundAudioPlaying` for Android @@ -63,6 +71,22 @@ - Removed `URLProtectionSpace.iosIsProxy` property - `historyUrl` and `baseUrl` of `InAppWebViewInitialData` can be `null` +## 5.7.0 + +- Added `PlatformViewsService.initExpensiveAndroidView` for Android + +### BREAKING CHANGES + +- Flutter minimum version `3.0.0` + +## 5.6.0+2 + +- Revert back the usage of `PlatformViewsService.initExpensiveAndroidView` + +## 5.6.0+1 + +- Fixed Android hybrid composition on Flutter 2 + ## 5.6.0 - Fixed "URLCredential.fromMap returns null for username" [#1205](https://github.com/pichillilorenzo/flutter_inappwebview/issues/1205) diff --git a/README.md b/README.md index f8a74bb7..483972a2 100755 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ Send a submission request to the [Submit App](https://inappwebview.dev/submit-ap ## Requirements - Dart sdk: ">=2.14.0 <3.0.0" -- Flutter: ">=2.5.0" +- Flutter: ">=3.0.0" - Android: `minSdkVersion 19` and add support for `androidx` (see [AndroidX Migration](https://flutter.dev/docs/development/androidx-migration) to migrate an existing app) - iOS 9.0+: `--ios-language swift`, Xcode version `>= 14` - MacOS 10.11+: Xcode version `>= 14` diff --git a/example/ios/Flutter/flutter_export_environment.sh b/example/ios/Flutter/flutter_export_environment.sh index fae63896..f90e8505 100755 --- a/example/ios/Flutter/flutter_export_environment.sh +++ b/example/ios/Flutter/flutter_export_environment.sh @@ -1,6 +1,6 @@ #!/bin/sh # This is a generated file; do not edit or check into version control. -export "FLUTTER_ROOT=/Users/lorenzopichilli/fvm/versions/2.10.4" +export "FLUTTER_ROOT=/Users/lorenzopichilli/fvm/versions/3.3.5" export "FLUTTER_APPLICATION_PATH=/Users/lorenzopichilli/Desktop/flutter_inappwebview/example" export "COCOAPODS_PARALLEL_CODE_SIGN=true" export "FLUTTER_TARGET=lib/main.dart" diff --git a/example/pubspec.yaml b/example/pubspec.yaml index ea4d2bac..a49055bd 100755 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -22,10 +22,10 @@ dependencies: # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^1.0.4 - flutter_downloader: ^1.7.3 - path_provider: ^2.0.9 - permission_handler: ^10.0.2 - url_launcher: ^6.0.20 + flutter_downloader: 1.7.3 + path_provider: 2.0.9 + permission_handler: 10.0.2 + url_launcher: 6.1.6 pointer_interceptor: ^0.9.3+3 # connectivity: ^0.4.5+6 flutter_inappwebview: diff --git a/lib/src/in_app_webview/in_app_webview.dart b/lib/src/in_app_webview/in_app_webview.dart index a3e1a35f..318e9887 100755 --- a/lib/src/in_app_webview/in_app_webview.dart +++ b/lib/src/in_app_webview/in_app_webview.dart @@ -783,3 +783,22 @@ class _InAppWebViewState extends State { } } } + +extension on PlatformViewsService { + static SurfaceAndroidViewController initExpensiveAndroidView2({ + required int id, + required String viewType, + required TextDirection layoutDirection, + dynamic creationParams, + MessageCodec? creationParamsCodec, + VoidCallback? onFocus, + }) { + return PlatformViewsService.initSurfaceAndroidView( + id: id, + viewType: viewType, + layoutDirection: layoutDirection, + creationParams: creationParams, + creationParamsCodec: const StandardMessageCodec(), + ); + } +} diff --git a/pubspec.yaml b/pubspec.yaml index 610e5e40..89d154ff 100755 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,13 +1,13 @@ 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.6 +version: 6.0.0-beta.7 homepage: https://inappwebview.dev/ repository: https://github.com/pichillilorenzo/flutter_inappwebview issue_tracker: https://github.com/pichillilorenzo/flutter_inappwebview/issues environment: sdk: ">=2.14.0 <3.0.0" - flutter: ">=2.5.0" + flutter: ">=3.0.0" dependencies: flutter: