Skip to content

Commit

Permalink
Add preliminary support for Swift Package Manager (#395)
Browse files Browse the repository at this point in the history
* Add Package.swift

* Require iOS 9

* Update required swift version

* Add missing import

* import QuartzCore

* Release prep

Co-authored-by: Timothy Moose <[email protected]>
  • Loading branch information
knothed and wtmoose authored Aug 18, 2020
1 parent b9d445a commit c40ae0b
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
# Change Log
All notable changes to this project will be documented in this file.

## 8.0.2

### Changes

* [#395](https://github.com/SwiftKickMobile/SwiftMessages/pull/395) Add preliminary support for Swift Package Manager.

## 8.0.1

### Fixes

* #401 UIAlertController pops up but SwiftMessage layer absorbs all touches.

## 8.0.0
Expand Down
16 changes: 16 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// swift-tools-version:5.1
import PackageDescription

let package = Package(
name: "SwiftMessages",
platforms: [.iOS("9.0")],
products: [
.library(name: "SwiftMessages", targets: ["SwiftMessages"])
],
targets: [
.target(
name: "SwiftMessages",
path: "SwiftMessages"
)
]
)
2 changes: 1 addition & 1 deletion SwiftMessages.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = 'SwiftMessages'
spec.version = '8.0.1'
spec.version = '8.0.2'
spec.license = { :type => 'MIT' }
spec.homepage = 'https://github.com/SwiftKickMobile/SwiftMessages'
spec.authors = { 'Timothy Moose' => '[email protected]' }
Expand Down
4 changes: 3 additions & 1 deletion SwiftMessages.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@
2298C2041EE47DC900E2DDC1 /* Weak.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Weak.swift; sourceTree = "<group>"; };
2298C2061EE480D000E2DDC1 /* Animator.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Animator.swift; sourceTree = "<group>"; };
2298C2081EE486E300E2DDC1 /* TopBottomAnimation.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TopBottomAnimation.swift; sourceTree = "<group>"; };
22A2EA6E24EC6CFA00BB2540 /* Package.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Package.swift; sourceTree = "<group>"; };
22DFC9151EFF30F6001B1CA1 /* CenteredView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; name = CenteredView.xib; path = Resources/CenteredView.xib; sourceTree = "<group>"; };
22DFC9171F00674E001B1CA1 /* PhysicsPanHandler.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PhysicsPanHandler.swift; sourceTree = "<group>"; };
22E01F631E74EC8B00ACE19A /* MaskingView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MaskingView.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -289,8 +290,9 @@
86B48AED1D5A41C900063E2B /* SwiftMessages */,
86B48AF91D5A41C900063E2B /* SwiftMessagesTests */,
867E21501D4D01D500594A41 /* Products */,
862C0C6A1D58E93300D06168 /* SwiftMessages.podspec */,
224FB6C8211651D10081D4DE /* Frameworks */,
22A2EA6E24EC6CFA00BB2540 /* Package.swift */,
862C0C6A1D58E93300D06168 /* SwiftMessages.podspec */,
);
sourceTree = "<group>";
};
Expand Down
2 changes: 1 addition & 1 deletion SwiftMessages/CALayer+Utils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2018 SwiftKick Mobile. All rights reserved.
//

import CoreGraphics
import QuartzCore

extension CALayer {
func findAnimation(forKeyPath keyPath: String) -> CABasicAnimation? {
Expand Down

0 comments on commit c40ae0b

Please sign in to comment.