Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

Commit

Permalink
Merge branch 'master' into permadenied-multirequest
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio Gutierrez committed Nov 24, 2015
2 parents ee1effe + 143fc00 commit 4db8b6e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ Include the library in your ``build.gradle``

```groovy
dependencies{
compile 'com.karumi:dexter:1.0.2'
compile 'com.karumi:dexter:1.0.3'
}
```

Expand All @@ -146,7 +146,7 @@ or to your ``pom.xml`` if you are using Maven
<dependency>
<groupId>com.karumi</groupId>
<artifactId>dexter</artifactId>
<version>1.0.2</version>
<version>1.0.3</version>
<type>aar</type>
</dependency>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ public final class PermissionDeniedResponse {
private final PermissionRequest requestedPermission;
private final boolean permanentlyDenied;

public PermissionDeniedResponse(@NonNull PermissionRequest requestedPermission, boolean permanentlyDenied) {
public PermissionDeniedResponse(@NonNull PermissionRequest requestedPermission,
boolean permanentlyDenied) {
this.requestedPermission = requestedPermission;
this.permanentlyDenied = permanentlyDenied;
}
Expand All @@ -36,7 +37,8 @@ public PermissionDeniedResponse(@NonNull PermissionRequest requestedPermission,
* Builds a new instance of PermissionDeniedResponse from a given permission string
* and a permanently-denied boolean flag
*/
public static PermissionDeniedResponse from(@NonNull String permission, boolean permanentlyDenied) {
public static PermissionDeniedResponse from(@NonNull String permission,
boolean permanentlyDenied) {
return new PermissionDeniedResponse(new PermissionRequest(permission), permanentlyDenied);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@
import com.karumi.dexter.listener.PermissionRequest;

/**
* Interface that listens to updates to the permission requests.
* Interface that listens to updates to the permission requests
*/
public interface PermissionListener {

/**
* Method called whenever a requested permission has been granted.
* Method called whenever a requested permission has been granted
*
* @param response A response object that contains the permission that has been requested and
* any additional flags relevant to this response
*/
void onPermissionGranted(PermissionGrantedResponse response);

/**
* Method called whenever a requested permission has been denied.
* Method called whenever a requested permission has been denied
*
* @param response A response object that contains the permission that has been requested and
* any additional flags relevant to this response
Expand All @@ -44,12 +44,11 @@ public interface PermissionListener {

/**
* Method called whenever Android asks the application to inform the user of the need for the
* requested permission. The request process won't continue until the token is properly used.
* requested permission. The request process won't continue until the token is properly used
*
* @param permission The permission that has been requested. One of the values found in
* {@link android.Manifest.permission}
* @param permission The permission that has been requested
* @param token Token used to continue or cancel the permission request process. The permission
* request process will remain blocked until one of the token methods is called.
* request process will remain blocked until one of the token methods is called
*/
void onPermissionRationaleShouldBeShown(PermissionRequest permission, PermissionToken token);
}
}
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ POM_NAME=Dexter
POM_ARTIFACT_ID=dexter
POM_PACKAGING=aar

VERSION_NAME=1.0.3-SNAPSHOT
VERSION_CODE=100003
VERSION_NAME=1.0.4-SNAPSHOT
VERSION_CODE=100004
GROUP=com.karumi

POM_DESCRIPTION=Dexter is an Android library to handle runtime permissions for Marshmallow easily
Expand Down

0 comments on commit 4db8b6e

Please sign in to comment.