diff --git a/.travis.yml b/.travis.yml index 2c51b33..ae21af5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ language: objective-c -osx_image: xcode8 +osx_image: xcode9 env: global: @@ -16,8 +16,8 @@ before_install: script: - set -o pipefail - - xcodebuild -workspace "$XCODE_WORKSPACE" -scheme "$SCHEME" -configuration Debug clean build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty -c; - - xcodebuild -workspace "$XCODE_WORKSPACE" -scheme "$SCHEME" -configuration Release clean build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty -c; + - xcodebuild -workspace "$XCODE_WORKSPACE" -scheme "$SCHEME" -configuration Debug clean build CODE_SIGN_IDENTITY="" BITCODE_GENERATION_MODE=marker CODE_SIGNING_REQUIRED=NO | xcpretty -c; + - xcodebuild -workspace "$XCODE_WORKSPACE" -scheme "$SCHEME" -configuration Release clean build CODE_SIGN_IDENTITY="" BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO | xcpretty -c; notifications: - email: false + email: false \ No newline at end of file diff --git a/AlamofireObjectMapper.podspec b/AlamofireObjectMapper.podspec index f84165d..7fc4ad2 100644 --- a/AlamofireObjectMapper.podspec +++ b/AlamofireObjectMapper.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "AlamofireObjectMapper" - s.version = "4.1.0" + s.version = "5.0.0" s.license = { :type => "MIT", :file => "LICENSE" } s.summary = "An extension to Alamofire which automatically converts JSON response data into swift objects using ObjectMapper" s.homepage = "https://github.com/tristanhimmelman/AlamofireObjectMapper" @@ -16,5 +16,5 @@ Pod::Spec.new do |s| s.requires_arc = 'true' s.source_files = 'AlamofireObjectMapper/**/*.swift' s.dependency 'Alamofire', '~> 4.1' - s.dependency 'ObjectMapper', '~> 2.0' + s.dependency 'ObjectMapper', '~> 3.0' end diff --git a/AlamofireObjectMapper.xcodeproj/project.pbxproj b/AlamofireObjectMapper.xcodeproj/project.pbxproj index 28c0df1..1ee0172 100644 --- a/AlamofireObjectMapper.xcodeproj/project.pbxproj +++ b/AlamofireObjectMapper.xcodeproj/project.pbxproj @@ -493,16 +493,16 @@ CLASSPREFIX = ""; LastSwiftMigration = 0700; LastSwiftUpdateCheck = 0710; - LastUpgradeCheck = 0820; + LastUpgradeCheck = 0900; ORGANIZATIONNAME = "Tristan Himmelman"; TargetAttributes = { 6AB2A0101AF26C36001EBB20 = { CreatedOnToolsVersion = 6.3.1; - LastSwiftMigration = 0800; + LastSwiftMigration = 0900; }; 6AB2A01B1AF26C36001EBB20 = { CreatedOnToolsVersion = 6.3.1; - LastSwiftMigration = 0800; + LastSwiftMigration = 0900; }; 6AB2A0841AF27DF1001EBB20 = { CreatedOnToolsVersion = 6.3.1; @@ -779,14 +779,20 @@ CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; @@ -831,14 +837,20 @@ CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; diff --git a/AlamofireObjectMapper.xcodeproj/xcshareddata/xcschemes/AlamofireObjectMapper OSX.xcscheme b/AlamofireObjectMapper.xcodeproj/xcshareddata/xcschemes/AlamofireObjectMapper OSX.xcscheme index 9a88fff..48a1335 100644 --- a/AlamofireObjectMapper.xcodeproj/xcshareddata/xcschemes/AlamofireObjectMapper OSX.xcscheme +++ b/AlamofireObjectMapper.xcodeproj/xcshareddata/xcschemes/AlamofireObjectMapper OSX.xcscheme @@ -1,6 +1,6 @@ @@ -36,6 +37,7 @@ buildConfiguration = "Debug" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" + language = "" launchStyle = "0" useCustomWorkingDirectory = "NO" ignoresPersistentStateOnLaunch = "NO" diff --git a/AlamofireObjectMapperTests/AlamofireObjectMapperTests.swift b/AlamofireObjectMapperTests/AlamofireObjectMapperTests.swift index 0f94f64..1a06fc9 100644 --- a/AlamofireObjectMapperTests/AlamofireObjectMapperTests.swift +++ b/AlamofireObjectMapperTests/AlamofireObjectMapperTests.swift @@ -66,7 +66,7 @@ class AlamofireObjectMapperTests: XCTestCase { } waitForExpectations(timeout: 10) { error in - XCTAssertNil(error, "\(error)") + XCTAssertNil(error, "\(String(describing: error))") } } @@ -96,7 +96,7 @@ class AlamofireObjectMapperTests: XCTestCase { } waitForExpectations(timeout: 10) { error in - XCTAssertNil(error, "\(error)") + XCTAssertNil(error, "\(String(describing: error))") } } @@ -122,7 +122,7 @@ class AlamofireObjectMapperTests: XCTestCase { } waitForExpectations(timeout: 10) { error in - XCTAssertNil(error, "\(error)") + XCTAssertNil(error, "\(String(describing: error))") } } @@ -148,7 +148,7 @@ class AlamofireObjectMapperTests: XCTestCase { } waitForExpectations(timeout: 10) { error in - XCTAssertNil(error, "\(error)") + XCTAssertNil(error, "\(String(describing: error))") } } @@ -174,7 +174,7 @@ class AlamofireObjectMapperTests: XCTestCase { } waitForExpectations(timeout: 10) { error in - XCTAssertNil(error, "\(error)") + XCTAssertNil(error, "\(String(describing: error))") } } @@ -199,7 +199,7 @@ class AlamofireObjectMapperTests: XCTestCase { } waitForExpectations(timeout: 10) { error in - XCTAssertNil(error, "\(error)") + XCTAssertNil(error, "\(String(describing: error))") } } @@ -224,7 +224,7 @@ class AlamofireObjectMapperTests: XCTestCase { } waitForExpectations(timeout: 10) { error in - XCTAssertNil(error, "\(error)") + XCTAssertNil(error, "\(String(describing: error))") } } @@ -252,7 +252,7 @@ class AlamofireObjectMapperTests: XCTestCase { } waitForExpectations(timeout: 10) { error in - XCTAssertNil(error, "\(error)") + XCTAssertNil(error, "\(String(describing: error))") } } @@ -278,7 +278,7 @@ class AlamofireObjectMapperTests: XCTestCase { } waitForExpectations(timeout: 10) { error in - XCTAssertNil(error, "\(error)") + XCTAssertNil(error, "\(String(describing: error))") } } diff --git a/Cartfile b/Cartfile index b52b1f5..1c824e1 100644 --- a/Cartfile +++ b/Cartfile @@ -1,2 +1,2 @@ github "Alamofire/Alamofire" ~> 4.1 -github "Hearst-DD/ObjectMapper" ~> 2.2.2 +github "Hearst-DD/ObjectMapper" ~> 3.0 diff --git a/Cartfile.resolved b/Cartfile.resolved index 7fa985d..4e7b981 100644 --- a/Cartfile.resolved +++ b/Cartfile.resolved @@ -1,2 +1,2 @@ -github "Alamofire/Alamofire" "4.3.0" -github "Hearst-DD/ObjectMapper" "2.2.3" +github "Alamofire/Alamofire" "4.5.1" +github "Hearst-DD/ObjectMapper" "3.0.0" diff --git a/Carthage/Checkouts/Alamofire b/Carthage/Checkouts/Alamofire index c9c9d09..b899544 160000 --- a/Carthage/Checkouts/Alamofire +++ b/Carthage/Checkouts/Alamofire @@ -1 +1 @@ -Subproject commit c9c9d091b308a57ff9a744be4f2537ac9c5b4c0b +Subproject commit b8995447518fd57af14c88a47f27434a16f60403 diff --git a/Carthage/Checkouts/ObjectMapper b/Carthage/Checkouts/ObjectMapper index 4cde0b3..950675d 160000 --- a/Carthage/Checkouts/ObjectMapper +++ b/Carthage/Checkouts/ObjectMapper @@ -1 +1 @@ -Subproject commit 4cde0b3690869533e4da101157cab5d0adb167b3 +Subproject commit 950675da53170582b9ff3263cfc88f12b60c24b2