From 98a37306e543dff8f853fc68ee7964590d63142c Mon Sep 17 00:00:00 2001 From: funzin Date: Sun, 26 Jan 2020 16:18:08 +0900 Subject: [PATCH 1/3] Fix package swift --- Package.swift | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Package.swift b/Package.swift index cce17d9..eb01a30 100644 --- a/Package.swift +++ b/Package.swift @@ -1,9 +1,13 @@ -// swift-tools-version:4.0 -// The swift-tools-version declares the minimum version of Swift required to build this package. +// swift-tools-version:5.1 import PackageDescription let package = Package( name: "Sica", + platforms: [ + .iOS(.v9), + .macOS(.v10_10), + .tvOS(.v10) + ], products: [ .library( name: "Sica", @@ -14,5 +18,6 @@ let package = Package( name: "Sica", dependencies: [], path: "Sica/Source") - ] + ], + swiftLanguageVersions: [.v4_2, .v5] ) From 9d23df6d101cfa104cf2c583892cc411831b3b91 Mon Sep 17 00:00:00 2001 From: funzin Date: Sun, 26 Jan 2020 16:18:23 +0900 Subject: [PATCH 2/3] Import QuartzCore --- Sica/Source/CALayer+Sica.swift | 1 + Sica/Source/FillMode.swift | 1 + 2 files changed, 2 insertions(+) diff --git a/Sica/Source/CALayer+Sica.swift b/Sica/Source/CALayer+Sica.swift index 39f0b3e..03d0c53 100644 --- a/Sica/Source/CALayer+Sica.swift +++ b/Sica/Source/CALayer+Sica.swift @@ -7,6 +7,7 @@ // import Foundation +import QuartzCore private let _animatorAssociatedKey = UnsafeMutablePointer.allocate(capacity: 1) diff --git a/Sica/Source/FillMode.swift b/Sica/Source/FillMode.swift index 3d6469e..282f702 100644 --- a/Sica/Source/FillMode.swift +++ b/Sica/Source/FillMode.swift @@ -7,6 +7,7 @@ // import Foundation +import QuartzCore public struct FillMode { #if swift(>=4.2) From 5eff689aac4fbd7b1b0d470a8f58cccfc699303b Mon Sep 17 00:00:00 2001 From: funzin Date: Sun, 26 Jan 2020 16:18:35 +0900 Subject: [PATCH 3/3] Bump up v0.4.1 --- README.md | 2 +- Sica.podspec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7ad3331..b409850 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ pod 'Sica' Sica is available through `SwiftPM`, create ` Package.swift` and add `dependencies` value ```Package.swift dependencies: [ - .package(url: "https://github.com/cats-oss/Sica.git", from: "0.4.0") + .package(url: "https://github.com/cats-oss/Sica.git", from: "0.4.1") ] ``` See also: [GitHub - j-channings/swift-package-manager-ios: Example of how to use SPM v4 to manage iOS dependencies](https://github.com/j-channings/swift-package-manager-ios) diff --git a/Sica.podspec b/Sica.podspec index 415e25c..abf8e36 100644 --- a/Sica.podspec +++ b/Sica.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = "Sica" - s.version = "0.4.0" + s.version = "0.4.1" s.summary = "Sica can execute various animations sequentially or parallely" s.homepage = "https://github.com/cats-oss/Sica" s.license = { :type => "MIT", :file => "LICENSE" }