Skip to content
Light and easy to use library for managing android runtime permissions
Kotlin Java
Branch: master
Clone or download
Latest commit 06688c4 Aug 9, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea sample apk added to root Jul 2, 2019
app refactored some files Jun 19, 2019
ezpermission org updated Aug 9, 2019
gradle/wrapper permission is done May 26, 2019
.gitignore publish setup Jun 18, 2019
LICENSE Initial commit Jun 3, 2019
README.md readme updated Aug 9, 2019
build.gradle publish task updated Jun 18, 2019
gradle.properties permission is done May 26, 2019
gradlew permission is done May 26, 2019
gradlew.bat permission is done May 26, 2019
sample-gif.gif gif updated Jun 3, 2019
sample.apk sample apk added to root Jul 2, 2019
settings.gradle refactor is done Jun 19, 2019

README.md

EzPermission Download

A tiny and easy to use kotlin library for managing android runtime permissions

Gradle setup

Make sure your project includes jcenter in its repositories and add this to build.gradle in app module

dependencies {
        implementation 'com.androidisland.ezpermission:ezpermission:0.1.4'
}

How to use

It's simple, pass all permissions you want to ask for, the result will be divided into: granted, denied and permanently denied!

EzPermission.with(context)
    .permissions(
        Manifest.permission.WRITE_EXTERNAL_STORAGE,
        Manifest.permission.ACCESS_FINE_LOCATION
    )
    .request { granted, denied, permanentlyDenied ->
        //Here you can check results...
    }

License

Copyright 2019 Farshad Tahmasbi

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.    
You can’t perform that action at this time.