Skip to content
Android library to handle runtime permission through Kotlin coroutines and Livedata.
Kotlin Java
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
common
coroutinespermission
dslpermission
gradle/wrapper
livedatapermission Update README.MD Oct 13, 2019
sample
screenshots
scripts
.gitignore
.travis.yml
CONTRIBUTING.md
LICENSE
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat Initial commit Apr 19, 2019
settings.gradle

README.md

Eazy Runtime Permission

License Build Status API ktlint Android Arsenal

A lightweight Android library which wraps boilerplate code of runtime permission and allows you to request permissions

  1. from coroutines. (No callbacks yay 🎉)
  2. request and observe permissions through LiveData.
  3. through clean and concise Kotlin DSL.

From release 2.0.0 onwards library is migrated to AndroidX. If you are still using support library and haven't migrated to AndroidX then check out non-androidX version of the library.

Including in your project

Eazy permissions is available in the Jcenter and divided into three modules so that based on your need you can include either coroutines or livedata or Kotlin DSL support in your project

//For coroutines
implementation 'com.sagar:coroutinespermission:[latest_version]'

//For LiveData
implementation 'com.sagar:livedatapermission:[latest_version]'

//For Kotlin DSL
implementation 'com.sagar:dslpermission:[latest_version]'
  • latest_version for coroutines - Download
  • latest_version for livedata - Download
  • latest_version for Kotlin DSL - Download

Read more about Coroutines, LiveData & Kotlin DSL

Contributing

Have suggestions for improvements and want to contribute? or Found any issues?
Head over to Contribution guidelines to know more about contributing to this library.

Screenshots of sample

sc1 sc2
sc1 sc2

License

Copyright 2019 Sagar Viradiya

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.