[BC5] AmazonStoreProduct updates#881
Conversation
…ng for amazon vs play
# Conflicts: # common/src/test/java/com/revenuecat/purchases/common/OfferingsTest.kt # purchases/src/main/kotlin/com/revenuecat/purchases/Purchases.kt
# Conflicts: # common/src/main/java/com/revenuecat/purchases/common/OfferingFactories.kt # feature/amazon/src/main/java/com/revenuecat/purchases/amazon/storeProductConversions.kt
# Conflicts: # feature/amazon/src/main/java/com/revenuecat/purchases/amazon/storeProductConversions.kt
# Conflicts: # feature/amazon/src/main/java/com/revenuecat/purchases/amazon/storeProductConversions.kt
Codecov Report
@@ Coverage Diff @@
## bc5-support #881 +/- ##
===============================================
+ Coverage 84.04% 84.09% +0.04%
===============================================
Files 153 155 +2
Lines 5366 5382 +16
Branches 758 763 +5
===============================================
+ Hits 4510 4526 +16
+ Misses 566 565 -1
- Partials 290 291 +1
... and 2 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
… over tests from google version
) ### Motivation [CF-1288](https://revenuecats.atlassian.net/browse/CF-1288) ### Description Parses Amazon's English language period durations into a `Period` object and an ISO 8601 string 💪 [CF-1288]: https://revenuecats.atlassian.net/browse/CF-1288?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
| dataStoreUtils.getSdkConfig().onEach { sdkConfiguration -> | ||
| isPlayStore = !sdkConfiguration.useAmazon | ||
| }.collect() | ||
| } |
| android:text="@string/subscription_options" | ||
| android:textStyle="bold" | ||
| android:visibility="@{isSubscription ? View.VISIBLE : View.GONE}" | ||
| android:visibility="@{isSubscription & isPlayStore ? View.VISIBLE : View.GONE}" |
There was a problem hiding this comment.
SHouldn't this be using && instead of & "@{isSubscription && isPlayStore ? View.VISIBLE : View.GONE}
There was a problem hiding this comment.
Ah, I think it should actually be && 🤔 We can't put && directly in because its XML and it yells at us but it should be two & instead of one
There was a problem hiding this comment.
yup, would have been the binary operator otherwise. thanks for fixing it. i thought xml would at least allow literal & in attributes, but doesn't look like it either
| sh("git reset --hard") | ||
| sh("git clean -fd") | ||
| sh("cd .. && git clean -fd") | ||
| end |
There was a problem hiding this comment.
So this resets the repo at the current dir and cleans the one in the parent? Is this correct?
Also maybe you can use git -C .. clean -fg instead of doing cd
There was a problem hiding this comment.
This looks like it should also work 😁 I can change it to that!
There was a problem hiding this comment.
Yesss, this needed to be its own file 💪
### Breaking Changes * Rename `introTrial` to `introOffer` on `SubscriptionOptions` (#890) via Josh Holtz (@joshdholtz) * Use `rc-ignore-offer` instead of `rc-ignore-befault-offer` (#889) via Josh Holtz (@joshdholtz) * AmazonStoreProduct updates (#881) via beylmk (@beylmk) * Remove Parcelable implementation for classes with ProductDetails as a member (#866) via beylmk (@beylmk) * Make Activity first param in PurchaseParams (#882) via Josh Holtz (@joshdholtz) ### New Features * Re-enable `observerMode` and `syncPurchases()` (#878) via Josh Holtz (@joshdholtz) ### Bugfixes * Re-add `price_string` header on postReceipt (#879) via Josh Holtz (@joshdholtz) ### Other Changes * Cleaning up some TODOs in the code (#883) via Josh Holtz (@joshdholtz) * Amazon Offering Parsing (#824) via beylmk (@beylmk) * Merge main -> bc5-support 2023-03-15 (#875) via Toni Rico (@tonidero) * Fix purchase tester navigation (#871) via beylmk (@beylmk)
Motiviation
https://revenuecats.atlassian.net/browse/CF-1197 - AmazonStoreProduct updates
https://revenuecats.atlassian.net/browse/CF-1199 - Update purchase tester for amazon
https://revenuecats.atlassian.net/browse/CF-1217 - Remove isProductChange for amazon
https://revenuecats.atlassian.net/browse/CF-1288 - Add Period to AmazonStoreProduct for subscription and free trial
Description
AmazonStoreProductandAmazonPurchasingDatahave their own files nowskuonAmazonStoreProductLockedFeature.AmazonStoreAmazonStoreProductto API Tester:feature:amazonmodule was addedbuild_purchase_testerlane in theFastfilefor building an APK for Amazonbuild_magic_weatherTODO: