Skip to content

Commit 2a509c5

Browse files
author
Shintaro Katafuchi
committed
Prepare for 1.1.0.
1 parent a4a7a69 commit 2a509c5

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ android:
1212
- extra-google-m2repository
1313

1414
jdk:
15-
- oraclejdk7
1615
- oraclejdk8
1716

1817
branches:

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# ChangeLog
22

3+
- 1.1.0 2015/08/24
4+
- Add `@NeedsPermissions` and `@ShowRationales`.
35
- 1.0.1 2015/08/20
46
- Stop calling rationale methods in the OnRequestPermissionsResult.
57
- 1.0.0 2015/08/19

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
[ ![Download](https://api.bintray.com/packages/hotchemi/maven/permissionsdispatcher/images/download.svg) ](https://bintray.com/hotchemi/maven/permissionsdispatcher/_latestVersion)
55
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-PermissionsDispatcher-green.svg?style=flat)](https://android-arsenal.com/details/1/2316)
66

7-
PermissionsDispatcher provides simple annotation-based API to handle runtime permissions in Android M.
7+
PermissionsDispatcher provides simple annotation-based API to handle runtime permissions in Marshmallow.
88

9-
[Runtime permissions](https://developer.android.com/preview/features/runtime-permissions.html) is so great for users but also the hell for developers. Actually I don't want to write such a complicated [code](https://github.com/googlesamples/android-RuntimePermissions/blob/master/Application/src/main/java/com/example/android/system/runtimepermissions/MainActivity.java) anymore.
9+
[Runtime permissions](https://developer.android.com/preview/features/runtime-permissions.html) is so great for users but also the hell for developers.
1010

1111
You can be released from the burden that writing a bunch of check statements whether a permission have been granted or not.
1212

@@ -16,11 +16,13 @@ Here's a minimum example that you register `MainActivity` which requires `Manife
1616

1717
### 1. Attach annotations
1818

19-
There are only 3 annotations.
19+
There are only few annotations.
2020

2121
- `@RuntimePermissions`: [Must] Register an Activity or Fragment to handle permissions.
2222
- `@NeedsPermission`: [Must] Register a method which the permission is needed.
23+
- You can use `@NeedsPermissions` for multiple requests.
2324
- `@ShowsRationale`: [Option] Register a method which explains why the permission is needed. Actually an annotated method is called when `shouldShowRequestPermissionRationale` returns true or when uer deny a permission.
25+
- You can use `@ShowsRationales` for multiple requests.
2426

2527
> NOTE: Annotated methods must be package private or above.
2628
@@ -103,8 +105,8 @@ buildscript {
103105
apply plugin: 'android-apt'
104106
105107
dependencies {
106-
compile 'com.github.hotchemi:permissionsdispatcher:1.0.1'
107-
apt 'com.github.hotchemi:permissionsdispatcher-processor:1.0.1'
108+
compile 'com.github.hotchemi:permissionsdispatcher:1.1.0'
109+
apt 'com.github.hotchemi:permissionsdispatcher-processor:1.1.0'
108110
}
109111
```
110112

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ USER = hotchemi
22
GROUP_ID = com.github.hotchemi
33
ARTIFACT_ID_CORE = permissionsdispatcher
44
ARTIFACT_ID_PROCESSOR = permissionsdispatcher-processor
5-
VERSION = 1.0.1
5+
VERSION = 1.1.0
66
DESCRIPTION = Annotation-based library for generating runtime permissions dispatcher.
77
WEBSITE = https://github.com/hotchemi/PermissionsDispatcher
88
LICENCES = ['Apache-2.0']

0 commit comments

Comments
 (0)