Skip to content

Commit

Permalink
bump libremidi-javacpp to 0.1.2 which supports Windows. bump Compose …
Browse files Browse the repository at this point in the history
…to 1.7.0.
  • Loading branch information
atsushieno committed Sep 6, 2024
1 parent fdab669 commit 6070c9e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ agp = "8.2.2"
android-compileSdk = "35"
android-minSdk = "23"
android-targetSdk = "35"
androidx-activityCompose = "1.9.0"
androidx-activityCompose = "1.9.2"
androidx-appcompat = "1.7.0"
androidx-core-ktx = "1.13.1"
androidx-espresso-core = "3.6.1"
androidx-test-junit = "1.2.1"
compose = "1.6.8"
compose = "1.7.0"
compose-plugin = "1.6.11"
junit = "4.13.2"
kotlin = "2.0.20"
Expand All @@ -28,7 +28,7 @@ gradle-javacpp = "1.5.10"

alsa-javacpp = "0.1.0"
rtmidi-javacpp = "0.1.5"
libremidi-javacpp = "0.1.1"
libremidi-javacpp = "0.1.2"

[libraries]
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" }
Expand Down
12 changes: 8 additions & 4 deletions ktmidi-ci-tool/src/desktopMain/kotlin/main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@ import java.io.File
fun main(args: Array<String>) = application {
initializeAppModel(this)
AppModel.midiDeviceManager.midiAccess =
if (File("/dev/snd/seq").exists()) AlsaMidiAccess()
else if (args.contains("jvm")) JvmMidiAccess()
else if (System.getProperty("os.name").contains("Windows")) JvmMidiAccess()
if (args.contains("alsa"))
AlsaMidiAccess()
else if (args.contains("jvm"))
JvmMidiAccess()
// else RtMidiAccess()
else LibreMidiAccess.create(MidiTransportProtocol.UMP)
else if (System.getProperty("os.name").contains("Windows"))
LibreMidiAccess.create(MidiTransportProtocol.MIDI1)
else
LibreMidiAccess.create(MidiTransportProtocol.UMP)
Window(onCloseRequest = ::exitApplication,
state = rememberWindowState(),
title = "midi-ci-tool") {
Expand Down

0 comments on commit 6070c9e

Please sign in to comment.