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

Commit 892c38d

Browse files
committed
Bump version
1 parent d107ecc commit 892c38d

File tree

2 files changed

+22
-14
lines changed

2 files changed

+22
-14
lines changed

CHANGELOG.md

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
11

2+
## 4.0.1
3+
4+
5+
### Fixed
6+
7+
- Destroy Loader after finish to avoid clearing selections [\#137](https://github.com/spacecowboy/NoNonsense-FilePicker/pull/137) ([spacecowboy](https://github.com/spacecowboy))
8+
29
## 4.0.0
310

411

512
### Breaking changes
613

714
- 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))
815

9-
16+
1017
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.
1118
- You need to add the following to your app's `AndroidManifest.xml`:
12-
19+
1320
``` xml
1421
<provider
1522
android:name="android.support.v4.content.FileProvider"
@@ -22,7 +29,7 @@
2229
</provider>
2330
```
2431
- 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):
25-
32+
2633
``` java
2734
protected void onActivityResult(int requestCode, int resultCode, Intent intent) {
2835
// The URI will now be something like content://PACKAGE-NAME/root/path/to/file
@@ -34,9 +41,9 @@
3441
// Do something with the result...
3542
}
3643
```
37-
44+
3845
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).
39-
46+
4047
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.
4148

4249
## 3.1.0
@@ -86,15 +93,15 @@
8693

8794
This allows for better handling in case of denied/missing permissions,
8895
as well the ability to request more fine-grained permissions.
89-
96+
9097
Fixes [\#85](https://github.com/spacecowboy/NoNonsense-FilePicker/issues/85), [\#84](https://github.com/spacecowboy/NoNonsense-FilePicker/issues/84)
9198

9299
### Fixed
93100

94101
- Fix crash when creating dropbox directory [0a511ac](https://github.com/spacecowboy/NoNonsense-FilePicker/commit/0a511acb59fe02ad38d16bc0e4fd05c4a2cc6edb)
95102

96103
Also improves loading screen usage for directory creation.
97-
104+
98105
Fixes [\#76](https://github.com/spacecowboy/NoNonsense-FilePicker/issues/76)
99106

100107
## 2.5.2
@@ -116,7 +123,7 @@
116123
Fixes crash if user quickly taps on two different directories,
117124
where loading directories take a while, like Dropbox or any
118125
other network source.
119-
126+
120127
Fixes [\#73](https://github.com/spacecowboy/NoNonsense-FilePicker/issues/73)
121128
- Fix concurrent modification of adapter in dropbox sample [b7baea3](https://github.com/spacecowboy/NoNonsense-FilePicker/commit/b7baea37113435e2a8cb07ca5126b075a67ff128)
122129

@@ -135,7 +142,7 @@
135142

136143
To actually be compatible with Android and because it
137144
is more aligned with my interests.
138-
145+
139146
Fixes [\#66](https://github.com/spacecowboy/NoNonsense-FilePicker/issues/66)
140147

141148
## 2.5.0
@@ -166,7 +173,7 @@
166173
This Fixes an issue on older android versions (4.0.3)
167174
where setting a tint on an imageview would incorrectly
168175
color the entire image.
169-
176+
170177
Fixes [\#50](https://github.com/spacecowboy/NoNonsense-FilePicker/issues/50)
171178

172179
## v2.4.1
@@ -249,7 +256,7 @@
249256

250257
Now possible to load the fragment even with existing
251258
toolbar, as long as setupToolbar() is overriden.
252-
259+
253260
Fixes [\#32](https://github.com/spacecowboy/NoNonsense-FilePicker/issues/32)
254261

255262
### Changed
@@ -337,8 +344,8 @@
337344

338345
Removed onlyDirs in favor of a mode variable. Now possible to
339346
select between: Files, Dirs, or Both.
340-
347+
341348
The ability to create directories is now an option as well
342349
which defaults to false.
343-
350+
344351
Fixes [\#1](https://github.com/spacecowboy/NoNonsense-FilePicker/issues/1), [\#2](https://github.com/spacecowboy/NoNonsense-FilePicker/issues/2)

library/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ apply plugin: 'com.android.library'
99
apply plugin: 'bintray-release'
1010

1111
// query git for the the SHA, Tag and commit count. Use these to automate versioning.
12-
def gitTag = 'git describe --tags'.execute([], project.rootDir).text.trim()
12+
//def gitTag = 'git describe --tags'.execute([], project.rootDir).text.trim()
13+
def gitTag = '4.0.1'
1314
def gitCommitCount =
1415
Integer.parseInt('git rev-list --count HEAD'.execute([], project.rootDir).text.trim())
1516

0 commit comments

Comments
 (0)