diff LazyBear/LazyBearApp.swift @ 423:bdfdf3a1b34e

Testing RevenueCat
author Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com>
date Sun, 13 Jun 2021 19:40:18 +0200
parents f843c6382529
children e4ca9898b79b
line wrap: on
line diff
--- a/LazyBear/LazyBearApp.swift	Sat Jun 12 18:54:47 2021 +0200
+++ b/LazyBear/LazyBearApp.swift	Sun Jun 13 19:40:18 2021 +0200
@@ -6,10 +6,14 @@
 //
 
 import SwiftUI
+import Purchases
 
 @main
 struct LazyBearApp: App {
     let persistenceController = PersistenceController.shared  // Core Data init
+    init() {  /// Revenue Cat configuration
+            Purchases.configure(withAPIKey: "ZnlVFgEqTmhLagtzgFawvlhAROXQjyFi")
+        }
 
     var body: some Scene {
         WindowGroup {