Skip to content

Commit

Permalink
Merge pull request #7 from diamondsky/master
Browse files Browse the repository at this point in the history
Fixes crash with nil iTunesURL
  • Loading branch information
getaaron committed Jan 29, 2015
2 parents 879cf8c + 37cb67d commit 6c5b0e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Siren.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Siren"
s.version = "0.2.2"
s.version = "0.2.3"
s.summary = "Notify users when a new version of your iOS app is available, and prompt them with the App Store link.."

s.description = <<-DESC
Expand All @@ -15,7 +15,7 @@ Siren is actively maintained by Arthur Sabintsev and Aaron Brager.
s.license = "MIT"
s.authors = { "Arthur Sabintsev" => "arthur@sabintsev.com", "Aaron Brager" => "getaaron@gmail.com" }
s.platform = :ios, "8.0"
s.source = { :git => "https://github.com/ArtSabintsev/Siren.git", :tag => "0.2.2" }
s.source = { :git => "https://github.com/ArtSabintsev/Siren.git", :tag => "0.2.3" }
s.source_files = 'Siren/Siren.swift'
s.resources = 'Siren/Siren.bundle'
s.requires_arc = true
Expand Down
2 changes: 1 addition & 1 deletion Siren/Siren.swift
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ private extension Siren {

// Actions
func launchAppStore() {
let iTunesString = "https://itunes.apple.com/app/id\(appID)";
let iTunesString = "https://itunes.apple.com/app/id\(appID!)";
let iTunesURL = NSURL(string: iTunesString);
UIApplication.sharedApplication().openURL(iTunesURL!);
}
Expand Down

0 comments on commit 6c5b0e3

Please sign in to comment.