Skip to content

Use library with Android Studio

Kaoru Shoji edited this page Dec 16, 2015 · 2 revisions

Use the library with Android Application project

Add these lines to the project's build.gradle file. These lines enable the project to use both of USB MIDI and BLE MIDI libraries.

repositories {
    maven {
        url 'https://github.com/kshoji/BLE-MIDI-for-Android/raw/master/library/repository'
        url 'https://github.com/kshoji/USB-MIDI-Driver/raw/master/library/repository'
    }
    mavenCentral()
}

dependencies {
    // check the latest release version with https://github.com/kshoji/BLE-MIDI-for-Android/releases/latest
    compile 'jp.kshoji:ble-midi:0.0.9:@aar'
    // check the latest release version with https://github.com/kshoji/USB-MIDI-Driver/releases/latest
    compile 'jp.kshoji:midi-driver:0.1.4:@aar'
}