Files
POCloud-iOS/pocloud/Controller/AppDelegate.swift
Patrick McDonagh 95467f9161 Adds firebase live data
Also no longer crashes when touching something while loading
2018-05-31 19:55:47 -05:00

45 lines
1.0 KiB
Swift

//
// AppDelegate.swift
// pocloud
//
// Created by Patrick McDonagh on 5/22/18.
// Copyright © 2018 patrickjmcd. All rights reserved.
//
import UIKit
import PromiseKit
import Alamofire
import SwiftyJSON
import RealmSwift
import Firebase
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
let baseURL : String = "https://henrypump.meshify.com/api/v3"
var user : User?
let channelDataTypes: [Int : String] = [
0: "Unknown",
1: "Float",
2: "String",
3: "Integer",
4: "Boolean",
5: "DateTime",
6: "Timespan",
7 :"File",
8: "LatLng"
]
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Chameleon.setGlobalThemeUsingPrimaryColor(UIColor.flatSkyBlue(), with: UIContentStyle.contrast)
// print(Realm.Configuration.defaultConfiguration.fileURL)
FirebaseApp.configure()
return true
}
}