Upgrade dependencies and compileSdk.

This commit is contained in:
Docile-Alligator 2024-05-08 11:18:17 -04:00
parent a91556ca71
commit d85ce883f4
7 changed files with 19 additions and 24 deletions

View File

@ -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'

View File

@ -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();
}

View File

@ -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();
}

View File

@ -338,7 +338,7 @@ public class ViewImgurVideoFragment extends Fragment {
public void onDestroy() {
super.onDestroy();
player.seekToDefaultPosition();
player.stop(true);
player.stop();
player.release();
}

View File

@ -342,7 +342,7 @@ public class ViewRedditGalleryVideoFragment extends Fragment {
public void onDestroy() {
super.onDestroy();
player.seekToDefaultPosition();
player.stop(true);
player.stop();
player.release();
}

View File

@ -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;

View File

@ -277,11 +277,6 @@ public interface Playable {
}
@Override
public void onSeekProcessed() {
}
@Override
public void onVideoSizeChanged(@NonNull VideoSize videoSize) {
EventListener.super.onVideoSizeChanged(videoSize);