changeset 163:35573bdd7d9b

Remove revenuecat
author Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com>
date Sat, 11 Sep 2021 16:28:44 +0200
parents f5de15e06c77
children b899c1142d9d
files Simoleon/AppDelegate.swift Simoleon/ConversionView.swift Simoleon/Info.plist Simoleon/SimoleonApp.swift
diffstat 4 files changed, 0 insertions(+), 45 deletions(-) [+]
line wrap: on
line diff
--- a/Simoleon/AppDelegate.swift	Tue Aug 31 13:04:28 2021 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,35 +0,0 @@
-//
-//  AppDelegate.swift
-//  Simoleon
-//
-//  Created by Dennis Concepción Martín on 31/7/21.
-//
-
-import SwiftUI
-import Purchases
-
-// Add an AppDelegate to a SwiftUI app
-class AppDelegate: NSObject, UIApplicationDelegate, PurchasesDelegate {
-    
-    // Set delegate to Purchases
-    func application(
-        _ application: UIApplication,
-        didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil
-    ) -> Bool {
-        Purchases.shared.delegate = self
-        return true
-    }
-    
-    // Handle purchases started on the App Store
-    func purchases(
-        _ purchases: Purchases,
-        shouldPurchasePromoProduct product: SKProduct,
-        defermentBlock makeDeferredPurchase: @escaping RCDeferredPromotionalPurchaseBlock
-    ) {
-        makeDeferredPurchase { (transaction, purchaserInfo, error, userCancelled) in
-            if purchaserInfo?.entitlements["all"]?.isActive == true {
-                print("Subscription purchased from App Store")
-            }
-        }
-    }
-}
--- a/Simoleon/ConversionView.swift	Tue Aug 31 13:04:28 2021 +0100
+++ b/Simoleon/ConversionView.swift	Sat Sep 11 16:28:44 2021 +0200
@@ -6,7 +6,6 @@
 //
 
 import SwiftUI
-import Purchases
 
 struct ConversionView: View {
     var showNavigationView: Bool?
--- a/Simoleon/Info.plist	Tue Aug 31 13:04:28 2021 +0100
+++ b/Simoleon/Info.plist	Sat Sep 11 16:28:44 2021 +0200
@@ -24,8 +24,6 @@
 	<string>1</string>
 	<key>LSRequiresIPhoneOS</key>
 	<true/>
-	<key>PURCHASES_KEY</key>
-	<string>$(PURCHASES_KEY)</string>
 	<key>UIApplicationSceneManifest</key>
 	<dict>
 		<key>UIApplicationSupportsMultipleScenes</key>
--- a/Simoleon/SimoleonApp.swift	Tue Aug 31 13:04:28 2021 +0100
+++ b/Simoleon/SimoleonApp.swift	Sat Sep 11 16:28:44 2021 +0200
@@ -6,18 +6,11 @@
 //
 
 import SwiftUI
-import Purchases
 
 @main
 struct SimoleonApp: App {
-    @UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
     let persistenceController = PersistenceController.shared
     
-    init() {
-        let apiKey = readConfig(withKey: "PURCHASES_KEY")!
-        Purchases.configure(withAPIKey: apiKey)
-    }
-    
     var body: some Scene {
         WindowGroup {
             ContentView()