Releases: AltBeacon/android-beacon-library
Android O Support Beta 4
This adds support for Android O by defaulting to using a JobScheduler to run scans on a ScanJob instead of a long-running BeaconService, as long-running services are no longer allowed on Android O.
You can enable ScanJobs instead of the BeaconService on devices without Android O by calling:
beaconManager.setEnableScheduledScanJobs(true);
The above is not needed on Android O, as it is the default setting for that OS version.
Read more details here: #484
To use this release, you must download the aar file below, and configure it with your project like so:
- Edit your innermost build.gradle file to add the beta library AAR as a dependency like so:
dependencies {
compile 'android-beacon-library:2.12-beta4@aar'
}
-
Create a /libs folder next to the build.gradle above, then download and copy the the android-beacon-library-2.12-beta4.aar file below into this folder.
-
Configure your app's outermost build.gradle File to reference the /libs directory from above in a flatDir declaration:
allprojects {
repositories {
jcenter()
flatDir {
dirs 'libs'
}
}
}
Android O Support Beta 3
This adds support for Android O by defaulting to using a JobScheduler to run scans on a ScanJob instead of a long-running BeaconService, as long-running services are no longer allowed on Android O.
You can enable ScanJobs instead of the BeaconService on devices without Android O by calling:
beaconManager.setEnableScheduledScanJobs(true);
The above is not needed on Android O, as it is the default setting for that OS version.
Read more details here: #484
To use this release, you must download the aar file below, and configure it with your project like so:
- Edit your innermost build.gradle file to add the beta library AAR as a dependency like so:
dependencies {
compile 'android-beacon-library:2.12-beta3@aar'
}
-
Create a /libs folder next to the build.gradle above, then download and copy the the android-beacon-library-2.12-beta3.aar file below into this folder.
-
Configure your app's outermost build.gradle File to reference the /libs directory from above in a flatDir declaration:
allprojects {
repositories {
jcenter()
flatDir {
dirs 'libs'
}
}
}
Android O Support Beta 2
This adds support for Android O by defaulting to using a JobScheduler to run scans on a ScanJob instead of a long-running BeaconService, as long-running services are no longer allowed on Android O.
You can enable ScanJobs instead of the BeaconService on devices without Android O by calling:
beaconManager.setEnableScheduledScanJobs(true);
Read more details here: #484
To use this release, you must download the aar file below, and configure it with your project like so:
- Edit your innermost build.gradle file to add the beta library AAR as a dependency like so:
dependencies {
compile 'android-beacon-library:2.12-beta2@aar'
}
-
Create a /libs folder next to the build.gradle above, then download and copy the the android-beacon-library-2.12-beta2.aar file below into this folder.
-
Configure your app's outermost build.gradle File to reference the /libs directory from above in a flatDir declaration:
allprojects {
repositories {
jcenter()
flatDir {
dirs 'libs'
}
}
}
Multi-Process Build and Scan Fixes
Enhancements:
- Add ability to circumvent prohibition against scans running for > 30 minutes on Android N.
(#529, David G. Young) - Add support for running the beacon scanning service in a separate process and working with
application setups that have more than one process. (#479, David G. Young)
Bug Fixes:
- Fix Google Play submission errors by no longer using uses-permission-sdk-23 in
Manifest (#527, David G. Young) - Fix failure to restart scanning in some cases after bluetooth has been off but then is turned
back on. (#519, David G. Young) - Fix failure to stop scanning when unbinding from service or when the between scan period
is nonzero. (#507, David G. Young) - Fix possible
NullPointerException
withBackgroundPowerSaver
on devices
prior to Android 4.3 Jelly Bean MR 2 (API 18) (#516, Aaron Kromer) - Fix rare edge case causing
NoSuchElementException
when using the legacy
BeaconManager#getMonitoringNotifier
andBeaconManager#getRangingNotifier
where the notifier sets were modified external toBeaconManager
by another
thread (#516, Aaron Kromer) - Fix inability to use
RunningAverageRssiFilter.setSampleExpirationMilliseconds(...)
(#523,
David G. Young)
Multi-Process Build and Scan Fixes
Enhancements:
- Add support for running the beacon scanning service in a separate process and working with
application setups that have more than one process. (#479, David G. Young)
Bug Fixes:
- Fix failure to stop scanning when unbinding from service or when the between scan period
is nonzero. (#507, David G. Young)
To use this release, you must download the aar file below, and configure it with your project like so:
- Edit your innermost build.gradle file to add the beta library AAR as a dependency like so:
dependencies {
compile 'android-beacon-library:2.11-beta1@aar'
}
-
Create a /libs folder next to the build.gradle above, then download and copy the the android-beacon-library-2.11-beta1.aar file below into this folder.
-
Configure your app's outermost build.gradle File to reference the /libs directory from above in a flatDir declaration:
allprojects {
repositories {
jcenter()
flatDir {
dirs 'libs'
}
}
}
Multi-Process test build 2
This is an experimental build intended for testing.
Includes
- changes to allow running with a multi-process app setup per #479
- never stop scanning on devices that detect multiple beacon advertisements per scan per #491
To use this release, you must download the aar file below, and configure it with your project like so:
- Create a /libs directory inside your project and copy the android-beacon-library-2.9.2-mpb2.aar file there.
- Configure your app's outermost build.gradle File to reference the /libs directory from above in a flatDir declaration:
allprojects {
repositories {
jcenter()
flatDir {
dirs 'libs'
}
}
}
- Add the library AAR as a dependency, along with the Android Beacon Library like so:
dependencies {
compile 'android-beacon-library-2.9.2-mpb2@aar'
}
Scanning improvements
Enhancements:
- Don't restart BLE scanning periodically if the library confrims device can detect duplicate
advertisements in a single scan, leading to more reliable detections with short scan cycles
(#491, David G. Young)
Bug Fixes:
- Deprecate misspelled methods
removeMonitoreNotifier
and
setRegionStatePeristenceEnabled
in favor of correctly spelled alternatives.
(#461, Marco Salis) - Fix bug causing brief scan dropouts after starting a scan after a long period
of inactivity (i.e. startup and background-foreground transitions) due to
Android N scan limits (#489, Aaron Kromer) - Ensure thread safety for singleton creation of
BeaconManager
,
DetectionTracker
,MonitoringStatus
, andStats
. (#494, Aaron Kromer)
AdHoc Release: Multi Process Builds
Includes changes to allow running with a multi-process app setup. This is an experimental build intended for testing. See here for details: #479
To use this release, you must download the aar file below, and configure it with your project like so:
- Create a /libs directory inside your project and copy the android-beacon-library-2.9.2-mpb1-36-gc6a65ea.aar file there.
- Configure your app's outermost build.gradle File to reference the /libs directory from above in a flatDir declaration:
allprojects {
repositories {
jcenter()
flatDir {
dirs 'libs'
}
}
}
- Add the library AAR as a dependency, along with the Android Beacon Library like so:
dependencies {
compile 'android-beacon-library-2.9.2-mpb1-36-gc6a65ea@aar'
}
Adhoc Release: Fix stackoverflow crash on scan start/stop
To use this release, you must download the aar file below, and configure it with your project like so:
- Create a /libs directory inside your project and copy the android-beacon-library.aar file there.
- Configure your app's outermost build.gradle File to reference the /libs directory from above in a flatDir declaration:
allprojects {
repositories {
jcenter()
flatDir {
dirs 'libs'
}
}
}
- Add the library AAR as a dependency, along with the Android Beacon Library like so:
dependencies {
compile 'android-beacon-library-2.9.2-5-gef917a1@aar'
}
Adhoc release: Fix Power Saver Crash
Adhoc release intended to test fixing a crash in the Background Power Saver.
To use this release, you must download the aar file below, and configure it with your project like so:
- Create a /libs directory inside your project and copy the android-beacon-library.aar file there.
- Configure your app's outermost build.gradle File to reference the /libs directory from above in a flatDir declaration:
allprojects {
repositories {
jcenter()
flatDir {
dirs 'libs'
}
}
}
- Add the library AAR as a dependency, along with the Android Beacon Library like so:
dependencies {
compile 'org.altbeacon:android-beacon-library-2.9.2-5-gd971e20@aar'
}