InvisibleWrench / FlutterMidiCommand

A Flutter plugin to send and receive MIDI
BSD 3-Clause "New" or "Revised" License
95 stars 50 forks source link

Does it support minSdkVersion 31? #124

Closed troller2017 closed 3 weeks ago

troller2017 commented 3 weeks ago

Does anyone know the minimum SDK version required for flutter midi command support? My USB connected MIDI device isn’t appearing on Android 12 (SDK 31), despite having all the necessary permissions in the manifest. The device is only recognized and listed on Android 14. Unfortunately, I don’t have other devices to test with; this is based on the two Pixel devices I currently own.

<manifest xmlns:tools="http://schemas.android.com/tools"
    xmlns:android="http://schemas.android.com/apk/res/android">
    <uses-permission android:name="android.permission.MIDI" />
    <uses-permission android:name="android.permission.USB_PERMISSION" />
    <uses-feature android:name="android.hardware.usb.host" android:required="true" tools:targetApi="eclair" />
    <application
        android:label="switchsample"
        android:name="${applicationName}"
        android:enableOnBackInvokedCallback="true"
        android:icon="@mipmap/ic_launcher">
        <service android:name="android.media.midi.MidiDeviceService"
            android:enabled="true" android:exported="true">
            <intent-filter>
                <action android:name="android.media.midi.action.MIDI_DEVICE_OPENED" />
            </intent-filter>
        </service>