Josh Holtz
fc2138249a
[Paywalls V2] Implement V2 variables and functions ( #4633 )
...
* This mostly works
* This mostly works
* Better tests and logic
* More tests
* Fixed onemore
* lint
* Fix tests
* Actually use this
* Fix for all quantity translation things
* More minor fixes
* Fix tests
2025-01-08 09:17:34 -06:00
Andy Boedo and NachoSoto
4cc7d51f70
StoreProduct: add localized price per period strings (#3546 )
...
Added `localizedPricePerWeek`, `localizedPricePerMonth` and
`localizedPricePerYear`.
I started on this before noticing that we already [have an equivalent at
the package
level](https://github.com/RevenueCat/purchases-ios/blob/main/RevenueCatUI/Helpers/Package%2BVariableDataProvider.swift#L107 ),
still need to unify them.
---------
Co-authored-by: NachoSoto <ignaciosoto90@gmail.com >
2024-01-16 16:00:15 -08:00
NachoSoto
a08b0b3da4
Paywalls: support fuzzy-Locale search in iOS 15 (#3162 )
...
See #2847 .
Thanks to @vegaro for pointing this out.
Also removed all checks for Xcode 13 (see #3161 and #3147 ).
2023-09-14 18:28:11 -07:00
NachoSoto
1f095727d1
TestStoreProduct: new locale parameter (#3134 )
...
This allows overriding the `Locale` to be used for this test product,
which is used to configure the price formatter.
This will be used by #3133 .
2023-09-14 18:28:11 -07:00
NachoSoto
6776347b44
TestStoreProduct: made available on release builds (#2861 )
2023-07-25 00:07:27 +02:00
NachoSoto
761ca1209d
New TestStoreProduct for creating mock StoreProducts and Offerings ( #2711 )
...
Fixes #1563 and #2193 .
This introduces **`DEBUG` and `Swift` only** types that allow creating a
whole `Offering` for tests and SwiftUI previews.
Example:

By making it available in only `DEBUG` builds we ensure that apps can't
accidentally try to purchase these products, which would be impossible.
If this is attempted in `DEBUG` builds, we return `ErrorCode`.
When trying to compile this API in release builds, you get an error with
a suggestion:

2023-06-29 14:06:24 -07:00