From 29e31c163ad62d33375a70e81d717349de99a601 Mon Sep 17 00:00:00 2001 From: kean Date: Sun, 7 Apr 2019 21:18:19 +0200 Subject: [PATCH] Add Swift 5 support --- CHANGELOG.md | 7 +++++++ Nuke-Alamofire-Plugin.podspec | 10 +++++----- Nuke-Alamofire-Plugin.xcodeproj/project.pbxproj | 6 +++--- Source/DataLoader.swift | 2 +- Supporting Files/NukeAlamofirePlugin.xcconfig | 2 +- 5 files changed, 17 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d377e9b..a541de6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ [Changelog](https://github.com/kean/Nuke-Alamofire-Plugin/releases) for all versions +## Nuke Alamofire Plugin 4.2 + +- Add Swift 5.0 support +- Remove Swift 4.0 and Swift 4.1 support +- Remove iOS 9, tvOS 9, watchOS 2.0, macOS 10.10 and macOS 10.11 support +- Add a single `Nuke Alamofire Plugin` target which can build the framework for any platform + ## Nuke Alamofire Plugin 4.1 - Updated to Swift 4.2 diff --git a/Nuke-Alamofire-Plugin.podspec b/Nuke-Alamofire-Plugin.podspec index 3fed59d..c3a6ba4 100644 --- a/Nuke-Alamofire-Plugin.podspec +++ b/Nuke-Alamofire-Plugin.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'Nuke-Alamofire-Plugin' - s.version = '4.1' + s.version = '4.2' s.summary = 'Alamofire plugin for Nuke - image loading and caching framework' s.homepage = 'https://github.com/kean/Nuke-Alamofire-Plugin' @@ -9,10 +9,10 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/kean/Nuke-Alamofire-Plugin.git', :tag => s.version.to_s } s.social_media_url = 'https://twitter.com/a_grebenyuk' - s.ios.deployment_target = '9.0' - s.watchos.deployment_target = '2.0' - s.osx.deployment_target = '10.11' - s.tvos.deployment_target = '9.0' + s.ios.deployment_target = '10.0' + s.watchos.deployment_target = '3.0' + s.osx.deployment_target = '10.12' + s.tvos.deployment_target = '10.0' s.module_name = "NukeAlamofirePlugin" diff --git a/Nuke-Alamofire-Plugin.xcodeproj/project.pbxproj b/Nuke-Alamofire-Plugin.xcodeproj/project.pbxproj index 2e3449d..cd6c425 100644 --- a/Nuke-Alamofire-Plugin.xcodeproj/project.pbxproj +++ b/Nuke-Alamofire-Plugin.xcodeproj/project.pbxproj @@ -128,7 +128,7 @@ isa = PBXProject; attributes = { LastSwiftUpdateCheck = 0700; - LastUpgradeCheck = 0930; + LastUpgradeCheck = 1020; ORGANIZATIONNAME = "Alexander Grebenyuk"; TargetAttributes = { 0C8D254E1BCC33730029A841 = { @@ -139,11 +139,11 @@ }; buildConfigurationList = 0C8D25491BCC33730029A841 /* Build configuration list for PBXProject "Nuke-Alamofire-Plugin" */; compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; + developmentRegion = en; hasScannedForEncodings = 0; knownRegions = ( - English, en, + Base, ); mainGroup = 0C8D25451BCC33730029A841; productRefGroup = 0C8D25501BCC33730029A841 /* Products */; diff --git a/Source/DataLoader.swift b/Source/DataLoader.swift index 2925146..420db7b 100644 --- a/Source/DataLoader.swift +++ b/Source/DataLoader.swift @@ -1,6 +1,6 @@ // The MIT License (MIT) // -// // Copyright (c) 2016-2018 Alexander Grebenyuk (github.com/kean). +// // Copyright (c) 2016-2019 Alexander Grebenyuk (github.com/kean). import Foundation import Alamofire diff --git a/Supporting Files/NukeAlamofirePlugin.xcconfig b/Supporting Files/NukeAlamofirePlugin.xcconfig index 73a5498..26e734e 100644 --- a/Supporting Files/NukeAlamofirePlugin.xcconfig +++ b/Supporting Files/NukeAlamofirePlugin.xcconfig @@ -4,7 +4,7 @@ SUPPORTED_PLATFORMS = iphoneos macosx appletvos watchos iphonesimulator appletvsimulator watchsimulator -SWIFT_VERSION = 4.2 +SWIFT_VERSION = 5.0 IPHONEOS_DEPLOYMENT_TARGET = 10.0 MACOSX_DEPLOYMENT_TARGET = 10.12