Skip to content

Commit

Permalink
Merge pull request #41 from luposlip/master
Browse files Browse the repository at this point in the history
Updated for Oreo compatibility with android-beacon-library-2.15.aar
  • Loading branch information
chrisriesgo authored Sep 16, 2018
2 parents cabd12f + f10eef6 commit ca8baed
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Identifier.cs" />
<Compile Include="ModelSpecificInstanceUpdater.cs" />
<Compile Include="Beacon.cs" />
</ItemGroup>
<ItemGroup>
<None Include="Additions\AboutAdditions.txt" />
Expand All @@ -55,7 +56,7 @@
<TransformFile Include="Transforms\Metadata.xml" />
</ItemGroup>
<ItemGroup>
<LibraryProjectZip Include="Jars\android-beacon-library-2.10.aar" />
<LibraryProjectZip Include="Jars\android-beacon-library-2.15.aar" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.Bindings.targets" />
</Project>
</Project>
20 changes: 20 additions & 0 deletions AndroidAltBeaconLibrary/AndroidAltBeaconLibrary/Beacon.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using System;
using Android.Runtime;

namespace AltBeaconOrg.BoundBeacon
{
// Metadata.xml XPath class reference: path="/api/package[@name='org.altbeacon.beacon']/class[@name='Beacon']"
public partial class Beacon
{
public int DescribeContents()
{
return 0;
}

public void WriteToParcel(Android.OS.Parcel p, Android.OS.ParcelableWriteFlags f)
{

}
}
}

Binary file not shown.
Binary file not shown.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ Android AltBeacon Library ![](https://ci.appveyor.com/api/projects/status/gpeioj

A Xamarin.Android binding of the [AltBeacon Android Beacon Library](https://github.com/AltBeacon/android-beacon-library). This library allows Android apps to interact with BLE beacons in accordance with the open and interoperable [AltBeacon proximity beacon protocol specification](https://github.com/AltBeacon/spec).

Note: This library uses the Java library version 2.15, and is Android Oreo (8.x) compatible!

## Use

- [Nuget Package](https://www.nuget.org/packages/AndroidAltBeaconLibrary/)
Expand All @@ -19,6 +21,8 @@ The [Android AltBeacon Library](http://components.xamarin.com/view/android-altbe

## Changes

[current version] - Using java library 2.15: Android Oreo compatible!

_v2.10.0 - [Work in Progress](https://github.com/chrisriesgo/Android-AltBeacon-Library/issues/25)_

[v2.7](https://github.com/chrisriesgo/Android-AltBeacon-Library/releases/tag/2.7)
Expand Down

0 comments on commit ca8baed

Please sign in to comment.