Skip to content

Commit

Permalink
Merge pull request #578 from qonversion/release/7.3.3
Browse files Browse the repository at this point in the history
Release 7.3.3
  • Loading branch information
suriksarkisyan authored Apr 10, 2024
2 parents 40cd8d8 + 45025b7 commit ee609de
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import io.gitlab.arturbosch.detekt.DetektCreateBaselineTask
buildscript {
ext {
release = [
versionName: "7.3.2",
versionName: "7.3.3",
versionCode: 1
]
}
Expand Down
2 changes: 1 addition & 1 deletion fastlane/report.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@



<testcase classname="fastlane.lanes" name="0: default_platform" time="0.000401">
<testcase classname="fastlane.lanes" name="0: default_platform" time="0.000646">

</testcase>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ internal class QProductCenterManager internal constructor(
private var advertisingID: String? = null
private var pendingInitRequestData: InitRequestData? = null

private var processingPurchases: List<Purchase> = emptyList()

private var converter: PurchaseConverter = GooglePurchaseConverter()

@Volatile
Expand Down Expand Up @@ -616,6 +618,8 @@ internal class QProductCenterManager internal constructor(
val completedPurchases =
purchases.filter { it.purchaseState == Purchase.PurchaseState.PURCHASED }

processingPurchases = completedPurchases

val purchasesInfo = converter.convertPurchases(completedPurchases)

val handledPurchasesCallback =
Expand Down Expand Up @@ -658,6 +662,13 @@ internal class QProductCenterManager internal constructor(

loadStoreProductsIfPossible()

if (processingPurchases.isNotEmpty()) {
handledPurchasesCache.saveHandledPurchases(processingPurchases)

billingService.consumePurchases(processingPurchases.toList())
processingPurchases = emptyList()
}

handleCachedPurchases()

callback?.onSuccess(launchResult)
Expand Down

0 comments on commit ee609de

Please sign in to comment.