Skip to content

Commit

Permalink
Build Configurations added to ResourceCacheHeartbeatProcessor
Browse files Browse the repository at this point in the history
  • Loading branch information
Spriter committed May 26, 2016
1 parent 09a5075 commit 354045a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
13 changes: 12 additions & 1 deletion Sources/Base/ResourceCacheHeartbeatProcessor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,18 @@ class ResourceCacheHeartbeatProcessor: HeartbeatProcessor {

self.readCacheFromDisk()

// NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(ResourceCacheHeartbeatProcessor.handleApplicationWillTerminateNotification), name: UIApplicationWillTerminateNotification, object: nil)
#if os(iOS) || os(tvOS)

NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(ResourceCacheHeartbeatProcessor.handleApplicationWillTerminateNotification), name: UIApplicationWillTerminateNotification, object: nil)

#elseif os(watchOS)

// TODO: We have to find a Solution for Watch OS

// NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(ResourceCacheHeartbeatProcessor.handleApplicationWillTerminateNotification), name: UIApplicationWillResignActiveNotification, object: nil)

#endif


}

Expand Down
5 changes: 3 additions & 2 deletions SwiftyHue.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = "SwiftyHue"
s.version = "0.1.6"
s.version = "0.1.7"
s.summary = "Philips Hue SDK written in swift."

# This description is used to generate tags and improve search results.
Expand All @@ -22,10 +22,11 @@ Pod::Spec.new do |s|
# s.screenshots = "www.example.com/screenshots_1", "www.example.com/screenshots_2"
s.license = 'MIT'
s.authors = { "Marcel Dittmann" => "marceldittmann@gmx.de", "Jerome Schmitz" => "jerome.schmitz@gmx.net", "Nils Lattek" => "nilslattek@gmail.com" }
s.source = { :git => "https://github.com/Spriter/SwiftyHue.git", :tag => "v0.1.6" }
s.source = { :git => "https://github.com/Spriter/SwiftyHue.git", :tag => "v0.1.7" }
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

s.ios.deployment_target = '8.0'
s.tvos.deployment_target = '9.0'

s.pod_target_xcconfig = { 'ENABLE_TESTABILITY[config=Debug]' => 'YES' }
s.source_files = 'Sources/SwiftyHue.h'
Expand Down

0 comments on commit 354045a

Please sign in to comment.