How to setup - kshoji/JFugue-for-Android GitHub Wiki
Android Studio Setup
To use this library, modify the project's build.gradle
file.
Using USB MIDI
- If the project needs the support for
USB MIDI
, add these configurations. minSdkVersion
must be12
or above.
android {
defaultConfig {
minSdkVersion 12
}
}
repositories {
maven { url 'https://github.com/kshoji/JFugue-for-Android/raw/master/jfugue-android/snapshot' }
maven { url 'https://github.com/kshoji/USB-MIDI-Driver/raw/master/MIDIDriver/snapshots' }
}
dependencies {
compile 'jp.kshoji:jfugue-android:4.0.3:@aar'
compile 'jp.kshoji:midi-driver:0.1.1:@aar'
}
Using BLE MIDI
- If the project needs the support for
BLE MIDI
, add these configurations. minSdkVersion
must be18
or above.
android {
defaultConfig {
minSdkVersion 18
}
}
repositories {
maven { url 'https://github.com/kshoji/JFugue-for-Android/raw/master/jfugue-android/snapshot' }
maven { url 'https://github.com/kshoji/BLE-MIDI-for-Android/raw/master/library/repository' }
}
dependencies {
compile 'jp.kshoji:jfugue-android:4.0.3:@aar'
compile 'jp.kshoji:ble-midi:0.0.5:@aar'
}
Manifest Configuration
Add these configurations to AndroidManifest.xml
file.
Using USB MIDI
<uses-feature android:name="android.hardware.usb.host" />
Using BLE MIDI
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-feature android:name="android.hardware.bluetooth_le" android:required="true" />