https://github.com/babedev/dexter-dsl
Dexter with Kotlin DSL style
https://github.com/babedev/dexter-dsl
android-library dexter kotlin kotlin-dsl runtime-permissions
Last synced: 2 months ago
JSON representation
Dexter with Kotlin DSL style
- Host: GitHub
- URL: https://github.com/babedev/dexter-dsl
- Owner: babedev
- Created: 2017-04-26T09:24:01.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-05-17T07:32:46.000Z (about 4 years ago)
- Last Synced: 2025-03-20T01:11:43.433Z (2 months ago)
- Topics: android-library, dexter, kotlin, kotlin-dsl, runtime-permissions
- Language: Kotlin
- Size: 132 KB
- Stars: 13
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dexter DSL
[ ](https://bintray.com/babedev/maven/Dexter-DSL/_latestVersion)
[](https://travis-ci.org/babedev/Dexter-DSL)Dexter runtime permission with Kotlin DSL style
Download
--------
```gradle
repositories {
..
maven { url "https://dl.bintray.com/babedev/maven" }
..
}dependencies {
..
compile 'com.github.babedev.dexter.dsl:dsl:1.0.3'
..
}
```Sample
--------
```kotlin
runtimePermission {
permission(Manifest.permission.READ_EXTERNAL_STORAGE) {
granted {
toast("Permission granted")
}denied {
toast("Permission denied")
}rationaleShouldBeShown { _, token ->
token.continuePermissionRequest()
}
}
}
```Libraries used in this project
------------------------------* [Dexter][1]
[1]: https://github.com/Karumi/Dexter