Files
purchases-ios/Tests/TestingApps/PurchaseTesterSwiftUI/Shared/Extensions/Identifiable.swift
T
NachoSoto 2773783274 PurchaseTesterSwiftUI: allow configuring API key at runtime (#1999)
Fixes [CSDK-456].

### Configuration screen:
![Simulator Screen Shot - iPhone 13 Pro Max - 2022-10-25 at 15 02
26](https://user-images.githubusercontent.com/685609/197890837-3160d9cd-72e0-45d7-8e9e-f248b0dd93c5.png)

### Displaying errors:
_Note that if you enter an invalid API key and there's a credentials
issue, you can tap on "reconfigure" to start over:

![Simulator Screen Shot - iPhone 13 Pro - 2022-10-26 at 13 35
42](https://user-images.githubusercontent.com/685609/198134117-d80f7c28-922b-4c48-be83-9b8ec03de299.png)

[CSDK-456]:
https://revenuecats.atlassian.net/browse/CSDK-456?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
2022-11-03 14:44:42 -07:00

25 lines
355 B
Swift

//
// Identifiable.swift
// PurchaseTester
//
// Created by Nacho Soto on 10/25/22.
//
import RevenueCat
extension StoreProduct: Identifiable {
public var id: String {
return self.productIdentifier
}
}
extension NonSubscriptionTransaction: Identifiable {
public var id: String {
return self.productIdentifier
}
}