- Fixed a bug that caused an NPE when attempting to display a price on the Lyft Button.
- Fixed a bug that prevented promo codes from being applied to the Lyft Button.
- Update Gradle version from
2.14.1
to4.10.1
, and Android Gradle Plugin from2.2.2
to3.3.2
- The compile SDK target for Android has been bumped to API 28.
- The following dependencies have been updated:
- Android Build Tools
23.0.3
->28.0.3
- Android Support Libraries
23.4.0
->28.0.0
- Google Play Services
9.4.0
->17.0.0
- Mockito
1.10.19
->2.25.0
- Retrofit
2.1.0
->2.6.0
- Android Build Tools
LyftUserApi
,LyftUserApiRx
and all endpoints that require a Lyft User OAuth token have been removed. External clients will no longer have access to features that require user information.LyftPublicApi
andLyftPublicApiRx
have been renamed toLyftApi
andLyftApiRx
respectively, to reflect new changes regarding the UserApi client.- The RxJava call adapter for Retrofit has been updated to RxJava2. Users of the RxJava Retrofit interface will have to update their codebase to take RxJava2 Observables.
- All models returned by network calls have been documented with JetBrain
@Nullable
and@NotNull
annotations. LyftApiFactory
now by default generates aLyftApi
that throws aPartialResponseException
when the server response doesn't abide by the@Nullable
and@NotNull
annotations of the parsed model. The client must be able to handle aPartialResponseException
when calling for Lyft endpoints.- If the client wishes to handle null checking manually, call
LyftApiFactory#getUncheckedLyftApi
to get a Retrofit client that does not massage responses.
- If the client wishes to handle null checking manually, call
RideTypeEnum
has been moved from the Lyft Button module to the Deeplink module, with the following changes:toString()
is no longer valid when fetching for a ride type key. UseRideTypeEnum#getRideTypeKey()
instead.getDisplayName()
is still valid for fetching human readable text for each ride type.
RideTypeEnum
has been updated to reflect the current ride offerings provided by Lyft:LINE
has been replaced bySHARED
CLASSIC
has been replaced bySTANDARD
PLUS
has been replaced byXL
LUX
,LUX_BLACK
,LUX_BLACK_XL
has been added intoRideTypeEnum
null
can be used in place ofRideTypeEnum.ALL
in existing usages
DeepLinkParams
and its builder now takes inRideTypeEnum
to specify a ride type, instead of aString
.
Rename couponCode to promoCode Add promoCode to RideParams Make ResultLoadedCallback interface public
Coupon code parameter in ridetype deeplink Expose address parameters in deeplink
Small deeplink fixes. Avoid NPE if eta_seconds is null.
Initial release.