diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c5e781e..625a464 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,6 +15,11 @@ jobs: with: fetch-depth: 0 submodules: true + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + distribution: 'zulu' + java-version: 17 - name: Prepare cached external dependencies uses: actions/cache@v3 diff --git a/androbd_gestalt/AndrOBD-libplugin b/androbd_gestalt/AndrOBD-libplugin index 82746a3..a12f1aa 160000 --- a/androbd_gestalt/AndrOBD-libplugin +++ b/androbd_gestalt/AndrOBD-libplugin @@ -1 +1 @@ -Subproject commit 82746a3261c19015cf5844d05704a7fa272b375a +Subproject commit a12f1aaa47e5f866421fb5d3b395f11c6c360da1 diff --git a/androbd_gestalt/build.gradle b/androbd_gestalt/build.gradle index 15076df..c0595b4 100644 --- a/androbd_gestalt/build.gradle +++ b/androbd_gestalt/build.gradle @@ -5,11 +5,10 @@ plugins { } android { - compileSdkVersion 30 - buildToolsVersion "30.0.0" defaultConfig { applicationId "io.bimmergestalt.idriveconnectaddons.androbd_gestalt" + compileSdk 33 minSdkVersion 21 targetSdkVersion 30 versionCode 1 @@ -46,6 +45,7 @@ android { kotlinOptions { jvmTarget = '1.8' } + namespace 'io.bimmergestalt.idriveconnectaddons.androbd_gestalt' } repositories { diff --git a/androbd_gestalt/src/main/AndroidManifest.xml b/androbd_gestalt/src/main/AndroidManifest.xml index f952817..6ef9857 100644 --- a/androbd_gestalt/src/main/AndroidManifest.xml +++ b/androbd_gestalt/src/main/AndroidManifest.xml @@ -1,6 +1,5 @@ - + diff --git a/bimmerscrobbler/build.gradle b/bimmerscrobbler/build.gradle index 046952e..04c424f 100644 --- a/bimmerscrobbler/build.gradle +++ b/bimmerscrobbler/build.gradle @@ -5,11 +5,10 @@ plugins { } android { - compileSdkVersion 30 - buildToolsVersion "30.0.0" defaultConfig { applicationId "io.bimmergestalt.idriveconnectaddons.bimmerscrobbler" + compileSdk 33 minSdkVersion 21 targetSdkVersion 30 versionCode 1 @@ -46,6 +45,7 @@ android { kotlinOptions { jvmTarget = '1.8' } + namespace 'io.bimmergestalt.idriveconnectaddons.bimmerscrobbler' } repositories { diff --git a/bimmerscrobbler/src/main/AndroidManifest.xml b/bimmerscrobbler/src/main/AndroidManifest.xml index 442a921..e650d80 100644 --- a/bimmerscrobbler/src/main/AndroidManifest.xml +++ b/bimmerscrobbler/src/main/AndroidManifest.xml @@ -1,6 +1,5 @@ - + > { - override fun onChanged(t: Map?) { - val sourceId = t?.get("source") as? Int ?: 0 - val artist = t?.get("artist") as? String ?: "" - val album = t?.get("album") as? String ?: "" - val title = t?.get("title") as? String ?: "" + override fun onChanged(t: Map) { + val sourceId = t["source"] as? Int ?: 0 + val artist = t["artist"] as? String ?: "" + val album = t["album"] as? String ?: "" + val title = t["title"] as? String ?: "" MainModel.source.value = if (sourceId > 0) sourceId.toString() else "" MainModel.artist.value = artist MainModel.album.value = album diff --git a/build.gradle b/build.gradle index 8516877..fc31f55 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,6 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { - ext.kotlin_version = "1.4.32" + ext.kotlin_version = '1.9.0' ext.androidx_lifecycle_extensions_version = '2.2.0' ext.android_plugin_version = '2.3.0-alpha2' @@ -13,7 +13,7 @@ buildscript { } } dependencies { - classpath "com.android.tools.build:gradle:4.1.3" + classpath 'com.android.tools.build:gradle:8.2.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong diff --git a/cds_details/build.gradle b/cds_details/build.gradle index b5ef67d..1b416ff 100644 --- a/cds_details/build.gradle +++ b/cds_details/build.gradle @@ -5,11 +5,10 @@ plugins { } android { - compileSdkVersion 30 - buildToolsVersion "30.0.0" defaultConfig { applicationId "io.bimmergestalt.idriveconnectaddons.cdsdetails" + compileSdk 33 minSdkVersion 23 targetSdkVersion 30 versionCode 1 @@ -46,6 +45,7 @@ android { kotlinOptions { jvmTarget = '1.8' } + namespace 'io.bimmergestalt.idriveconnectaddons.cdsdetails' } repositories { diff --git a/cds_details/src/main/AndroidManifest.xml b/cds_details/src/main/AndroidManifest.xml index c276700..e663dd0 100644 --- a/cds_details/src/main/AndroidManifest.xml +++ b/cds_details/src/main/AndroidManifest.xml @@ -1,6 +1,5 @@ - + diff --git a/cds_gauges/build.gradle b/cds_gauges/build.gradle index 8ac5a69..5864787 100644 --- a/cds_gauges/build.gradle +++ b/cds_gauges/build.gradle @@ -5,10 +5,10 @@ plugins { } android { - compileSdkVersion 29 defaultConfig { applicationId "io.bimmergestalt.idriveconnectaddons.cdsgauge" + compileSdk 33 minSdkVersion 21 targetSdkVersion 29 versionCode 1 @@ -46,6 +46,7 @@ android { kotlinOptions { jvmTarget = '1.8' } + namespace 'io.bimmergestalt.idriveconnectaddons.cdsgauge' } repositories { diff --git a/cds_gauges/src/main/AndroidManifest.xml b/cds_gauges/src/main/AndroidManifest.xml index 322dc30..c72a865 100644 --- a/cds_gauges/src/main/AndroidManifest.xml +++ b/cds_gauges/src/main/AndroidManifest.xml @@ -1,6 +1,5 @@ - +