Update the libary

- Google Material
- Androidx ktx, media3, navigiation, work runtime
- Kotlin
- new version coming "Purple"
- some bug fixes
This commit is contained in:
Michatec
2025-05-22 19:08:24 +02:00
parent 53b38cb986
commit 88420b2cbf
5 changed files with 18 additions and 18 deletions

View File

@@ -4,14 +4,14 @@ apply plugin: 'kotlin-parcelize'
android {
namespace 'com.michatec.radio'
compileSdk 34
compileSdk 35
defaultConfig {
applicationId 'com.michatec.radio'
minSdk 23
targetSdk 34
versionCode 128
versionName '12.8'
minSdk 28
targetSdk 35
versionCode 129
versionName '12.9'
resourceConfigurations += ['en', 'de', 'el', 'nl', 'pl', 'ru','uk']
setProperty('archivesBaseName', 'Radio_' + versionName)
}
@@ -47,21 +47,21 @@ dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
// Google Stuff //
implementation 'com.google.android.material:material:1.10.0'
implementation 'com.google.android.material:material:1.12.0'
implementation 'com.google.code.gson:gson:2.10.1'
// AndroidX Stuff //
implementation 'androidx.activity:activity-ktx:1.8.1'
implementation 'androidx.activity:activity-ktx:1.10.1'
implementation 'androidx.palette:palette-ktx:1.0.0'
implementation 'androidx.preference:preference-ktx:1.2.1'
implementation 'androidx.media:media:1.7.0'
implementation 'androidx.media3:media3-exoplayer:1.2.0'
implementation 'androidx.media3:media3-exoplayer-hls:1.2.0'
implementation 'androidx.media3:media3-session:1.2.0'
implementation 'androidx.media3:media3-datasource-okhttp:1.2.0'
implementation 'androidx.navigation:navigation-fragment-ktx:2.7.5'
implementation 'androidx.navigation:navigation-ui-ktx:2.7.5'
implementation 'androidx.work:work-runtime-ktx:2.9.0'
implementation 'androidx.media3:media3-exoplayer:1.7.1'
implementation 'androidx.media3:media3-exoplayer-hls:1.7.1'
implementation 'androidx.media3:media3-session:1.7.1'
implementation 'androidx.media3:media3-datasource-okhttp:1.7.1'
implementation 'androidx.navigation:navigation-fragment-ktx:2.9.0'
implementation 'androidx.navigation:navigation-ui-ktx:2.9.0'
implementation 'androidx.work:work-runtime-ktx:2.10.1'
// Volley HTTP request //
implementation 'com.android.volley:volley:1.2.1'

View File

@@ -104,7 +104,7 @@ class PlayerService : MediaLibraryService() {
/* Overrides onTaskRemoved from Service */
override fun onTaskRemoved(rootIntent: Intent) {
override fun onTaskRemoved(rootIntent: Intent?) {
if (!player.playWhenReady) {
stopSelf()
}

View File

@@ -544,7 +544,7 @@ class SettingsFragment : PreferenceFragmentCompat(), YesNoDialog.YesNoDialogList
val dateFormat = SimpleDateFormat("_yyyy-MM-dd'T'HH_mm", Locale.US)
timeStamp = dateFormat.format(Date())
putExtra(Intent.EXTRA_TITLE, "URL_Radio$timeStamp.zip")
putExtra(Intent.EXTRA_TITLE, "Radio$timeStamp.zip")
}
// file gets saved in the ActivityResult
try {

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- App Name -->
<string name="app_version_name" translatable="false">\"Sweet\"</string>
<string name="app_version_name" translatable="false">\"Purple\"</string>
<!-- Accessibility Descriptions -->
<string name="descr_app_icon">App icon depicting an old radio</string>

View File

@@ -3,7 +3,7 @@
plugins {
id 'com.android.application' version '8.6.1' apply false
id 'com.android.library' version '8.6.1' apply false
id 'org.jetbrains.kotlin.android' version "1.9.21" apply false
id 'org.jetbrains.kotlin.android' version "2.1.0" apply false
}
tasks.register('clean', Delete) {