Skip to content

Commit

Permalink
🚧 WIP Improve geodesic types
Browse files Browse the repository at this point in the history
  • Loading branch information
RemiBardon committed Oct 17, 2022
1 parent d89497b commit dc236fe
Show file tree
Hide file tree
Showing 51 changed files with 1,427 additions and 1,129 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>classNames</key>
<dict>
<key>GeodeticDisplayTests</key>
<dict>
<key>testNumberFormatterStringForPerformance()</key>
<dict>
<key>com.apple.dt.XCTMetric_Clock.time.monotonic</key>
<dict>
<key>baselineAverage</key>
<real>0.000011</real>
<key>baselineIntegrationDisplayName</key>
<string>Local Baseline</string>
</dict>
</dict>
<key>testNumberFormatterStringFromPerformance()</key>
<dict>
<key>com.apple.dt.XCTMetric_Clock.time.monotonic</key>
<dict>
<key>baselineAverage</key>
<real>0.000013</real>
<key>baselineIntegrationDisplayName</key>
<string>Local Baseline</string>
</dict>
</dict>
</dict>
</dict>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>runDestinationsByUUID</key>
<dict>
<key>9AAF5982-4101-4C27-8140-52ECB503EFD7</key>
<dict>
<key>localComputer</key>
<dict>
<key>busSpeedInMHz</key>
<integer>400</integer>
<key>cpuCount</key>
<integer>1</integer>
<key>cpuKind</key>
<string>6-Core Intel Core i7</string>
<key>cpuSpeedInMHz</key>
<integer>2600</integer>
<key>logicalCPUCoresPerPackage</key>
<integer>12</integer>
<key>modelCode</key>
<string>MacBookPro16,1</string>
<key>physicalCPUCoresPerPackage</key>
<integer>6</integer>
<key>platformIdentifier</key>
<string>com.apple.platform.macosx</string>
</dict>
<key>targetArchitecture</key>
<string>x86_64</string>
</dict>
</dict>
</dict>
</plist>
93 changes: 0 additions & 93 deletions .swiftpm/xcode/xcshareddata/xcschemes/GeoModels.xcscheme

This file was deleted.

62 changes: 62 additions & 0 deletions .swiftpm/xcode/xcshareddata/xcschemes/swift-geo-Package.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,48 @@
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "GeodeticGeometry"
BuildableName = "GeodeticGeometry"
BlueprintName = "GeodeticGeometry"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "GeodeticDisplay"
BuildableName = "GeodeticDisplay"
BlueprintName = "GeodeticDisplay"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "ValueWithUnit"
BuildableName = "ValueWithUnit"
BlueprintName = "ValueWithUnit"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
Expand Down Expand Up @@ -177,6 +219,26 @@
ReferencedContainer = "container:">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "GeodeticGeometryTests"
BuildableName = "GeodeticGeometryTests"
BlueprintName = "GeodeticGeometryTests"
ReferencedContainer = "container:">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "GeodeticDisplayTests"
BuildableName = "GeodeticDisplayTests"
BlueprintName = "GeodeticDisplayTests"
ReferencedContainer = "container:">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
Expand Down
8 changes: 0 additions & 8 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,6 @@
"revision" : "f8a9c997c3c1dab4e216a8ec9014e23144cbab37",
"version" : "1.9.0"
}
},
{
"identity" : "swift-tagged",
"kind" : "remoteSourceControl",
"location" : "https://github.com/RemiBardon/swift-tagged",
"state" : {
"revision" : "ecec19de0b88bbc0057c3b7d2f6a0df5e4076f07"
}
}
],
"version" : 2
Expand Down
33 changes: 14 additions & 19 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ let package = Package(
.library(name: "Geodesy", targets: ["Geodesy"]),
.library(name: "WGS84", targets: ["WGS84"]),
.library(name: "GeoCoordinates", targets: ["GeoCoordinates"]),
.library(name: "GeoModels", targets: ["GeoModels"]),
.library(name: "GeodeticGeometry", targets: ["GeodeticGeometry"]),
.library(name: "Turf", targets: ["Turf"]),
],
dependencies: [
Expand All @@ -20,11 +20,6 @@ let package = Package(
// Last commit to date on https://github.com/RemiBardon/swift-nonempty/compare/nested-nonempty
revision: "f951b7bcd4f13586307f53b0de5d1b20976aceab"
),
.package(
url: "https://github.com/RemiBardon/swift-tagged",
// Last commit to date on https://github.com/RemiBardon/swift-tagged/compare/floating-point-conformance
revision: "ecec19de0b88bbc0057c3b7d2f6a0df5e4076f07"
),
.package(
url: "https://github.com/pointfreeco/swift-snapshot-testing",
.upToNextMajor(from: "1.9.0")
Expand All @@ -33,23 +28,20 @@ let package = Package(
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.target(
name: "Geodesy",
dependencies: [
.product(name: "Tagged", package: "swift-tagged"),
]
),
.target(name: "WGS84", dependencies: ["Geodesy"]),
.testTarget(name: "WGS84Tests", dependencies: ["WGS84"]),
.target(name: "ValueWithUnit"),
.target(name: "Geodesy", dependencies: ["ValueWithUnit"]),
.target(name: "GeoCoordinates"),
.testTarget(name: "GeoCoordinatesTests", dependencies: [
"GeoCoordinates",
.product(name: "Algorithms", package: "swift-algorithms"),
]),
.target(name: "GeodeticDisplay", dependencies: ["Geodesy"]),
.testTarget(name: "GeodeticDisplayTests", dependencies: ["GeodeticDisplay", "WGS84"]),
.target(
name: "GeoModels",
name: "GeodeticGeometry",
dependencies: [
"GeoCoordinates",
"Geodesy",
"GeodeticDisplay",
.product(name: "Algorithms", package: "swift-algorithms"),
.product(name: "NonEmpty", package: "swift-nonempty"),
],
Expand All @@ -68,11 +60,13 @@ let package = Package(
// ]),
]
),
.testTarget(name: "GeoModelsTests", dependencies: ["GeoModels"]),
.testTarget(name: "GeodeticGeometryTests", dependencies: ["GeodeticGeometry", "WGS84"]),
.target(name: "WGS84", dependencies: ["Geodesy", "GeodeticGeometry"]),
.testTarget(name: "WGS84Tests", dependencies: ["WGS84"]),
.target(
name: "Turf",
dependencies: [
.target(name: "GeoModels"),
.target(name: "GeodeticGeometry"),
.product(name: "Algorithms", package: "swift-algorithms"),
],
swiftSettings: [
Expand All @@ -95,7 +89,8 @@ let package = Package(
dependencies: [
"Turf",
.product(name: "SnapshotTesting", package: "swift-snapshot-testing"),
]
],
resources: [.copy("__Snapshots__")]
),
]
)

This file was deleted.

37 changes: 0 additions & 37 deletions Sources/GeoCoordinates/Latitude.swift

This file was deleted.

Loading

0 comments on commit dc236fe

Please sign in to comment.