Prepare for Android 15 (#542)

* Bump Project gradle

* Bump dependencies

* Bump gradle to 8.7

* Bump gradle properties

* Add missing null safety

* Fix unresolved color

* Use alternative version
This commit is contained in:
Sadwhy 2024-12-14 02:03:01 +06:00 committed by GitHub
parent 1686854632
commit eac4604b3d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 11 additions and 11 deletions

View file

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

View file

@ -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()) {

View file

@ -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"
@ -344,4 +344,4 @@
android:id="@+id/exo_touch_view"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</merge>
</merge>