Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandar-apostolov committed May 30, 2024
2 parents 914e968 + 2afca75 commit 3366f21
Show file tree
Hide file tree
Showing 8 changed files with 69 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ object Configuration {
const val minSdk = 24
const val majorVersion = 1
const val minorVersion = 0
const val patchVersion = 2
const val patchVersion = 3
const val versionName = "$majorVersion.$minorVersion.$patchVersion"
const val versionCode = 25
const val versionCode = 26
const val snapshotVersionName = "$majorVersion.$minorVersion.${patchVersion + 1}-SNAPSHOT"
const val artifactGroup = "io.getstream"
const val streamVideoCallGooglePlayVersion = "1.1.2"
Expand Down
2 changes: 1 addition & 1 deletion docusaurus/docs/Android/02-tutorials/01-video-calling.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ If you're new to android, note that there are 2 `build.gradle` files, you want t
```kotlin
dependencies {
// Stream Video Compose SDK
implementation("io.getstream:stream-video-android-ui-compose:1.0.2")
implementation("io.getstream:stream-video-android-ui-compose:1.0.3")

// Optionally add Jetpack Compose if Android studio didn't automatically include them
implementation(platform("androidx.compose:compose-bom:2023.08.00"))
Expand Down
2 changes: 1 addition & 1 deletion docusaurus/docs/Android/02-tutorials/02-audio-room.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ If you're new to android, note that there are 2 `build.gradle` files, you want t
```groovy
dependencies {
// Stream Video Compose SDK
implementation("io.getstream:stream-video-android-ui-compose:1.0.2")
implementation("io.getstream:stream-video-android-ui-compose:1.0.3")
// Jetpack Compose (optional/ android studio typically adds them when you create a new project)
implementation(platform("androidx.compose:compose-bom:2023.08.00"))
Expand Down
2 changes: 1 addition & 1 deletion docusaurus/docs/Android/02-tutorials/03-livestream.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ If you're new to android, note that there are 2 `build.gradle` files, you want t
```kotlin
dependencies {
// Stream Video Compose SDK
implementation("io.getstream:stream-video-android-ui-compose:1.0.2")
implementation("io.getstream:stream-video-android-ui-compose:1.0.3")

// Jetpack Compose (optional/ android studio typically adds them when you create a new project)
implementation(platform("androidx.compose:compose-bom:2023.08.00"))
Expand Down
2 changes: 1 addition & 1 deletion docusaurus/docs/Android/06-advanced/07-chat-with-video.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Let the project sync. It should have all the dependencies required for you to fi
```groovy
dependencies {
// Stream Video Compose SDK
implementation("io.getstream:stream-video-android-ui-compose:1.0.2")
implementation("io.getstream:stream-video-android-ui-compose:1.0.3")
// Stream Chat
implementation(libs.stream.chat.compose)
Expand Down
3 changes: 3 additions & 0 deletions stream-video-android-core/consumer-proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
## Moshi model classes
-keep class org.openapitools.client.** { *; }

## Kotlin serialized classes
-keep @kotlinx.serialization.Serializable class * {*;}

## Retrofit (https://github.com/square/retrofit/blob/master/retrofit/src/main/resources/META-INF/proguard/retrofit2.pro)

# Retrofit does reflection on generic parameters. InnerClasses is required to use Signature and
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import io.getstream.video.android.core.internal.network.NetworkStateProvider
import io.getstream.video.android.model.User
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.launch
import kotlinx.serialization.json.Json
import okhttp3.OkHttpClient
import okhttp3.WebSocket
import org.openapitools.client.infrastructure.Serializer
Expand Down Expand Up @@ -98,12 +99,9 @@ public class CoordinatorSocket(

// handle errors
if (text.isNotEmpty() && processedEvent == null) {
val errorAdapter: JsonAdapter<SocketError> =
Serializer.moshi.adapter(SocketError::class.java)

try {
val parsedError = errorAdapter.fromJson(text)
parsedError?.let {
val parsedError = Json.decodeFromString<SocketError>(text)
parsedError.let {
logger.w { "[onMessage] socketErrorEvent: ${parsedError.error}" }
handleError(it.error)
}
Expand Down
83 changes: 57 additions & 26 deletions stream-video-android-ui-compose/src/main/baseline-prof.txt

Large diffs are not rendered by default.

0 comments on commit 3366f21

Please sign in to comment.