Releases: smartcar/ios-sdk
Releases · smartcar/ios-sdk
v6.2.2
v6.2.0
Buddy Generated Tag
v6.1.6
fix: bump podspec version (#92)
v6.1.5
Travis Generated Tag
v3.0.1
3.0.1 (2019-06-21)
BREAKING CHANGES
AuthorizatonErroris now a struct-based Error instead of a enum-based Error, this allows the developer to receive error description and vehicle info if Smartcar Connect returns an error.
Features
SmartcarAuthnow will return an error description with an error instead of just an error.- If a vehicle incompatible error is returned from Smartcar Connect and the user shares their vehicle info, a
VehicleInfoclass will be returned bySmartcarAuth VehicleInfowill now hold vin, year and model in addition to make as vehicle incompatible errors may return vehicle information.
Here's an example on how to use the new AuthorizationError and retrieve the error description and VehicleInfo:
let vehicle = VehicleInfo(vin: "0000", make: "TESLA", year: 2019, model: "Model S")
// How to construct the new struct based error
let error = AuthorizationError(type: .vehicleIncompatible,
errorDescription: "The user's vehicle is not compatible.", vehicleInfo: vehicle)
/* Since errorDescription and vehicleInfo are Optionals in the AuthorizationError,
they must be unwrapped. */
if let errorDescription = error.errorDescription {
// Do something with errorDescription
}
if let vehicleInfo = error.vehicleInfo {
// Do something with vehicleInfo
}SmartcarAuth 1.0.0
Official private release of SmartcarAuth
Pre-release for experimenting with CocoaPod
V0.1 contains all functionalities except callback for custom URL schemes.