Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Allows Android apps to interact with BLE beacons

License

NotificationsYou must be signed in to change notification settings

AltBeacon/android-beacon-library

Repository files navigation

Build Status

An Android library providing APIs to interact with beacons. Please visit theproject website for how to use this library.

IMPORTANT: By default, this library will only detect beacons meeting the AltBeacon specification.

If you want this library to work with proprietary or custom beacons, see theBeaconParser class.

What does this library do?

It allows Android devices to use beacons much like iOS devices do. An app can request to get notifications when oneor more beacons appear or disappear. An app can also request to get a ranging update from one or more beaconsat a frequency of approximately 1Hz.

Documentation

Theproject website hasfull documentation

Downloads

Binary

You maydownload binary releases here.

Maven

Add Maven Central to your build file's list of repositories.

repositories {   mavenCentral()}

to use the Maven Central Repository

dependencies {...    implementation'org.altbeacon:android-beacon-library:${altbeacon.version}'...}

replacing${altbeacon.version} with the version you wish to use.

How to build this Library

This project uses an AndroidStudio/gradle build system and is known working with Android Studio Flamingo | 2022.2.1 Patch 1 and Gradle 8.0

Key Gradle build targets:

./gradlew test # run unit tests. To see results: `open lib/build/reports/tests/testDebugUnitTest/index.html`./gradlew build # development build./gradlew release # release build

License

Licensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License at    http://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.

This software is available under the Apache License 2.0, allowing you to use the library in your applications.

If you want to help with the open source project, contactdavid@radiusnetworks.com

Publishing to Maven

The following instructions are for project administrators.

  1. Prerequisites:https://getstream.io/blog/publishing-libraries-to-mavencentral-2021/

  2. Configure your ~/.gradle/gradle.properties with:

     signing.keyId=<my key id> signing.password=<my passphrase> signing.secretKeyRingFile=<path to exported gpg file> signing.password=<my passphrase> ossrhUsername=<sonotype server username> ossrhPassword=<sonotype server password>
  3. Run the build and upload

     git tag <version> git push --tags  ./gradlew release ./gradlew mavenPublish # Wait 10 mins before using the next command ./gradlew closeAndReleaseRepository
  4. Keep checking for a half hour or so athttps://repo1.maven.org/maven2/org/altbeacon/android-beacon-library/ to see that the new release shows up.

Note: you must have Java 17 to build the projecdt. If that is not the version on the path, and you have Android Studio installed, you may be able to add it to the path with:

export PATH=/Applications/Android\ Studio.app/Contents/jbr/Contents/Home/bin:$PATH

About

Allows Android apps to interact with BLE beacons

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp