All Projects β†’ Karn β†’ sentry

Karn / sentry

Licence: MIT license
A lightweight (23KB) wrapper for inline Android permission checks/requests.

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to sentry

easypermissions-ktx
πŸ”“ Kotlin version of the popular google/easypermissions wrapper library to simplify basic system permissions logic on Android M or higher.
Stars: ✭ 324 (+1372.73%)
Mutual labels:  permissions, permissions-android
startask-permissions
Is a library that helps to handle runtime permissions on Android, entirely written using Kotlin language.
Stars: ✭ 39 (+77.27%)
Mutual labels:  permissions, android-permissions
Permissionsdispatcher
A declarative API to handle Android runtime permissions.
Stars: ✭ 10,851 (+49222.73%)
Mutual labels:  permissions, permissions-android
rbac
Simple RBAC/ACL for Laravel 8 caching and permission groups.
Stars: ✭ 43 (+95.45%)
Mutual labels:  permissions
PermissionManager
This Library automatically search for permission in androidmanifests file and request for the same
Stars: ✭ 45 (+104.55%)
Mutual labels:  permissions
LuckPerms-Mirai
LuckPerms on MiraiConsole
Stars: ✭ 58 (+163.64%)
Mutual labels:  permissions
iam-policies
Iam policies implementation for create roles and manage permissions
Stars: ✭ 20 (-9.09%)
Mutual labels:  permissions
advancedPermissionHandler
This Android library is for handle running time permissions in simplest way!
Stars: ✭ 13 (-40.91%)
Mutual labels:  permissions
go-acl
Go library for manipulating ACLs on Windows
Stars: ✭ 97 (+340.91%)
Mutual labels:  permissions
permissionsql
πŸ” Middleware for keeping track of users, login states and permissions
Stars: ✭ 58 (+163.64%)
Mutual labels:  permissions
React-Express-JWT-UserPortal
React.js & Express.js User portal Using Core UI, JWT, JWT Token, Refresh Token, Role & Permission management, User manamgenet, Event Log.
Stars: ✭ 22 (+0%)
Mutual labels:  permissions
ngx-access
Add access control to your components using hierarchical configuration with logical expressions.
Stars: ✭ 21 (-4.55%)
Mutual labels:  permissions
lakecli
A CLI to manage and monitor permissions in AWS Lake Formation
Stars: ✭ 22 (+0%)
Mutual labels:  permissions
bastion
No description or website provided.
Stars: ✭ 11 (-50%)
Mutual labels:  permissions
django-hats
Role-based permissions system for Django. Everyone wears a different hat, some people wear multiple.
Stars: ✭ 21 (-4.55%)
Mutual labels:  permissions
rbac-tool
Rapid7 | insightCloudSec | Kubernetes RBAC Power Toys - Visualize, Analyze, Generate & Query
Stars: ✭ 546 (+2381.82%)
Mutual labels:  permissions
EzPermission
Light and easy to use library for managing android runtime permissions
Stars: ✭ 32 (+45.45%)
Mutual labels:  android-permissions
nova-permissions
Add Permissions based authorization for your Nova installation via User-based Roles and Permissions. Roles are defined in the database whereas Permissions are defined in the code base.
Stars: ✭ 115 (+422.73%)
Mutual labels:  permissions
laravel-zend-acl
Adds ACL to Laravel via Zend\Permissions\Acl component.
Stars: ✭ 41 (+86.36%)
Mutual labels:  permissions
django-cancan
πŸ”“Authorization library for Django
Stars: ✭ 36 (+63.64%)
Mutual labels:  permissions

Sentry

Sentry

A lightweight wrapper for Android Permissions.

Kotlin Build Status Codecov GitHub (pre-)release

GETTING STARTED

Sentry (pre-)releases are available via JitPack. It is recommended that a specific release version is selected when using the library in production as there may be breaking changes at anytime.

Tip: Test out the canary channel to try out features by using the latest develop snapshot; develop-SNAPSHOT.

// Project level build.gradle
// ...
repositories {
    maven { url 'https://jitpack.io' }
}
// ...

// Module level build.gradle
dependencies {
    // Replace version with release version, e.g. 1.0.0-alpha, -SNAPSHOT
    implementation "io.karn:sentry:[VERSION]"
}

USAGE

The most basic case is as follows:

// Add the following delegate to your activity.
- class MyActivity : AppCompatActivity() {
+ class MyActivity : AppCompatActivity(), Permissions by SentryPermissionHandler {

// or optionally manually delegate to the SentryPermissionHandler by adding the following override
// in your Activity
+    override fun onRequestPermissionsResult(requestCode: Int, permissions: Array<out String>, grantResults: IntArray) {
+        SentryPermissionHandler.onRequestPermissionsResult(requestCode, permissions, grantResults)
+    }
}

Then anywhere in your activity you can make a request to fetch a permission.

Sentry
    // A reference to your current activity.
    .with(activity)
    // The permission that is being queried.
    .requestPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE) { isGranted: Boolean ->
        Log.v("Sentry", "Granted permission to write to external storage? $isGranted")
    }

CONTRIBUTING

There are many ways to contribute, you can

  • submit bugs,
  • help track issues,
  • review code changes.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].