-
Notifications
You must be signed in to change notification settings - Fork 82
Remove TestStoreProduct purchase check #2570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
null, | ||
callback, | ||
) | ||
purchase(PurchaseParams.Builder(activity, storeProduct).build(), callback) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is unrelated... but I saw that we were using methods that could be made internal in purchasesOrchestrator and took the opportunity to refactor it.
@@ -60,17 +59,6 @@ class PurchaseParams(val builder: Builder) { | |||
constructor(activity: Activity, storeProduct: StoreProduct) : | |||
this(activity, storeProduct.purchasingData, storeProduct.presentedOfferingContext, storeProduct) | |||
|
|||
private fun ensureNoTestProduct(storeProduct: StoreProduct) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the main change in this PR.
@@ -1264,62 +1264,6 @@ internal class PurchasesOrchestrator( | |||
} | |||
} | |||
|
|||
fun startDeprecatedProductChange( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was unused... So took the opportunity to remove it
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2570 +/- ##
==========================================
+ Coverage 78.26% 78.36% +0.09%
==========================================
Files 291 291
Lines 10784 10746 -38
Branches 1507 1501 -6
==========================================
- Hits 8440 8421 -19
+ Misses 1692 1673 -19
Partials 652 652 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
**This is an automatic release.** ## RevenueCat SDK ### 🐞 Bugfixes * Add lifetime badge to customer center (#2565) via Cesar de la Vega (@vegaro) ### Customer Center #### ✨ New Features * Introduce custom actions for customer center (#2572) via Facundo Menzella (@facumenzella) ## RevenueCatUI SDK ### ✨ New Features * Add support for az-AZ locale (#2575) via Franco Correa (@francocorreasosa) ### Customer Center #### 🐞 Bugfixes * Display latest expired subscription if no active subscriptions (#2564) via Cesar de la Vega (@vegaro) ### 🔄 Other Changes * Expose getStorefront APIs in CustomEntitlementComputation flavor (#2579) via Toni Rico (@tonidero) * [AUTOMATIC][Paywalls V2] Updates paywall-preview-resources submodule (#2578) via RevenueCat Git Bot (@RCGitBot) * Add missing dokka-hide-internal tests to CI and fix reported number of tests (#2569) via Cesar de la Vega (@vegaro) * [AUTOMATIC][Paywalls V2] Updates paywall-preview-resources submodule (#2574) via RevenueCat Git Bot (@RCGitBot) * Convert WebBilling products into TestStoreProducts (#2573) via Toni Rico (@tonidero) * Add WebBillingGetProducts endpoint (#2571) via Toni Rico (@tonidero) * Remove TestStoreProduct purchase check (#2570) via Toni Rico (@tonidero) * Improve 9.0.0 changelog (#2568) via Toni Rico (@tonidero) * [AUTOMATIC][Paywalls V2] Updates paywall-preview-resources submodule (#2567) via RevenueCat Git Bot (@RCGitBot) * Parallel test jobs (#2549) via Cesar de la Vega (@vegaro) Co-authored-by: revenuecat-ops <ops@revenuecat.com>
Until now we had a check that threw an exception when trying to purchase using a TestStoreProduct. However, as part of supporting the Test store we want to remove this check. The purchase method would still fail later, when checking the purchase type in the Google/Amazon stores.
Description
Until now we had a check that threw an exception when trying to purchase using a TestStoreProduct. However, as part of supporting the Test store we want to remove this check. The purchase method would still fail later, when checking the purchase type in the Google/Amazon stores.