The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Types of changes
Added
for new features.Changed
for changes in existing functionality.Deprecated
for soon-to-be removed features.Removed
for now removed features.Fixed
for any bug fixes.Security
in case of vulnerabilities.
- Added support for Dart 3.
- Replaced window singleton with FlutterView.
- Updated
clearCache
andclearAll
functions with optionalBuildContext
to supportFlutterView
Thanks @frederikstonge) for PR #12
- Added support to
clearCache
andclearCookies
directly fromOAuthWebAuth.instance
.
OauthWebScreen
renamed toOAuthWebScreen
andOauthWebView
renamed toOAuthWebView
.- Full code refactor to use
BaseConfiguration(...)
andOAuthConfiguration(...)
. See readme for migration. - SDK constraints updated to
sdk: ">=2.19.0 <3.0.0"
andflutter: ">=2.0.0"
.
- Fixed bug in redirect url handling that caused
invalid_grant
due to content after#
in url.
- Fixed bug on BaseOAuthFlowMixin onSuccess function that caused wrong flow cancellation on baseUrl redirect.
- Fixed bug on BaseWebView setState call after widget no longer appears in the widget tree.
- Detailed documentation added to OauthWebView parameters.
- New parameters added:
delimiter
,basicAuth
,httpClient
. Each param is described in the OauthWebView class.
- Web support added. Despite this is a breaking change update, it really doesn't brake anything, you can still use it with no change required. Nevertheless if you want Web support to be enabled then you have to do an
init()
call, check README to see details. shared_preferences
dependency added to support temporary state storage.
headers
can now be set to web view.
baseUrl
added toOauthWebView
andOauthWebScreen
to allow to get back to application when web view gets redirected to baseUrl. AbaseUrl
redirect will be treated as aonCancel
.
- T? _ambiguate(T? value) => value; implemented for compatibility reasons to avoid warnings about unnecessary null-safety operator for SchedulerBinding.instance? and WidgetsBinding.instance?.
- WidgetsBinding.instance?.addObserver(this) added null-safety operator for stable channel compatibility.
- BaseWebView to handle basic web view with redirects. (OAuthWebView uses this under the hook).
- Boolean flags for controlling toolbar buttons visibility.
GlobalKey
s added to BaseWebScreen and OauthWebScreen to allow webview control from outside.urlStream
added to allow to asynchronously indicate web view to navigate to a different url.
- OAuthWebView extends from BaseWebView.
- OAuthWebView
onSuccess
function changed toonSuccessAuth
.
useHybridComposition
set to true for Android to avoid bugs with keyboard on recent Android versions > 10.- AndroidManifest from example project updated to allow project to run in Android 12.
- Minor bugs fixed on UI state update.
contentLocale
property can be set to indicate the web auth to use that locale for internationalization.
- README updated
- First release