stanwood/Stanwood_Debugger_iOS

View on GitHub
Example/Harlow/Supporting Files/AppDelegate.swift

Summary

Maintainability
A
0 mins
Test Coverage
//
//  AppDelegate.swift
//  Harlow
//
//  Created by talezion on 03/12/2018.
//  Copyright (c) 2018 talezion. All rights reserved.
//

import UIKit
#if DEBUG
import Harlow
#endif

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?
    
    #if DEBUG
    lazy var debugger: Harlow = Harlow()
    #endif
    
    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        
        #if DEBUG
        debugger.isDebuggingDataPersistenceEneabled = false
        debugger.errorCodesExceptions = [4097]
        debugger.isEnabled = true
        #endif
        
        return true
    }
}