aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/build.gradle28
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/activities/PostVideoActivity.java2
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java2
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewImgurVideoFragment.java2
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewRedditGalleryVideoFragment.java2
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/videoautoplay/DefaultExoCreator.java2
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/videoautoplay/Playable.java5
7 files changed, 19 insertions, 24 deletions
diff --git a/app/build.gradle b/app/build.gradle
index c3b41984..b23a2bb1 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -3,7 +3,7 @@ plugins {
}
android {
- compileSdk 33
+ compileSdk 34
defaultConfig {
applicationId "ml.docilealligator.infinityforreddit"
minSdk 21
@@ -57,34 +57,34 @@ android {
dependencies {
/** AndroidX **/
- implementation 'androidx.appcompat:appcompat:1.7.0-alpha01'
+ implementation 'androidx.appcompat:appcompat:1.7.0-beta01'
implementation 'androidx.biometric:biometric:1.2.0-alpha05'
- implementation 'androidx.browser:browser:1.4.0'
+ implementation 'androidx.browser:browser:1.8.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
- def lifecycleVersion = "2.5.1"
+ def lifecycleVersion = "2.7.0"
implementation "androidx.lifecycle:lifecycle-common-java8:$lifecycleVersion"
implementation "androidx.lifecycle:lifecycle-livedata:$lifecycleVersion"
implementation "androidx.lifecycle:lifecycle-process:$lifecycleVersion"
implementation "androidx.lifecycle:lifecycle-runtime:$lifecycleVersion"
implementation "androidx.lifecycle:lifecycle-viewmodel:$lifecycleVersion"
- def pagingVersion = '3.2.0-alpha03'
+ def pagingVersion = '3.2.1'
implementation "androidx.paging:paging-runtime:$pagingVersion"
implementation "androidx.paging:paging-guava:$pagingVersion"
- implementation 'androidx.preference:preference:1.2.0'
- implementation 'androidx.recyclerview:recyclerview:1.2.1'
- def roomVersion = "2.4.3"
+ implementation 'androidx.preference:preference:1.2.1'
+ implementation 'androidx.recyclerview:recyclerview:1.3.2'
+ def roomVersion = "2.6.1"
implementation "androidx.room:room-runtime:$roomVersion"
annotationProcessor "androidx.room:room-compiler:$roomVersion"
implementation "androidx.room:room-guava:$roomVersion"
- implementation 'androidx.viewpager2:viewpager2:1.1.0-beta01'
- implementation 'androidx.work:work-runtime:2.7.1'
- implementation 'com.google.android.material:material:1.8.0'
+ implementation 'androidx.viewpager2:viewpager2:1.1.0-rc01'
+ implementation 'androidx.work:work-runtime:2.9.0'
+ implementation 'com.google.android.material:material:1.12.0'
/** ExoPlayer **/
- def exoplayerVersion = "2.18.2"
+ def exoplayerVersion = "2.19.1"
implementation "com.google.android.exoplayer:exoplayer-core:$exoplayerVersion"
implementation "com.google.android.exoplayer:exoplayer-dash:$exoplayerVersion"
implementation "com.google.android.exoplayer:exoplayer-hls:$exoplayerVersion"
@@ -108,7 +108,7 @@ dependencies {
annotationProcessor "com.google.dagger:dagger-compiler:$daggerVersion"
// Binding
- compileOnly 'com.android.databinding:viewbinding:8.3.1'
+ compileOnly 'com.android.databinding:viewbinding:8.4.0'
// Events
def eventbusVersion = "3.3.1"
@@ -126,7 +126,7 @@ dependencies {
// Object to JSON
// NOTE: Replace with Squareup's Moshi?
- implementation 'com.google.code.gson:gson:2.8.9'
+ implementation 'com.google.code.gson:gson:2.10.1'
// Java library for zip files and streams
implementation 'net.lingala.zip4j:zip4j:2.11.2'
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/PostVideoActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/PostVideoActivity.java
index 5c1cef68..3eb2fc42 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/PostVideoActivity.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/PostVideoActivity.java
@@ -664,7 +664,7 @@ public class PostVideoActivity extends BaseActivity implements FlairBottomSheetF
EventBus.getDefault().unregister(this);
super.onDestroy();
player.seekToDefaultPosition();
- player.stop(true);
+ player.stop();
player.release();
}
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java
index d20f57f8..b996bfb5 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java
@@ -836,7 +836,7 @@ public class ViewVideoActivity extends AppCompatActivity implements CustomFontRe
protected void onDestroy() {
super.onDestroy();
player.seekToDefaultPosition();
- player.stop(true);
+ player.stop();
player.release();
}
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewImgurVideoFragment.java b/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewImgurVideoFragment.java
index 08efb5e0..ea805b36 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewImgurVideoFragment.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewImgurVideoFragment.java
@@ -338,7 +338,7 @@ public class ViewImgurVideoFragment extends Fragment {
public void onDestroy() {
super.onDestroy();
player.seekToDefaultPosition();
- player.stop(true);
+ player.stop();
player.release();
}
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewRedditGalleryVideoFragment.java b/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewRedditGalleryVideoFragment.java
index 8d6a00dc..39969c6e 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewRedditGalleryVideoFragment.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewRedditGalleryVideoFragment.java
@@ -342,7 +342,7 @@ public class ViewRedditGalleryVideoFragment extends Fragment {
public void onDestroy() {
super.onDestroy();
player.seekToDefaultPosition();
- player.stop(true);
+ player.stop();
player.release();
}
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/videoautoplay/DefaultExoCreator.java b/app/src/main/java/ml/docilealligator/infinityforreddit/videoautoplay/DefaultExoCreator.java
index ddf321fd..89ebe5eb 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/videoautoplay/DefaultExoCreator.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/videoautoplay/DefaultExoCreator.java
@@ -69,7 +69,7 @@ public class DefaultExoCreator implements ExoCreator, MediaSourceEventListener {
public DefaultExoCreator(@NonNull ToroExo toro, @NonNull Config config) {
this.toro = checkNotNull(toro);
this.config = checkNotNull(config);
- trackSelector = new DefaultTrackSelector();
+ trackSelector = new DefaultTrackSelector(toro.context);
loadControl = config.loadControl;
mediaSourceBuilder = config.mediaSourceBuilder;
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/videoautoplay/Playable.java b/app/src/main/java/ml/docilealligator/infinityforreddit/videoautoplay/Playable.java
index fb9e177e..d6583fc5 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/videoautoplay/Playable.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/videoautoplay/Playable.java
@@ -278,11 +278,6 @@ public interface Playable {
}
@Override
- public void onSeekProcessed() {
-
- }
-
- @Override
public void onVideoSizeChanged(@NonNull VideoSize videoSize) {
EventListener.super.onVideoSizeChanged(videoSize);
}