Skip to content

Commit

Permalink
Fix app extension compile error when using CocoaPods
Browse files Browse the repository at this point in the history
  • Loading branch information
wtmoose committed Mar 24, 2021
1 parent 76d7971 commit ba6c3e7
Show file tree
Hide file tree
Showing 41 changed files with 2,020 additions and 76 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Change Log
All notable changes to this project will be documented in this file.

## 9.0.2

### Fixes

* Fix app extension compile error when using CocoaPods.

## 9.0.1

### Fixes
Expand Down
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 = '9.0.1'
spec.version = '9.0.2'
spec.license = { :type => 'MIT' }
spec.homepage = 'https://github.com/SwiftKickMobile/SwiftMessages'
spec.authors = { 'Timothy Moose' => 'tim@swiftkick.it' }
Expand Down
2 changes: 2 additions & 0 deletions SwiftMessages/UIWindow+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import UIKit

extension UIWindow {
#if !SWIFTMESSAGES_APP_EXTENSIONS
static var keyWindow: UIWindow? {
if #available(iOS 13.0, *) {
return UIApplication.shared.connectedScenes
Expand All @@ -21,4 +22,5 @@ extension UIWindow {
return UIApplication.shared.keyWindow
}
}
#endif
}
19 changes: 19 additions & 0 deletions iMessageDemo/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'iMessageDemo' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!

# Pods for iMessageDemo

end

target 'iMessageExtensionDemo' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!

# Pods for iMessageExtensionDemo
pod 'SwiftMessages/AppExtension', :path => "../"

end
16 changes: 16 additions & 0 deletions iMessageDemo/Podfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
PODS:
- SwiftMessages/AppExtension (9.0.1)

DEPENDENCIES:
- SwiftMessages/AppExtension (from `../`)

EXTERNAL SOURCES:
SwiftMessages:
:path: "../"

SPEC CHECKSUMS:
SwiftMessages: b71f53eb919887c0273bf43cbc002bd4f0cfb3d6

PODFILE CHECKSUM: 4cfafdad7d8903d0f4cfadbe05660bcdeff7c9e6

COCOAPODS: 1.10.0
49 changes: 49 additions & 0 deletions iMessageDemo/Pods/Local Podspecs/SwiftMessages.podspec.json

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

16 changes: 16 additions & 0 deletions iMessageDemo/Pods/Manifest.lock

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

1,188 changes: 1,188 additions & 0 deletions iMessageDemo/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.

0 comments on commit ba6c3e7

Please sign in to comment.