From b70e6f518a58af4a70a9198e9f4fa7bbf1ca60f2 Mon Sep 17 00:00:00 2001 From: "Justin R. Miller" Date: Wed, 8 Jul 2015 22:30:52 -0700 Subject: [PATCH 1/2] test on Xcode 6.4 / iOS 8.4 --- .travis.yml | 4 ++-- scripts/ios/test.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index e5b94a813..ccd4cd035 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,10 +25,10 @@ matrix: sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ] packages: [ 'gdb', 'clang-3.5', 'libstdc++-4.9-dev', 'libstdc++6', 'libllvm3.4', 'xutils-dev', 'libxxf86vm-dev', 'x11proto-xf86vidmode-dev', 'mesa-utils' ] - os: osx - osx_image: beta-xcode6.3 + osx_image: beta-xcode6.4 env: FLAVOR=osx BUILDTYPE=Debug - os: osx - osx_image: beta-xcode6.3 + osx_image: beta-xcode6.4 env: FLAVOR=ios BUILDTYPE=Release - os: linux env: FLAVOR=android ANDROID_ABI=arm-v7 BUILDTYPE=Release diff --git a/scripts/ios/test.sh b/scripts/ios/test.sh index bfaed4646..170aa0f64 100755 --- a/scripts/ios/test.sh +++ b/scripts/ios/test.sh @@ -7,5 +7,5 @@ set -u xctool \ -project ./test/ios/ios-tests.xcodeproj \ -scheme 'Mapbox GL Tests' \ - -sdk iphonesimulator8.3 \ + -sdk iphonesimulator8.4 \ test From 00f9a477b787c4634ebc45b9d5521eac3d8c8af3 Mon Sep 17 00:00:00 2001 From: "Justin R. Miller" Date: Wed, 8 Jul 2015 22:58:50 -0700 Subject: [PATCH 2/2] abbreviate syntax for unused parameters --- platform/ios/MGLMapboxEvents.m | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/platform/ios/MGLMapboxEvents.m b/platform/ios/MGLMapboxEvents.m index eb8d909db..314d50dd0 100644 --- a/platform/ios/MGLMapboxEvents.m +++ b/platform/ios/MGLMapboxEvents.m @@ -604,10 +604,7 @@ const NSTimeInterval MGLFlushInterval = 60; [request setHTTPBody:jsonData]; // Send non blocking HTTP Request to server - NSURLSessionDataTask *task = [_session dataTaskWithRequest:request completionHandler:^(__unused NSData * __nullable data, __unused NSURLResponse * __nullable response, __unused NSError * __nullable error) - { - }]; - [task resume]; + [[_session dataTaskWithRequest:request] resume]; } }); }