Skip to content

Commit

Permalink
Version 1.0.0 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
cketti committed Apr 3, 2017
1 parent b937892 commit 61da03a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## Change Log

### Version 1.0.0 (2017-04-03)

First public release

### Version 0.9.0 (2016-09-16)

First uploaded to GitHub
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ PublicFileProvider is a special subclass of [`ContentProvider`](https://develope
PublicFileProvider is a modified version of FileProvider with the specific goal to expose files without using Android's URI permission mechanism. This can come in handy when you have to provide a `content://` URI but can't easily grant read access to whatever app ends up accessing the content.
One use case is a custom ringtone in a notification. Check out the blog post [Notifications, Sounds, Android 7.0, and Aggravation](https://commonsware.com/blog/2016/09/07/notifications-sounds-android-7p0-aggravation.html) for more details.


## Usage

Add a provider element to your Manifest:
Expand Down Expand Up @@ -48,6 +49,16 @@ File myNotificationSoundFile = new File(imagePath, "ding.ogg");
Uri contentUri = getUriForFile(getContext(), "com.mydomain.publicfileprovider", myNotificationSoundFile);
```


## Include the library

The library is available on Maven Central. Add this to your `dependencies` block in `build.gradle`:

```groovy
compile 'de.cketti.fileprovider:public-fileprovider:1.0.0'
```


## License

Copyright 2016 cketti
Expand Down
2 changes: 1 addition & 1 deletion library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ android {
buildToolsVersion "25.0.2"

defaultConfig {
versionName "0.9.0"
versionName "1.0.0"
minSdkVersion 14
}
}
Expand Down

0 comments on commit 61da03a

Please sign in to comment.