Skip to content

Commit

Permalink
Add dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
rcasula committed Oct 18, 2022
1 parent 01cccec commit 14962f7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
21 changes: 21 additions & 0 deletions Sources/ComposableCoreLocation/Dependencies.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
//
// Dependencies.swift
//
//
// Created by Roberto Casula on 18/10/22.
//

import Dependencies
import Foundation

extension DependencyValues {
public var locationManager: LocationManager {
get { self[LocationManager.self] }
set { self[LocationManager.self] = newValue }
}
}

extension LocationManager: DependencyKey {
public static let testValue = Self.failing
public static var liveValue = Self.live
}
8 changes: 0 additions & 8 deletions Sources/ComposableCoreLocation/TestKey.swift

This file was deleted.

0 comments on commit 14962f7

Please sign in to comment.