From 61da03adf70a7d6bd6f69fe1099675d81bfaf832 Mon Sep 17 00:00:00 2001 From: cketti Date: Mon, 3 Apr 2017 08:47:47 +0200 Subject: [PATCH] =?UTF-8?q?Version=201.0.0=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 9 +++++++++ README.md | 11 +++++++++++ library/build.gradle | 2 +- 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..ae12c7a --- /dev/null +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index 494fb49..dae5da7 100644 --- a/README.md +++ b/README.md @@ -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: @@ -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 diff --git a/library/build.gradle b/library/build.gradle index b74c2d5..dd89f63 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -5,7 +5,7 @@ android { buildToolsVersion "25.0.2" defaultConfig { - versionName "0.9.0" + versionName "1.0.0" minSdkVersion 14 } }