Skip to content
This repository has been archived by the owner on Jan 5, 2022. It is now read-only.

Commit

Permalink
Fixed mother fucking release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
regnerjr committed Jul 17, 2017
1 parent 5111d84 commit 18d0d58
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions WorkWeek/AppCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import UIKit
import CoreLocation

class AppCoordinator: OnboardingCoordinatorDelegate, SettingsCoordinatorDelegate {
class AppCoordinator: OnboardingCoordinatorDelegate {

let locationManager: CLLocationManager
let navigationController: UINavigationController
Expand Down Expand Up @@ -65,22 +65,25 @@ class AppCoordinator: OnboardingCoordinatorDelegate, SettingsCoordinatorDelegate

// MARK: Settings
// TODO: eventually will go away but leaving so our build configs still work
}

#if DEBUG
func showSettings() {
let settingsCoordinator = SettingsCoordinator(with: navigationController,
manger: locationManager,
delegate: self)
childCoordinators.add(settingsCoordinator)
settingsCoordinator.start()
}
#if DEBUG

func settingsFinished(with coordinator: SettingsCoordinator) {
childCoordinators.remove(coordinator)
showActivity(animated: false)
extension AppCoordinator: SettingsCoordinatorDelegate {
func showSettings() {
let settingsCoordinator = SettingsCoordinator(with: navigationController,
manger: locationManager,
delegate: self)
childCoordinators.add(settingsCoordinator)
settingsCoordinator.start()
}

func settingsFinished(with coordinator: SettingsCoordinator) {
childCoordinators.remove(coordinator)
showActivity(animated: false)
}
}
#endif
}
#endif

extension UserDefaults {
enum Key: String {
Expand Down

0 comments on commit 18d0d58

Please sign in to comment.