diff --git a/CHANGELOG.md b/CHANGELOG.md index bb822bd8..1a86fc08 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,41 @@ -Change Log +Changelog ========== +Version 1.8.0 +------------- + +From `1.8.0`, packages are available in `io.github.thibaultbee.srtdroid` instead +of `io.github.thibaultbee`. + +```gradle +dependencies { + implementation 'io.github.thibaultbee.srtdroid:srtdroid-core:1.8.0' + // If you use Kotlin Coroutines, you can use srtdroid-ktx + implementation 'io.github.thibaultbee.srtdroid:srtdroid-ktx:1.8.0' +} +``` + +`Socket` class has been renamed `SrtSocket` to avoid confusion with `Socket` from `java.net`. Same +for `Error`, it has been renamed `SrtError`. + +## Dependencies: + +- srt 1.5.3 +- openssl 3.0.9 + +## Features: + +- Add a Kotlin package with socket based on coroutine +- core: add an API to parse ffmpeg like URL. See `SrtUrl` class. +- core: split listener in 2 interfaces: `ClientListener` and `ServerListener` +- core: recv(int) only returns a `ByteArray` instead of a Pair +- core: implement `Epoll` and `Socket` `equals` and `hashCode` +- Upgrade dependencies (AGP, Kotlin, NDK,...) + +## Bug fixes: + +- Fix Epoll APIs + Version 1.7.0 ------------- diff --git a/README.md b/README.md index 11233c2d..243a8a2b 100644 --- a/README.md +++ b/README.md @@ -16,9 +16,9 @@ Get srtdroid latest artifacts on MavenCentral. ```gradle dependencies { - implementation 'io.github.thibaultbee.srtdroid:srtdroid-core:1.7.0' + implementation 'io.github.thibaultbee.srtdroid:srtdroid-core:1.8.0' // If you use Kotlin Coroutines, you can use srtdroid-ktx - implementation 'io.github.thibaultbee.srtdroid:srtdroid-ktx:1.7.0' + implementation 'io.github.thibaultbee.srtdroid:srtdroid-ktx:1.8.0' } ``` @@ -46,15 +46,19 @@ can use the `InputStream` API. ## Permissions -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) +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 - - - - - + + + + + + + ``` Then, you have to request permissions at runtime. diff --git a/build.gradle.kts b/build.gradle.kts index ce6256d2..bda72794 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -12,7 +12,7 @@ plugins { allprojects { group = "io.github.thibaultbee.srtdroid" - version = "1.7.0" + version = "1.8.0" } subprojects {