Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 43 lines (35 sloc) 1.19 KB
//
// AppDelegate.swift
// RaceRunner
//
// Created by Joshua Adams on 3/7/15.
// Copyright (c) 2015 Josh Adams. All rights reserved.
//
import UIKit
import GoogleMaps
import AVFoundation
import Intents
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
_ = AWSAnalyticsService.shared
Config.checkKeys()
GMSServices.provideAPIKey(Config.googleMapsKey)
SoundManager.enableBackgroundAudio()
LowMemoryHandler.appStarted()
return true
}
func applicationWillResignActive(_ application: UIApplication) {
CDManager.saveContext()
}
func applicationWillTerminate(_ application: UIApplication) {
CDManager.saveContext()
}
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any]) -> Bool {
return RunModel.addRun(url)
}
func application(_ application: UIApplication, handle intent: INIntent, completionHandler: @escaping (INIntentResponse) -> Void) {
completionHandler(IntentHandler.handle(intent: intent))
}
}
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.