Releases: smartcar/android-sdk
Releases · smartcar/android-sdk
v3.1.2
v3.1.1
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
What's Changed
- feat: add setter fn for feature flags by @allisonc07 in #24
Full Changelog: v3.0.0...v3.1.0
v3.0.0
What's Changed
- Refactor builder usage by @sankethkatta in #22
- Update README to include the customtabs dependency. by @sankethkatta in #23
Full Changelog: v2.1.1...v3.0.0
v2.1.1
What's Changed
- Feat: Add Single select vin by @adolfoportilla in #20
Full Changelog: v2.1.0...v2.1.1
v2.1.0
v2.0.0
2.0.0 (2019-06-21)
BREAKING CHANGES
SmartcarAuth.AuthVehicleInfo
is now a distinctVehicleInfo
class.SmartcarResponse
now uses a builder class instead of a parameterized constructor.SmartcarResponse.getMessage()
is nowSmartcarResponse.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 inSmartcarResponse
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.