Commit Graph
13 Commits
Author SHA1 Message Date
Antonio Pallares af30b55cae Use RC API key for local development from local.xcconfig (#4795)
* feat: have testing apps take RevenueCat API key and Proxy URL from local.xcconfig file

* fix wording mistakes in `Local.xcconfig.SAMPLE`

* chore: include `ConfigItem.swift` file in `verify_no_included_apikeys` check

* fix more mistakes in comments
2025-02-19 09:48:25 +01:00
Will Taylor 04ef5b0d1b update purchase tester for 5.0.0 2024-07-02 15:41:35 -05:00
NachoSoto 2bcd0ce328 5.0.0 changes: support SK2 by default 2024-07-01 14:37:21 -05:00
Toni Rico 7d570706fa Diagnostics: Make setting public (#3931)
### Description
This actually enables consumers to use diagnostics by making the setting
public

#### TODO
- [ ] Write docs
- [x] Get #3930 merged
2024-06-03 17:22:49 +02:00
235a7dcdc1 StoreKit 2: Optionally send JWS tokens instead of receipts to the backend (#3227)
- Added a new option `usesStoreKit2JWS` under `DangerousSettings`. If
enabled, the SDK will send a JWS token instead of a receipt to the
applicable backend endpoints.
- The option must be used in conjunction with `usesStoreKit2IfAvailable`
configuration option.

### ToDo

- [x] Send JWS token when making a purchase in SK2 mode
- [x] Send JWS token when calculating promo offer eligibility
- [x] Update `syncTransactions` to send the latest transaction JWS.
- [x] Add tests

---------

Co-authored-by: RevenueCat Git Bot <72824662+RCGitBot@users.noreply.github.com>
Co-authored-by: Distiller <distiller@static.38.39.183.118.cyberlynk.net>
Co-authored-by: Distiller <distiller@static.198.206.135.125.macminivault.com>
Co-authored-by: Distiller <distiller@static.38.23.39.112.cyberlynk.net>
Co-authored-by: Distiller <distiller@static.38.39.183.58.cyberlynk.net>
Co-authored-by: Distiller <distiller@static.38.39.185.87.cyberlynk.net>
2023-10-16 22:45:29 +02:00
NachoSoto 1cab844f2b Trusted Entitlements: re-enable public API (#2621) 2023-07-11 07:34:39 -07:00
NachoSoto 1f9265ac81 PurchaseTesterSwiftUI: added new window on Mac to manage proxy (#2518)
This allows managing the proxy at runtime through the UI:
![Screenshot 2023-05-19 at 2 07 18
PM](https://github.com/RevenueCat/purchases-ios/assets/685609/279828d9-7c7b-4217-b0aa-19a1475e6bf9)

See also https://github.com/RevenueCat/khepri-mitm-proxy/pull/6
2023-05-22 12:04:25 -07:00
NachoSoto d2dc5c45dd PurchaseTester: fixed compilation for internal entitlement verification (#2417) 2023-04-19 13:42:56 -07:00
NachoSoto d9c49690f9 PurchaseTesterSwiftUI improvements (#2345) 2023-03-21 06:35:48 -07:00
NachoSoto 3aaf9de70c PurchaseTester: fixed leak when reconfiguring Purchases (#2311) 2023-02-22 06:55:05 -08:00
NachoSoto 80b29a8ca2 PurchaseTester: added ability to set Configuration.EntitlementVerificationMode (#2290)
<img width="832" alt="Screenshot 2023-02-15 at 16 11 44"
src="https://user-images.githubusercontent.com/685609/219228654-220d7596-aca3-4fa6-8c5c-466173c00865.png">
<img width="916" alt="Screenshot 2023-02-15 at 16 48 00"
src="https://user-images.githubusercontent.com/685609/219229250-47fe810a-7289-4dd8-a1cd-2b6ca49f6438.png">
<img width="372" alt="Screenshot 2023-02-15 at 16 51 41"
src="https://user-images.githubusercontent.com/685609/219229746-91906749-d2df-42b4-8075-e58865061988.png">
2023-02-21 14:40:53 -08:00
NachoSoto dd2e161199 Purchase Tester: added button to clear messages on logger view (#2179)
See #2012.
This is useful when debugging some feature. You can now clear the logs
before performing whatever action you need to test, and have a cleaner
output with only the logs from that point.

![Screenshot 2022-12-20 at 13 40
18](https://user-images.githubusercontent.com/685609/208772324-7433194b-2274-4d18-a64b-ad42fd30900e.png)
2022-12-21 08:19:09 -08:00
NachoSoto 432b704dc7 Purchase Tester: added companion watchOS app (#2140)
I added this in order to debug #2132.

### Changes:
- Extracted `Core` framework to be used by both apps
- Added new `watchOS` target
- Changed `fastlane match` to also create profiles for this new target
- Added a simple view in the watch app that displays a text if an
entitlement is active, or a `restore` purchases button otherwise

This is just a starting point, we can add more to it in the future.

#### Note:
_Unfortunately I haven't been able to test this because of an Apple bug
(`FB11873951`):_


![incoming-722CC7FA-D970-4E23-AB88-50167248D98D](https://user-images.githubusercontent.com/685609/207672762-23abe3e7-6052-4b16-bdf2-7b1e502ffd81.PNG)
2022-12-21 07:31:58 -08:00