Skip to content

Commit dcce01c

Browse files
committed
Xcode 10 and Swift 4.2 support.
1 parent a538116 commit dcce01c

11 files changed

Lines changed: 43 additions & 41 deletions

File tree

.swift-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4
1+
4.2

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ env:
1212
- DESTINATION="OS=4.0,name=Apple Watch Series 3 - 42mm" RUN_TESTS="NO" POD_LINT="NO"
1313
- DESTINATION="OS=2.0,name=Apple Watch - 42mm" RUN_TESTS="NO" POD_LINT="NO"
1414

15-
- DESTINATION="OS=11.0,name=iPhone 8 Plus" RUN_TESTS="NO" POD_LINT="YES"
16-
- DESTINATION="OS=9.0,name=iPad 2" RUN_TESTS="NO" POD_LINT="NO"
15+
- DESTINATION="OS=12.0,name=iPhone 8 Plus" RUN_TESTS="NO" POD_LINT="NO"
16+
- DESTINATION="OS=9.0,name=iPad 2" RUN_TESTS="NO" POD_LINT="NO"
1717

18-
- DESTINATION="OS=11.0,name=Apple TV 1080p" RUN_TESTS="NO" POD_LINT="NO"
19-
- DESTINATION="OS=9.0,name=Apple TV 1080p" RUN_TESTS="NO" POD_LINT="NO"
18+
- DESTINATION="OS=12.0,name=Apple TV" RUN_TESTS="NO" POD_LINT="NO"
19+
- DESTINATION="OS=9.0,name=Apple TV 1080p" RUN_TESTS="NO" POD_LINT="NO"
2020

2121
- DESTINATION="arch=x86_64" RUN_TESTS="YES" POD_LINT="NO"
2222
script:

Cartfile.resolved

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github "AliSoftware/OHHTTPStubs" "6.0.0"
1+
github "AliSoftware/OHHTTPStubs" "6.1.0"

Carthage/Checkouts/OHHTTPStubs

Submodule OHHTTPStubs updated 55 files

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.2.0'
3+
s.version = '1.3.0'
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: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@
122122
FE576B221E0C99E5009D4C46 /* IPAPI Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "IPAPI Tests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
123123
FE7C0C9B1E0CB16D00620172 /* LICENSE */ = {isa = PBXFileReference; lastKnownFileType = text; path = LICENSE; sourceTree = "<group>"; };
124124
FE7C0C9C1E0CB16D00620172 /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
125+
FE8BFBE5214BB255005205DB /* .travis.yml */ = {isa = PBXFileReference; lastKnownFileType = text; path = .travis.yml; sourceTree = "<group>"; };
126+
FE8BFBE6214BB25B005205DB /* .swift-version */ = {isa = PBXFileReference; lastKnownFileType = text; path = ".swift-version"; sourceTree = "<group>"; };
125127
FE97616C1E8FBB52006F1F9D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
126128
FE97616D1E8FBB52006F1F9D /* IPAPI.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = IPAPI.h; sourceTree = "<group>"; };
127129
FE97616E1E8FBB52006F1F9D /* Service.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Service.swift; sourceTree = "<group>"; };
@@ -230,6 +232,8 @@
230232
FEE453F71E0BE8DB00D8E707 = {
231233
isa = PBXGroup;
232234
children = (
235+
FE8BFBE5214BB255005205DB /* .travis.yml */,
236+
FE8BFBE6214BB25B005205DB /* .swift-version */,
233237
FEE4540C1E0BE96600D8E707 /* IPAPI.podspec */,
234238
FE9761A21E8FBD45006F1F9D /* Package.swift */,
235239
FE7C0C9B1E0CB16D00620172 /* LICENSE */,
@@ -328,7 +332,7 @@
328332
isa = PBXProject;
329333
attributes = {
330334
LastSwiftUpdateCheck = 0900;
331-
LastUpgradeCheck = 0900;
335+
LastUpgradeCheck = 1000;
332336
ORGANIZATIONNAME = "Artur Grigor";
333337
TargetAttributes = {
334338
FE576B211E0C99E5009D4C46 = {
@@ -592,13 +596,15 @@
592596
CLANG_WARN_BOOL_CONVERSION = YES;
593597
CLANG_WARN_COMMA = YES;
594598
CLANG_WARN_CONSTANT_CONVERSION = YES;
599+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
595600
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
596601
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
597602
CLANG_WARN_EMPTY_BODY = YES;
598603
CLANG_WARN_ENUM_CONVERSION = YES;
599604
CLANG_WARN_INFINITE_RECURSION = YES;
600605
CLANG_WARN_INT_CONVERSION = YES;
601606
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
607+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
602608
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
603609
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
604610
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
@@ -636,7 +642,7 @@
636642
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
637643
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
638644
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
639-
SWIFT_VERSION = 4.0;
645+
SWIFT_VERSION = 4.2;
640646
TARGETED_DEVICE_FAMILY = "1,2,3,4";
641647
TVOS_DEPLOYMENT_TARGET = 9.0;
642648
VERSIONING_SYSTEM = "apple-generic";
@@ -655,13 +661,15 @@
655661
CLANG_WARN_BOOL_CONVERSION = YES;
656662
CLANG_WARN_COMMA = YES;
657663
CLANG_WARN_CONSTANT_CONVERSION = YES;
664+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
658665
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
659666
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
660667
CLANG_WARN_EMPTY_BODY = YES;
661668
CLANG_WARN_ENUM_CONVERSION = YES;
662669
CLANG_WARN_INFINITE_RECURSION = YES;
663670
CLANG_WARN_INT_CONVERSION = YES;
664671
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
672+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
665673
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
666674
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
667675
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
@@ -691,7 +699,7 @@
691699
SUPPORTED_PLATFORMS = "macosx appletvsimulator appletvos watchsimulator iphonesimulator watchos iphoneos";
692700
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
693701
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
694-
SWIFT_VERSION = 4.0;
702+
SWIFT_VERSION = 4.2;
695703
TARGETED_DEVICE_FAMILY = "1,2,3,4";
696704
TVOS_DEPLOYMENT_TARGET = 9.0;
697705
VERSIONING_SYSTEM = "apple-generic";
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

IPAPI.xcodeproj/xcshareddata/xcschemes/IPAPI.xcscheme

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0900"
3+
LastUpgradeVersion = "1000"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -26,7 +26,6 @@
2626
buildConfiguration = "Debug"
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29-
language = ""
3029
shouldUseLaunchSchemeArgsEnv = "YES">
3130
<Testables>
3231
<TestableReference
@@ -56,7 +55,6 @@
5655
buildConfiguration = "Debug"
5756
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
5857
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
59-
language = ""
6058
launchStyle = "0"
6159
useCustomWorkingDirectory = "NO"
6260
ignoresPersistentStateOnLaunch = "NO"

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2016 Artur Grigor
3+
Copyright (c) 2016 - 2018 Artur Grigor
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ http://ip-api.com Geolocation API client written in Swift.
1111
## Requirements
1212

1313
- iOS 8.0+ / macOS 10.10+ / tvOS 9.0+ / watchOS 2.0+
14-
- Xcode 8.0+
15-
- Swift 4+
14+
- Xcode 10.0+
15+
- Swift 4.2+
1616

1717
## Installation
1818

@@ -30,7 +30,7 @@ $ brew install carthage
3030
To integrate IPAPI into your Xcode project using Carthage, specify it in your `Cartfile`:
3131

3232
```ogdl
33-
github "arturgrigor/IPAPI" ~> 1.2
33+
github "arturgrigor/IPAPI" ~> 1.3
3434
```
3535

3636
Run `carthage update` to build the framework and drag the built `IPAPI.framework` into your Xcode project.
@@ -53,7 +53,7 @@ platform :ios, '10.0'
5353
use_frameworks!
5454

5555
target '<Your Target Name>' do
56-
pod 'IPAPI', '~> 1.2'
56+
pod 'IPAPI', '~> 1.3'
5757
end
5858
```
5959

0 commit comments

Comments
 (0)