Skip to content

Commit

Permalink
chore(version): bump to 1.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultBee committed Jul 15, 2024
1 parent d06424c commit a8c8b38
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 10 deletions.
37 changes: 36 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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<Int, ByteArray>
- core: implement `Epoll` and `Socket` `equals` and `hashCode`
- Upgrade dependencies (AGP, Kotlin, NDK,...)

## Bug fixes:

- Fix Epoll APIs

Version 1.7.0
-------------

Expand Down
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
```

Expand Down Expand Up @@ -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
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<!-- If your app targets Android < 13 -->
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<!-- If your app targets Android >= 13, READ_MEDIA_VIDEO and/or READ_MEDIA_IMAGES and/or READ_MEDIA_AUDIO -->
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
<manifest>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<!-- If your app targets Android < 13 -->
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<!-- If your app targets Android >= 13, READ_MEDIA_VIDEO and/or READ_MEDIA_IMAGES and/or READ_MEDIA_AUDIO -->
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
</manifest>
```

Then, you have to request permissions at runtime.
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ plugins {

allprojects {
group = "io.github.thibaultbee.srtdroid"
version = "1.7.0"
version = "1.8.0"
}

subprojects {
Expand Down

0 comments on commit a8c8b38

Please sign in to comment.