Integration with Xamarin

Any thoughts or previous examples in integrating PoyntOS SDK with Xamarin?

Since Xamarin has no suport for Maven (AFAIK), where can I download PoyntOS SDK as .jar file?

Daniel…I have written a node js library using the poynt cloud message services and it is platform agnostic from an integration perspective. It might work for you as well…contact me if you are interested bob@braneworks.com

Hi Daniel,

You can download the current dependencies from https://www.dropbox.com/sh/8jjzzb3hu02dmof/AAAjIjj62mqIz0X5_8oZEAmAa?dl=0.

As I mentioned before we don’t have anyone with experience with Xamarin. I’ll try to carve out some time to research it.

thanks Bob!
I’ll keep that in mind

thanks Dennis, I got it working!

For future reference:

Xamarin has a .jar/.aar binding tool that wraps libraries for C# access.
Reference: Binding a Java Library - Xamarin | Microsoft Docs

Sometimes it works fine, sometimes you need a little tweaking.
Trying to build PoyntsOS-SDK gave me many errors as following:

Error CS1721: Class ‘AddressesColumns’ cannot have multiple base classes: ‘Object’ and ‘BaseColumns’ (CS1721)

…which turned out to be a known issue with android.provider.BaseColumns interface.

I just had to add this line to [project]/Transforms/Metadata.xml

<remove-node path="/api/package/class/implements[@name='android.provider.BaseColumns']" />

… as explained here:
https://forums.xamarin.com/discussion/15674/java-binding-error-multiple-base-classes-metadata-xml

Thanks for sharing @daniel

Hi Dennis,

I’m developing an APP in Xamarin and I need the dependencies above, but the link is broken.
Could you please upload it again?

@victor.santos here you go:
https://nexus.poynt.com/content/repositories/releases/co/poynt/android/sdk/poynt-sdk/1.2.27/poynt-sdk-1.2.27.aar
https://nexus.poynt.com/content/repositories/releases/co/poynt/api/android-api-model/1.2.107/android-api-model-1.2.107.jar
http://central.maven.org/maven2/com/google/code/gson/gson/2.8.0/gson-2.8.0.jar