Skip to content

Commit

Permalink
bump ktmidi to 0.8.2 and compose-audio-controls to 0.5.1 and bump oth…
Browse files Browse the repository at this point in the history
…er deps.

Those packages have not been successfully published until recently.
  • Loading branch information
atsushieno committed Apr 19, 2024
1 parent 2b55d84 commit 4718fe1
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 26 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,26 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/checkout@v1
uses: actions/checkout@v4
with:
submodules: recursive
- name: apt update
run: |
sudo apt-get update
- name: set up JDK 17
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
- name: cache AVD
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: cache-avd
with:
path: /home/runner/.android/gradle/avd
key: ${{ runner.os }}-gradle-avd
- name: cache gradle caches
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: cache-gradle-caches
with:
Expand All @@ -55,7 +55,7 @@ jobs:
keyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }}
- name: upload artifact
if: success()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: apks and aabs
path: |
Expand Down
16 changes: 8 additions & 8 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ plugins {

android {
namespace = "org.androidaudioplugin.residentmidikeyboard"
//compileSdkPreview = "VanillaIceCream"
compileSdk = 34
compileSdkPreview = "VanillaIceCream"

defaultConfig {
applicationId = "org.androidaudioplugin.resident_midi_keyboard"
Expand All @@ -27,11 +26,10 @@ android {
create("stable") {
dimension = "api"
}
/*
create("previewAPI") {
dimension = "api"
targetSdkPreview = "VanillaIceCream"
}*/
}
}

buildTypes {
Expand All @@ -55,8 +53,7 @@ android {
compose = true
}
composeOptions {
// FIXME: lame direct versioning (but the stable JetBrains versions never work fine)
kotlinCompilerExtensionVersion = "1.5.8"
kotlinCompilerExtensionVersion = libs.versions.compose.compiler.get()
}
packaging {
resources {
Expand All @@ -78,8 +75,11 @@ dependencies {
implementation(libs.ktmidi)
implementation(libs.accompanist.permissions)

implementation(project(":compose-audio-controls"))
implementation(project(":compose-audio-controls-midi"))
// We would occasionally switch between the released package and the submodules.
//implementation(project(":compose-audio-controls"))
//implementation(project(":compose-audio-controls-midi"))
implementation(libs.compose.audio.controls)
implementation(libs.compose.audio.controls.midi)
implementation(libs.compose.markdown)
implementation(libs.androidx.appcompat)
implementation(libs.androidx.lifecycle.service)
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
<meta-data android:name="android.media.midi.MidiDeviceService"
android:resource="@xml/midi_device" />
</service>
<!--
<service android:name=".ResidentKeyboardMidiUmpDeviceService" android:exported="true"
android:permission="android.permission.BIND_MIDI_DEVICE_SERVICE">
<intent-filter>
Expand All @@ -47,7 +46,6 @@
<property android:name="android.media.midi.MidiUmpDeviceService"
android:resource="@xml/ump_midi_device" />
</service>
-->
</application>

</manifest>
2 changes: 1 addition & 1 deletion external/compose-audio-controls
Submodule compose-audio-controls updated 47 files
+91 −46 app/build.gradle.kts
+0 −0 app/src/androidMain/AndroidManifest.xml
+6 −1 app/src/androidMain/kotlin/org/androidaudioplugin/composeaudiocontrols/demoapp/MainActivity.kt
+32 −0 app/src/androidMain/kotlin/org/androidaudioplugin/composeaudiocontrols/demoapp/MainContent.android.kt
+1 −1 app/src/androidMain/kotlin/org/androidaudioplugin/composeaudiocontrols/demoapp/theme/Color.kt
+1 −1 app/src/androidMain/kotlin/org/androidaudioplugin/composeaudiocontrols/demoapp/theme/Theme.kt
+1 −1 app/src/androidMain/kotlin/org/androidaudioplugin/composeaudiocontrols/demoapp/theme/Type.kt
+0 −0 app/src/androidMain/res/drawable-v24/ic_launcher_foreground.xml
+0 −0 app/src/androidMain/res/drawable/ic_launcher_background.xml
+0 −0 app/src/androidMain/res/mipmap-anydpi-v26/ic_launcher.xml
+0 −0 app/src/androidMain/res/mipmap-anydpi-v26/ic_launcher_round.xml
+ app/src/androidMain/res/mipmap-hdpi/ic_launcher.webp
+ app/src/androidMain/res/mipmap-hdpi/ic_launcher_round.webp
+ app/src/androidMain/res/mipmap-mdpi/ic_launcher.webp
+ app/src/androidMain/res/mipmap-mdpi/ic_launcher_round.webp
+ app/src/androidMain/res/mipmap-xhdpi/ic_launcher.webp
+ app/src/androidMain/res/mipmap-xhdpi/ic_launcher_round.webp
+ app/src/androidMain/res/mipmap-xxhdpi/ic_launcher.webp
+ app/src/androidMain/res/mipmap-xxhdpi/ic_launcher_round.webp
+ app/src/androidMain/res/mipmap-xxxhdpi/ic_launcher.webp
+ app/src/androidMain/res/mipmap-xxxhdpi/ic_launcher_round.webp
+0 −0 app/src/androidMain/res/values/colors.xml
+0 −0 app/src/androidMain/res/values/strings.xml
+0 −0 app/src/androidMain/res/values/themes.xml
+0 −0 app/src/androidMain/res/xml/backup_rules.xml
+0 −0 app/src/androidMain/res/xml/data_extraction_rules.xml
+ app/src/commonMain/composeResources/drawable/bright_life.png
+ app/src/commonMain/composeResources/drawable/chromed_knob.png
+ app/src/commonMain/composeResources/drawable/knob_blue.png
+ app/src/commonMain/composeResources/drawable/vst_knob_01_100pix.png
+61 −33 app/src/commonMain/kotlin/org/androidaudioplugin/composeaudiocontrols/demoapp/MainContent.kt
+23 −0 app/src/desktopMain/kotlin/main.kt
+0 −17 app/src/test/java/org/androidaudioplugin/composeaudiocontrols/ExampleUnitTest.kt
+11 −0 app/src/wasmJsMain/kotlin/main.kt
+12 −0 app/src/wasmJsMain/resources/index.html
+0 −1 build.gradle.kts
+13 −1 compose-audio-controls-midi/build.gradle.kts
+17 −6 compose-audio-controls/build.gradle.kts
+6 −4 compose-audio-controls/src/commonMain/kotlin/org/androidaudioplugin/composeaudiocontrols/ImageStripKnob.kt
+6 −1 gradle.properties
+11 −8 gradle/libs.versions.toml
+ gradle/wrapper/gradle-wrapper.jar
+2 −1 gradle/wrapper/gradle-wrapper.properties
+173 −109 gradlew
+9 −6 gradlew.bat
+2,859 −0 kotlin-js-store/yarn.lock
+1 −1 settings.gradle.kts
23 changes: 14 additions & 9 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
[versions]
agp = "8.4.0-alpha13"
agp = "8.3.2"
compose-markdown = "0.3.4"
kotlin = "1.9.22"
core-ktx = "1.12.0"
kotlin = "1.9.23"
core-ktx = "1.13.0"
junit = "4.13.2"
androidx-test-ext-junit = "1.1.5"
espresso-core = "3.5.1"
kotlinx-coroutines-core = "1.8.0-RC2"
kotlinx-coroutines-core = "1.8.0"
lifecycle-runtime-ktx = "2.7.0"
activity-compose = "1.8.2"
compose-bom = "2024.02.01"
activity-compose = "1.9.0"
compose-bom = "2024.04.01"
compose-compiler = "1.5.12"
metalava-gradle = "0.3.5"
dokka = "1.9.10"
ktmidi = "0.8.0-pre4"
compose-audio-controls = "0.4.3" # ourselves
ktmidi = "0.8.2"
compose-audio-controls = "0.5.1" # ourselves
appcompat = "1.6.1"
lifecycle-service = "2.7.0"
compose-plugin = "1.6.0"
compose-plugin = "1.6.2"
accompanist-permissions = "0.32.0"
kotlinx-datetime = "0.5.0"

[libraries]
accompanist-permissions = { module = "com.google.accompanist:accompanist-permissions", version.ref = "accompanist-permissions" }
Expand All @@ -41,6 +43,9 @@ compose-material3 = { group = "androidx.compose.material3", name = "material3" }
ktmidi = { group = "dev.atsushieno", name = "ktmidi", version.ref = "ktmidi" }
androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }
androidx-lifecycle-service = { group = "androidx.lifecycle", name = "lifecycle-service", version.ref = "lifecycle-service" }
kotlinx-datetime = { module = "org.jetbrains.kotlinx:kotlinx-datetime", version.ref = "kotlinx-datetime" }
compose-audio-controls = { module = "org.androidaudioplugin:compose-audio-controls", version.ref = "compose-audio-controls" }
compose-audio-controls-midi = { module = "org.androidaudioplugin:compose-audio-controls-midi", version.ref = "compose-audio-controls" }

[plugins]
androidApplication = { id = "com.android.application", version.ref = "agp" }
Expand Down
4 changes: 3 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ dependencyResolutionManagement {
rootProject.name = "resident-midi-keyboard"
val CAC_DIR = "external/compose-audio-controls"
include(":app")
// We would occasionally switch between the released package and the submodules.
/*
include(":compose-audio-controls")
include(":compose-audio-controls-midi")
project(":compose-audio-controls").projectDir = File("$CAC_DIR/compose-audio-controls")
project(":compose-audio-controls-midi").projectDir = File("$CAC_DIR/compose-audio-controls-midi")

*/

0 comments on commit 4718fe1

Please sign in to comment.