flutter_smartcar_auth 3.0.0
flutter_smartcar_auth: ^3.0.0 copied to clipboard
Flutter plugin for SmartcarAuth, enabling authentication and configuration like the native Smartcar library for iOS & Android.
3.0.0 [Breaking Changes] #
- Upgraded SmartcarAuth iOS SDK to
6.5.0. - Upgraded SmartcarAuth Android SDK to
4.3.1. - Android compile SDK version upgraded to
35(required by the transitive AndroidX dependencies of smartcar-auth4.3.1). - Android:
SmartcarCallbackis now a Kotlinfun interfacewith a nullableSmartcarResponse?; the plugin's response handler accepts the nullable type and no-ops on null. - Added
configurationError,noVehicles, andserverErrortoSmartcarErrorType(new iOS SDK error types). - Android error types now resolve to a
SmartcarErrorTypeinstead of collapsing tounknownError. The Android SDK reports Smartcar Connect's rawerrorcode (access_denied,vehicle_incompatible,invalid_subscription,no_vehicles,configuration_error,server_error), where iOS reports a typed error;SmartcarErrorType.fromRawValuenow accepts both forms. - Android now reports a
userExitedFlowfailure when the user dismisses Connect (added in smartcar-auth4.3.1), matching iOS. - BREAKING CHANGE:
SmartcarConfig.redirectUriis now optional (String?instead of a requiredString). Code that readsredirectUriexpecting a non-nullableStringwill need to handlenull. - FEAT: added
SmartcarResponseTypeenum (codeornone) and a correspondingresponseTypeproperty onSmartcarConfig, defaulting tocode. When set tonone, Smartcar Connect completes the flow without a redirect, andredirectUrican be omitted. - FEAT: added
externalIdproperty toAuthUrlBuilder, replacing the now-deprecateduserproperty. - FEAT: added
userIdandexternalIdproperties toSmartcarAuthSuccess. - FIX:
SmartcarAuthResponse.fromMapnow determines success/failure by checking for an errortypeinstead of a non-nullcode, sincecodeis legitimately absent on a successfulresponseType: noneflow. - FIX: Android now reports a
codeflow that completed without a code asmissingAuthCode, matching iOS. It previously carried no error type at all, which the change above would have surfaced as aSmartcarAuthSuccessholding a nullcode. - FIX:
Smartcar.setupthrows anArgumentErrorwhenredirectUriis missing on aSmartcarResponseType.codeflow. Both native SDKs reject that combination, and on iOS the rejection is apreconditionthat terminates the app.
2.0.1 #
- Fixes on iOS .podspec Added missing 'Extensions' folder. Thanks to sthefannygonzaga@gmail.com.
2.0.0 [Breaking Changes] #
- BREAKING CHANGE: Android compile SDK version has been upgraded to
34. - BREAKING CHANGE: iOS minimum version has been upgraded to
13. - BREAKING CHANGE: Dart minimum SDK version has been upgraded to
>=3.2.0 <4.0.0. - BREAKING CHANGE: upgraded SmartcarAuth iOS SDK to
6.0.2. - BREAKING CHANGE: upgraded SmartcarAuth Android SDK to
4.0.1. - BREAKING REFACTOR: removed
testModeproperty fromSmartcarConfigclass. - BREAKING REFACTOR:
SmartcarAuthResponseis now a sealed class. - FEAT: added two new child classes of
SmartcarAuthResponseSmartcarAuthSuccess: created after a success response from Smartcar Connect.SmartcarAuthFailure: created after a failed response from Smartcar Connect.
- FEAT: added
modeproperty toSmartcarConfigclass. - FEAT: added
userproperty toAuthUrlBuilderclass.
1.0.6 #
- Updated spelling for
controlSecurityenum. Thanks to @nick.maiello. - Added new missing permissions in
SmartcarPermissionenum. Thanks to @nick.maiello. - Updated repository location.
1.0.5 #
- Updated repository location
1.0.4 #
- Upgraded Android Smartcar-Auth SDK to
3.2.0. - Upgraded iOS SmartcarAuth SDK to
5.3.1. - New property
flagscan be set on AuthUrlBuilder class. - New property
virtualKeyUrlon SmartcarAuthResponse class.
1.0.3 #
- Infinite loop fix
- Documentation improvements
1.0.2 #
- Repository information updated
1.0.1 #
- Android fixes & README improvements
1.0.0 #
- Initial release 🚀
