Skip to content
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

StoreProduct: add localized price per period strings #3546

Merged
merged 7 commits into from
Jan 17, 2024

Conversation

aboedo
Copy link
Member

@aboedo aboedo commented Dec 26, 2023

Added localizedPricePerWeek, localizedPricePerMonth and localizedPricePerYear.

I started on this before noticing that we already have an equivalent at the package level, still need to unify them.

@aboedo aboedo marked this pull request as draft December 26, 2023 20:29
@aboedo aboedo self-assigned this Dec 26, 2023
@aboedo aboedo added the feat A new feature label Dec 26, 2023
@aboedo aboedo force-pushed the andy/add_price_per_period_string branch from 723aa73 to 884b54e Compare January 4, 2024 17:35
@aboedo
Copy link
Member Author

aboedo commented Jan 4, 2024

I started on this before noticing that we already have an equivalent at the package level, still need to unify them.

nvmd, those aren't equivalent since they're not string

@aboedo aboedo marked this pull request as ready for review January 5, 2024 20:34
@aboedo aboedo force-pushed the andy/add_price_per_period_string branch from ab57c5d to f1533d3 Compare January 5, 2024 20:42
Copy link
Contributor

@NachoSoto NachoSoto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

Only thing missing is docstrings

@@ -442,6 +442,15 @@ class StoreProductTests: StoreKitConfigTestCase {
self.logger.verifyMessageWasLogged(Strings.storeKit.sk1_no_known_product_type, level: .debug)
}

func testPricePerPeriod() async throws {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<3

@NachoSoto NachoSoto changed the title Add localized price per period strings StoreProduct: add localized price per period strings Jan 8, 2024
@NachoSoto NachoSoto force-pushed the andy/add_price_per_period_string branch from f1533d3 to 2ccd6f3 Compare January 16, 2024 17:52
@aboedo
Copy link
Member Author

aboedo commented Jan 16, 2024

:shipit:

@NachoSoto
Copy link
Contributor

I started on this before noticing that we already have an equivalent at the package level, still need to unify them.

@aboedo oh I just noticed you mentioned that! Yeah I removed that code now that it's implemented in StoreProduct :)

@NachoSoto NachoSoto enabled auto-merge (squash) January 16, 2024 17:56
@NachoSoto NachoSoto merged commit 4cc7d51 into main Jan 17, 2024
24 checks passed
@NachoSoto NachoSoto deleted the andy/add_price_per_period_string branch January 17, 2024 00:00
NachoSoto pushed a commit that referenced this pull request Jan 17, 2024
**This is an automatic release.**

### New Features
* `StoreProduct`: add localized price per period strings (#3546) via
Andy Boedo (@aboedo)
### RevenueCatUI
* `Paywalls`: new `.onPurchaseCancelled` and
`paywallViewControllerDidCancelPurchase:` (#3578) via NachoSoto
(@NachoSoto)
* `Paywalls`: improve error display (#3577) via NachoSoto (@NachoSoto)
### Dependency Updates
* Bump fastlane-plugin-revenuecat_internal from `0ddee10` to `e6ba247`
(#3575) via dependabot[bot] (@dependabot[bot])
### Other Changes
* `PurchaseTester`: improved `ReceiptInspector` so it accepts receipts
with escape sequences (#3554) via Andy Boedo (@aboedo)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat A new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants