Added build.xml and added the dist directory to gitignore
This commit is contained in:
@@ -24,6 +24,10 @@ b. Create a Jar file (see Jarification below) and add it into your project.
|
||||
|
||||
Type `ant jar` at the root of the Library Project to produce a Jar file.
|
||||
|
||||
The library jar along with it's javadoc jar will be found in the `dist` directory inside the library project.
|
||||
|
||||
You will need to provide your own `local.properties` inside the library project.
|
||||
|
||||
## Using the Library
|
||||
In the `onLeScan()` method of your `BluetoothAdapter.LeScanCallback()` create a new BluetoothLeDevice with the given information.
|
||||
|
||||
@@ -90,7 +94,7 @@ An IBeaconDevice extends BluetoothLeDevice, so you still have access to the same
|
||||
* `getIBeaconData()`: Gets the raw IBeaconManufacturerData object.
|
||||
* `getUUID()`: Gets the device's UUID
|
||||
* `getMajor()`: Gets the device's Major value
|
||||
* `getMinor()`: Gets the device's Major value
|
||||
* `getMinor()`: Gets the device's Minor value
|
||||
|
||||
|
||||
### Lookup Functions
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
alex ,alex,alex-HP-ProBook-6550b,20.03.2014 16:05,file:///home/alex/.config/libreoffice/4;
|
||||
1
library/.gitignore
vendored
1
library/.gitignore
vendored
@@ -4,3 +4,4 @@ local.properties
|
||||
.idea/
|
||||
lint.xml
|
||||
/.apt_generated
|
||||
/dist
|
||||
|
||||
40
library/build.xml
Normal file
40
library/build.xml
Normal file
@@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<project name="BluetoothLeLibrary" default="default">
|
||||
<loadproperties srcFile="local.properties" />
|
||||
<property file="ant.properties" />
|
||||
<loadproperties srcFile="project.properties" />
|
||||
|
||||
<!-- quick check on sdk.dir -->
|
||||
<fail message="sdk.dir is missing. Make sure to generate local.properties using 'android update project'" unless="sdk.dir" />
|
||||
|
||||
<!-- version-tag: 1 -->
|
||||
<import file="${sdk.dir}/tools/ant/build.xml" />
|
||||
|
||||
<!-- Read the Android Manifest -->
|
||||
<path id="android.antlibs">
|
||||
<pathelement path="${sdk.dir}/tools/lib/ant-tasks.jar" />
|
||||
</path>
|
||||
|
||||
<taskdef name="xpath" classname="com.android.ant.XPathTask" classpathref="android.antlibs" />
|
||||
<xpath input="./AndroidManifest.xml" expression="/manifest/@android:versionName" output="manifest.versionName" />
|
||||
|
||||
<!-- Setup the build properties -->
|
||||
<property name="versionedName" value="${ant.project.name}-${manifest.versionName}" />
|
||||
<property name="distLocation" location="dist" />
|
||||
<echo message="Running task(s) for ${versionedName}" />
|
||||
|
||||
<target name="default">
|
||||
<antcall target="jar"/>
|
||||
<antcall target="doc"/>
|
||||
</target>
|
||||
|
||||
<target name="jar" depends="debug" description="build the library as a jar">
|
||||
<jar destfile="${distLocation}/${versionedName}.jar" basedir="bin/classes" />
|
||||
</target>
|
||||
<target name="doc" description="generate documentation">
|
||||
<property name="temp" location="temp" />
|
||||
<javadoc sourcepath="${source.dir}" destdir="${temp}" />
|
||||
<jar destfile="${distLocation}/${versionedName}-javadoc.jar" basedir="temp" keepcompression="true" />
|
||||
<delete dir="${temp}" />
|
||||
</target>
|
||||
</project>
|
||||
Reference in New Issue
Block a user