1.24 -> 1.25

Trip Service changes

  • geometry is removed from Trip.Expansion. Please use points instead. Check here for more info on newly added expansions.

tripService.fetch(expansions: [.points, .vehicle], { result: Result<Content?>? ->
    if (result?.value == null || result.throwable != null) {
        // failure
    } else {
        // Success
        val content = result.value
    }
})
  • TripService.fetch and TripService.fetchAll accepts one more parameter as roles to filter roles while fetching trips

tripService.fetch(expansions: [.points, .vehicle],  roles: [.driver], { result: Result<Content?>? ->
    if (result?.value == null || result.throwable != null) {
        // failure
    } else {
        // Success
        val content = result.value
    }
})

Adding Vehicle ID to trip files

val dsDevice = DsDevice(deviceId = "mock-id", vehicleId =  "50")
DsDeviceManager.associateDevice(context, dsDevice)

AccountRole Enum Expanded:

  • Two new cases have been added to the AccountRole enum:

  • namedDriver (for the "NAMED_DRIVER" role)

  • nonDrivingOwner (for the "NON_DRIVING_OWNER" role)

  • If you use AccountRole in switch statements, you must handle the new cases (NAMED_DRIVER and NON_DRIVING_OWNER) to avoid compiler errors or unexpected behavior.

DsDevice Changes:

  • The DsDevice's batteryLevel property type is changed from Float to Int

    • var batteryLevel: Int?

Last updated