This pull request updates the Smartcar Java SDK from version 4.4.0 to 4.5.0. It includes changes across several files to enhance the SDK's functionality and maintain up-to-date dependencies.
Changes
Dependency Updates:
Updated the SDK version in build scripts and documentation from 4.4.0 to 4.5.0.
SDK Enhancements:
Enhanced ApiClient.java to support better JSON parsing with GSON, addressing potential issues with array handling and improving the customization of field naming strategies.
Modified Vehicle.java to include a new method serviceHistory, which retrieves a vehicle's service records within a specified date range or for the last year if no range is provided. This function supports better tracking and management of vehicle maintenance.
New Data Classes:
Added new classes (ServiceCost, ServiceDetails, ServiceHistory, and ServiceRecord) to represent detailed aspects of vehicle service records, enhancing the granularity of maintenance data available through the SDK.
Documentation and Miscellaneous:
Updated links and references in README.md to point to the new version 4.5.0.
Made improvements to various other components of the SDK to streamline code structure and improve readability and maintainability.
Overview
This pull request updates the Smartcar Java SDK from version 4.4.0 to 4.5.0. It includes changes across several files to enhance the SDK's functionality and maintain up-to-date dependencies.
Changes
ApiClient.java
to support better JSON parsing with GSON, addressing potential issues with array handling and improving the customization of field naming strategies.Vehicle.java
to include a new methodserviceHistory
, which retrieves a vehicle's service records within a specified date range or for the last year if no range is provided. This function supports better tracking and management of vehicle maintenance.ServiceCost
,ServiceDetails
,ServiceHistory
, andServiceRecord
) to represent detailed aspects of vehicle service records, enhancing the granularity of maintenance data available through the SDK.README.md
to point to the new version 4.5.0.