Skip to content

Commit

Permalink
v2.1.0 (#65)
Browse files Browse the repository at this point in the history
* expose CustomerViewData in proguard, and allow it to be updated

* save

* almost there

* Fixed code to comply with automated tests.

* Fixed some review issues.

* Fixed soft dependency.

* try additional requirement

* version file

* Fixed non ads crash, fixed pause after seeking, fixed viewstart not dispatched.

* Reinstated necessary callback.

* small cleanup

* v2.1.0

Co-authored-by: Tomislav Kordic <[email protected]>
  • Loading branch information
jsanford8 and tomkordic authored Dec 7, 2020
1 parent 5c155ed commit 019f7df
Show file tree
Hide file tree
Showing 92 changed files with 13,168 additions and 86 deletions.
19 changes: 18 additions & 1 deletion MuxExoPlayer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ android {
minSdkVersion project.ext.minSdkVersion
targetSdkVersion project.ext.targetSdkVersion
versionCode 9
versionName "1.5.0"
versionName "2.1.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

Expand Down Expand Up @@ -45,6 +45,12 @@ android {
r2_11_1_ads {
java.srcDirs = ['./src/r2_11_1/java']
}
r2_12_1 {
java.srcDirs = ['./src/r2_12_1/java']
}
r2_12_1_ads {
java.srcDirs = ['./src/r2_12_1/java']
}
}

flavorDimensions 'api'
Expand All @@ -68,6 +74,12 @@ android {
r2_11_1_ads {
dimension 'api'
}
r2_12_1 {
dimension 'api'
}
r2_12_1_ads {
dimension 'api'
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_7
Expand Down Expand Up @@ -106,7 +118,12 @@ dependencies {
r2_11_1Api 'org.checkerframework:checker-qual:2.5.2'
r2_11_1_adsApi 'com.google.android.exoplayer:exoplayer:2.11.1'
r2_11_1_adsApi 'org.checkerframework:checker-qual:2.5.2'
r2_12_1Api 'com.google.android.exoplayer:exoplayer:2.12.1'
r2_12_1Api 'org.checkerframework:checker-qual:2.5.2'
r2_12_1_adsApi 'com.google.android.exoplayer:exoplayer:2.12.1'
r2_12_1_adsApi 'org.checkerframework:checker-qual:2.5.2'
compileOnly 'com.google.ads.interactivemedia.v3:interactivemedia:3.9.0'
compileOnly 'com.google.android.gms:play-services-ads:15.0.1'
compileOnly 'com.google.android.gms:play-services-ads-identifier:17.0.0'
api files('libs/MuxCore.jar')
}
Binary file modified MuxExoPlayer/libs/MuxCore.jar
Binary file not shown.
1 change: 0 additions & 1 deletion MuxExoPlayer/libs/version-v5.0.0

This file was deleted.

1 change: 1 addition & 0 deletions MuxExoPlayer/libs/version-v6.0.0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v6.0.0
3 changes: 3 additions & 0 deletions MuxExoPlayer/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,7 @@
-keep public class com.mux.stats.sdk.muxstats.MuxErrorException { public protected *; }
-keep public class com.mux.stats.sdk.core.model.CustomerPlayerData { public protected *; }
-keep public class com.mux.stats.sdk.core.model.CustomerVideoData { public protected *; }
-keep public class com.mux.stats.sdk.core.model.CustomerViewData { public protected *; }
-keep public class com.mux.stats.sdk.core.MuxSDKViewOrientation { public protected *; }

-repackageclasses com.mux.stats.sdk
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,11 @@ public void onAdEvent(AdEvent adEvent) {
// End the ad break, and then toggle playback state to ensure that
// we get a play/playing after the ads.
dispatchAdPlaybackEvent(new AdBreakEndEvent(null), ad);
exoPlayerListener.player.get().setPlayWhenReady(false);
exoPlayerListener.setState(MuxBaseExoPlayer.PlayerState.FINISHED_PLAYING_ADS);
exoPlayerListener.player.get().setPlayWhenReady(true);
if (exoPlayerListener.player != null && exoPlayerListener.player.get() != null) {
exoPlayerListener.player.get().setPlayWhenReady(false);
exoPlayerListener.setState(MuxBaseExoPlayer.PlayerState.FINISHED_PLAYING_ADS);
exoPlayerListener.player.get().setPlayWhenReady(true);
}
break;
case PAUSED:
dispatchAdPlaybackEvent(new AdPauseEvent(null), ad);
Expand Down
Loading

0 comments on commit 019f7df

Please sign in to comment.