Velorexe / Unity-Android-Bluetooth-Low-Energy-Java-Library

The Java Library that my Unity-Android-Bluetooth-Low-Energy binds to.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unity Android Bluetooth Low Energy Java Library

The Java library that the Unity Android Bluetooth Low Energy Plugin binds to
I should have picked a shorter title

Features

This repository is to open-source the library that's used in my Unity Android Bluetooth Low Energy plugin under the Assets/Plugins/Android/unityandroidble.jar. To not make everything secret or closed-sourced, this repository contains the Java side of things, for transparency sake, but also for people who want to expand on the project and add other custom commands.

What You Need

In order to properly compile this to a working jar, you need two things:

  • The unity.jar Java library that's located somewhere in your Unity Editor's folder
  • A Gradle script that compiles your code to a Java library

The unity.jar is something you need to find yourself, then place in the libs folder of your Android project. The Gradle script is something I've added below and needs to be added to your build.gradle.

task createJar(type: Copy) {
    from('build/intermediates/compile_app_classes_jar/release/')
    into('libs/')
    include('classes.jar')
    rename('classes.jar', 'unityandroidble.jar')
}

Contact

If you need any information, have questions about the project or found any bugs in this project, please create a new Issue and I'll take a look at it! If you've got more pressing questions or questions that aren't related to create an Issue for, you can contact with the methods below.

About

The Java Library that my Unity-Android-Bluetooth-Low-Energy binds to.

License:The Unlicense


Languages

Language:Java 100.0%