From d4043df61e9acc8cca294a943af16042b99ca041 Mon Sep 17 00:00:00 2001 From: DongHyeon Park Date: Thu, 15 Aug 2024 21:28:45 +0900 Subject: [PATCH] ISSUE-652: define ALLOW_ALL & ALLOW_SELECTED on Permissions.Button (#653) --- .../com/kaspersky/kaspresso/device/permissions/Permissions.kt | 2 ++ .../kaspersky/kaspresso/device/permissions/PermissionsImpl.kt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/kaspresso/src/main/kotlin/com/kaspersky/kaspresso/device/permissions/Permissions.kt b/kaspresso/src/main/kotlin/com/kaspersky/kaspresso/device/permissions/Permissions.kt index e0f0efa73..9862b14f0 100644 --- a/kaspresso/src/main/kotlin/com/kaspersky/kaspresso/device/permissions/Permissions.kt +++ b/kaspresso/src/main/kotlin/com/kaspersky/kaspresso/device/permissions/Permissions.kt @@ -29,6 +29,8 @@ interface Permissions { ALLOW, ALLOW_ALWAYS, ALLOW_FOREGROUND, + ALLOW_ALL, + ALLOW_SELECTED, DENY } } diff --git a/kaspresso/src/main/kotlin/com/kaspersky/kaspresso/device/permissions/PermissionsImpl.kt b/kaspresso/src/main/kotlin/com/kaspersky/kaspresso/device/permissions/PermissionsImpl.kt index 69990e326..684c96539 100644 --- a/kaspresso/src/main/kotlin/com/kaspersky/kaspresso/device/permissions/PermissionsImpl.kt +++ b/kaspresso/src/main/kotlin/com/kaspersky/kaspresso/device/permissions/PermissionsImpl.kt @@ -34,6 +34,8 @@ class PermissionsImpl( Permissions.Button.ALLOW to getResIdWithPackageName("permission_allow_button"), Permissions.Button.ALLOW_ALWAYS to getResIdWithPackageName("permission_allow_always_button"), Permissions.Button.ALLOW_FOREGROUND to getResIdWithPackageName("permission_allow_foreground_only_button"), + Permissions.Button.ALLOW_ALL to getResIdWithPackageName("permission_allow_all_button"), + Permissions.Button.ALLOW_SELECTED to getResIdWithPackageName("permission_allow_selected_button"), Permissions.Button.DENY to getResIdWithPackageName("permission_deny_button") )