Skip to content

Releases: smartcar/ios-sdk

v6.2.2

17 Oct 20:22

Choose a tag to compare

Buddy Generated Tag

v6.2.0

09 Jul 21:14

Choose a tag to compare

Buddy Generated Tag

v6.1.6

07 Jul 22:12
e6189d5

Choose a tag to compare

fix: bump podspec version (#92)

v6.1.5

24 Jun 18:10
b74416a

Choose a tag to compare

Travis Generated Tag

v3.0.1

22 Jun 01:09
28d1480

Choose a tag to compare

3.0.1 (2019-06-21)

BREAKING CHANGES

  • AuthorizatonError is 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

  • SmartcarAuth now 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 VehicleInfo class will be returned by SmartcarAuth
  • VehicleInfo will 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

26 Jan 23:00

Choose a tag to compare

Official private release of SmartcarAuth

Pre-release for experimenting with CocoaPod

15 Jan 03:45

Choose a tag to compare

V0.1 contains all functionalities except callback for custom URL schemes.