Skip to content

Commit 64b04dc

Browse files
author
Egor Lindberg
committed
Migrated to swift 5.
1 parent 7e29be9 commit 64b04dc

File tree

5 files changed

+34
-19
lines changed

5 files changed

+34
-19
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,5 @@ Carthage
3131
# `pod install` in .travis.yml
3232
#
3333
# Pods/
34+
contents.xcworkspacedata
35+
IDEWorkspaceChecks.plist

Example/Pods/Pods.xcodeproj/project.pbxproj

Lines changed: 28 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ORLocation/Classes/ORCurrentLocationDetector.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public typealias ORCurrentLocationDetectorCompletion = (_ location: CLLocation?)
1212

1313
@objc open class ORCurrentLocationDetector: NSObject, CLLocationManagerDelegate {
1414

15-
open static let shared = ORCurrentLocationDetector()
15+
public static let shared = ORCurrentLocationDetector()
1616

1717
fileprivate lazy var locationManager = CLLocationManager()
1818

ORLocation/Classes/ORLocation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import CoreLocation
1010

1111
open class ORLocation: NSObject, CLLocationManagerDelegate {
1212

13-
open static let shared = ORLocation()
13+
public static let shared = ORLocation()
1414

1515
var locationManager: CLLocationManager!
1616

ORLocation/Classes/ORMapsHelper.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ public typealias ORGeoSearchResponseBlock = (_ items: [MKMapItem]?, _ error: Err
1313

1414
@objc open class ORMapsHelper: NSObject {
1515

16-
open static func mapItemWithCoordinate(_ coordinate: CLLocationCoordinate2D, addressInfo info:[String: String]?) -> MKMapItem {
16+
public static func mapItemWithCoordinate(_ coordinate: CLLocationCoordinate2D, addressInfo info:[String: String]?) -> MKMapItem {
1717
let mark = MKPlacemark(coordinate: coordinate, addressDictionary: info)
1818
return MKMapItem(placemark: mark)
1919
}
2020

21-
open static func mapItemsForAddress(_ address: String, completion: @escaping ORGeoSearchResponseBlock) {
21+
public static func mapItemsForAddress(_ address: String, completion: @escaping ORGeoSearchResponseBlock) {
2222
let geocoder = CLGeocoder()
2323

2424
geocoder.geocodeAddressString(address) { (placemarks, error) in

0 commit comments

Comments
 (0)