Files
purchases-ios/Tests/TestingApps/PurchaseTesterSwiftUI/Core/Constants.swift
T
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

26 lines
615 B
Swift

//
// Constants.swift
// PurchaseTester
//
// Created by Josh Holtz on 6/21/22.
//
import Foundation
/*
Configuration file for your app's RevenueCat settings.
*/
public struct Constants {
/*
The API key for your app from the RevenueCat dashboard: https://app.revenuecat.com
This is the default used by `ConfigurationView`
To add your own API key for local development, add it in your local.xcconfig file like this:
REVENUECAT_API_KEY = your-api-key
*/
public static var apiKey: String { Bundle.main.object(forInfoDictionaryKey: "REVENUECAT_API_KEY") as? String ?? "" }
}