RTodorov / samsungpay-android-binding

2 stars 0 forks source link

Methods not available in Samsung Pay 1.8 #1

Open kerrpeter opened 5 years ago

kerrpeter commented 5 years ago

I did a similar binding for Samsung Pay 1.8 with a slight modification in the Metadata.xml to handle GetCardListener as well as CardListener interface

  <attr path="/api/package[@name='com.samsung.android.sdk.samsungpay.v2.card']/interface[@name='CardListener']/method[@name='onSuccess']" name="argsType">CardListenerSuccessEventArgs</attr>
  <attr path="/api/package[@name='com.samsung.android.sdk.samsungpay.v2.card']/interface[@name='CardListener']/method[@name='onFail']" name="argsType">CardListenerFailEventArgs</attr>

  <attr path="/api/package[@name='com.samsung.android.sdk.samsungpay.v2.card']/interface[@name='GetCardListener']/method[@name='onSuccess']" name="argsType">GetCardListenerSuccessEventArgs</attr>
  <attr path="/api/package[@name='com.samsung.android.sdk.samsungpay.v2.card']/interface[@name='GetCardListener']/method[@name='onFail']" name="argsType">GetCardListenerFailEventArgs</attr>

The Xamarin binding complies, but when I reference the project from my Xamarin Android project, I see nothing in the project, no namespaces or classes. Nothing shows in the object browser either, but if I use ildasm to disassemble the compiled dll, I can see the namespaces. Did you get this issue, or know what I may be doing wrong? I have the samsung.jar file referenced as an "EmbeddedJar". Or do you have a binding for the newer version samsungpay-1.8.00.jar

RTodorov commented 5 years ago

Hey @kerrpeter,

It's been a very long time since I've last used this binding. I did not get this issue back then but it was v1.4.00. Might be worth sharing the binding project with the folks on the Xamarin forum and ask for help, they might shed some light.

Cheers