Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.utsavdrolia:android-multi-bluetooth-library:'
}
dependencies {
implementation("com.github.utsavdrolia:android-multi-bluetooth-library:")
}
<dependency>
<groupId>com.github.utsavdrolia</groupId>
<artifactId>android-multi-bluetooth-library</artifactId>
<version></version>
</dependency>
libraryDependencies += "com.github.utsavdrolia" % "android-multi-bluetooth-library" % ""
:dependencies [[com.github.utsavdrolia/android-multi-bluetooth-library ""]]
This library allows you to easily create a socket bluetooth connection for multiple android devices with one server and 7 clients max. This library is compatible with the Android SDK 2.3 to 5.1.
For documentation and additional information see the website.
Download the latest JAR or grab via Maven:
<dependencies>
<dependency>
<groupId>com.ramimartin.multibluetooth</groupId>
<artifactId>AndroidMultiBluetoothLibrary</artifactId>
<version>1.2-SNAPSHOT</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>sfdn-ftp</id>
<name>Sfdn Ftp</name>
<url>http://sfdn.ddns.net/maven2</url>
</repository>
</repositories>
or Gradle:
repositories {
maven {
url "http://sfdn.ddns.net/maven2/"
}
mavenCentral()
}
dependencies {
compile 'com.ramimartin.multibluetooth:AndroidMultiBluetoothLibrary:1.2-SNAPSHOT'
}
/*
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* Rami Martin wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*/