Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/SkipKit/PermissionManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public class PermissionManager {
/// - permission: the permission, such as `PermissionType.CAMERA`
/// - showRationale: an optional async callback to invoke when the system determies that a rationale should be displayed for the permission check
/// - Returns: true if the permission was granted, false if denied or there was an error making the request
/* SKIP @nobridge */ public static func requestPermission(_ permission: PermissionType, showRationale: (() async -> Bool)?) async -> PermissionAuthorization {
public static func requestPermission(_ permission: PermissionType, showRationale: (() async -> Bool)?) async -> PermissionAuthorization {
#if !SKIP
switch permission {
case .POST_NOTIFICATIONS: return await (try? requestPostNotificationPermission()) ?? .unknown
Expand Down