Skip to content

Commit

Permalink
Merge branch 'agp_upgrade'
Browse files Browse the repository at this point in the history
  • Loading branch information
hufman committed Feb 22, 2024
2 parents a27768f + 6e1263a commit 4be76db
Show file tree
Hide file tree
Showing 18 changed files with 36 additions and 34 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions androbd_gestalt/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -46,6 +45,7 @@ android {
kotlinOptions {
jvmTarget = '1.8'
}
namespace 'io.bimmergestalt.idriveconnectaddons.androbd_gestalt'
}

repositories {
Expand Down
3 changes: 1 addition & 2 deletions androbd_gestalt/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.bimmergestalt.idriveconnectaddons.androbd_gestalt">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="io.bimmergestalt.permission.CDS_normal" />
<uses-permission android:name="io.bimmergestalt.permission.CDS_personal" />
Expand Down
4 changes: 2 additions & 2 deletions bimmerscrobbler/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -46,6 +45,7 @@ android {
kotlinOptions {
jvmTarget = '1.8'
}
namespace 'io.bimmergestalt.idriveconnectaddons.bimmerscrobbler'
}

repositories {
Expand Down
3 changes: 1 addition & 2 deletions bimmerscrobbler/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.bimmergestalt.idriveconnectaddons.bimmerscrobbler">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="io.bimmergestalt.permission.CDS_normal" />
<application
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ class MainService: Service() {
}

class MultimediaObserver(val announcer: ScrobbleAnnouncer): Observer<Map<String, Any>> {
override fun onChanged(t: Map<String, Any>?) {
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<String, Any>) {
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
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -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'

Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions cds_details/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -46,6 +45,7 @@ android {
kotlinOptions {
jvmTarget = '1.8'
}
namespace 'io.bimmergestalt.idriveconnectaddons.cdsdetails'
}

repositories {
Expand Down
3 changes: 1 addition & 2 deletions cds_details/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.bimmergestalt.idriveconnectaddons.cdsdetails">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="io.bimmergestalt.permission.CDS_normal" />
<uses-permission android:name="io.bimmergestalt.permission.CDS_personal" />
Expand Down
3 changes: 2 additions & 1 deletion cds_gauges/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ plugins {
}

android {
compileSdkVersion 29

defaultConfig {
applicationId "io.bimmergestalt.idriveconnectaddons.cdsgauge"
compileSdk 33
minSdkVersion 21
targetSdkVersion 29
versionCode 1
Expand Down Expand Up @@ -46,6 +46,7 @@ android {
kotlinOptions {
jvmTarget = '1.8'
}
namespace 'io.bimmergestalt.idriveconnectaddons.cdsgauge'
}

repositories {
Expand Down
3 changes: 1 addition & 2 deletions cds_gauges/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.bimmergestalt.idriveconnectaddons.cdsgauge">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="io.bimmergestalt.permission.CDS_normal" />
<!--
Expand Down
5 changes: 4 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,7 @@ android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true
# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official
kotlin.code.style=official
android.defaults.buildfeatures.buildconfig=true
android.nonTransitiveRClass=false
android.nonFinalResIds=false
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-all.zip
5 changes: 2 additions & 3 deletions lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@ plugins {
}

android {
compileSdkVersion 29

defaultConfig {
compileSdk 33
minSdkVersion 21
targetSdkVersion 29
versionCode 1
versionName "1.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand All @@ -32,6 +30,7 @@ android {
kotlinOptions {
jvmTarget = '1.8'
}
namespace 'io.bimmergestalt.idriveconnectaddons.lib'
}

repositories {
Expand Down
3 changes: 1 addition & 2 deletions lib/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.bimmergestalt.idriveconnectaddons.lib">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
</manifest>
4 changes: 2 additions & 2 deletions screen_mirror/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ repositories {
}

android {
compileSdkVersion 30
buildToolsVersion "31.0.0"

defaultConfig {
applicationId "io.bimmergestalt.idriveconnectaddons.screenmirror"
compileSdk 33
minSdkVersion 23
targetSdkVersion 30
versionCode 1
Expand Down Expand Up @@ -50,6 +49,7 @@ android {
kotlinOptions {
jvmTarget = '1.8'
}
namespace 'io.bimmergestalt.idriveconnectaddons.screenmirror'
}

def RHMISources = [
Expand Down
3 changes: 1 addition & 2 deletions screen_mirror/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.bimmergestalt.idriveconnectaddons.screenmirror">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<!-- Connect to local etch port -->
<uses-permission android:name="android.permission.INTERNET" />
Expand Down

0 comments on commit 4be76db

Please sign in to comment.