From 9baa2e427d04e9ebcbad1b76a81155f1761c7dbb Mon Sep 17 00:00:00 2001 From: hotchemi Date: Fri, 29 Jan 2016 15:31:00 +0900 Subject: [PATCH] Prepare for 2.0.5. --- CHANGELOG.md | 2 ++ README.md | 29 ++++++++++---------- gradle.properties | 2 +- processor/src/test/libs/library-sources.jar | Bin 5337 -> 5337 bytes 4 files changed, 18 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e3eea77..97d74072 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # ChangeLog +- 2.0.5 2016/01/29 + - Back to support JDK 1.7. - 2.0.4 2016/01/22 - Fix [Issue #78](https://github.com/hotchemi/PermissionsDispatcher/issues/78) - 2.0.3 2016/01/18 diff --git a/README.md b/README.md index ed337e4e..e6e8817b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # PermissionsDispatcher [![Build Status](https://travis-ci.org/hotchemi/PermissionsDispatcher.svg)](https://travis-ci.org/hotchemi/PermissionsDispatcher) -[![Download](https://api.bintray.com/packages/hotchemi/maven/permissionsdispatcher/images/download.svg)](https://bintray.com/hotchemi/maven/permissionsdispatcher/_latestVersion) ![image](https://raw.githubusercontent.com/hotchemi/PermissionsDispatcher/master/art/logo.png) @@ -24,12 +23,14 @@ buildscript { And on your **app module** `build.gradle`: +`${latest.version}` is [![Download](https://api.bintray.com/packages/hotchemi/maven/permissionsdispatcher/images/download.svg)](https://bintray.com/hotchemi/maven/permissionsdispatcher/_latestVersion) + ```groovy apply plugin: 'android-apt' dependencies { - compile 'com.github.hotchemi:permissionsdispatcher:2.0.4' - apt 'com.github.hotchemi:permissionsdispatcher-processor:2.0.4' + compile 'com.github.hotchemi:permissionsdispatcher:${latest.version}' + apt 'com.github.hotchemi:permissionsdispatcher-processor:${latest.version}' } ``` @@ -69,22 +70,22 @@ public class MainActivity extends AppCompatActivity { @OnShowRationale(Manifest.permission.CAMERA) void showRationaleForCamera(PermissionRequest request) { - new AlertDialog.Builder(this) - .setMessage(R.string.permission_camera_rationale) - .setPositiveButton(R.string.button_allow, (dialog, button) -> request.proceed()) - .setNegativeButton(R.string.button_deny, (dialog, button) -> request.cancel()) - .show(); + new AlertDialog.Builder(this) + .setMessage(R.string.permission_camera_rationale) + .setPositiveButton(R.string.button_allow, (dialog, button) -> request.proceed()) + .setNegativeButton(R.string.button_deny, (dialog, button) -> request.cancel()) + .show(); } @OnPermissionDenied(Manifest.permission.CAMERA) void showDeniedForCamera() { Toast.makeText(this, R.string.permission_camera_denied, Toast.LENGTH_SHORT).show(); - } - - @OnNeverAskAgain(Manifest.permission.CAMERA) - void showNeverAskForCamera() { - Toast.makeText(this, R.string.permission_camera_neverask, Toast.LENGTH_SHORT).show(); - } + } + + @OnNeverAskAgain(Manifest.permission.CAMERA) + void showNeverAskForCamera() { + Toast.makeText(this, R.string.permission_camera_neverask, Toast.LENGTH_SHORT).show(); + } } ``` diff --git a/gradle.properties b/gradle.properties index ef118a81..d56e4714 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,7 +5,7 @@ USER = hotchemi GROUP_ID = com.github.hotchemi ARTIFACT_ID_LIBRARY = permissionsdispatcher ARTIFACT_ID_PROCESSOR = permissionsdispatcher-processor -VERSION = 2.0.4 +VERSION = 2.0.5 DESCRIPTION = Annotation-based library for generating runtime permissions dispatcher. WEBSITE = https://github.com/hotchemi/PermissionsDispatcher LICENCES = ['Apache-2.0'] diff --git a/processor/src/test/libs/library-sources.jar b/processor/src/test/libs/library-sources.jar index a8f9917f8594a85aa5d24f9866b9bc5d8fe01ff8..6945303f9f538442a2aacfd38aa15a5d14bddc2a 100644 GIT binary patch delta 256 zcmcbqc~g@&z?+$ci-CcIgQ2zBb|SADGl(+tVtx>8JF!_4OszKoQ_og{sLhiY#Tmhj zHB5RC#$9Gv2;(n{BA78*k?jpwi2%C@L`I$CAqz-kGB>XUn0DiR0ajtica;%jCG