Skip to content

Commit

Permalink
Rename library to CoreLocationClient
Browse files Browse the repository at this point in the history
  • Loading branch information
rcasula committed Nov 25, 2024
1 parent 0f3651b commit 363839a
Show file tree
Hide file tree
Showing 29 changed files with 588 additions and 745 deletions.

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion Examples/LocationManager/Common/AppCore.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import ComposableArchitecture
import ComposableCoreLocation
import CoreLocationClient
import MapKit

public struct PointOfInterest: Equatable, Hashable {
Expand Down
18 changes: 9 additions & 9 deletions Examples/LocationManager/Common/LocalSearchClient/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@ import MapKit
import Dependencies

extension DependencyValues {
public var localSearchClient: LocalSearchClient {
get { self[LocalSearchClient.self] }
set { self[LocalSearchClient.self] = newValue }
}
public var localSearchClient: LocalSearchClient {
get { self[LocalSearchClient.self] }
set { self[LocalSearchClient.self] = newValue }
}
}

extension LocalSearchClient: TestDependencyKey {
public static let previewValue = Self.noop
public static let testValue = Self.failing
public static let previewValue = Self.noop
public static let testValue = Self.noop
}

extension LocalSearchClient {
public static let noop = Self(
search: { _ in try await Task.never() }
)
public static let noop = Self(
search: { _ in try await Task.never() }
)
}

public struct LocalSearchClient {
Expand Down
3 changes: 0 additions & 3 deletions Examples/LocationManager/Common/LocalSearchClient/Live.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import Combine
import ComposableArchitecture
import MapKit



extension LocalSearchClient: DependencyKey {
public static let liveValue = Self(
search: { request in
Expand Down
2 changes: 1 addition & 1 deletion Examples/LocationManager/CommonTests/CommonTests.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Combine
import ComposableArchitecture
import ComposableCoreLocation
import CoreLocationClient
import CoreLocation
import MapKit
import XCTest
Expand Down
2 changes: 1 addition & 1 deletion Examples/LocationManager/Desktop/LocationManagerView.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Combine
import ComposableArchitecture
import ComposableCoreLocation
import CoreLocationClient
import MapKit
import SwiftUI

Expand Down
32 changes: 13 additions & 19 deletions Examples/LocationManager/LocationManager.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,20 @@
objects = {

/* Begin PBXBuildFile section */
6A102C722CF36059006E5DB6 /* CoreLocationClient in Frameworks */ = {isa = PBXBuildFile; productRef = 6A102C712CF36059006E5DB6 /* CoreLocationClient */; };
6A102C742CF36066006E5DB6 /* CoreLocationClient in Frameworks */ = {isa = PBXBuildFile; productRef = 6A102C732CF36066006E5DB6 /* CoreLocationClient */; };
CA17CC0F24720BBA00BDDF11 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = CA17CC0E24720BBA00BDDF11 /* SceneDelegate.swift */; };
CA17CC1124720BBA00BDDF11 /* LocationManagerView.swift in Sources */ = {isa = PBXBuildFile; fileRef = CA17CC1024720BBA00BDDF11 /* LocationManagerView.swift */; };
CA17CC1324720BBB00BDDF11 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = CA17CC1224720BBB00BDDF11 /* Assets.xcassets */; };
CA17CC3924720BEB00BDDF11 /* ComposableArchitecture in Frameworks */ = {isa = PBXBuildFile; productRef = CA17CC3824720BEB00BDDF11 /* ComposableArchitecture */; };
CA17CCB62474582000BDDF11 /* ComposableCoreLocation in Frameworks */ = {isa = PBXBuildFile; productRef = CA17CCB52474582000BDDF11 /* ComposableCoreLocation */; };
CA17CCC024745B1000BDDF11 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = CA17CCBF24745B1000BDDF11 /* AppDelegate.swift */; };
CA17CCC224745B1000BDDF11 /* LocationManagerView.swift in Sources */ = {isa = PBXBuildFile; fileRef = CA17CCC124745B1000BDDF11 /* LocationManagerView.swift */; };
CA17CCC424745B1000BDDF11 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = CA17CCC324745B1000BDDF11 /* Assets.xcassets */; };
CA17CCE324745B1A00BDDF11 /* ComposableArchitecture in Frameworks */ = {isa = PBXBuildFile; productRef = CA17CCE224745B1A00BDDF11 /* ComposableArchitecture */; };
CA17CCE524745B1A00BDDF11 /* ComposableCoreLocation in Frameworks */ = {isa = PBXBuildFile; productRef = CA17CCE424745B1A00BDDF11 /* ComposableCoreLocation */; };
CA74947D2474A4F100B13019 /* MapView.swift in Sources */ = {isa = PBXBuildFile; fileRef = CA74946B2474A4F100B13019 /* MapView.swift */; };
CA74947E2474A4F100B13019 /* MapView.swift in Sources */ = {isa = PBXBuildFile; fileRef = CA74946B2474A4F100B13019 /* MapView.swift */; };
CA74947F2474A4F100B13019 /* Helpers.swift in Sources */ = {isa = PBXBuildFile; fileRef = CA74946C2474A4F100B13019 /* Helpers.swift */; };
CA7494802474A4F100B13019 /* Helpers.swift in Sources */ = {isa = PBXBuildFile; fileRef = CA74946C2474A4F100B13019 /* Helpers.swift */; };
CA7494812474A4F100B13019 /* Failing.swift in Sources */ = {isa = PBXBuildFile; fileRef = CA74946E2474A4F100B13019 /* Failing.swift */; };
CA7494822474A4F100B13019 /* Failing.swift in Sources */ = {isa = PBXBuildFile; fileRef = CA74946E2474A4F100B13019 /* Failing.swift */; };
CA7494832474A4F100B13019 /* Client.swift in Sources */ = {isa = PBXBuildFile; fileRef = CA74946F2474A4F100B13019 /* Client.swift */; };
CA7494842474A4F100B13019 /* Client.swift in Sources */ = {isa = PBXBuildFile; fileRef = CA74946F2474A4F100B13019 /* Client.swift */; };
CA7494852474A4F100B13019 /* Models.swift in Sources */ = {isa = PBXBuildFile; fileRef = CA7494702474A4F100B13019 /* Models.swift */; };
Expand Down Expand Up @@ -67,7 +65,6 @@
CA17CCCC24745B1000BDDF11 /* LocationManagerDesktop.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = LocationManagerDesktop.entitlements; sourceTree = "<group>"; };
CA74946B2474A4F100B13019 /* MapView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MapView.swift; sourceTree = "<group>"; };
CA74946C2474A4F100B13019 /* Helpers.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Helpers.swift; sourceTree = "<group>"; };
CA74946E2474A4F100B13019 /* Failing.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Failing.swift; sourceTree = "<group>"; };
CA74946F2474A4F100B13019 /* Client.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Client.swift; sourceTree = "<group>"; };
CA7494702474A4F100B13019 /* Models.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Models.swift; sourceTree = "<group>"; };
CA7494712474A4F100B13019 /* Live.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Live.swift; sourceTree = "<group>"; };
Expand All @@ -85,17 +82,17 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
CA17CCB62474582000BDDF11 /* ComposableCoreLocation in Frameworks */,
CA17CC3924720BEB00BDDF11 /* ComposableArchitecture in Frameworks */,
6A102C722CF36059006E5DB6 /* CoreLocationClient in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
CA17CCBA24745B1000BDDF11 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
CA17CCE524745B1A00BDDF11 /* ComposableCoreLocation in Frameworks */,
CA17CCE324745B1A00BDDF11 /* ComposableArchitecture in Frameworks */,
6A102C742CF36066006E5DB6 /* CoreLocationClient in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -185,7 +182,6 @@
CA74946D2474A4F100B13019 /* LocalSearchClient */ = {
isa = PBXGroup;
children = (
CA74946E2474A4F100B13019 /* Failing.swift */,
CA74946F2474A4F100B13019 /* Client.swift */,
CA7494702474A4F100B13019 /* Models.swift */,
CA7494712474A4F100B13019 /* Live.swift */,
Expand Down Expand Up @@ -220,7 +216,7 @@
name = LocationManagerMobile;
packageProductDependencies = (
CA17CC3824720BEB00BDDF11 /* ComposableArchitecture */,
CA17CCB52474582000BDDF11 /* ComposableCoreLocation */,
6A102C712CF36059006E5DB6 /* CoreLocationClient */,
);
productName = LocationManager;
productReference = CA17CC0924720BBA00BDDF11 /* LocationManagerMobile.app */;
Expand All @@ -241,7 +237,7 @@
name = LocationManagerDesktop;
packageProductDependencies = (
CA17CCE224745B1A00BDDF11 /* ComposableArchitecture */,
CA17CCE424745B1A00BDDF11 /* ComposableCoreLocation */,
6A102C732CF36066006E5DB6 /* CoreLocationClient */,
);
productName = LocationManagerDesktop;
productReference = CA17CCBD24745B1000BDDF11 /* LocationManagerDesktop.app */;
Expand Down Expand Up @@ -374,7 +370,6 @@
files = (
CA7494892474A4F100B13019 /* AppCore.swift in Sources */,
CA17CC0F24720BBA00BDDF11 /* SceneDelegate.swift in Sources */,
CA7494812474A4F100B13019 /* Failing.swift in Sources */,
CA7494832474A4F100B13019 /* Client.swift in Sources */,
CA74947D2474A4F100B13019 /* MapView.swift in Sources */,
CA17CC1124720BBA00BDDF11 /* LocationManagerView.swift in Sources */,
Expand All @@ -390,7 +385,6 @@
files = (
CA74948A2474A4F100B13019 /* AppCore.swift in Sources */,
CA17CCC224745B1000BDDF11 /* LocationManagerView.swift in Sources */,
CA7494822474A4F100B13019 /* Failing.swift in Sources */,
CA7494842474A4F100B13019 /* Client.swift in Sources */,
CA74947E2474A4F100B13019 /* MapView.swift in Sources */,
CA17CCC024745B1000BDDF11 /* AppDelegate.swift in Sources */,
Expand Down Expand Up @@ -785,21 +779,21 @@
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
CA17CC3824720BEB00BDDF11 /* ComposableArchitecture */ = {
6A102C712CF36059006E5DB6 /* CoreLocationClient */ = {
isa = XCSwiftPackageProductDependency;
productName = ComposableArchitecture;
productName = CoreLocationClient;
};
CA17CCB52474582000BDDF11 /* ComposableCoreLocation */ = {
6A102C732CF36066006E5DB6 /* CoreLocationClient */ = {
isa = XCSwiftPackageProductDependency;
productName = ComposableCoreLocation;
productName = CoreLocationClient;
};
CA17CCE224745B1A00BDDF11 /* ComposableArchitecture */ = {
CA17CC3824720BEB00BDDF11 /* ComposableArchitecture */ = {
isa = XCSwiftPackageProductDependency;
productName = ComposableArchitecture;
};
CA17CCE424745B1A00BDDF11 /* ComposableCoreLocation */ = {
CA17CCE224745B1A00BDDF11 /* ComposableArchitecture */ = {
isa = XCSwiftPackageProductDependency;
productName = ComposableCoreLocation;
productName = ComposableArchitecture;
};
/* End XCSwiftPackageProductDependency section */
};
Expand Down
Loading

0 comments on commit 363839a

Please sign in to comment.