-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Daij-Djan-master: clean up output addded %address option and replaced deprecated code
- Loading branch information
Showing
7 changed files
with
204 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file modified
0
CoreLocationCLI.xcodeproj/project.xcworkspace/contents.xcworkspacedata
100644 → 100755
Empty file.
91 changes: 91 additions & 0 deletions
91
CoreLocationCLI.xcodeproj/xcshareddata/xcschemes/CoreLocationCLI.xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Scheme | ||
LastUpgradeVersion = "0730" | ||
version = "1.3"> | ||
<BuildAction | ||
parallelizeBuildables = "YES" | ||
buildImplicitDependencies = "YES"> | ||
<BuildActionEntries> | ||
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "YES" | ||
buildForProfiling = "YES" | ||
buildForArchiving = "YES" | ||
buildForAnalyzing = "YES"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "D97136FB1C38867000BA5442" | ||
BuildableName = "CoreLocationCLI.temp_caseinsensitive_rename" | ||
BlueprintName = "CoreLocationCLI" | ||
ReferencedContainer = "container:CoreLocationCLI.xcodeproj"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
</BuildActionEntries> | ||
</BuildAction> | ||
<TestAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
shouldUseLaunchSchemeArgsEnv = "YES"> | ||
<Testables> | ||
</Testables> | ||
<MacroExpansion> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "D97136FB1C38867000BA5442" | ||
BuildableName = "CoreLocationCLI.temp_caseinsensitive_rename" | ||
BlueprintName = "CoreLocationCLI" | ||
ReferencedContainer = "container:CoreLocationCLI.xcodeproj"> | ||
</BuildableReference> | ||
</MacroExpansion> | ||
<AdditionalOptions> | ||
</AdditionalOptions> | ||
</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"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "D97136FB1C38867000BA5442" | ||
BuildableName = "CoreLocationCLI.temp_caseinsensitive_rename" | ||
BlueprintName = "CoreLocationCLI" | ||
ReferencedContainer = "container:CoreLocationCLI.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
<AdditionalOptions> | ||
</AdditionalOptions> | ||
</LaunchAction> | ||
<ProfileAction | ||
buildConfiguration = "Release" | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
savedToolIdentifier = "" | ||
useCustomWorkingDirectory = "NO" | ||
debugDocumentVersioning = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "D97136FB1C38867000BA5442" | ||
BuildableName = "CoreLocationCLI.temp_caseinsensitive_rename" | ||
BlueprintName = "CoreLocationCLI" | ||
ReferencedContainer = "container:CoreLocationCLI.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
</ProfileAction> | ||
<AnalyzeAction | ||
buildConfiguration = "Debug"> | ||
</AnalyzeAction> | ||
<ArchiveAction | ||
buildConfiguration = "Release" | ||
revealArchiveInOrganizer = "YES"> | ||
</ArchiveAction> | ||
</Scheme> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// | ||
// CLPlacemark+CNPostalAddress.swift | ||
// | ||
// Created by Dominik Pich on 5/23/16. | ||
// Copyright © 2016 William Entriken. All rights reserved. | ||
// | ||
|
||
import CoreLocation | ||
import Contacts | ||
|
||
extension CLPlacemark { | ||
var postalAddress : CNPostalAddress? { | ||
get { | ||
guard let addressdictionary = self.addressDictionary else { | ||
return nil | ||
} | ||
let address = CNMutablePostalAddress() | ||
address.street = addressdictionary["Street"] as? String ?? "" | ||
address.state = addressdictionary["State"] as? String ?? "" | ||
address.city = addressdictionary["City"] as? String ?? "" | ||
address.country = addressdictionary["Country"] as? String ?? "" | ||
address.postalCode = addressdictionary["ZIP"] as? String ?? "" | ||
return address | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters