Skip to content

Commit

Permalink
Update readme installation.
Browse files Browse the repository at this point in the history
  • Loading branch information
shintaro.katafuchi committed Feb 28, 2019
1 parent b09b962 commit 3df0667
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 40 deletions.
21 changes: 16 additions & 5 deletions README.md
Expand Up @@ -95,18 +95,29 @@ Check out the [sample](https://github.com/hotchemi/PermissionsDispatcher/tree/ma

Thankfully we've got hundreds of [users](https://github.com/hotchemi/PermissionsDispatcher/blob/master/doc/users.md) around the world!

## Download
## Installation

**NOTE: 4.x only supports [Jetpack](https://developer.android.com/jetpack/). If you use appcompat 3.x which is almost stable is the way to go.**
NOTE: 4.x only supports [Jetpack](https://developer.android.com/jetpack/). If you still use appcompat 3.x is the way to go.

To add PermissionsDispatcher to your project, include the following in your **app module** `build.gradle` file:

`${latest.version}` is [![Download](https://api.bintray.com/packages/hotchemi/maven/permissionsdispatcher/images/download.svg)](https://bintray.com/hotchemi/maven/permissionsdispatcher/_latestVersion)
`${latest.version}` is [![Download](https://api.bintray.com/packages/hotchemi/org.permissionsdispatcher/permissionsdispatcher/images/download.svg) ](https://bintray.com/hotchemi/org.permissionsdispatcher/permissionsdispatcher/_latestVersion)

```groovy
dependencies {
implementation "com.github.hotchemi:permissionsdispatcher:${latest.version}"
kapt "com.github.hotchemi:permissionsdispatcher-processor:${latest.version}"
implementation "org.permissionsdispatcher:permissionsdispatcher:${latest.version}"
annotationProcessor "org.permissionsdispatcher:permissionsdispatcher-processor:${latest.version}"
}
```

With Kotlin:

```groovy
apply plugin: 'kotlin-kapt'
dependencies {
implementation "org.permissionsdispatcher:permissionsdispatcher:${latest.version}"
kapt "org.permissionsdispatcher:permissionsdispatcher-processor:${latest.version}"
}
```

Expand Down
35 changes: 0 additions & 35 deletions doc/installation.md

This file was deleted.

0 comments on commit 3df0667

Please sign in to comment.