Skip to content

Commit

Permalink
Upload to cocoapods and add spm support
Browse files Browse the repository at this point in the history
  • Loading branch information
Egor Lindberg committed Jan 19, 2021
1 parent 64b04dc commit bd6dc5b
Show file tree
Hide file tree
Showing 66 changed files with 2,868 additions and 746 deletions.
1 change: 0 additions & 1 deletion .swift-version

This file was deleted.

196 changes: 93 additions & 103 deletions Example/ORLocation.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0800"
LastUpgradeVersion = "0900"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down Expand Up @@ -40,6 +40,7 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
Expand Down Expand Up @@ -69,6 +70,7 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
Expand Down
4 changes: 2 additions & 2 deletions Example/ORLocation/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// AppDelegate.swift
// ORLocation
//
// Created by Maxim Soloviev on 09/11/2016.
// Copyright (c) 2016 Maxim Soloviev. All rights reserved.
// Created by Egor Lindberg on 01/19/2021.
// Copyright (c) 2021 Egor Lindberg. All rights reserved.
//

import UIKit
Expand Down
13 changes: 9 additions & 4 deletions Example/ORLocation/Base.lproj/LaunchScreen.xib
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="6214" systemVersion="14A314h" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES">
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6207"/>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/>
<capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
Expand All @@ -24,7 +29,7 @@
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="kId-c2-rCX" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="bottom" multiplier="1/3" constant="1" id="5cJ-9S-tgC"/>
<constraint firstAttribute="centerX" secondItem="kId-c2-rCX" secondAttribute="centerX" id="Koa-jz-hwk"/>
Expand Down
20 changes: 2 additions & 18 deletions Example/ORLocation/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13196" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="vXZ-lx-hvc">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="vXZ-lx-hvc">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13173"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
Expand All @@ -20,24 +20,8 @@
<view key="view" contentMode="scaleToFill" id="kh9-bI-dsS">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="coordinates" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="FRx-3h-ei3">
<rect key="frame" x="8" y="323" width="359" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="FRx-3h-ei3" firstAttribute="leading" secondItem="kh9-bI-dsS" secondAttribute="leading" constant="8" id="Qag-MN-7kJ"/>
<constraint firstItem="FRx-3h-ei3" firstAttribute="centerY" secondItem="kh9-bI-dsS" secondAttribute="centerY" id="ZEh-dl-ClZ"/>
<constraint firstAttribute="trailing" secondItem="FRx-3h-ei3" secondAttribute="trailing" constant="8" id="mLa-Yr-jUm"/>
</constraints>
</view>
<connections>
<outlet property="labelCoord" destination="FRx-3h-ei3" id="6j7-KI-4hM"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="x5A-6p-PRh" sceneMemberID="firstResponder"/>
</objects>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
{
"images" : [
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "29x29",
Expand Down Expand Up @@ -29,6 +39,11 @@
"idiom" : "iphone",
"size" : "60x60",
"scale" : "3x"
},
{
"idiom" : "ios-marketing",
"size" : "1024x1024",
"scale" : "1x"
}
],
"info" : {
Expand Down
2 changes: 0 additions & 2 deletions Example/ORLocation/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>Please authorize location usage</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
Expand Down
19 changes: 10 additions & 9 deletions Example/ORLocation/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,23 @@
// ViewController.swift
// ORLocation
//
// Created by Maxim Soloviev on 09/11/2016.
// Copyright (c) 2016 Maxim Soloviev. All rights reserved.
// Created by Egor Lindberg on 01/19/2021.
// Copyright (c) 2021 Egor Lindberg. All rights reserved.
//

import UIKit
import ORLocation

class ViewController: UIViewController {

@IBOutlet weak var labelCoord: UILabel!

override func viewDidLoad() {
super.viewDidLoad()

ORCurrentLocationDetector.shared.detect { (loc) in
self.labelCoord.text = loc != nil ? "\(loc!)" : "nil"
}
// Do any additional setup after loading the view, typically from a nib.
}

override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}

}

4 changes: 3 additions & 1 deletion Example/Podfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
use_frameworks!

platform :ios, '9.0'

target 'ORLocation_Example' do
pod 'ORLocation', :path => '../'

target 'ORLocation_Tests' do
inherit! :search_paths


pod 'FBSnapshotTestCase' , '~> 2.1.4'
end
end
21 changes: 16 additions & 5 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
PODS:
- ORLocation (3.1.0)
- FBSnapshotTestCase (2.1.4):
- FBSnapshotTestCase/SwiftSupport (= 2.1.4)
- FBSnapshotTestCase/Core (2.1.4)
- FBSnapshotTestCase/SwiftSupport (2.1.4):
- FBSnapshotTestCase/Core
- ORLocation (4.0.0)

DEPENDENCIES:
- FBSnapshotTestCase (~> 2.1.4)
- ORLocation (from `../`)

SPEC REPOS:
trunk:
- FBSnapshotTestCase

EXTERNAL SOURCES:
ORLocation:
:path: ../
:path: "../"

SPEC CHECKSUMS:
ORLocation: 0d0e6f3b4df9e5bb9dc356771e86fd76713de7b3
FBSnapshotTestCase: 094f9f314decbabe373b87cc339bea235a63e07a
ORLocation: 9295ebc210b10be56747882589ac0705472fa0b5

PODFILE CHECKSUM: 343ab60f954acac83080a0996e7f7251dd57c545
PODFILE CHECKSUM: 129d6efda66e8a042419239c434f1020f9826cd4

COCOAPODS: 1.3.1
COCOAPODS: 1.8.3

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bd6dc5b

Please sign in to comment.