Skip to content

Commit cd4b232

Browse files
authored
Merge pull request #568 from permissions-dispatcher/split_installation
Extract installation section to new page
2 parents b360369 + a4a1f5d commit cd4b232

File tree

3 files changed

+37
-37
lines changed

3 files changed

+37
-37
lines changed

README.md

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -10,42 +10,6 @@ This library lifts the burden that comes with writing a bunch of check statement
1010

1111
For more information please see [the website](https://permissions-dispatcher.github.io/).
1212

13-
## Download
14-
15-
NOTE: 4.x only supports [Jetpack](https://developer.android.com/jetpack/). If you still use appcompat 3.x is the way to go.
16-
17-
To add PermissionsDispatcher to your project, include the following in your **app module** `build.gradle` file:
18-
19-
`${latest.version}` is [![Download](https://api.bintray.com/packages/hotchemi/maven/permissionsdispatcher/images/download.svg)](https://bintray.com/hotchemi/maven/permissionsdispatcher/_latestVersion)
20-
21-
```groovy
22-
dependencies {
23-
implementation "com.github.hotchemi:permissionsdispatcher:${latest.version}"
24-
annotationProcessor "com.github.hotchemi:permissionsdispatcher-processor:${latest.version}"
25-
}
26-
```
27-
28-
With Kotlin:
29-
30-
```groovy
31-
apply plugin: 'kotlin-kapt'
32-
33-
dependencies {
34-
implementation "com.github.hotchemi:permissionsdispatcher:${latest.version}"
35-
kapt "com.github.hotchemi:permissionsdispatcher-processor:${latest.version}"
36-
}
37-
```
38-
39-
Snapshots of the development version are available in [JFrog's snapshots repository](https://oss.jfrog.org/oss-snapshot-local/).
40-
Add the repo below to download `SNAPSHOT` releases.
41-
42-
```groovy
43-
repositories {
44-
jcenter()
45-
maven { url 'http://oss.jfrog.org/artifactory/oss-snapshot-local/' }
46-
}
47-
```
48-
4913
## License
5014

5115
```

SUMMARY.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
## Getting Started
66

7+
- [Installation](doc/installation.md)
78
- [Java](doc/java_usage.md)
89
- [Kotlin](doc/kotlin_usage.md)
910

@@ -20,5 +21,5 @@
2021
## Others
2122

2223
- [Changelog](CHANGELOG.md)
23-
- [Users](doc/users.md)
2424
- [Migration Guide](doc/migration_guide.md)
25+
- [Users](doc/users.md)

doc/installation.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
## Installation
2+
3+
NOTE: 4.x only supports [Jetpack](https://developer.android.com/jetpack/). If you still use appcompat 3.x is the way to go.
4+
5+
To add PermissionsDispatcher to your project, include the following in your **app module** `build.gradle` file:
6+
7+
`${latest.version}` is [![Download](https://api.bintray.com/packages/hotchemi/maven/permissionsdispatcher/images/download.svg)](https://bintray.com/hotchemi/maven/permissionsdispatcher/_latestVersion)
8+
9+
```groovy
10+
dependencies {
11+
implementation "com.github.hotchemi:permissionsdispatcher:${latest.version}"
12+
annotationProcessor "com.github.hotchemi:permissionsdispatcher-processor:${latest.version}"
13+
}
14+
```
15+
16+
With Kotlin:
17+
18+
```groovy
19+
apply plugin: 'kotlin-kapt'
20+
21+
dependencies {
22+
implementation "com.github.hotchemi:permissionsdispatcher:${latest.version}"
23+
kapt "com.github.hotchemi:permissionsdispatcher-processor:${latest.version}"
24+
}
25+
```
26+
27+
Snapshots of the development version are available in [JFrog's snapshots repository](https://oss.jfrog.org/oss-snapshot-local/).
28+
Add the repo below to download `SNAPSHOT` releases.
29+
30+
```groovy
31+
repositories {
32+
jcenter()
33+
maven { url 'http://oss.jfrog.org/artifactory/oss-snapshot-local/' }
34+
}
35+
```

0 commit comments

Comments
 (0)