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.