v2.3.0
Updates / Fixes
- The class
CashAppPayInitializer
was made open, so thatandroidx.startup
can be manually overridden. - This version bundles fixes for minify enabled builds.
- Updated internal dependency on
OkHttp
to version4.11.0
.
Breaking Changes
- Renamed class
CashAppCashAppPayApiNetworkException
toCashAppPayApiNetworkException
- Renamed class
CashAppCashAppPayApiNetworkException
toCashAppPayApiNetworkException
- This version contains a change to the bundled Cash App Pay button.
Previously,light
anddark
variants of the button were made possible by using 2 different
views, respectivelyCashAppPayButtonLight
anCashAppPayButtonDark
. As of this version, the
there will only be a singleCashAppPayButton
view, which has been updated to support both variants.
To obtain different variants, developers should use the XMLstyle
attribute to specify the variant they want, as follows:
Light Variant:
<app.cash.paykit.core.ui.CashAppPayButton
style="@style/CAPButtonStyle.Light"
android:layout_height="54dp"
android:layout_width="match_parent"/>
Dark Variant:
<app.cash.paykit.core.ui.CashAppPayButton
style="@style/CAPButtonStyle.Dark"
android:layout_height="54dp"
android:layout_width="match_parent"/>
This change makes it possible for developer to use the button in a more flexible way, such as using
a style that changes accordingly to the OS theme.
You should migrate any instances of CashAppPayButtonLight
and CashAppPayButtonDark
to CashAppPayButton
.