返回排行榜

yanzhenjie/AndPermission

Javayanzhenjie.com/AndPermission

:strawberry: Permissions manager for Android platform.

permissionandroid-permissionruntime-permission
Star 增长趋势
Star
6.6k
Forks
1.1k
周增长
Issues
172
6.6k
2016年9月2019年12月2023年4月2026年7月
制品库Mavengit clone https://github.com/yanzhenjie/AndPermission.git
README

# AndPermission

  1. Request for runtime permissions.
  2. Share private files.
  3. Request to install unknown source apk.
    android.permission.REQUEST_INSTALL_PACKAGES
  4. Request to draw at the top of other apps.
    android.permission.SYSTEM_ALERT_WINDOW
  5. Request to show notifications.
  6. Request to access notifications.
    android.permission.BIND_NOTIFICATION_LISTENER_SERVICE
  7. Request to modify system setting.
    android.permission.WRITE_SETTINGS
AndPermission.with(this)
  .runtime()
  .permission(Permission.Group.STORAGE)
  .onGranted(permissions -> {
    // Storage permission are allowed.
  })
  .onDenied(permissions -> {
    // Storage permission are not allowed.
  })
  .start();

For documentation and additional information see the website.

Download

It only supports androidx, add dependencies in your gradle:

implementation 'com.yanzhenjie:permission:2.0.3'

AndPermission requires at minimum Android 4.0(Api level 14) .

Contributing

Before submitting pull requests, contributors must abide by the agreement .

License

Copyright 2019 Zhenjie Yan

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
相关仓库
Blankj/AndroidUtilCode

:fire: Android developers should collect the following utils(updating).

JavaMavenApache License 2.0androidapp
blankj.com/2016/07/31/android-utils-code/
33.7k10.6k
apache/casbin

Apache Casbin: an authorization library that supports access control models like ACL, RBAC, ABAC.

GoGo ModulesApache License 2.0casbinaccess-control
casbin.apache.org
20.3k1.8k
casbin/casbin

An authorization library that supports access control models like ACL, RBAC, ABAC in Golang: https://discord.gg/S5UjpzGZjN

GoGo ModulesApache License 2.0casbinaccess-control
casbin.org
18.3k1.7k
spatie/laravel-permission

Associate users with roles and permissions

PHPPackagistMIT Licenselaravelphp
spatie.be/docs/laravel-permission
12.9k1.8k
permissions-dispatcher/PermissionsDispatcher

A declarative API to handle Android runtime permissions.

JavaMavenApache License 2.0androidkotlin
github.com/permissions-dispatcher/PermissionsDispatcher
11.2k1.4k
getActivity/XXPermissions

Android Permissions Framework, Adapt to Android 17

JavaMavenApache License 2.0permission-androidpermission
6.8k901
Permify/permify

An open-source authorization as a service inspired by Google Zanzibar, designed to build and manage fine-grained and scalable authorization systems for any application. — Permify is now part of FusionAuth 🎉

GoGo ModulesGNU Affero General Public License v3.0access-controlauthorization
permify.co
5.9k322
sparrowcode/PermissionsKit

Universal API for request permission and get its statuses.

SwiftMIT Licensepermissionpermissions
x.com/sparrowcode_ios
5.8k478
zenstackhq/zenstack

Modern data layer for TypeScript apps - type-safe ORM, built-in access control, automatic query services

TypeScriptnpmMIT Licensefullstacknextjs
zenstack.dev
2.9k148
apache/casbin-node-casbin

An authorization library that supports access control models like ACL, RBAC, ABAC in Node.js and Browser

TypeScriptnpmApache License 2.0casbinnodejs
casbin.org
2.9k230
casbin/node-casbin

An authorization library that supports access control models like ACL, RBAC, ABAC in Node.js and Browser

TypeScriptnpmApache License 2.0casbinnodejs
casbin.org
2.7k218
apache/casbin-jcasbin

An authorization library that supports access control models like ACL, RBAC, ABAC in Java

JavaMavenApache License 2.0casbinjava
casbin.org
2.6k491