Skip to content

Use library with Android Studio(Gradle)

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

Use the library with Android Application project

Add these lines to the project's build.gradle file.

repositories {
    maven {
        url 'https://github.com/kshoji/BLE-MIDI-for-Android/raw/master/library/repository'
        // if you need the latest library, uncomment the line below and comment the line above.
        // url 'https://github.com/kshoji/BLE-MIDI-for-Android/raw/develop/library/repository'
    }
    mavenCentral()
}

dependencies {
    // check the latest release version with https://github.com/kshoji/BLE-MIDI-for-Android/releases/latest
    // if you need the latest library, specify `0.0.10-SNAPSHOT` instead of `0.0.9`
    compile 'jp.kshoji:ble-midi:0.0.9:@aar'
}