Skip to content

Commit

Permalink
Prepare for Android 15 (#542)
Browse files Browse the repository at this point in the history
* Bump Project gradle

* Bump dependencies

* Bump gradle to 8.7

* Bump gradle properties

* Add missing null safety

* Fix unresolved color

* Use alternative version
  • Loading branch information
Sadwhy authored Dec 13, 2024
1 parent 1686854 commit eac4604
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ def gitCommitHash = providers.exec {
}.standardOutput.asText.get().trim()

android {
compileSdk 34
compileSdk 35

defaultConfig {
applicationId "ani.dantotsu"
minSdk 21
targetSdk 34
targetSdk 35
versionCode((System.currentTimeMillis() / 60000).toInteger())
versionName "3.1.0"
versionCode 300100000
Expand Down Expand Up @@ -113,7 +113,7 @@ dependencies {
implementation 'jp.wasabeef:glide-transformations:4.3.0'

// Exoplayer
ext.exo_version = '1.3.1'
ext.exo_version = '1.5.0'
implementation "androidx.media3:media3-exoplayer:$exo_version"
implementation "androidx.media3:media3-ui:$exo_version"
implementation "androidx.media3:media3-exoplayer-hls:$exo_version"
Expand All @@ -124,7 +124,7 @@ dependencies {
implementation "androidx.media3:media3-cast:$exo_version"
implementation "androidx.mediarouter:mediarouter:1.7.0"
// Media3 extension
implementation "com.github.anilbeesetti.nextlib:nextlib-media3ext:v0.7.0"
implementation "com.github.anilbeesetti.nextlib:nextlib-media3ext:0.8.3"

// UI
implementation 'com.google.android.material:material:1.12.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ internal object ExtensionLoader {
*/
private fun getSignatureHash(pkgInfo: PackageInfo): String? {
val signatures = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P)
pkgInfo.signingInfo.signingCertificateHistory
pkgInfo.signingInfo?.signingCertificateHistory
else
@Suppress("DEPRECATION") pkgInfo.signatures
return if (signatures != null && signatures.isNotEmpty()) {
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout/exo_player_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:background="@color/exo_error_message_background_color"
android:background="@color/bg"
android:gravity="center"
android:padding="16dp"
android:visibility="gone"
Expand Down Expand Up @@ -344,4 +344,4 @@
android:id="@+id/exo_touch_view"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</merge>
</merge>
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ buildscript {
maven { url 'https://jitpack.io' }
}
ext {
kotlin_version = '1.9.23'
ksp_version = '1.9.10-1.0.13'
kotlin_version = '2.1.0'
ksp_version = '2.1.0-1.0.29'
}

dependencies {
classpath 'com.android.tools.build:gradle:8.4.0'
classpath 'com.android.tools.build:gradle:8.7.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
classpath "com.google.devtools.ksp:symbol-processing-api:$ksp_version"
Expand Down
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 @@
#Wed Aug 30 19:57:04 IST 2023
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit eac4604

Please sign in to comment.