Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create bindings on this library in Xamarin #3

Open
laheller opened this issue Jan 24, 2019 · 2 comments
Open

Create bindings on this library in Xamarin #3

laheller opened this issue Jan 24, 2019 · 2 comments

Comments

@laheller
Copy link

Hi!

Was anybody able to successfully create Xamarin bindings for libcommon?
I mean based on this article.

@iwarp
Copy link

iwarp commented Jun 25, 2020

Ive managed to compile using a Xamarin bindings based on some info from this project, however it didnt support the device im compiling for: https://github.com/BigMango/XamarinUVCCamera/tree/master/Poya.Lib.Device.Camera.UVCCamera.Common

I only needed a few classes from this library so it was easier to tell Xamarin to remove the classes that were causing compile errors

For version 4.1.1 this worked for me in the Metadata.xml

<metadata>
  <attr path="/api/package[@name='com.serenegiant.media']/interface[@name='IRecorder']" name="managedName">IRecorder</attr>
   <remove-node path="/api/package[@name='com.serenegiant.utils']/class[@name='CollectionMap']" />
  <remove-node path="/api/package[@name='com.serenegiant.glutils']/class[@name='RendererHolder']" />
  <remove-node path="/api/package[@name='com.serenegiant.mediaeffect']" />
  <remove-node path="/api/package[@name='com.serenegiant.utils']/class[@name='ResourceHelper']" />
  <remove-node path="/api/package[@name='com.serenegiant.utils']/class[@name='XmlHelper']" />
  <remove-node path="/api/package[@name='com.serenegiant.widget']" />
</metadata>

Hope this helps others

@laheller
Copy link
Author

@iwarp
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants