1
1
# Bluetooth LE Library for Android
2
2
3
+ [ ![ Android Arsenal] ( https://img.shields.io/badge/Android%20Arsenal-webviewdebug-green.svg?style=flat )] ( https://android-arsenal.com/details/1/693 )
4
+
3
5
This library allows for easy access to a Bluetooth LE device's Advertisement Records.
4
6
It also offers:
5
7
@@ -17,16 +19,16 @@ This will only work on devices with Android 4.3 (API Level 18) and above.
17
19
18
20
## Including the Library in Your Project
19
21
22
+ ⚠️ BREAKING CHANGES ⚠️
23
+
24
+ As of version 2.0.0, the library package name has been changed from ` uk.co.alt236.bluetoothlelib.* `
25
+ to ` dev.alt236.bluetoothlelib.* ` .
26
+ The maven coordinates have also changed due to the migration to Maven Central (see below).
27
+
20
28
This project is available as an artifact for use with Gradle. To use that, add the following blocks to your build.gradle file:
21
29
``` groovy
22
- repositories {
23
- maven {
24
- url "https://dl.bintray.com/alt236/maven"
25
- }
26
- }
27
-
28
30
dependencies {
29
- compile 'uk.co. alt236:bluetooth-le-library-android:1 .0.0'
31
+ compile 'dev. alt236:bluetooth-le-library-android:2 .0.0'
30
32
}
31
33
```
32
34
If you * really* need a Jar file, fork the project and execute ` ./gradlew clean build generateRelease ` at the root of the project.
@@ -110,7 +112,6 @@ An IBeaconDevice extends BluetoothLeDevice, so you still have access to the same
110
112
* ` getMajor() ` : Gets the device's Major value
111
113
* ` getMinor() ` : Gets the device's Minor value
112
114
113
-
114
115
### Lookup Functions
115
116
You can also lookup values and convert them to human friendly strings:
116
117
* ` BluetoothClassResolver.resolveDeviceClass(int btClass) ` : Will try to resolve a Blueotooth Device class
@@ -132,6 +133,10 @@ You can also lookup values and convert them to human friendly strings:
132
133
* We now use the more generic `BeaconUtils.getBeaconType()` method instead of `IBeaconUtils.isThisAnIBeacon()`
133
134
* Fix for [issue 5](https://github.com/alt236/Bluetooth-LE-Library---Android/issues/5)
134
135
* Fix for [issue 9](https://github.com/alt236/Bluetooth-LE-Library---Android/issues/9)
136
+ * v2.0.0
137
+ * Migrated packages to Maven Central - Fix
138
+ for [issue 37](https://github.com/alt236/Bluetooth-LE-Library---Android/issues/37)
139
+ * Targeting Android API 34 with a minSDK of 21
135
140
136
141
## Sample Application Changelog
137
142
* v0.0.1
@@ -148,6 +153,9 @@ You can also lookup values and convert them to human friendly strings:
148
153
* Added runtime permissions.
149
154
* v1.1.1:
150
155
* Fix for [ issue 23] ( https://github.com/alt236/Bluetooth-LE-Library---Android/issues/23 )
156
+ * v2.0.0
157
+ * Now using the new package names (`dev.alt236.bluetoothlelib.*`)
158
+ * Targeting Android API 34 with a minSDK of 21
151
159
152
160
## Permission Explanation
153
161
You will need the following permissions to access the Bluetooth Hardware
0 commit comments