From 892c38d102feccbb76cab179f8407ab51ff6da96 Mon Sep 17 00:00:00 2001 From: Jonas Kalderstam Date: Fri, 7 Apr 2017 22:41:51 +0200 Subject: [PATCH] Bump version --- CHANGELOG.md | 33 ++++++++++++++++++++------------- library/build.gradle | 3 ++- 2 files changed, 22 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ac1b8a53..41caa267 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,11 @@ +## 4.0.1 + + +### Fixed + +- Destroy Loader after finish to avoid clearing selections [\#137](https://github.com/spacecowboy/NoNonsense-FilePicker/pull/137) ([spacecowboy](https://github.com/spacecowboy)) + ## 4.0.0 @@ -6,10 +13,10 @@ - You are now required to define a `FileProvider` in your manifest for the SD-card picker [\#118](https://github.com/spacecowboy/NoNonsense-FilePicker/pull/118) ([spacecowboy](https://github.com/spacecowboy)) - + Due to recent changes in Android 7.0 Nougat, bare File URIs can no longer be returned in a safe way. This change requires you to add an entry to your manifest to use the included `FilePickerFragment` and change how you handle the results. - You need to add the following to your app's `AndroidManifest.xml`: - + ``` xml ``` - Then you must change your result handling. Here is a code snippet illustrating the change for a single result (the same applies to multiple results): - + ``` java protected void onActivityResult(int requestCode, int resultCode, Intent intent) { // The URI will now be something like content://PACKAGE-NAME/root/path/to/file @@ -34,9 +41,9 @@ // Do something with the result... } ``` - + This change was required in order to fix `FileUriExposedException` being thrown on Android 7.0 Nougat, as reported in [#115](https://github.com/spacecowboy/NoNonsense-FilePicker/issues/115) and [#107](https://github.com/spacecowboy/NoNonsense-FilePicker/issues/107). - + Please see the updated [activity in the sample app](https://github.com/spacecowboy/NoNonsense-FilePicker/blob/master/sample/src/main/java/com/nononsenseapps/filepicker/sample/NoNonsenseFilePicker.java) for more examples. ## 3.1.0 @@ -86,7 +93,7 @@ This allows for better handling in case of denied/missing permissions, as well the ability to request more fine-grained permissions. - + Fixes [\#85](https://github.com/spacecowboy/NoNonsense-FilePicker/issues/85), [\#84](https://github.com/spacecowboy/NoNonsense-FilePicker/issues/84) ### Fixed @@ -94,7 +101,7 @@ - Fix crash when creating dropbox directory [0a511ac](https://github.com/spacecowboy/NoNonsense-FilePicker/commit/0a511acb59fe02ad38d16bc0e4fd05c4a2cc6edb) Also improves loading screen usage for directory creation. - + Fixes [\#76](https://github.com/spacecowboy/NoNonsense-FilePicker/issues/76) ## 2.5.2 @@ -116,7 +123,7 @@ Fixes crash if user quickly taps on two different directories, where loading directories take a while, like Dropbox or any other network source. - + Fixes [\#73](https://github.com/spacecowboy/NoNonsense-FilePicker/issues/73) - Fix concurrent modification of adapter in dropbox sample [b7baea3](https://github.com/spacecowboy/NoNonsense-FilePicker/commit/b7baea37113435e2a8cb07ca5126b075a67ff128) @@ -135,7 +142,7 @@ To actually be compatible with Android and because it is more aligned with my interests. - + Fixes [\#66](https://github.com/spacecowboy/NoNonsense-FilePicker/issues/66) ## 2.5.0 @@ -166,7 +173,7 @@ This Fixes an issue on older android versions (4.0.3) where setting a tint on an imageview would incorrectly color the entire image. - + Fixes [\#50](https://github.com/spacecowboy/NoNonsense-FilePicker/issues/50) ## v2.4.1 @@ -249,7 +256,7 @@ Now possible to load the fragment even with existing toolbar, as long as setupToolbar() is overriden. - + Fixes [\#32](https://github.com/spacecowboy/NoNonsense-FilePicker/issues/32) ### Changed @@ -337,8 +344,8 @@ Removed onlyDirs in favor of a mode variable. Now possible to select between: Files, Dirs, or Both. - + The ability to create directories is now an option as well which defaults to false. - + Fixes [\#1](https://github.com/spacecowboy/NoNonsense-FilePicker/issues/1), [\#2](https://github.com/spacecowboy/NoNonsense-FilePicker/issues/2) diff --git a/library/build.gradle b/library/build.gradle index 6ff487b9..572c6948 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -9,7 +9,8 @@ apply plugin: 'com.android.library' apply plugin: 'bintray-release' // query git for the the SHA, Tag and commit count. Use these to automate versioning. -def gitTag = 'git describe --tags'.execute([], project.rootDir).text.trim() +//def gitTag = 'git describe --tags'.execute([], project.rootDir).text.trim() +def gitTag = '4.0.1' def gitCommitCount = Integer.parseInt('git rev-list --count HEAD'.execute([], project.rootDir).text.trim())