Skip to content

Commit

Permalink
Update Play Billing Library to 4.0.0 (#30)
Browse files Browse the repository at this point in the history
Will be able to upload to the Play Store once the billing library is brought up to date.
  • Loading branch information
mattttvaughn authored Feb 16, 2022
1 parent 372f6a3 commit d179a24
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ class ChronicleBillingManager @Inject constructor(
Timber.i("Retrieved purchase list but it was empty or null: ${purchase.purchasesList}")
return
}
val premiumSku = purchase.purchasesList!!.find { record -> record.sku == PREMIUM_IAP_SKU }
val premiumSku =
purchase.purchasesList!!.find { record -> PREMIUM_IAP_SKU in record.skus }
if (premiumSku != null && premiumSku.purchaseState == PURCHASED) {
Timber.i("Found premium SKU in user's history: $premiumSku")
prefsRepo.premiumPurchaseToken = premiumSku.purchaseToken
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ buildscript {
localBroadcastManagerVersion = "1.0.0"
androidXCustomTabsVersion = "1.3.0"
swipeRefreshLayoutVersion = "1.1.0"
billingVersion = '3.0.0'
billingVersion = '4.0.0'
constraintLayoutVersion = '2.0.4'
kotlinResultVersion = '1.1.11'
timberVersion = "4.7.1"
Expand Down
14 changes: 9 additions & 5 deletions todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,19 @@ Low priority

## DONE:

Release 0.51.1 (Feb 15):

- [X] Update billing library

Release 0.51:

(November 9th)

- [ ] Larger artwork on currently playing screen
- [ ] Fix disappearing downloads
- [ ] Make "mark as watched" visible even if media not started
- [ ] Updates for open source release
- [ ] Fix completed books not appearing as completed
- [X] Larger artwork on currently playing screen
- [X] Fix disappearing downloads
- [X] Make "mark as watched" visible even if media not started
- [X] Updates for open source release
- [X] Fix completed books not appearing as completed

Release 0.50:

Expand Down

0 comments on commit d179a24

Please sign in to comment.