Updated minimum platform interface and implementation versions, Fixed events not called on InAppBrowser and ChromeSafariBrowser opening same instance multiple times
This commit is contained in:
parent
290cfd6efa
commit
df678091e9
|
@ -1,3 +1,8 @@
|
||||||
|
## 6.0.0-beta.31
|
||||||
|
|
||||||
|
- Updated minimum platform interface and implementation versions
|
||||||
|
- Fixed events not called on `InAppBrowser` and `ChromeSafariBrowser` opening same instance multiple times
|
||||||
|
|
||||||
## 6.0.0-beta.30
|
## 6.0.0-beta.30
|
||||||
|
|
||||||
- Updated minimum platform interface and implementation versions
|
- Updated minimum platform interface and implementation versions
|
||||||
|
|
|
@ -42,13 +42,15 @@ class ChromeSafariBrowser implements PlatformChromeSafariBrowserEvents {
|
||||||
@Deprecated('Use settings instead')
|
@Deprecated('Use settings instead')
|
||||||
// ignore: deprecated_member_use_from_same_package
|
// ignore: deprecated_member_use_from_same_package
|
||||||
ChromeSafariBrowserClassOptions? options,
|
ChromeSafariBrowserClassOptions? options,
|
||||||
ChromeSafariBrowserSettings? settings}) =>
|
ChromeSafariBrowserSettings? settings}) {
|
||||||
platform.open(
|
this.platform.eventHandler = this;
|
||||||
url: url,
|
return platform.open(
|
||||||
headers: headers,
|
url: url,
|
||||||
otherLikelyURLs: otherLikelyURLs,
|
headers: headers,
|
||||||
options: options,
|
otherLikelyURLs: otherLikelyURLs,
|
||||||
settings: settings);
|
options: options,
|
||||||
|
settings: settings);
|
||||||
|
}
|
||||||
|
|
||||||
///{@macro flutter_inappwebview_platform_interface.PlatformChromeSafariBrowser.launchUrl}
|
///{@macro flutter_inappwebview_platform_interface.PlatformChromeSafariBrowser.launchUrl}
|
||||||
Future<void> launchUrl({
|
Future<void> launchUrl({
|
||||||
|
|
|
@ -95,17 +95,21 @@ class InAppBrowser implements PlatformInAppBrowserEvents {
|
||||||
Future<void> openUrlRequest(
|
Future<void> openUrlRequest(
|
||||||
{required URLRequest urlRequest,
|
{required URLRequest urlRequest,
|
||||||
@Deprecated('Use settings instead') InAppBrowserClassOptions? options,
|
@Deprecated('Use settings instead') InAppBrowserClassOptions? options,
|
||||||
InAppBrowserClassSettings? settings}) =>
|
InAppBrowserClassSettings? settings}) {
|
||||||
platform.openUrlRequest(
|
this.platform.eventHandler = this;
|
||||||
urlRequest: urlRequest, options: options, settings: settings);
|
return platform.openUrlRequest(
|
||||||
|
urlRequest: urlRequest, options: options, settings: settings);
|
||||||
|
}
|
||||||
|
|
||||||
///{@macro flutter_inappwebview_platform_interface.PlatformInAppBrowser.openFile}
|
///{@macro flutter_inappwebview_platform_interface.PlatformInAppBrowser.openFile}
|
||||||
Future<void> openFile(
|
Future<void> openFile(
|
||||||
{required String assetFilePath,
|
{required String assetFilePath,
|
||||||
@Deprecated('Use settings instead') InAppBrowserClassOptions? options,
|
@Deprecated('Use settings instead') InAppBrowserClassOptions? options,
|
||||||
InAppBrowserClassSettings? settings}) =>
|
InAppBrowserClassSettings? settings}) {
|
||||||
platform.openFile(
|
this.platform.eventHandler = this;
|
||||||
assetFilePath: assetFilePath, options: options, settings: settings);
|
return platform.openFile(
|
||||||
|
assetFilePath: assetFilePath, options: options, settings: settings);
|
||||||
|
}
|
||||||
|
|
||||||
///{@macro flutter_inappwebview_platform_interface.PlatformInAppBrowser.openData}
|
///{@macro flutter_inappwebview_platform_interface.PlatformInAppBrowser.openData}
|
||||||
Future<void> openData(
|
Future<void> openData(
|
||||||
|
@ -116,16 +120,18 @@ class InAppBrowser implements PlatformInAppBrowserEvents {
|
||||||
@Deprecated("Use historyUrl instead") Uri? androidHistoryUrl,
|
@Deprecated("Use historyUrl instead") Uri? androidHistoryUrl,
|
||||||
WebUri? historyUrl,
|
WebUri? historyUrl,
|
||||||
@Deprecated('Use settings instead') InAppBrowserClassOptions? options,
|
@Deprecated('Use settings instead') InAppBrowserClassOptions? options,
|
||||||
InAppBrowserClassSettings? settings}) =>
|
InAppBrowserClassSettings? settings}) {
|
||||||
platform.openData(
|
this.platform.eventHandler = this;
|
||||||
data: data,
|
return platform.openData(
|
||||||
mimeType: mimeType,
|
data: data,
|
||||||
encoding: encoding,
|
mimeType: mimeType,
|
||||||
baseUrl: baseUrl,
|
encoding: encoding,
|
||||||
androidHistoryUrl: androidHistoryUrl,
|
baseUrl: baseUrl,
|
||||||
historyUrl: historyUrl,
|
androidHistoryUrl: androidHistoryUrl,
|
||||||
options: options,
|
historyUrl: historyUrl,
|
||||||
settings: settings);
|
options: options,
|
||||||
|
settings: settings);
|
||||||
|
}
|
||||||
|
|
||||||
///{@macro flutter_inappwebview_platform_interface.PlatformInAppBrowser.openWithSystemBrowser}
|
///{@macro flutter_inappwebview_platform_interface.PlatformInAppBrowser.openWithSystemBrowser}
|
||||||
static Future<void> openWithSystemBrowser({required WebUri url}) =>
|
static Future<void> openWithSystemBrowser({required WebUri url}) =>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name: flutter_inappwebview
|
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.
|
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.30
|
version: 6.0.0-beta.31
|
||||||
homepage: https://inappwebview.dev/
|
homepage: https://inappwebview.dev/
|
||||||
repository: https://github.com/pichillilorenzo/flutter_inappwebview
|
repository: https://github.com/pichillilorenzo/flutter_inappwebview
|
||||||
issue_tracker: https://github.com/pichillilorenzo/flutter_inappwebview/issues
|
issue_tracker: https://github.com/pichillilorenzo/flutter_inappwebview/issues
|
||||||
|
@ -18,11 +18,11 @@ environment:
|
||||||
dependencies:
|
dependencies:
|
||||||
flutter:
|
flutter:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
flutter_inappwebview_platform_interface: ^1.0.2
|
flutter_inappwebview_platform_interface: ^1.0.5
|
||||||
flutter_inappwebview_android: ^1.0.2
|
flutter_inappwebview_android: ^1.0.5
|
||||||
flutter_inappwebview_ios: ^1.0.2
|
flutter_inappwebview_ios: ^1.0.5
|
||||||
flutter_inappwebview_macos: ^1.0.1
|
flutter_inappwebview_macos: ^1.0.2
|
||||||
flutter_inappwebview_web: ^1.0.1
|
flutter_inappwebview_web: ^1.0.2
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
## 1.0.5
|
||||||
|
|
||||||
|
- Call `super.dispose();` on `InAppBrowser` and `ChromeSafari` implementations
|
||||||
|
|
||||||
## 1.0.4
|
## 1.0.4
|
||||||
|
|
||||||
- Throw platform exception when ProcessGlobalConfig.apply throws an error on the native side to be able to catch it on Flutter side
|
- Throw platform exception when ProcessGlobalConfig.apply throws an error on the native side to be able to catch it on Flutter side
|
||||||
|
|
|
@ -81,7 +81,7 @@ packages:
|
||||||
path: ".."
|
path: ".."
|
||||||
relative: true
|
relative: true
|
||||||
source: path
|
source: path
|
||||||
version: "1.0.2"
|
version: "1.0.4"
|
||||||
flutter_inappwebview_internal_annotations:
|
flutter_inappwebview_internal_annotations:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -93,11 +93,10 @@ packages:
|
||||||
flutter_inappwebview_platform_interface:
|
flutter_inappwebview_platform_interface:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: flutter_inappwebview_platform_interface
|
path: "../../flutter_inappwebview_platform_interface"
|
||||||
sha256: "14e7a7fb25fde02e753ed8fd5276f3b8a49f6e7ee2867c20d02ceef9e3091542"
|
relative: true
|
||||||
url: "https://pub.dev"
|
source: path
|
||||||
source: hosted
|
version: "1.0.4"
|
||||||
version: "1.0.2"
|
|
||||||
flutter_lints:
|
flutter_lints:
|
||||||
dependency: "direct dev"
|
dependency: "direct dev"
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -370,7 +370,7 @@ class AndroidChromeSafariBrowser extends PlatformChromeSafariBrowser
|
||||||
@override
|
@override
|
||||||
@mustCallSuper
|
@mustCallSuper
|
||||||
void dispose() {
|
void dispose() {
|
||||||
|
super.dispose();
|
||||||
disposeChannel();
|
disposeChannel();
|
||||||
eventHandler = null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -359,12 +359,12 @@ class AndroidInAppBrowser extends PlatformInAppBrowser with ChannelController {
|
||||||
@override
|
@override
|
||||||
@mustCallSuper
|
@mustCallSuper
|
||||||
void dispose() {
|
void dispose() {
|
||||||
|
super.dispose();
|
||||||
disposeChannel();
|
disposeChannel();
|
||||||
_webViewController?.dispose();
|
_webViewController?.dispose();
|
||||||
_webViewController = null;
|
_webViewController = null;
|
||||||
pullToRefreshController?.dispose();
|
pullToRefreshController?.dispose();
|
||||||
findInteractionController?.dispose();
|
findInteractionController?.dispose();
|
||||||
eventHandler = null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name: flutter_inappwebview_android
|
name: flutter_inappwebview_android
|
||||||
description: Android implementation of the flutter_inappwebview plugin.
|
description: Android implementation of the flutter_inappwebview plugin.
|
||||||
version: 1.0.4
|
version: 1.0.5
|
||||||
homepage: https://inappwebview.dev/
|
homepage: https://inappwebview.dev/
|
||||||
repository: https://github.com/pichillilorenzo/flutter_inappwebview/tree/master/flutter_inappwebview_android
|
repository: https://github.com/pichillilorenzo/flutter_inappwebview/tree/master/flutter_inappwebview_android
|
||||||
issue_tracker: https://github.com/pichillilorenzo/flutter_inappwebview/issues
|
issue_tracker: https://github.com/pichillilorenzo/flutter_inappwebview/issues
|
||||||
|
@ -18,7 +18,7 @@ environment:
|
||||||
dependencies:
|
dependencies:
|
||||||
flutter:
|
flutter:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
flutter_inappwebview_platform_interface: ^1.0.2
|
flutter_inappwebview_platform_interface: ^1.0.5
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
## 1.0.5
|
||||||
|
|
||||||
|
- Call `super.dispose();` on `InAppBrowser` and `ChromeSafari` implementations
|
||||||
|
|
||||||
## 1.0.4
|
## 1.0.4
|
||||||
|
|
||||||
- Fixed "Cloudflare Turnstile failure" [#1738](https://github.com/pichillilorenzo/flutter_inappwebview/issues/1738)
|
- Fixed "Cloudflare Turnstile failure" [#1738](https://github.com/pichillilorenzo/flutter_inappwebview/issues/1738)
|
||||||
|
|
|
@ -212,7 +212,7 @@ class IOSChromeSafariBrowser extends PlatformChromeSafariBrowser
|
||||||
@override
|
@override
|
||||||
@mustCallSuper
|
@mustCallSuper
|
||||||
void dispose() {
|
void dispose() {
|
||||||
|
super.dispose();
|
||||||
disposeChannel();
|
disposeChannel();
|
||||||
eventHandler = null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -358,12 +358,12 @@ class IOSInAppBrowser extends PlatformInAppBrowser with ChannelController {
|
||||||
@override
|
@override
|
||||||
@mustCallSuper
|
@mustCallSuper
|
||||||
void dispose() {
|
void dispose() {
|
||||||
|
super.dispose();
|
||||||
disposeChannel();
|
disposeChannel();
|
||||||
_webViewController?.dispose();
|
_webViewController?.dispose();
|
||||||
_webViewController = null;
|
_webViewController = null;
|
||||||
pullToRefreshController?.dispose();
|
pullToRefreshController?.dispose();
|
||||||
findInteractionController?.dispose();
|
findInteractionController?.dispose();
|
||||||
eventHandler = null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name: flutter_inappwebview_ios
|
name: flutter_inappwebview_ios
|
||||||
description: iOS implementation of the flutter_inappwebview plugin.
|
description: iOS implementation of the flutter_inappwebview plugin.
|
||||||
version: 1.0.4
|
version: 1.0.5
|
||||||
homepage: https://inappwebview.dev/
|
homepage: https://inappwebview.dev/
|
||||||
repository: https://github.com/pichillilorenzo/flutter_inappwebview/tree/master/flutter_inappwebview_ios
|
repository: https://github.com/pichillilorenzo/flutter_inappwebview/tree/master/flutter_inappwebview_ios
|
||||||
issue_tracker: https://github.com/pichillilorenzo/flutter_inappwebview/issues
|
issue_tracker: https://github.com/pichillilorenzo/flutter_inappwebview/issues
|
||||||
|
@ -18,7 +18,7 @@ environment:
|
||||||
dependencies:
|
dependencies:
|
||||||
flutter:
|
flutter:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
flutter_inappwebview_platform_interface: ^1.0.2
|
flutter_inappwebview_platform_interface: ^1.0.5
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
## 1.0.3
|
||||||
|
|
||||||
|
- Call `super.dispose();` on `InAppBrowser` implementation
|
||||||
|
|
||||||
## 1.0.2
|
## 1.0.2
|
||||||
|
|
||||||
- Fixed "Cloudflare Turnstile failure" [#1738](https://github.com/pichillilorenzo/flutter_inappwebview/issues/1738)
|
- Fixed "Cloudflare Turnstile failure" [#1738](https://github.com/pichillilorenzo/flutter_inappwebview/issues/1738)
|
||||||
|
|
|
@ -353,12 +353,12 @@ class MacOSInAppBrowser extends PlatformInAppBrowser with ChannelController {
|
||||||
@override
|
@override
|
||||||
@mustCallSuper
|
@mustCallSuper
|
||||||
void dispose() {
|
void dispose() {
|
||||||
|
super.dispose();
|
||||||
disposeChannel();
|
disposeChannel();
|
||||||
_webViewController?.dispose();
|
_webViewController?.dispose();
|
||||||
_webViewController = null;
|
_webViewController = null;
|
||||||
pullToRefreshController?.dispose();
|
pullToRefreshController?.dispose();
|
||||||
findInteractionController?.dispose();
|
findInteractionController?.dispose();
|
||||||
eventHandler = null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name: flutter_inappwebview_macos
|
name: flutter_inappwebview_macos
|
||||||
description: macOS implementation of the flutter_inappwebview plugin.
|
description: macOS implementation of the flutter_inappwebview plugin.
|
||||||
version: 1.0.2
|
version: 1.0.3
|
||||||
homepage: https://inappwebview.dev/
|
homepage: https://inappwebview.dev/
|
||||||
repository: https://github.com/pichillilorenzo/flutter_inappwebview/tree/master/flutter_inappwebview_macos
|
repository: https://github.com/pichillilorenzo/flutter_inappwebview/tree/master/flutter_inappwebview_macos
|
||||||
issue_tracker: https://github.com/pichillilorenzo/flutter_inappwebview/issues
|
issue_tracker: https://github.com/pichillilorenzo/flutter_inappwebview/issues
|
||||||
|
@ -18,7 +18,7 @@ environment:
|
||||||
dependencies:
|
dependencies:
|
||||||
flutter:
|
flutter:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
flutter_inappwebview_platform_interface: ^1.0.2
|
flutter_inappwebview_platform_interface: ^1.0.5
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
## 1.0.5
|
||||||
|
|
||||||
|
- Must call super `dispose` method for `PlatformInAppBrowser` and `PlatformChromeSafariBrowser`
|
||||||
|
|
||||||
## 1.0.4
|
## 1.0.4
|
||||||
|
|
||||||
- Expose missing `InAppBrowserSettings.menuButtonColor` option
|
- Expose missing `InAppBrowserSettings.menuButtonColor` option
|
||||||
|
|
|
@ -466,9 +466,9 @@ abstract class PlatformChromeSafariBrowser extends PlatformInterface
|
||||||
///Disposes the channel and event handler.
|
///Disposes the channel and event handler.
|
||||||
///{@endtemplate}
|
///{@endtemplate}
|
||||||
@override
|
@override
|
||||||
|
@mustCallSuper
|
||||||
void dispose() {
|
void dispose() {
|
||||||
throw UnimplementedError(
|
eventHandler = null;
|
||||||
'dispose is not implemented on the current platform');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -474,9 +474,9 @@ abstract class PlatformInAppBrowser extends PlatformInterface
|
||||||
///Disposes the channel and controllers.
|
///Disposes the channel and controllers.
|
||||||
///{@endtemplate}
|
///{@endtemplate}
|
||||||
@override
|
@override
|
||||||
|
@mustCallSuper
|
||||||
void dispose() {
|
void dispose() {
|
||||||
throw UnimplementedError(
|
eventHandler = null;
|
||||||
'dispose is not implemented on the current platform');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name: flutter_inappwebview_platform_interface
|
name: flutter_inappwebview_platform_interface
|
||||||
description: A common platform interface for the flutter_inappwebview plugin.
|
description: A common platform interface for the flutter_inappwebview plugin.
|
||||||
version: 1.0.4
|
version: 1.0.5
|
||||||
homepage: https://inappwebview.dev/
|
homepage: https://inappwebview.dev/
|
||||||
repository: https://github.com/pichillilorenzo/flutter_inappwebview/tree/master/flutter_inappwebview_platform_interface
|
repository: https://github.com/pichillilorenzo/flutter_inappwebview/tree/master/flutter_inappwebview_platform_interface
|
||||||
issue_tracker: https://github.com/pichillilorenzo/flutter_inappwebview/issues
|
issue_tracker: https://github.com/pichillilorenzo/flutter_inappwebview/issues
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
## 1.0.2
|
||||||
|
|
||||||
|
- Updated `flutter_inappwebview_platform_interface` version dependency to `1.0.5`
|
||||||
|
|
||||||
## 1.0.1
|
## 1.0.1
|
||||||
|
|
||||||
- Updated `flutter_inappwebview_platform_interface` version dependency to `1.0.2`
|
- Updated `flutter_inappwebview_platform_interface` version dependency to `1.0.2`
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name: flutter_inappwebview_web
|
name: flutter_inappwebview_web
|
||||||
description: Web implementation of the flutter_inappwebview plugin.
|
description: Web implementation of the flutter_inappwebview plugin.
|
||||||
version: 1.0.1
|
version: 1.0.2
|
||||||
homepage: https://inappwebview.dev/
|
homepage: https://inappwebview.dev/
|
||||||
repository: https://github.com/pichillilorenzo/flutter_inappwebview/tree/master/flutter_inappwebview_web
|
repository: https://github.com/pichillilorenzo/flutter_inappwebview/tree/master/flutter_inappwebview_web
|
||||||
issue_tracker: https://github.com/pichillilorenzo/flutter_inappwebview/issues
|
issue_tracker: https://github.com/pichillilorenzo/flutter_inappwebview/issues
|
||||||
|
@ -21,7 +21,7 @@ dependencies:
|
||||||
flutter_web_plugins:
|
flutter_web_plugins:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
js: ^0.6.4
|
js: ^0.6.4
|
||||||
flutter_inappwebview_platform_interface: ^1.0.2
|
flutter_inappwebview_platform_interface: ^1.0.5
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
|
|
Loading…
Reference in New Issue