Commit Graph
8 Commits
Author SHA1 Message Date
Rick 9ebd514f15 Format test store price strings with same currency code and locale as localizedPriceString (#5784)
* Passing price currencyCode to the TestStore product to use when formatting a price string

* Use the same locale for formatting localizedPriceString as well as other price strings for Test Store product

* Fixed test compilation + ensuring backwards compatibility in TestStoreProduct initializer

* Added unit tests

* Fixed swiftlint warnings

* Deprecated old TestProduct initializer and updated all tests to pass currencyCode and locale for proper price formatting

* Added API test for new initializer

* Fixed test compilation + updated remaining uses of TestStoreProduct

* Reusing Locale extension across packages

* Fixed import

* Fixed test imports

* Implemented PR feedback

* Updated doc + fixed test compilation

* Fixed test compilation
2025-12-15 13:31:52 +01:00
Antonio Pallares e9e5f791cb Show redacted Test Api key in alert when detected in Release configuration (#5897)
* Include redacted version of Test Store API key in alert and log when running in Release configuration

* Add unit tests for redacting API keys

* Support redaction in old api keys with no prefix

* Fix lint

* Use constants instead of magic numbers
2025-12-02 20:40:34 +01:00
Antonio Pallares 9767f416c4 Show alert before crashing when Test API key is used in Release builds (#5755) 2025-11-06 10:35:48 +01:00
Antonio Pallares 6cc68b7fe0 [SDK-4115] Improve log for simulated purchase failure in Test Store (#5634) 2025-10-09 17:27:31 +02:00
Antonio Pallares 80e3dc014c Add support for the Test Store (#5632)
* add `testStore` to `Store` enum

* fix RevenueCatUI test

* add extra logs to simulated purchases
2025-10-09 15:45:51 +02:00
Antonio Pallares ac22c9a049 Enable Test Store (#5596)
* Remove `SIMULATED_STORE` flag

* Remove unnecessary test (now that the compiler flag does not exist anymore)

* remove `.testStore` enum case from `Store`

Will be added in the future once the test store is released publicly

* Rename variables for internal consistency
2025-09-25 12:08:46 -03:00
Antonio Pallares 1089f7e1c2 Post receipt in for purchases in Test Store (#5515)
* POST Receipt: send `test_$PURDCHASETIME_$UUID` for `fetch_token` field for simulated store purchases

* add unit tests

* add unit test for POST receipt when purchasing in the Simulated Store

* PR comment
2025-09-02 17:31:49 +02:00
Antonio Pallares e66033c5af Rename Test Store to Simulated Store internally (#5459)
* Rename Test Store to Simulated Store only internally

* fix lint

* fix test under `SIMULATED_STORE` compiler flag

* fix test compilation

* Add name clarification to `APIKeyValidationResult.simulatedStore` enum case

* Fix public-facing strings

* Improve comment

* improve comment
2025-09-01 19:04:01 +02:00