Skip to content

Commit

Permalink
Releases/v1.2.2 (#71)
Browse files Browse the repository at this point in the history
## Fixes

* fix: Rendering issues on Compose UI & API 34 (upstream from media3: [link](androidx/media#1237))

## Improvements

* Update media3 to 1.4.1 + mux data to 1.6.0 (#70)
  • Loading branch information
daytime-em authored Nov 8, 2024
1 parent f56b238 commit b71af78
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .sauce/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: espresso
sauce:
region: us-west-1
concurrency: 2
retries: 3
retries: 1

metadata:
tags:
Expand Down
2 changes: 0 additions & 2 deletions automatedtests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ dependencies {
androidTestImplementation 'androidx.test.uiautomator:uiautomator:2.2.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'

api("com.mux.stats.sdk.muxstats:data-media3:${project.ext.get("muxDataVersion")}")

api 'org.checkerframework:checker-qual:3.33.0'
// Automated tests should always test the local module and not the maven dependency.
implementation project(":library")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import org.json.JSONException;
import org.json.JSONObject;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;

public class LatencyTests extends TestBase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import androidx.core.graphics.drawable.DrawableCompat;
import androidx.media3.common.MediaItem;
import androidx.media3.common.MediaMetadata;
import androidx.media3.common.PlaybackException;
import androidx.media3.common.Player;
import androidx.media3.datasource.DefaultDataSource;
import androidx.media3.exoplayer.DefaultRenderersFactory;
Expand Down Expand Up @@ -165,6 +166,14 @@ public void initExoPlayer() {
.build();

player.addAnalyticsListener(this);

player.addListener(new Player.Listener() {
@Override
public void onPlayerError(PlaybackException error) {
throw new RuntimeException("Playback error while trying to test", error);
}
});

playerView.setPlayer(player);
}

Expand Down
10 changes: 5 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
plugins {
id("com.android.application") version "8.5.2" apply false
id("org.jetbrains.kotlin.android") version "2.0.10" apply false
id("com.android.library") version "8.5.2" apply false
id("com.mux.gradle.android.mux-android-distribution") version "1.2.1" apply false
id("com.android.application") version "8.7.2" apply false
id("org.jetbrains.kotlin.android") version "2.0.21" apply false
id("com.android.library") version "8.7.2" apply false
id("com.mux.gradle.android.mux-android-distribution") version "1.3.0" apply false
}

allprojects {
ext {
set("muxDataVersion", "1.1.0")
set("muxDataVersion", "1.6.0")
}
}
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
9 changes: 4 additions & 5 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,18 @@ muxDistribution {

dependencies {

def media3Version = "1.1.1";
def media3Version = "1.4.1"
def media3DataSdk = "at_1_4"
api "androidx.media3:media3-common:${media3Version}"
api "androidx.media3:media3-exoplayer:${media3Version}"
api "androidx.media3:media3-ui:${media3Version}"
api "androidx.media3:media3-exoplayer-hls:${media3Version}"
api "androidx.media3:media3-exoplayer-dash:${media3Version}"
api "androidx.media3:media3-exoplayer-ima:${media3Version}"
api "androidx.media3:media3-cast:${media3Version}"
api "androidx.media3:media3-extractor:${media3Version}"

api("com.mux.stats.sdk.muxstats:data-media3:${project.ext.get("muxDataVersion")}")
api("com.mux.stats.sdk.muxstats:data-media3-$media3DataSdk:${project.ext.get("muxDataVersion")}")

implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.1"

testImplementation 'junit:junit:4.13.2'
testImplementation 'androidx.test.ext:junit:1.1.5'
Expand Down

0 comments on commit b71af78

Please sign in to comment.