Skip to content

Commit 435e0f5

Browse files
kherembourgclaude
andcommitted
chore: hardcode Purchasely API key for public demo
Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 0231050 commit 435e0f5

2 files changed

Lines changed: 2 additions & 14 deletions

File tree

android/app/src/main/java/com/purchasely/shaker/ShakerApp.kt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,8 @@ class ShakerApp : Application() {
3131
}
3232

3333
private fun initPurchasely() {
34-
val apiKey = BuildConfig.PURCHASELY_API_KEY
35-
if (apiKey.isBlank()) {
36-
Log.w(TAG, "Purchasely API key not set. Copy local.properties.example to local.properties and add your key.")
37-
return
38-
}
39-
4034
Purchasely.Builder(this)
41-
.apiKey(apiKey)
35+
.apiKey("6cda6b92-d63c-4444-bd55-5a164c989bd4")
4236
.logLevel(LogLevel.DEBUG)
4337
.readyToOpenDeeplink(true)
4438
.runningMode(PLYRunningMode.Full)

ios/Shaker/AppViewModel.swift

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,8 @@ class AppViewModel: ObservableObject {
1212
}
1313

1414
private func initPurchasely() {
15-
let apiKey = Bundle.main.infoDictionary?["PURCHASELY_API_KEY"] as? String ?? ""
16-
guard !apiKey.isEmpty, apiKey != "your_api_key_here" else {
17-
print("[Shaker] Purchasely API key not set. Copy Config.xcconfig.example to Config.xcconfig and add your key.")
18-
return
19-
}
20-
2115
Purchasely.start(
22-
withAPIKey: apiKey,
16+
withAPIKey: "6cda6b92-d63c-4444-bd55-5a164c989bd4",
2317
appUserId: nil,
2418
runningMode: .full,
2519
storekitSettings: .storeKit2,

0 commit comments

Comments
 (0)