Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

import Foundation
import RevenueCat
@_spi(Internal) import RevenueCat

enum Configuration {

Expand All @@ -27,6 +27,7 @@ enum Configuration {
with: .init(withAPIKey: Constants.apiKey)
.with(entitlementVerificationMode: .informational)
.with(diagnosticsEnabled: true)
.with(dangerousSettings: DangerousSettings(useWorkflows: true))
.with(purchasesAreCompletedBy: .revenueCat, storeKitVersion: .storeKit2)
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

echo "Replacing API keys on PaywallsTester"
echo "Configuring PaywallsTester CI build"

file="$SCRIPT_DIR/../PaywallsTester/Config/Constants.swift"
sed -i '' 's/Bundle.main.object(forInfoDictionaryKey: "REVENUECAT_API_KEY") as? String ?? ""/"'"$REVENUECAT_XCODE_CLOUD_RC_APP_API_KEY"'"/' $file
if [[ -z "${REVENUECAT_XCODE_CLOUD_RC_APP_API_KEY_OVERRIDE:-}" ]]; then
echo "error: REVENUECAT_XCODE_CLOUD_RC_APP_API_KEY_OVERRIDE must be set"
exit 1
fi

file="$SCRIPT_DIR/../PaywallsTester/Config/Constants.swift"
sed -i '' 's/Bundle.main.object(forInfoDictionaryKey: "REVENUECAT_API_KEY") as? String ?? ""/"'"$REVENUECAT_XCODE_CLOUD_RC_APP_API_KEY_OVERRIDE"'"/' $file