Skip to content

Commit 1278bb2

Browse files
committed
Bump travis platform versions & Cartfile.resolved
1 parent 5a85d38 commit 1278bb2

File tree

5 files changed

+32
-18
lines changed

5 files changed

+32
-18
lines changed

.travis.yml

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,37 @@ matrix:
1212
- {osx_image: xcode9.2, env: 'SWFT=3.2 PLAT=tvOS DST="OS=11.2,name=Apple TV"'}
1313
- {osx_image: xcode9.2, env: 'SWFT=3.2 PLAT=watchOS DST="OS=4.2,name=Apple Watch - 38mm"'}
1414

15+
- {osx_image: xcode9.4, env: 'SWFT=3.3 PLAT=macOS DST="arch=x86_64"'}
16+
- {osx_image: xcode9.4, env: 'SWFT=3.3 PLAT=iOS DST="OS=11.4,name=iPhone SE"'}
17+
- {osx_image: xcode9.4, env: 'SWFT=3.3 PLAT=tvOS DST="OS=11.4,name=Apple TV"'}
18+
- {osx_image: xcode9.4, env: 'SWFT=3.3 PLAT=watchOS DST="OS=4.3,name=Apple Watch - 38mm"'}
19+
1520
- {osx_image: xcode9.2, env: 'SWFT=4.0 PLAT=macOS DST="arch=x86_64"'}
16-
- {osx_image: xcode9.2, env: 'SWFT=4.0 PLAT=iOS DST="OS=8.4,name=iPhone 4s"'}
17-
- {osx_image: xcode9.2, env: 'SWFT=4.0 PLAT=iOS DST="OS=9.3,name=iPhone SE"'}
18-
- {osx_image: xcode9.2, env: 'SWFT=4.0 PLAT=iOS DST="OS=10.3.1,name=iPhone SE"'}
1921
- {osx_image: xcode9.2, env: 'SWFT=4.0 PLAT=iOS DST="OS=11.2,name=iPhone SE"'}
20-
- {osx_image: xcode9.2, env: 'SWFT=4.0 PLAT=tvOS DST="OS=10.2,name=Apple TV 1080p"'}
2122
- {osx_image: xcode9.2, env: 'SWFT=4.0 PLAT=tvOS DST="OS=11.2,name=Apple TV"'}
22-
- {osx_image: xcode9.2, env: 'SWFT=4.0 PLAT=watchOS DST="OS=3.2,name=Apple Watch - 38mm"'}
2323
- {osx_image: xcode9.2, env: 'SWFT=4.0 PLAT=watchOS DST="OS=4.2,name=Apple Watch - 38mm"'}
24+
25+
- {osx_image: xcode9.4, env: 'SWFT=4.1 PLAT=macOS DST="arch=x86_64" TEST=1'}
26+
- {osx_image: xcode9.4, env: 'SWFT=4.1 PLAT=iOS DST="OS=8.4,name=iPhone 4s"'}
27+
- {osx_image: xcode9.4, env: 'SWFT=4.1 PLAT=iOS DST="OS=9.3,name=iPhone 5s"'}
28+
- {osx_image: xcode9.4, env: 'SWFT=4.1 PLAT=iOS DST="OS=10.3.1,name=iPhone SE"'}
29+
- {osx_image: xcode9.4, env: 'SWFT=4.1 PLAT=iOS DST="OS=11.4,name=iPhone 5s" TEST=1'}
30+
- {osx_image: xcode9.3, env: 'SWFT=4.1 PLAT=tvOS DST="OS=10.2,name=Apple TV 1080p"'}
31+
- {osx_image: xcode9.4, env: 'SWFT=4.1 PLAT=tvOS DST="OS=11.4,name=Apple TV" TEST=1'}
32+
- {osx_image: xcode9.3, env: 'SWFT=4.1 PLAT=watchOS DST="OS=3.2,name=Apple Watch - 38mm"'}
33+
- {osx_image: xcode9.4, env: 'SWFT=4.1 PLAT=watchOS DST="OS=4.3,name=Apple Watch - 38mm"'}
34+
2435
cache:
2536
directories:
2637
- Carthage
2738
before_install:
2839
- carthage bootstrap --cache-builds --no-use-binaries --platform $PLAT --verbose
2940
install:
30-
- xcodebuild -scheme PMKCoreLocation -quiet -destination "$DST" SWIFT_VERSION=$SWFT SWIFT_TREAT_WARNINGS_AS_ERRORS=YES build
41+
- xcodebuild -scheme PMKCoreLocation -target PMKCoreLocation -quiet -destination "$DST" SWIFT_VERSION=$SWFT SWIFT_TREAT_WARNINGS_AS_ERRORS=YES build
42+
- if [[ "$TEST" == "1" ]]; then
43+
xcodebuild -scheme PMKCoreLocation -target PMKCLTests -destination "$DST" build;
44+
fi
3145
script:
32-
- if [ "$PLAT" != "watchOS" ]; then
46+
- if [[ "$TEST" == "1" ]]; then
3347
xcodebuild -scheme PMKCoreLocation -destination "$DST" test;
3448
fi

Cartfile.resolved

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github "mxcl/PromiseKit" "6.2.5"
1+
github "mxcl/PromiseKit" "6.3.3"

PMKCoreLocation.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@
308308
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos watchsimulator watchos macosx appletvsimulator appletvos";
309309
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
310310
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
311+
SWIFT_VERSION = 3.0;
311312
TARGETED_DEVICE_FAMILY = "1,2,3,4";
312313
TVOS_DEPLOYMENT_TARGET = 9.0;
313314
VERSIONING_SYSTEM = "apple-generic";
@@ -366,6 +367,7 @@
366367
PRODUCT_BUNDLE_IDENTIFIER = org.promisekit.CoreLocation;
367368
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos watchsimulator watchos macosx appletvsimulator appletvos";
368369
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
370+
SWIFT_VERSION = 3.0;
369371
TARGETED_DEVICE_FAMILY = "1,2,3,4";
370372
TVOS_DEPLOYMENT_TARGET = 9.0;
371373
VALIDATE_PRODUCT = YES;
@@ -389,7 +391,6 @@
389391
PRODUCT_NAME = "$(TARGET_NAME)";
390392
SKIP_INSTALL = YES;
391393
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
392-
SWIFT_VERSION = 3.0;
393394
};
394395
name = Debug;
395396
};
@@ -406,7 +407,6 @@
406407
PRODUCT_MODULE_NAME = "${TARGET_NAME}";
407408
PRODUCT_NAME = "$(TARGET_NAME)";
408409
SKIP_INSTALL = YES;
409-
SWIFT_VERSION = 3.0;
410410
};
411411
name = Release;
412412
};
@@ -420,7 +420,7 @@
420420
PRODUCT_NAME = "$(TARGET_NAME)";
421421
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
422422
SWIFT_SUPPRESS_WARNINGS = YES;
423-
SWIFT_VERSION = 3.0;
423+
SWIFT_VERSION = 4.0;
424424
};
425425
name = Debug;
426426
};
@@ -433,7 +433,7 @@
433433
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
434434
PRODUCT_NAME = "$(TARGET_NAME)";
435435
SWIFT_SUPPRESS_WARNINGS = YES;
436-
SWIFT_VERSION = 3.0;
436+
SWIFT_VERSION = 4.0;
437437
};
438438
name = Release;
439439
};

PMKCoreLocation.xcodeproj/xcshareddata/xcschemes/PMKCoreLocation.xcscheme

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
7-
buildImplicitDependencies = "YES">
7+
buildImplicitDependencies = "NO">
88
<BuildActionEntries>
99
<BuildActionEntry
10-
buildForTesting = "YES"
10+
buildForTesting = "NO"
1111
buildForRunning = "YES"
1212
buildForProfiling = "YES"
1313
buildForArchiving = "YES"

Tests/CLLocationManagerTests.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ func swizzle(_ foo: AnyClass, _ from: Selector, isClassMethod: Bool = false, bod
8080
let swizzledMethod: Method
8181

8282
if isClassMethod {
83-
originalMethod = class_getClassMethod(foo, from)
84-
swizzledMethod = class_getClassMethod(foo, Selector("pmk_\(from)"))
83+
originalMethod = class_getClassMethod(foo, from)!
84+
swizzledMethod = class_getClassMethod(foo, Selector("pmk_\(from)"))!
8585
} else {
86-
originalMethod = class_getInstanceMethod(foo, from)
87-
swizzledMethod = class_getInstanceMethod(foo, Selector("pmk_\(from)"))
86+
originalMethod = class_getInstanceMethod(foo, from)!
87+
swizzledMethod = class_getInstanceMethod(foo, Selector("pmk_\(from)"))!
8888
}
8989

9090
method_exchangeImplementations(originalMethod, swizzledMethod)

0 commit comments

Comments
 (0)