diff --git a/README.md b/README.md index 0b790e25..9aed5a99 100644 --- a/README.md +++ b/README.md @@ -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' } ``` @@ -146,7 +146,7 @@ or to your ``pom.xml`` if you are using Maven com.karumi dexter - 1.0.2 + 1.0.3 aar diff --git a/dexter/src/main/java/com/karumi/dexter/listener/PermissionDeniedResponse.java b/dexter/src/main/java/com/karumi/dexter/listener/PermissionDeniedResponse.java index 0501bd6e..88abea62 100644 --- a/dexter/src/main/java/com/karumi/dexter/listener/PermissionDeniedResponse.java +++ b/dexter/src/main/java/com/karumi/dexter/listener/PermissionDeniedResponse.java @@ -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; } @@ -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); } diff --git a/dexter/src/main/java/com/karumi/dexter/listener/single/PermissionListener.java b/dexter/src/main/java/com/karumi/dexter/listener/single/PermissionListener.java index fcb74365..4ae2486e 100644 --- a/dexter/src/main/java/com/karumi/dexter/listener/single/PermissionListener.java +++ b/dexter/src/main/java/com/karumi/dexter/listener/single/PermissionListener.java @@ -22,12 +22,12 @@ 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 @@ -35,7 +35,7 @@ public interface PermissionListener { 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 @@ -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); -} \ No newline at end of file +} diff --git a/gradle.properties b/gradle.properties index d843b825..3262b3ba 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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