Skip to content

Commit ddfd8bd

Browse files
committed
Added documentation about maven repository
closes 2
1 parent 38d5407 commit ddfd8bd

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
SmartGattLib
22
============
3+
<a href="https://jitpack.io/#movisens/SmartGattLib/"><img src="https://img.shields.io/github/tag/movisens/SmartGattLib.svg?label=Maven on JitPack" /></a>
34

45
SmartGattLib is a Java library that simplifies the work with **Bluetooth SMART** devices (a.k.a. **Bluetooth Low Energy** in Bluetooth 4.0). It provides all UUIDs of the adopted [GATT specification](http://developer.bluetooth.org/gatt/Pages/default.aspx) and an convenient way to interpret the characteristics (e.g. Heart Rate, BatteryLevel).
56

@@ -31,7 +32,17 @@ Working with Bluetooth SMART devices is usually done in the following way:
3132

3233
### Set up ###
3334

34-
1. Download the latest .jar file from the [releases](https://github.com/movisens/SmartGattLib/releases) page and place it in your Android app’s libs/ folder.
35+
1. Add the JitPack repository and the dependency to your build file:
36+
37+
```gradle
38+
repositories {
39+
maven { url "https://jitpack.io" }
40+
}
41+
dependencies {
42+
compile 'com.github.movisens:SmartGattLib:1.7'
43+
}
44+
```
45+
or download the latest .jar file from the [releases](https://github.com/movisens/SmartGattLib/releases) page and place it in your Android app’s libs/ folder.
3546
2. Use the example below to identifiy services and characteristics and interpret their data
3647

3748
### Example Usage ###

0 commit comments

Comments
 (0)