I'm having trouble trying to port Card.IO to Xamarin Android. Since I am using C# instead of Java, I don't know what to do with the .so files and the .jar files.
I tried to follow some of the steps posted here : card.io Mono for Android (Xamarin Studio) but I am getting the following two build errors that I don't know how to solve.
Here's What I've done so far
Create a new Android Java Bindings Library Project
Add the .jar and .so files from Card.IO project, with the existing folder structure. So there is four subfolders under the /libs folder, and then a single jar under /libs.
Add the following to Transforms/EnumMethods.xml to resolve a compiler error:
<mapping jni-class="io/card/payment/CardIOActivity"> <method jni-name="onActivityResult" parameter="p1" clr-enum-type="Android.App.Result" /> </mapping>Add a reference to the above Library in my main application.
And then I am faced with these build errors :
The type or namespace name 'IN' does not exist in the namespace 'IO.Card.Payment' (are you missing an assembly reference?)
'A': member names cannot be the same as their enclosing type
Update
The first error is on this line :
public sealed partial class CardIOActivity : global::Android.App.Activity, global::IO.Card.Payment.IN {
The second error seems to be on this line :
public static global::System.Collections.IList A {
Any help is useful, thanks!