46 lines
1.1 KiB
Swift
46 lines
1.1 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)
|
|
Migrations().checkSchema()
|
|
FirebaseApp.configure()
|
|
|
|
return true
|
|
}
|
|
}
|
|
|