From 09d132683c995998160c15cbf551a199e202f2f7 Mon Sep 17 00:00:00 2001 From: ThibaultBee <37510686+ThibaultBee@users.noreply.github.com> Date: Wed, 10 Jul 2024 17:41:35 +0200 Subject: [PATCH] docs(README.md): update package --- README.md | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index f810bcad..11233c2d 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,9 @@ Get srtdroid latest artifacts on MavenCentral. ```gradle dependencies { - implementation 'io.github.thibaultbee:srtdroid:1.7.0' + implementation 'io.github.thibaultbee.srtdroid:srtdroid-core:1.7.0' + // If you use Kotlin Coroutines, you can use srtdroid-ktx + implementation 'io.github.thibaultbee.srtdroid:srtdroid-ktx:1.7.0' } ``` @@ -44,20 +46,15 @@ can use the `InputStream` API. ## Permissions -You need to add the `INTERNET` permission in your AndroidManifest.xml: +To use, `sendFile` and `recvFile`, you need to add `READ_EXTERNAL_STORAGE` (or [`READ_MEDIA_*`](https://developer.android.com/about/versions/13/behavior-changes-13#granular-media-permissions) if your app targets Android 13 or higher) +and `WRITE_EXTERNAL_STORAGE` to your `AndroidManifest.xml`: ```xml - - -``` - -To use, `sendFile` and `recvFile`, you might also need to add `READ_EXTERNAL_STORAGE` -and `WRITE_EXTERNAL_STORAGE`: - -```xml - - + + + + + ``` Then, you have to request permissions at runtime.