Skip to content

Commit

Permalink
move Crashlytics setup on AppDelegate
Browse files Browse the repository at this point in the history
  • Loading branch information
Fr0zenSide committed Feb 1, 2019
1 parent 227611e commit 72938e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 6 additions & 0 deletions Boilerplate/Extensions/AppDelegate.swift
Expand Up @@ -8,6 +8,8 @@

import UIKit
import CocoaLumberjack
import Crashlytics
import Fabric
import Firebase
import KeychainAccess

Expand Down Expand Up @@ -38,6 +40,10 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
// Setup Firebase
FirebaseApp.configure()

// Setup Crashlytics
Fabric.sharedSDK().debug = true
Fabric.with([Crashlytics.self])

// Setup api Tokens in keychain
let apptweakToken = ""
if apptweakToken == "" && (keychain["apptweakToken"] == nil || keychain["apptweakToken"] == "") {
Expand Down
7 changes: 2 additions & 5 deletions Boilerplate/ViewControllers/ViewController.swift
Expand Up @@ -7,9 +7,8 @@
//

import UIKit
import CocoaLumberjack
import QuartzCore
import Fabric
import Crashlytics

class ViewController: UIViewController {

Expand Down Expand Up @@ -89,9 +88,7 @@ class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()

print("World 🎉")
Fabric.sharedSDK().debug = true
Fabric.with([Crashlytics.self])
DDLogDebug("World 🎉")
}

// In a storyboard-based application, you will often want to do a little preparation before navigation
Expand Down

0 comments on commit 72938e8

Please sign in to comment.