Skip to content

Commit

Permalink
Swift 5.1 (#13)
Browse files Browse the repository at this point in the history
* Update podspec

* Add Gemfile

* Update example project

* Update library

* Add changelog entry

* Update travis
  • Loading branch information
BasThomas authored Oct 27, 2019
1 parent 484a46b commit d7cdd91
Show file tree
Hide file tree
Showing 20 changed files with 439 additions and 329 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
language: swift
osx_image: xcode10.2
osx_image: xcode11.1

script:
- xcodebuild clean test -workspace Example/ImageAlertAction.xcworkspace -scheme ImageAlertAction-Example -destination "platform=iOS Simulator,name=iPhone X,OS=12.2" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO -quiet
- cd Example/
- pod install
- cd ..
- xcodebuild clean test -scheme ImageAlertAction-Example -workspace Example/ImageAlertAction.xcworkspace -destination "platform=iOS Simulator,name=iPhone 11 Pro Max,OS=13.1"
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## Next

## 3.1.0

- Updated to Swift 5.1

## 3.0.0

- Updated to Swift 5.0
Expand Down
7 changes: 5 additions & 2 deletions Example/ImageAlertAction/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

var window: UIWindow?

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
return true
func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
true
}
}

6 changes: 3 additions & 3 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- ImageAlertAction (3.0.0)
- ImageAlertAction (3.1.0)

DEPENDENCIES:
- ImageAlertAction (from `../`)
Expand All @@ -9,8 +9,8 @@ EXTERNAL SOURCES:
:path: "../"

SPEC CHECKSUMS:
ImageAlertAction: 11596c060c40a910006988b78e34012355a6fe7e
ImageAlertAction: 2f4d6ecd9d4896eb4bb959f9d1c8a1101d6805f4

PODFILE CHECKSUM: 2861c5c31891940484aaf82fd18a1725282b6061

COCOAPODS: 1.6.1
COCOAPODS: 1.8.4
9 changes: 5 additions & 4 deletions Example/Pods/Local Podspecs/ImageAlertAction.podspec.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Example/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

611 changes: 306 additions & 305 deletions Example/Pods/Pods.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source "https://rubygems.org"

gem 'cocoapods'
83 changes: 83 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
GEM
remote: https://rubygems.org/
specs:
CFPropertyList (3.0.1)
activesupport (4.2.11.1)
i18n (~> 0.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
algoliasearch (1.27.1)
httpclient (~> 2.8, >= 2.8.3)
json (>= 1.5.1)
atomos (0.1.3)
claide (1.0.3)
cocoapods (1.8.4)
activesupport (>= 4.0.2, < 5)
claide (>= 1.0.2, < 2.0)
cocoapods-core (= 1.8.4)
cocoapods-deintegrate (>= 1.0.3, < 2.0)
cocoapods-downloader (>= 1.2.2, < 2.0)
cocoapods-plugins (>= 1.0.0, < 2.0)
cocoapods-search (>= 1.0.0, < 2.0)
cocoapods-stats (>= 1.0.0, < 2.0)
cocoapods-trunk (>= 1.4.0, < 2.0)
cocoapods-try (>= 1.1.0, < 2.0)
colored2 (~> 3.1)
escape (~> 0.0.4)
fourflusher (>= 2.3.0, < 3.0)
gh_inspector (~> 1.0)
molinillo (~> 0.6.6)
nap (~> 1.0)
ruby-macho (~> 1.4)
xcodeproj (>= 1.11.1, < 2.0)
cocoapods-core (1.8.4)
activesupport (>= 4.0.2, < 6)
algoliasearch (~> 1.0)
concurrent-ruby (~> 1.1)
fuzzy_match (~> 2.0.4)
nap (~> 1.0)
cocoapods-deintegrate (1.0.4)
cocoapods-downloader (1.2.2)
cocoapods-plugins (1.0.0)
nap
cocoapods-search (1.0.0)
cocoapods-stats (1.1.0)
cocoapods-trunk (1.4.1)
nap (>= 0.8, < 2.0)
netrc (~> 0.11)
cocoapods-try (1.1.0)
colored2 (3.1.2)
concurrent-ruby (1.1.5)
escape (0.0.4)
fourflusher (2.3.1)
fuzzy_match (2.0.4)
gh_inspector (1.1.3)
httpclient (2.8.3)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
json (2.2.0)
minitest (5.12.2)
molinillo (0.6.6)
nanaimo (0.2.6)
nap (1.1.0)
netrc (0.11.0)
ruby-macho (1.4.0)
thread_safe (0.3.6)
tzinfo (1.2.5)
thread_safe (~> 0.1)
xcodeproj (1.13.0)
CFPropertyList (>= 2.3.3, < 4.0)
atomos (~> 0.1.3)
claide (>= 1.0.2, < 2.0)
colored2 (~> 3.1)
nanaimo (~> 0.2.6)

PLATFORMS
ruby

DEPENDENCIES
cocoapods

BUNDLED WITH
2.0.2
4 changes: 2 additions & 2 deletions ImageAlertAction.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'ImageAlertAction'
s.version = '3.0.0'
s.version = '3.1.0'
s.summary = 'Image support for UIAlertAction'
s.description = <<-DESC
ImageAlertAction adds image support to UIAlertAction.
Expand All @@ -15,7 +15,7 @@ Use this to visually convey an action's purpose.
s.social_media_url = 'https://twitter.com/basthomas'

s.ios.deployment_target = '8.0'
s.swift_version = '5.0'
s.swift_version = '5.1'

s.source_files = 'ImageAlertAction/Classes/**/*'

Expand Down
4 changes: 2 additions & 2 deletions ImageAlertAction/Classes/UIAlertAction+Image.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import UIKit
@available(tvOS 8.0, *)
extension UIAlertAction {

private var imageKey: String { return "image" }
private var imageKey: String { "image" }

/// Create and return an action with the specified title and behavior.
///
Expand Down Expand Up @@ -44,5 +44,5 @@ extension UIAlertAction {
}

/// The image of the action's button.
public var image: UIImage? { return value(forKey: imageKey) as? UIImage }
public var image: UIImage? { value(forKey: imageKey) as? UIImage }
}

0 comments on commit d7cdd91

Please sign in to comment.