Releases: AltBeacon/android-beacon-library
Misc Crash Bug Fixes
None of these crashes have instructions to reproduce, so this release is intended to deploy the fixes in the wild to see if reports of these crashes go away.
To use this release, you must download the aar file attached to this release, and configure it with your project like so:
- Edit your outermost build.gradle file to add an libs entry like so:
allprojects {
repositories {
google()
jcenter()
flatDir {
dirs 'libs'
}
}
}
- Edit your innermost build.gradle file to add the beta library AAR as a dependency like so:
dependencies {
implementation 'org.altbeacon:android-beacon-library:2.16.3-beta1@aar'
}
- Create a /libs folder next to the innermost build.gradle above, then download and copy the aar file attached to this release into this folder.
2.16.2
Bug Fixes:
- Prevent crash on alarms going off with a different user active (#886, David G. Young)
- Fix thread leak caused by scheduling ScanJob when no consumers bound. (#885, David G. Young)
- Protect against a NPE when changing ranged regions. (#770, David G. Young)
- Fix intermittent failed ranging/monitoring callbacks in race conditions. (#842, David G. Young)
- Prevent duplicate callbacks on Android 8+ with a foreground service by stopping ScanJob. (#847, Stephen Ruda)
- Only apply Samsung-specific non-empty scan filters when the screen is off (#855, Marcel Schnelle)
Fix failed callbacks
To use this release, you must download the aar file attached to this release, and configure it with your project like so:
- Edit your outermost build.gradle file to add an libs entry like so:
allprojects {
repositories {
google()
jcenter()
flatDir {
dirs 'libs'
}
}
}
- Edit your innermost build.gradle file to add the beta library AAR as a dependency like so:
dependencies {
implementation 'org.altbeacon:android-beacon-library:2.16.2-beta1@aar'
}
- Create a /libs folder next to the innermost build.gradle above, then download and copy the aar file attached to this release into this folder.
Edge-case Android crash fixes. New RegionBootstrap constructors
Features:
- New Region Bootstrap constructors allowing separate context and notifir (#821, Alper Tekin)
Bug Fixes:
- Fix crash on starting scanning with a forground service configured when multiple BeaconConsumer
instances bound. (#828, David G. Young) - Fix broken RegionBoostrap callbacks caused by change in previous release (#829, David G. Young)
- Fix intermittent crash caused by internal Android NPE (#824, kababu007)
- Update gradle and robolectric (#805, Tony Tang)
- Fix problem on service shutdown that leaked threads and left scanning on (#804, David G. Young)
Proper service shutdown experimental release
This release fixes a logic problem preventing proper service shutdown.
To use this release, you must download the aar file attached to this release, and configure it with your project like so:
- Edit your outermost build.gradle file to add an libs entry like so:
allprojects {
repositories {
google()
jcenter()
flatDir {
dirs 'src/main/libs'
}
}
}
- Edit your innermost build.gradle file to add the beta library AAR as a dependency like so:
dependencies {
compile 'android-beacon-library-2.15.5-alpha1@aar'
}
- Create a /libs folder next to the build.gradle above, then download and copy the aar file attached to this release into this folder.
Fix BluetoothCrashResolver crash
- Fix crash on BluetoothCrashResolver (#790, Michael Porter)
The above change was inadvertently left out of 2.15.3 requiring a new release of 2.15.4
Improved support for bind/unbind with jobs and foreground service
- Samsung screen-off scans on Android 8.1+ fixed. (#798, David G. Young)
- Fix bug preventing callbacks after unbind/bind when using ScanJobs. (#765, David G. Young)
- Prevent NPE on access CycledLEScanner after OOM on Android 8+. (#766, David G. Young)
- Make switching back and forth between a foreground service and scan jobs more reliable
(#767, David G. Young) - Disable BluetoothCrashResolver on Android 5+ as a it is not helpful can can create log noise.
(#768, David G. Young) - Prevent NPE on start scan. (#780, Adrián Nieto Rodríguez)
- Fix thread leak leading to OOM Exceptions when using ScanJobs (#785, David G. Young)
Bug fix release with experimental thread leak prevention
This release adds more changes to help make repeatedly stopping and starting a foreground service more reliable.
To use this release, you must download the aar file attached to this release, and configure it with your project like so:
- Edit your outermost build.gradle file to add an libs entry like so:
allprojects {
repositories {
google()
jcenter()
flatDir {
dirs 'src/main/libs'
}
}
}
- Edit your innermost build.gradle file to add the beta library AAR as a dependency like so:
dependencies {
compile 'android-beacon-library-2.15.3-beta1@aar'
}
- Create a /libs folder next to the build.gradle above, then download and copy the aar file attached to this release into this folder.
Experimental release: More reliable service stop 2
This release adds more changes to help make repeatedly stopping and starting a foreground service more reliable.
To use this release, you must download the aar file attached to this release, and configure it with your project like so:
- Edit your outermost build.gradle file to add an libs entry like so:
allprojects {
repositories {
google()
jcenter()
flatDir {
dirs 'libs'
}
}
}
- Edit your innermost build.gradle file to add the beta library AAR as a dependency like so:
dependencies {
compile 'org.altbeacon:android-beacon-library-more-reliable-service-stop2@aar'
}
- Create a /libs folder next to the build.gradle above, then download and copy the aar file attached to this release into this folder.
Experimental Release: More Reliable Service Stop
This release commands a stopSelf() of the beacon scanning service after the last client connection unbinds. This may help make stopping foreground services more reliable.
To use this release, you must download the aar file attached to this release, 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 'org.altbeacon:android-beacon-library-more-reliable-service-stop@aar' }
-
Create a /libs folder next to the build.gradle above, then download and copy the aar file attached to this release into this folder.