-
Notifications
You must be signed in to change notification settings - Fork 86
Support test store #2554
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
Support test store #2554
Conversation
api-tester/src/main/java/com/revenuecat/apitester/java/EntitlementInfoAPI.java
Outdated
Show resolved
Hide resolved
aba6723
to
61e8a8a
Compare
61e8a8a
to
a6c6b60
Compare
…efix at that point
Still need to test this with the backend changes and the actual posting of the purchase data to the backend is not done, but this is a first approach to supporting the test store @RevenueCat/coresdk. |
...ases/src/main/kotlin/com/revenuecat/purchases/common/networking/RCBillingProductsResponse.kt
Outdated
Show resolved
Hide resolved
…upport-test-store
purchases/src/main/kotlin/com/revenuecat/purchases/teststore/TestStoreProductConverter.kt
Outdated
Show resolved
Hide resolved
purchases/src/main/kotlin/com/revenuecat/purchases/teststore/TestStoreProductConverter.kt
Outdated
Show resolved
Hide resolved
…estStoreProductConverter.kt Co-authored-by: Antonio Pallares <ajpallares@users.noreply.github.com>
📸 Snapshot Test660 unchanged
🛸 Powered by Emerge Tools |
…g posting receipt
…at/purchases-android into support-test-store
…upport-test-store
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #2554 +/- ##
==========================================
- Coverage 78.70% 78.34% -0.37%
==========================================
Files 295 298 +3
Lines 10877 11032 +155
Branches 1520 1535 +15
==========================================
+ Hits 8561 8643 +82
- Misses 1654 1717 +63
- Partials 662 672 +10 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
purchases/src/main/kotlin/com/revenuecat/purchases/teststore/TestStoreOfferingParser.kt
Show resolved
Hide resolved
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.
Self review
purchases/src/main/kotlin/com/revenuecat/purchases/teststore/TestStoreBillingWrapper.kt
Outdated
Show resolved
Hide resolved
onError: PurchasesErrorCallback, | ||
) { | ||
debugLog { "TestStoreBillingAbstract: getStorefront - returning US by default" } | ||
onSuccess("US") |
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.
We might need a way to mock this from the backend... I expect some people might ask about it. For now, I think it's ok to hardcode it.
purchases/src/main/kotlin/com/revenuecat/purchases/teststore/TestStoreBillingWrapper.kt
Outdated
Show resolved
Hide resolved
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.
Looks great! Amazing job! 🙌
**This is an automatic release.** ## RevenueCat SDK ### 📦 Dependency Updates * [RENOVATE] Update dependency gradle to v9 (#2589) via RevenueCat Git Bot (@RCGitBot) ## RevenueCatUI SDK ### Customer Center #### ✨ New Features * Show a subscribe button in customer center when there are no subscriptions (#2596) via Facundo Menzella (@facumenzella) #### 🐞 Bugfixes * Fix title and price of non-Google purchases in Customer Center (#2576) via Cesar de la Vega (@vegaro) ### 🔄 Other Changes * [AUTOMATIC][Paywalls V2] Updates paywall-preview-resources submodule (#2598) via RevenueCat Git Bot (@RCGitBot) * Add alias users backend call (#2594) via Toni Rico (@tonidero) * Rename TestStore to SimulatedStore (#2591) via Toni Rico (@tonidero) * Fail configure call if using test api key in release builds (#2590) via Toni Rico (@tonidero) * Support test store (#2554) via Toni Rico (@tonidero) * Fix insets in Paywall Tester (#2584) via Cesar de la Vega (@vegaro) * Add 8.22.1 to CHANGELOG (#2582) via Toni Rico (@tonidero) * Add warning on V9 CHANGELOG (#2586) via Toni Rico (@tonidero) * Change metalava job to diff dump generated dump files (#2585) via Toni Rico (@tonidero) Co-authored-by: revenuecat-ops <ops@revenuecat.com>
This adds support for a new test store that allows for easier development testing of purchases. It remains behind a build config flag but for now so not adding anything new for now --------- Co-authored-by: Antonio Pallares <ajpallares@users.noreply.github.com>
Description
This adds support for a new test store that allows for easier development testing of purchases. It remains behind a build config flag but for now so not adding anything new for now