# HG changeset patch # User Dennis Concepcion Martin # Date 1631370524 -7200 # Node ID 35573bdd7d9b04218bff95d6dd2366a3e19f044d # Parent f5de15e06c77877ed48de3f5d8ee662234af0526 Remove revenuecat diff -r f5de15e06c77 -r 35573bdd7d9b Simoleon/AppDelegate.swift --- 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") - } - } - } -} diff -r f5de15e06c77 -r 35573bdd7d9b Simoleon/ConversionView.swift --- 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? diff -r f5de15e06c77 -r 35573bdd7d9b Simoleon/Info.plist --- 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 @@ 1 LSRequiresIPhoneOS - PURCHASES_KEY - $(PURCHASES_KEY) UIApplicationSceneManifest UIApplicationSupportsMultipleScenes diff -r f5de15e06c77 -r 35573bdd7d9b Simoleon/SimoleonApp.swift --- 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()