HubbellCorp / SweetBlue

BLE on Android the easy way
Apache License 2.0
23 stars 8 forks source link

Getting-Started docs point to maven url without class data? #38

Open Lucidology opened 1 day ago

Lucidology commented 1 day ago

The instructions at https://github.com/HubbellCorp/SweetBlue/wiki/Getting-Started appear to be out of date?

When I use

repositories {
    ...
    maven {
        url "https://artifacts.sweetblue.io"
    }
}

dependencies {
    ...
    implementation "com.idevicesinc:sweetblue:4.0.0"
}

...and do a gradle sync; the file I get in ....gradle\caches\modules-2\files-2.1\com.idevicesinc\sweetblue\4.0.0\c8c54835baab05623de0d1b0da8917cc92952d59\sweetblue-4.0.0.jar only contains html files and no class or java files.

This causes all the lines like "import com.idevicesinc.sweetblue.BleManager;" to fail.

Is there something else I should do to get the jar file with the class data?

ryanhubbell commented 16 hours ago

Use implementation "com.idevicesinc:sweetblue:4.0.0@aar" (Note the addition of @aar to the end).