Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
2kai2kai2 committed Jun 23, 2023
2 parents 392fda2 + f824d07 commit eca7a55
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
20 changes: 12 additions & 8 deletions apps/ios/GuideDogs.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -662,8 +662,7 @@
62EACA2B26697F4300DBDECC /* WaypointDetailAnnotationView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 62EACA2A26697F4300DBDECC /* WaypointDetailAnnotationView.swift */; };
62F7A30C27B6080900C62390 /* InteractiveBeaconView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 62F7A30B27B6080900C62390 /* InteractiveBeaconView.swift */; };
62F7A30E27B6082A00C62390 /* InteractiveBeaconViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 62F7A30D27B6082A00C62390 /* InteractiveBeaconViewModel.swift */; };
914DEBDD2A3CE901007B161C /* GeometryUtilsTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 914DEBDC2A3CE901007B161C /* GeometryUtilsTest.swift */; };
914DEBDE2A3D0480007B161C /* GeometryUtils.swift in Sources */ = {isa = PBXBuildFile; fileRef = B93629B11FCF1C3000BAF3A6 /* GeometryUtils.swift */; };
91DC0CF92A46134600244CC8 /* GeometryUtilsTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 914DEBDC2A3CE901007B161C /* GeometryUtilsTest.swift */; };
B5499F0EEDE32E16F9814457 /* Pods_Soundscape.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DAEDD72453A8268FBA604D2F /* Pods_Soundscape.framework */; };
B90C27D61EAF81D600007368 /* Sound.swift in Sources */ = {isa = PBXBuildFile; fileRef = B90C27D51EAF81D600007368 /* Sound.swift */; };
B918EE9825100FFF00A5354A /* CalloutRangeContext.swift in Sources */ = {isa = PBXBuildFile; fileRef = B918EE9725100FFF00A5354A /* CalloutRangeContext.swift */; };
Expand Down Expand Up @@ -879,7 +878,7 @@
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
914DEBD12A3CE6B9007B161C /* PBXContainerItemProxy */ = {
91DC0CD12A423B2200244CC8 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = D3D7CFC01B3D96460020B5E9 /* Project object */;
proxyType = 1;
Expand Down Expand Up @@ -1578,6 +1577,9 @@
62F7A30D27B6082A00C62390 /* InteractiveBeaconViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InteractiveBeaconViewModel.swift; sourceTree = "<group>"; };
914DEBCD2A3CE6B9007B161C /* UnitTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = UnitTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
914DEBDC2A3CE901007B161C /* GeometryUtilsTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GeometryUtilsTest.swift; sourceTree = "<group>"; };
91DC0CF32A460FAA00244CC8 /* iOS_GPX_Framework.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = iOS_GPX_Framework.framework; sourceTree = BUILT_PRODUCTS_DIR; };
91DC0CF52A460FAA00244CC8 /* Pods_Soundscape.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = Pods_Soundscape.framework; sourceTree = BUILT_PRODUCTS_DIR; };
91DC0CF72A460FAA00244CC8 /* TBXML.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = TBXML.framework; sourceTree = BUILT_PRODUCTS_DIR; };
B90C27D51EAF81D600007368 /* Sound.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = Sound.swift; path = Code/Audio/Protocols/Sound.swift; sourceTree = "<group>"; };
B918EE9725100FFF00A5354A /* CalloutRangeContext.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CalloutRangeContext.swift; sourceTree = "<group>"; };
B91D3F6327AB5546004159A8 /* UserAction.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UserAction.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -3006,6 +3008,9 @@
4AD48659F673FA58D2DF2C07 /* Frameworks */ = {
isa = PBXGroup;
children = (
91DC0CF32A460FAA00244CC8 /* iOS_GPX_Framework.framework */,
91DC0CF52A460FAA00244CC8 /* Pods_Soundscape.framework */,
91DC0CF72A460FAA00244CC8 /* TBXML.framework */,
280FF2FC26AF6BDF00DE9C5D /* SwiftUI.framework */,
2876EE142433FE5600B0A137 /* CoreServices.framework */,
D3E2A6361CAD5CA100A5192A /* Accelerate.framework */,
Expand Down Expand Up @@ -5173,7 +5178,7 @@
buildRules = (
);
dependencies = (
914DEBD22A3CE6B9007B161C /* PBXTargetDependency */,
91DC0CD22A423B2200244CC8 /* PBXTargetDependency */,
);
name = UnitTests;
productName = UnitTests;
Expand Down Expand Up @@ -5509,8 +5514,7 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
914DEBDD2A3CE901007B161C /* GeometryUtilsTest.swift in Sources */,
914DEBDE2A3D0480007B161C /* GeometryUtils.swift in Sources */,
91DC0CF92A46134600244CC8 /* GeometryUtilsTest.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -6252,10 +6256,10 @@
/* End PBXSourcesBuildPhase section */

/* Begin PBXTargetDependency section */
914DEBD22A3CE6B9007B161C /* PBXTargetDependency */ = {
91DC0CD22A423B2200244CC8 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = D3D7CFC71B3D96460020B5E9 /* Soundscape */;
targetProxy = 914DEBD12A3CE6B9007B161C /* PBXContainerItemProxy */;
targetProxy = 91DC0CD12A423B2200244CC8 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */

Expand Down
3 changes: 2 additions & 1 deletion apps/ios/UnitTests/App/Helpers/GeometryUtilsTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import XCTest
import CoreLocation
@testable import Soundscape

class GeometryUtilsTest: XCTestCase {

Expand All @@ -22,7 +23,7 @@ class GeometryUtilsTest: XCTestCase {
func testExample() throws {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct results.
XCTAssert(GeometryUtils.geometryContainsLocation(location: CLLocationCoordinate2D.init(latitude: 1, longitude: 1), coordinates: [CLLocationCoordinate2D.init(latitude: 1, longitude: 1), CLLocationCoordinate2D.init(latitude: 3, longitude: 3)]))
XCTAssert(Soundscape.GeometryUtils.geometryContainsLocation(location: CLLocationCoordinate2D.init(latitude: 1, longitude: 1), coordinates: [CLLocationCoordinate2D.init(latitude: 1, longitude: 1), CLLocationCoordinate2D.init(latitude: 3, longitude: 3)]))
}

func testPerformanceExample() throws {
Expand Down

0 comments on commit eca7a55

Please sign in to comment.