1

I'm an android newbie, and would like to create a jar file for this library:

https://github.com/TonicArtos/SuperSLiM

I've read some other online answers which say that the gradle build file has to be modified, which I tried to do, but not sure if I did it correctly:

How to create an Android Library Jar with gradle without publicly revealing source code?

Can anyone help me with this??

My goal is to use the *.jar file to create an Android Binding Project within a Xamarin project to be able to use the library in Xamarin.

Thanks!

Community
  • 1
  • 1
Maximus
  • 1,441
  • 14
  • 38

2 Answers2

1

I am not a Xamarin user myself, but a quick look at the Xamarin changelog indicates that you can use the Build Action of LibraryProjectZip to bind a .aar project, which is what SuperSLiM is.

To actually make sense of this, here is a blog post which may also be useful. From the article it seems you need to download the .aar file from one of the hosted locations, bintray or mavencentral, and follow some instructions to create the Xamarin binding.

Tonic Artos
  • 1,568
  • 1
  • 10
  • 7
1

I've just created the necessary bindings, you can check out the (pretty simple) binding project on https://github.com/dmunch/SuperSLiM-binding or download the NuGet at https://www.nuget.org/packages/SuperSLiM/

dmunch
  • 384
  • 2
  • 5
  • Thank you!! it loaded no problem :) – Maximus Jun 17 '15 at 18:25
  • Quick question, did you achieve this by applying the steps mentioned below in Tonic's reply?? Thanks! – Maximus Jun 22 '15 at 15:42
  • I basically followed the steps of the [Xamarin documentation for creating java bindings](http://developer.xamarin.com/guides/android/advanced_topics/java_integration_overview/binding_a_java_library_(.jar)/). The only thing not straightforward was finding the right entries for the [Metadata.xml](https://github.com/dmunch/SuperSLiM-binding/blob/master/Transforms/Metadata.xml) source code transformations. – dmunch Jun 22 '15 at 16:01
  • Thanks for the quick response! – Maximus Jun 22 '15 at 16:12