mirror of
https://github.com/RevenueCat/purchases-ios
synced 2026-11-11 22:55:55 +05:45
* 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
26 lines
615 B
Swift
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 ?? "" }
|
|
|
|
}
|