Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
spacecowboy committed Apr 7, 2017
1 parent d107ecc commit 892c38d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 14 deletions.
33 changes: 20 additions & 13 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@

## 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


### Breaking changes

- 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
<provider
android:name="android.support.v4.content.FileProvider"
Expand All @@ -22,7 +29,7 @@
</provider>
```
- 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
Expand All @@ -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
Expand Down Expand Up @@ -86,15 +93,15 @@

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

- 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
Expand All @@ -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)

Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)
3 changes: 2 additions & 1 deletion library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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())

Expand Down

0 comments on commit 892c38d

Please sign in to comment.