Skip to content

Releases: smartcar/android-sdk

v3.1.2

08 Dec 22:02
850e745
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.1.1...v3.1.2

v3.1.1

08 Dec 21:57
Compare
Choose a tag to compare

What's Changed

  • fix(gradle): setup proper implementation version in gradle by @gurpreetatwal in #25

Full Changelog: v3.1.0...v3.1.1

v3.1.0

08 Dec 21:55
ffa323a
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.0.0...v3.1.0

v3.0.0

08 Dec 21:55
befae56
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.1.1...v3.0.0

v2.1.1

08 Dec 21:54
6f7ae3b
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.1.0...v2.1.1

v2.1.0

08 Dec 21:54
eb3b653
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.0.0...v2.1.0

v2.0.0

21 Jun 18:42
a757862
Compare
Choose a tag to compare

2.0.0 (2019-06-21)

BREAKING CHANGES

  • SmartcarAuth.AuthVehicleInfo is now a distinct VehicleInfo class.
  • SmartcarResponse now uses a builder class instead of a parameterized constructor.
  • SmartcarResponse.getMessage() is now SmartcarResponse.getErrorDescription()

Features

  • SmartcarResponse now returns errors and error descriptions when it previously only returned the error description.
  • If a vehicle incompatible error is returned from Smartcar Connect and the user shares their vehicle info, a VehicleInfo class will be returned in SmartcarResponse

Here's an example on how to build the new VehicleInfo class:

VehicleInfo vehicle = new VehicleInfo.Builder()
  .vin("0000")
  .make("TESLA")
  .model("Model S")
  .year(2019)
  .build();

Here's an example on how to construct and retrieve information from SmartcarResponse

SmartcarResponse smartcarResponse = new SmartcarResponse.Builder()
  .error("error")
  .errorDescription("Error message")
  .state("errorstate")
  .vehicleInfo(vehicle)
  .build();

String error = smartcarResponse.getError() // "error"
String errorDescription = smartcarResponse.getErrorDescription() // "Error message"
String state = smartcarResponse.getState() // "errorstate"
VehicleInfo vehicleInfo = smartcarResponse.getVehicleInfo() // the vehicle class from above.