Skip to content

Commit b816700

Browse files
committed
Swift 3.1 migration.
1 parent 2d226c4 commit b816700

21 files changed

Lines changed: 191 additions & 120 deletions

.gitignore

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,39 @@
1+
# Mac OS X
2+
.DS_Store
3+
14
# Xcode
5+
6+
## Build generated
7+
build/
8+
DerivedData
9+
10+
## Various settings
11+
*.pbxuser
12+
!default.pbxuser
13+
*.mode1v3
14+
!default.mode1v3
15+
*.mode2v3
16+
!default.mode2v3
17+
*.perspectivev3
18+
!default.perspectivev3
19+
xcuserdata
20+
21+
## Other
222
*.xccheckout
323
*.moved-aside
424
*.xcuserstate
25+
*.xcscmblueprint
26+
27+
## Obj-C/Swift specific
28+
*.hmap
29+
*.ipa
30+
31+
## Playgrounds
32+
timeline.xctimeline
33+
playground.xcworkspace
34+
35+
# Swift Package Manager
36+
.build/
37+
38+
# Carthage
39+
Carthage/Build

IPAPI.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'IPAPI'
3-
s.version = '1.1.0'
3+
s.version = '1.1.1'
44
s.license = 'MIT'
55
s.summary = 'http://ip-api.com Geolocation API client written in Swift.'
66
s.homepage = 'https://github.com/arturgrigor/IPAPI'

IPAPI.xcodeproj/project.pbxproj

Lines changed: 130 additions & 114 deletions
Large diffs are not rendered by default.

IPAPI.xcodeproj/xcshareddata/xcschemes/IPAPI iOS.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0820"
3+
LastUpgradeVersion = "0830"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

IPAPI.xcodeproj/xcshareddata/xcschemes/IPAPI macOS.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0820"
3+
LastUpgradeVersion = "0830"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

IPAPI.xcodeproj/xcshareddata/xcschemes/IPAPI tvOS.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0820"
3+
LastUpgradeVersion = "0830"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

IPAPI.xcodeproj/xcshareddata/xcschemes/IPAPI watchOS.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0820"
3+
LastUpgradeVersion = "0830"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

Package.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// swift-tools-version:3.1
2+
3+
import PackageDescription
4+
5+
let package = Package(
6+
name: "IPAPI",
7+
exclude: ["Sources/Info.plist", "Sources/IPAPI.h", "Tests", "Pods"]
8+
)

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ http://ip-api.com Geolocation API client written in Swift.
1212

1313
- iOS 8.0+ / macOS 10.10+ / tvOS 9.0+ / watchOS 2.0+
1414
- Xcode 8.0+
15-
- Swift 3.0+
15+
- Swift 3.1+
1616

1717
## Installation
1818

@@ -63,6 +63,18 @@ Then, run the following command:
6363
$ pod install
6464
```
6565

66+
### Swift Package Manager
67+
68+
The [Swift Package Manager](https://swift.org/package-manager/) is a tool for automating the distribution of Swift code and is integrated into the `swift` compiler. It is in early development, but IPAPI does support its use on supported platforms.
69+
70+
Once you have your Swift package set up, adding IPAPI as a dependency is as easy as adding it to the `dependencies` value of your `Package.swift`.
71+
72+
```swift
73+
dependencies: [
74+
.Package(url: "https://github.com/arturgrigor/IPAPI.git", majorVersion: 1)
75+
]
76+
```
77+
6678
## Usage
6779

6880
### 🎯 Lookup the current IP address ###
File renamed without changes.

0 commit comments

Comments
 (0)