Skip to content

Releases: AltBeacon/android-beacon-library

Android O Support Beta 4

30 Jul 18:06
Compare
Choose a tag to compare
Pre-release

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

24 Jul 14:46
Compare
Choose a tag to compare
Pre-release

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

12 Jul 23:48
Compare
Choose a tag to compare
Pre-release

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

28 Jun 21:26
Compare
Choose a tag to compare

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 with BackgroundPowerSaver 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 and BeaconManager#getRangingNotifier
    where the notifier sets were modified external to BeaconManager by another
    thread (#516, Aaron Kromer)
  • Fix inability to use RunningAverageRssiFilter.setSampleExpirationMilliseconds(...) (#523,
    David G. Young)

Multi-Process Build and Scan Fixes

13 May 17:53
Compare
Choose a tag to compare
Pre-release

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

24 Apr 14:15
Compare
Choose a tag to compare

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

25 Apr 13:06
Compare
Choose a tag to compare

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, and Stats. (#494, Aaron Kromer)

AdHoc Release: Multi Process Builds

12 Mar 00:02
Compare
Choose a tag to compare
Pre-release

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

02 Mar 16:56
Compare
Choose a tag to compare

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

02 Mar 05:05
Compare
Choose a tag to compare
Pre-release

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'
      }