Skip to content

Commit

Permalink
Update to 2.4.8
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanvorobei committed Dec 14, 2018
1 parent 41f845a commit 2068761
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -349,10 +349,14 @@ extension SPPermission {
return false
}
case .WhenInUse:
if status == .authorizedWhenInUse {
if status == .authorizedAlways {
return true
} else {
return false
if status == .authorizedWhenInUse {
return true
} else {
return false
}
}
case .AlwaysWithBackground:
if status == .authorizedAlways {
Expand Down
2 changes: 1 addition & 1 deletion SPPermission.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "SPPermission"
s.version = "2.4.6"
s.version = "2.4.8"
s.summary = "Simple request permissions with dialog alert"
s.homepage = "https://github.com/IvanVorobei/RequestPermission"
s.source = { :git => "https://github.com/IvanVorobei/RequestPermission.git", :tag => s.version }
Expand Down
8 changes: 6 additions & 2 deletions Source/SPPermission/SPPermission.swift
Original file line number Diff line number Diff line change
Expand Up @@ -349,10 +349,14 @@ extension SPPermission {
return false
}
case .WhenInUse:
if status == .authorizedWhenInUse {
if status == .authorizedAlways {
return true
} else {
return false
if status == .authorizedWhenInUse {
return true
} else {
return false
}
}
case .AlwaysWithBackground:
if status == .authorizedAlways {
Expand Down

0 comments on commit 2068761

Please sign in to comment.