From 712aae6e655b700edf37ea5fdde754fdcdf09693 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BAben=20Sousa?= Date: Sun, 10 Sep 2023 00:34:53 +0200 Subject: [PATCH 1/4] Migrate exoplayer module to media3 --- CHANGELOG_MEDIA3.md | 3 ++ build.gradle | 18 +++------- gradle/wrapper/gradle-wrapper.properties | 2 +- previewseekbar-exoplayer/build.gradle | 26 --------------- .../src/main/AndroidManifest.xml | 1 - .../.gitignore | 0 previewseekbar-media3/build.gradle | 27 +++++++++++++++ .../gradle.properties | 0 .../proguard-rules.pro | 0 .../src/main/AndroidManifest.xml | 1 + .../media3}/PreviewTimeBar.java | 3 +- .../src/main/res/values/attrs.xml | 0 previewseekbar/build.gradle | 14 +++++--- previewseekbar/src/main/AndroidManifest.xml | 2 +- .../previewseekbar/PreviewDelegate.java | 6 +--- .../previewseekbar/PreviewSeekBar.java | 4 +-- .../animator/PreviewMorphAnimator.java | 3 -- sample/build.gradle | 33 ++++++++++--------- .../previewseekbar/sample/MainActivity.java | 4 +-- .../sample/exoplayer/ExoPlayerManager.java | 2 +- .../main/res/layout-land/activity_main.xml | 20 ++--------- .../main/res/layout/exoplayer_controls.xml | 2 +- settings.gradle | 2 +- versions.gradle | 14 ++++++++ 24 files changed, 91 insertions(+), 96 deletions(-) create mode 100644 CHANGELOG_MEDIA3.md delete mode 100644 previewseekbar-exoplayer/build.gradle delete mode 100644 previewseekbar-exoplayer/src/main/AndroidManifest.xml rename {previewseekbar-exoplayer => previewseekbar-media3}/.gitignore (100%) create mode 100644 previewseekbar-media3/build.gradle rename {previewseekbar-exoplayer => previewseekbar-media3}/gradle.properties (100%) rename {previewseekbar-exoplayer => previewseekbar-media3}/proguard-rules.pro (100%) create mode 100644 previewseekbar-media3/src/main/AndroidManifest.xml rename {previewseekbar-exoplayer/src/main/java/com/github/rubensousa/previewseekbar/exoplayer => previewseekbar-media3/src/main/java/com/github/rubensousa/previewseekbar/media3}/PreviewTimeBar.java (99%) rename {previewseekbar-exoplayer => previewseekbar-media3}/src/main/res/values/attrs.xml (100%) create mode 100644 versions.gradle diff --git a/CHANGELOG_MEDIA3.md b/CHANGELOG_MEDIA3.md new file mode 100644 index 0000000..68895b2 --- /dev/null +++ b/CHANGELOG_MEDIA3.md @@ -0,0 +1,3 @@ +# 1.1.1.0 + +- Initial support for media3 diff --git a/build.gradle b/build.gradle index bbd7896..13391e7 100644 --- a/build.gradle +++ b/build.gradle @@ -1,10 +1,14 @@ buildscript { + apply from: 'versions.gradle' + repositories { google() mavenCentral() } + dependencies { - classpath 'com.android.tools.build:gradle:7.2.2' + classpath 'com.android.tools.build:gradle:8.1.1' + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlin" } } @@ -15,18 +19,6 @@ allprojects { } } -ext { - compileSdkVersion = 33 - minSdkVersion = 19 - targetSdkVersion = 31 - coreVersion = '1.10.1' - appcompatVersion = '1.6.1' - materialVersion = '1.9.0' - constraintLayoutVersion = '2.1.4' - glideVersion = '4.14.2' - media3Version = '1.1.1' - annotationVersion = '1.3.0' -} task clean(type: Delete) { delete rootProject.buildDir diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 5643e02..ef245f2 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ #Wed Nov 16 20:54:49 CET 2022 distributionBase=GRADLE_USER_HOME -distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-all.zip distributionPath=wrapper/dists zipStorePath=wrapper/dists zipStoreBase=GRADLE_USER_HOME diff --git a/previewseekbar-exoplayer/build.gradle b/previewseekbar-exoplayer/build.gradle deleted file mode 100644 index e025119..0000000 --- a/previewseekbar-exoplayer/build.gradle +++ /dev/null @@ -1,26 +0,0 @@ -apply plugin: 'com.android.library' -apply from: rootProject.file('gradle/publish.gradle') - -android { - compileSdk rootProject.ext.compileSdkVersion - - defaultConfig { - minSdkVersion rootProject.ext.minSdkVersion - } - - publishing { - singleVariant('release') { - withSourcesJar() - withJavadocJar() - } - } - namespace 'com.github.rubensousa.previewseekbar.exoplayer' -} - -dependencies { - api project(':previewseekbar') - implementation "androidx.core:core:$coreVersion" - implementation "androidx.media3:media3-exoplayer:$media3Version" - implementation "androidx.media3:media3-ui:$media3Version" - implementation "androidx.annotation:annotation:$annotationVersion" -} diff --git a/previewseekbar-exoplayer/src/main/AndroidManifest.xml b/previewseekbar-exoplayer/src/main/AndroidManifest.xml deleted file mode 100644 index f473584..0000000 --- a/previewseekbar-exoplayer/src/main/AndroidManifest.xml +++ /dev/null @@ -1 +0,0 @@ - diff --git a/previewseekbar-exoplayer/.gitignore b/previewseekbar-media3/.gitignore similarity index 100% rename from previewseekbar-exoplayer/.gitignore rename to previewseekbar-media3/.gitignore diff --git a/previewseekbar-media3/build.gradle b/previewseekbar-media3/build.gradle new file mode 100644 index 0000000..fa6b373 --- /dev/null +++ b/previewseekbar-media3/build.gradle @@ -0,0 +1,27 @@ +apply plugin: 'com.android.library' +apply from: rootProject.file('gradle/publish.gradle') + +android { + compileSdk versions.compileSdk + namespace 'com.github.rubensousa.previewseekbar.media3' + + defaultConfig { + minSdk versions.minSdk + targetSdk versions.targetSdk + } + + publishing { + singleVariant('release') { + withSourcesJar() + withJavadocJar() + } + } +} + +dependencies { + api project(':previewseekbar') + implementation "androidx.core:core:$versions.core" + implementation "androidx.media3:media3-exoplayer:$versions.media3" + implementation "androidx.media3:media3-ui:$versions.media3" + implementation "androidx.annotation:annotation:$versions.annotation" +} diff --git a/previewseekbar-exoplayer/gradle.properties b/previewseekbar-media3/gradle.properties similarity index 100% rename from previewseekbar-exoplayer/gradle.properties rename to previewseekbar-media3/gradle.properties diff --git a/previewseekbar-exoplayer/proguard-rules.pro b/previewseekbar-media3/proguard-rules.pro similarity index 100% rename from previewseekbar-exoplayer/proguard-rules.pro rename to previewseekbar-media3/proguard-rules.pro diff --git a/previewseekbar-media3/src/main/AndroidManifest.xml b/previewseekbar-media3/src/main/AndroidManifest.xml new file mode 100644 index 0000000..fda8077 --- /dev/null +++ b/previewseekbar-media3/src/main/AndroidManifest.xml @@ -0,0 +1 @@ + diff --git a/previewseekbar-exoplayer/src/main/java/com/github/rubensousa/previewseekbar/exoplayer/PreviewTimeBar.java b/previewseekbar-media3/src/main/java/com/github/rubensousa/previewseekbar/media3/PreviewTimeBar.java similarity index 99% rename from previewseekbar-exoplayer/src/main/java/com/github/rubensousa/previewseekbar/exoplayer/PreviewTimeBar.java rename to previewseekbar-media3/src/main/java/com/github/rubensousa/previewseekbar/media3/PreviewTimeBar.java index b253401..b3e0b7b 100644 --- a/previewseekbar-exoplayer/src/main/java/com/github/rubensousa/previewseekbar/exoplayer/PreviewTimeBar.java +++ b/previewseekbar-media3/src/main/java/com/github/rubensousa/previewseekbar/media3/PreviewTimeBar.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.github.rubensousa.previewseekbar.exoplayer; +package com.github.rubensousa.previewseekbar.media3; import android.content.Context; import android.content.res.TypedArray; @@ -43,7 +43,6 @@ *

* When the user scrubs this TimeBar, a preview will appear above the scrubber. */ - @OptIn(markerClass = UnstableApi.class) public class PreviewTimeBar extends DefaultTimeBar implements PreviewBar { diff --git a/previewseekbar-exoplayer/src/main/res/values/attrs.xml b/previewseekbar-media3/src/main/res/values/attrs.xml similarity index 100% rename from previewseekbar-exoplayer/src/main/res/values/attrs.xml rename to previewseekbar-media3/src/main/res/values/attrs.xml diff --git a/previewseekbar/build.gradle b/previewseekbar/build.gradle index 173ed47..9f922bc 100644 --- a/previewseekbar/build.gradle +++ b/previewseekbar/build.gradle @@ -1,11 +1,16 @@ -apply plugin: 'com.android.library' +plugins { + id 'com.android.library' +} + apply from: rootProject.file('gradle/publish.gradle') android { - compileSdkVersion rootProject.ext.compileSdkVersion + compileSdk versions.compileSdk + namespace 'com.github.rubensousa.previewseekbar' defaultConfig { - minSdkVersion rootProject.ext.minSdkVersion + minSdk versions.minSdk + targetSdk versions.targetSdk } publishing { @@ -18,6 +23,7 @@ android { } dependencies { - implementation "androidx.appcompat:appcompat:$appcompatVersion" + implementation "androidx.core:core:$versions.core" + implementation "androidx.appcompat:appcompat:$versions.appcompat" } diff --git a/previewseekbar/src/main/AndroidManifest.xml b/previewseekbar/src/main/AndroidManifest.xml index 6136297..cc947c5 100644 --- a/previewseekbar/src/main/AndroidManifest.xml +++ b/previewseekbar/src/main/AndroidManifest.xml @@ -1 +1 @@ - + diff --git a/previewseekbar/src/main/java/com/github/rubensousa/previewseekbar/PreviewDelegate.java b/previewseekbar/src/main/java/com/github/rubensousa/previewseekbar/PreviewDelegate.java index dcd8194..d6e9c36 100644 --- a/previewseekbar/src/main/java/com/github/rubensousa/previewseekbar/PreviewDelegate.java +++ b/previewseekbar/src/main/java/com/github/rubensousa/previewseekbar/PreviewDelegate.java @@ -62,11 +62,7 @@ public PreviewDelegate(PreviewBar previewBar) { this.previewBar = previewBar; this.animationEnabled = true; this.previewAutoHide = true; - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { - animator = new PreviewMorphAnimator(); - } else { - animator = new PreviewFadeAnimator(); - } + animator = new PreviewMorphAnimator(); } @Nullable diff --git a/previewseekbar/src/main/java/com/github/rubensousa/previewseekbar/PreviewSeekBar.java b/previewseekbar/src/main/java/com/github/rubensousa/previewseekbar/PreviewSeekBar.java index 20580a4..4a3141e 100644 --- a/previewseekbar/src/main/java/com/github/rubensousa/previewseekbar/PreviewSeekBar.java +++ b/previewseekbar/src/main/java/com/github/rubensousa/previewseekbar/PreviewSeekBar.java @@ -32,7 +32,7 @@ public PreviewSeekBar(Context context) { } public PreviewSeekBar(Context context, AttributeSet attrs) { - this(context, attrs, R.attr.seekBarStyle); + this(context, attrs, androidx.appcompat.R.attr.seekBarStyle); } public PreviewSeekBar(Context context, AttributeSet attrs, int defStyleAttr) { @@ -47,7 +47,7 @@ private void init(Context context, AttributeSet attrs) { R.styleable.PreviewSeekBar, 0, 0); TypedArray themeTypedArray = context.getTheme().obtainStyledAttributes( - new int[]{R.attr.colorAccent}); + new int[]{androidx.appcompat.R.attr.colorAccent}); final int defaultThumbColor = themeTypedArray.getColor(0, 0); diff --git a/previewseekbar/src/main/java/com/github/rubensousa/previewseekbar/animator/PreviewMorphAnimator.java b/previewseekbar/src/main/java/com/github/rubensousa/previewseekbar/animator/PreviewMorphAnimator.java index 7d7d59e..93b329d 100644 --- a/previewseekbar/src/main/java/com/github/rubensousa/previewseekbar/animator/PreviewMorphAnimator.java +++ b/previewseekbar/src/main/java/com/github/rubensousa/previewseekbar/animator/PreviewMorphAnimator.java @@ -20,9 +20,7 @@ import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.animation.ValueAnimator; -import android.annotation.TargetApi; import android.graphics.drawable.Drawable; -import android.os.Build; import android.view.View; import android.view.ViewAnimationUtils; import android.view.ViewGroup; @@ -38,7 +36,6 @@ * A {@link PreviewAnimator} that morphs the {@link PreviewBar} thumb * into the preview view. */ -@TargetApi(Build.VERSION_CODES.LOLLIPOP) public class PreviewMorphAnimator implements PreviewAnimator { private static final int MORPH_SHOW_DURATION = 125; diff --git a/sample/build.gradle b/sample/build.gradle index 92c481f..82f20c3 100644 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -1,21 +1,22 @@ apply plugin: 'com.android.application' android { - compileSdk rootProject.ext.compileSdkVersion - - compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 - } + compileSdk versions.compileSdk + namespace "com.github.rubensousa.previewseekbar.sample" defaultConfig { applicationId "com.github.rubensousa.previewseekbar.sample" - minSdkVersion 21 - targetSdkVersion rootProject.ext.targetSdkVersion + minSdk versions.minSdk + targetSdk versions.targetSdk versionCode 1 versionName "1.0" } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + buildTypes { release { minifyEnabled false @@ -25,13 +26,13 @@ android { } dependencies { - implementation "androidx.appcompat:appcompat:$appcompatVersion" - implementation "androidx.annotation:annotation:$annotationVersion" - implementation "com.google.android.material:material:$materialVersion" - implementation "androidx.media3:media3-ui:$media3Version" - implementation "androidx.media3:media3-exoplayer:$media3Version" - implementation "androidx.constraintlayout:constraintlayout:$constraintLayoutVersion" - implementation "com.github.bumptech.glide:glide:$glideVersion" + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$versions.kotlin" + implementation "androidx.appcompat:appcompat:$versions.appcompat" + implementation "com.google.android.material:material:$versions.material" + implementation "androidx.media3:media3-ui:$versions.media3" + implementation "androidx.media3:media3-exoplayer:$versions.media3" + implementation "androidx.constraintlayout:constraintlayout:$versions.constraintLayout" + implementation "com.github.bumptech.glide:glide:$versions.glide" implementation project(':previewseekbar') - implementation project(':previewseekbar-exoplayer') + implementation project(':previewseekbar-media3') } diff --git a/sample/src/main/java/com/github/rubensousa/previewseekbar/sample/MainActivity.java b/sample/src/main/java/com/github/rubensousa/previewseekbar/sample/MainActivity.java index c14442b..55023d7 100644 --- a/sample/src/main/java/com/github/rubensousa/previewseekbar/sample/MainActivity.java +++ b/sample/src/main/java/com/github/rubensousa/previewseekbar/sample/MainActivity.java @@ -34,7 +34,7 @@ import com.github.rubensousa.previewseekbar.PreviewSeekBar; import com.github.rubensousa.previewseekbar.animator.PreviewFadeAnimator; import com.github.rubensousa.previewseekbar.animator.PreviewMorphAnimator; -import com.github.rubensousa.previewseekbar.exoplayer.PreviewTimeBar; +import com.github.rubensousa.previewseekbar.media3.PreviewTimeBar; import com.github.rubensousa.previewseekbar.sample.exoplayer.ExoPlayerManager; public class MainActivity extends AppCompatActivity { @@ -145,7 +145,7 @@ private void setupOptions() { if (checkedId == R.id.fadeAnimationRadioButton) { previewTimeBar.setPreviewAnimator(new PreviewFadeAnimator()); previewSeekBar.setPreviewAnimator(new PreviewFadeAnimator()); - } else if (Build.VERSION.SDK_INT >= 21) { + } else { previewTimeBar.setPreviewAnimator(new PreviewMorphAnimator()); previewSeekBar.setPreviewAnimator(new PreviewMorphAnimator()); } diff --git a/sample/src/main/java/com/github/rubensousa/previewseekbar/sample/exoplayer/ExoPlayerManager.java b/sample/src/main/java/com/github/rubensousa/previewseekbar/sample/exoplayer/ExoPlayerManager.java index 3026e7f..15d751a 100644 --- a/sample/src/main/java/com/github/rubensousa/previewseekbar/sample/exoplayer/ExoPlayerManager.java +++ b/sample/src/main/java/com/github/rubensousa/previewseekbar/sample/exoplayer/ExoPlayerManager.java @@ -32,7 +32,7 @@ import com.bumptech.glide.request.target.Target; import com.github.rubensousa.previewseekbar.PreviewBar; import com.github.rubensousa.previewseekbar.PreviewLoader; -import com.github.rubensousa.previewseekbar.exoplayer.PreviewTimeBar; +import com.github.rubensousa.previewseekbar.media3.PreviewTimeBar; import com.github.rubensousa.previewseekbar.sample.R; import com.github.rubensousa.previewseekbar.sample.glide.GlideThumbnailTransformation; diff --git a/sample/src/main/res/layout-land/activity_main.xml b/sample/src/main/res/layout-land/activity_main.xml index 6c029a4..e2546f4 100644 --- a/sample/src/main/res/layout-land/activity_main.xml +++ b/sample/src/main/res/layout-land/activity_main.xml @@ -7,12 +7,12 @@ android:background="@android:color/black" tools:context="com.github.rubensousa.previewseekbar.sample.MainActivity"> - - + app:controller_layout_id="@layout/exoplayer_controls" + app:layout_constraintTop_toBottomOf="@id/timeBarSampleTextView" /> - - - - - - diff --git a/sample/src/main/res/layout/exoplayer_controls.xml b/sample/src/main/res/layout/exoplayer_controls.xml index 0d88a2e..ed5dbe1 100644 --- a/sample/src/main/res/layout/exoplayer_controls.xml +++ b/sample/src/main/res/layout/exoplayer_controls.xml @@ -62,7 +62,7 @@ app:layout_constraintStart_toStartOf="parent" tools:text="18:20" /> - Date: Sun, 10 Sep 2023 00:35:42 +0200 Subject: [PATCH 2/4] Update version for media3 --- previewseekbar-media3/gradle.properties | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/previewseekbar-media3/gradle.properties b/previewseekbar-media3/gradle.properties index ef4c2b6..931728e 100644 --- a/previewseekbar-media3/gradle.properties +++ b/previewseekbar-media3/gradle.properties @@ -1,3 +1,3 @@ -LIBRARY_VERSION=2.18.1.0 -LIBRARY_ARTIFACT=previewseekbar-exoplayer -POM_DESCRIPTION="ExoPlayer components for PreviewSeekBar" \ No newline at end of file +LIBRARY_VERSION=1.1.1.0 +LIBRARY_ARTIFACT=previewseekbar-media3 +POM_DESCRIPTION="Media3 components for PreviewSeekBar" \ No newline at end of file From dc80a2276f1fd7e814fd9a8187fe4df4c99c707d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BAben=20Sousa?= Date: Sun, 10 Sep 2023 00:37:09 +0200 Subject: [PATCH 3/4] Move classes to parent package --- .../sample/{exoplayer => }/ExoPlayerManager.java | 4 +--- .../sample/{glide => }/GlideThumbnailTransformation.java | 2 +- .../github/rubensousa/previewseekbar/sample/MainActivity.java | 2 -- 3 files changed, 2 insertions(+), 6 deletions(-) rename sample/src/main/java/com/github/rubensousa/previewseekbar/sample/{exoplayer => }/ExoPlayerManager.java (95%) rename sample/src/main/java/com/github/rubensousa/previewseekbar/sample/{glide => }/GlideThumbnailTransformation.java (97%) diff --git a/sample/src/main/java/com/github/rubensousa/previewseekbar/sample/exoplayer/ExoPlayerManager.java b/sample/src/main/java/com/github/rubensousa/previewseekbar/sample/ExoPlayerManager.java similarity index 95% rename from sample/src/main/java/com/github/rubensousa/previewseekbar/sample/exoplayer/ExoPlayerManager.java rename to sample/src/main/java/com/github/rubensousa/previewseekbar/sample/ExoPlayerManager.java index 15d751a..b7a10d6 100644 --- a/sample/src/main/java/com/github/rubensousa/previewseekbar/sample/exoplayer/ExoPlayerManager.java +++ b/sample/src/main/java/com/github/rubensousa/previewseekbar/sample/ExoPlayerManager.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package com.github.rubensousa.previewseekbar.sample.exoplayer; +package com.github.rubensousa.previewseekbar.sample; import android.net.Uri; import android.widget.ImageView; @@ -33,8 +33,6 @@ import com.github.rubensousa.previewseekbar.PreviewBar; import com.github.rubensousa.previewseekbar.PreviewLoader; import com.github.rubensousa.previewseekbar.media3.PreviewTimeBar; -import com.github.rubensousa.previewseekbar.sample.R; -import com.github.rubensousa.previewseekbar.sample.glide.GlideThumbnailTransformation; @OptIn(markerClass = UnstableApi.class) public class ExoPlayerManager implements PreviewLoader, PreviewBar.OnScrubListener { diff --git a/sample/src/main/java/com/github/rubensousa/previewseekbar/sample/glide/GlideThumbnailTransformation.java b/sample/src/main/java/com/github/rubensousa/previewseekbar/sample/GlideThumbnailTransformation.java similarity index 97% rename from sample/src/main/java/com/github/rubensousa/previewseekbar/sample/glide/GlideThumbnailTransformation.java rename to sample/src/main/java/com/github/rubensousa/previewseekbar/sample/GlideThumbnailTransformation.java index 3c27e4b..ba01406 100644 --- a/sample/src/main/java/com/github/rubensousa/previewseekbar/sample/glide/GlideThumbnailTransformation.java +++ b/sample/src/main/java/com/github/rubensousa/previewseekbar/sample/GlideThumbnailTransformation.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.github.rubensousa.previewseekbar.sample.glide; +package com.github.rubensousa.previewseekbar.sample; import android.graphics.Bitmap; import androidx.annotation.NonNull; diff --git a/sample/src/main/java/com/github/rubensousa/previewseekbar/sample/MainActivity.java b/sample/src/main/java/com/github/rubensousa/previewseekbar/sample/MainActivity.java index 55023d7..4984d4a 100644 --- a/sample/src/main/java/com/github/rubensousa/previewseekbar/sample/MainActivity.java +++ b/sample/src/main/java/com/github/rubensousa/previewseekbar/sample/MainActivity.java @@ -17,7 +17,6 @@ package com.github.rubensousa.previewseekbar.sample; -import android.os.Build; import android.os.Bundle; import android.util.Log; import android.view.View; @@ -35,7 +34,6 @@ import com.github.rubensousa.previewseekbar.animator.PreviewFadeAnimator; import com.github.rubensousa.previewseekbar.animator.PreviewMorphAnimator; import com.github.rubensousa.previewseekbar.media3.PreviewTimeBar; -import com.github.rubensousa.previewseekbar.sample.exoplayer.ExoPlayerManager; public class MainActivity extends AppCompatActivity { From 49db55d9792b4b3bab58a52500ef6de822d67c38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BAben=20Sousa?= Date: Sun, 10 Sep 2023 00:40:30 +0200 Subject: [PATCH 4/4] Update readme for new media3 extension --- CHANGELOG.md | 4 ++++ README.md | 12 +++++------- gradle.properties | 2 +- previewseekbar/build.gradle | 1 - 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 82e5e38..d67f12d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 3.1.1 + +- Bumped `androidx.appcompat:appcompat` to 1.6.1 + # 3.1.0 - Bumped `androidx.appcompat:appcompat` to 1.5.1 diff --git a/README.md b/README.md index 53aa05d..6ca88d3 100644 --- a/README.md +++ b/README.md @@ -18,20 +18,18 @@ Add the following to your app's build.gradle: ```groovy dependencies { // Base implementation with a standard SeekBar - implementation 'com.github.rubensousa:previewseekbar:3.1.0' - - // ExoPlayer extension that contains a TimeBar. - // Grab this one if you're going to integrate with ExoPlayer - implementation 'com.github.rubensousa:previewseekbar-exoplayer:2.18.1.0' + implementation 'com.github.rubensousa:previewseekbar:3.1.1' + // Media3 extension that contains a TimeBar. + implementation 'com.github.rubensousa:previewseekbar-media3:1.1.1.0' } ``` -## How to use with ExoPlayer +## How to use with Media3 ### Add a custom controller to your PlayerView ```xml -