diff --git a/Tests/TestingApps/PurchaseTester/PurchaseTester/Constants.swift b/Tests/TestingApps/PurchaseTester/PurchaseTester/Constants.swift index 2a7403b449..63863deb9a 100644 --- a/Tests/TestingApps/PurchaseTester/PurchaseTester/Constants.swift +++ b/Tests/TestingApps/PurchaseTester/PurchaseTester/Constants.swift @@ -9,6 +9,6 @@ enum Constants { #error("Must define your Public SDK key here") - static let apiKey = "" - + static let apiKey = "REVENUECAT_API_KEY" + } diff --git a/Tests/TestingApps/PurchaseTesterSwiftUI/Constants.swift b/Tests/TestingApps/PurchaseTesterSwiftUI/Constants.swift index 718083dc34..248589587f 100644 --- a/Tests/TestingApps/PurchaseTesterSwiftUI/Constants.swift +++ b/Tests/TestingApps/PurchaseTesterSwiftUI/Constants.swift @@ -17,5 +17,6 @@ struct Constants { The API key for your app from the RevenueCat dashboard: https://app.revenuecat.com */ #error("Modify this property to reflect your app's API key, then comment this line out.") - static let apiKey = "api_key" + static let apiKey = "REVENUECAT_API_KEY" + } diff --git a/scripts/pre-commit.sh b/scripts/pre-commit.sh index b091174294..32f2c75f53 100755 --- a/scripts/pre-commit.sh +++ b/scripts/pre-commit.sh @@ -37,6 +37,8 @@ verify_no_included_apikeys() { "${SCRIPT_DIR}/../Tests/BackendIntegrationTests/Constants.swift" "${SCRIPT_DIR}/../Examples/MagicWeather/MagicWeather/Constants.swift" "${SCRIPT_DIR}/../Examples/MagicWeatherSwiftUI/Shared/Constants.swift" + "${SCRIPT_DIR}/../Tests/TestingApps/PurchaseTesterSwiftUI/Constants.swift" + "${SCRIPT_DIR}/../Tests/TestingApps/PurchaseTester/PurchaseTester/Constants.swift" ) PATTERN="\"REVENUECAT_API_KEY\""