Skip to content

Commit

Permalink
🚧 WIP Introduce geodesic types
Browse files Browse the repository at this point in the history
  • Loading branch information
RemiBardon committed Oct 1, 2022
1 parent 9d86ba4 commit d89497b
Show file tree
Hide file tree
Showing 9 changed files with 847 additions and 1 deletion.
67 changes: 67 additions & 0 deletions .swiftpm/xcode/xcshareddata/xcschemes/Geodesy.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1400"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Geodesy"
BuildableName = "Geodesy"
BlueprintName = "Geodesy"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Geodesy"
BuildableName = "Geodesy"
BlueprintName = "Geodesy"
ReferencedContainer = "container:">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
79 changes: 79 additions & 0 deletions .swiftpm/xcode/xcshareddata/xcschemes/WGS84.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1400"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "WGS84"
BuildableName = "WGS84"
BlueprintName = "WGS84"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO"
parallelizable = "YES"
testExecutionOrdering = "random">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "WGS84Tests"
BuildableName = "WGS84Tests"
BlueprintName = "WGS84Tests"
ReferencedContainer = "container:">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "WGS84"
BuildableName = "WGS84"
BlueprintName = "WGS84"
ReferencedContainer = "container:">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
48 changes: 48 additions & 0 deletions .swiftpm/xcode/xcshareddata/xcschemes/swift-geo-Package.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,34 @@
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Geodesy"
BuildableName = "Geodesy"
BlueprintName = "Geodesy"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "WGS84"
BuildableName = "WGS84"
BlueprintName = "WGS84"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
Expand Down Expand Up @@ -129,6 +157,26 @@
ReferencedContainer = "container:">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "GeodesyTests"
BuildableName = "GeodesyTests"
BlueprintName = "GeodesyTests"
ReferencedContainer = "container:">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "WGS84Tests"
BuildableName = "WGS84Tests"
BlueprintName = "WGS84Tests"
ReferencedContainer = "container:">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
Expand Down
8 changes: 8 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@
"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
17 changes: 16 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ let package = Package(
name: "swift-geo",
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(name: "Geodesy", targets: ["Geodesy"]),
.library(name: "WGS84", targets: ["WGS84"]),
.library(name: "GeoCoordinates", targets: ["GeoCoordinates"]),
.library(name: "GeoModels", targets: ["GeoModels"]),
.library(name: "Turf", targets: ["Turf"]),
Expand All @@ -15,9 +17,14 @@ let package = Package(
.package(url: "https://github.com/apple/swift-algorithms", .upToNextMajor(from: "1.0.0")),
.package(
url: "https://github.com/RemiBardon/swift-nonempty",
// Last commit to date on https://github.com/RemiBardon/swift-nonempty/compare/nested-nonempty.
// 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 @@ -26,6 +33,14 @@ 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: "GeoCoordinates"),
.testTarget(name: "GeoCoordinatesTests", dependencies: [
"GeoCoordinates",
Expand Down
Loading

0 comments on commit d89497b

Please sign in to comment.