Skip to content

Instantly share code, notes, and snippets.

@jgold6
Created March 14, 2016 19:51
Show Gist options
  • Select an option

  • Save jgold6/65c09d97ce2a7f3b5d28 to your computer and use it in GitHub Desktop.

Select an option

Save jgold6/65c09d97ce2a7f3b5d28 to your computer and use it in GitHub Desktop.
Metatdata for AcuantAndroidMobileSDK binding
<metadata>
<!--
This sample removes the class: android.support.v4.content.AsyncTaskLoader.LoadTask:
<remove-node path="/api/package[@name='android.support.v4.content']/class[@name='AsyncTaskLoader.LoadTask']" />
This sample removes the method: android.support.v4.content.CursorLoader.loadInBackground:
<remove-node path="/api/package[@name='android.support.v4.content']/class[@name='CursorLoader']/method[@name='loadInBackground']" />
-->
<!-- Resolve du[plicate method name and event args-->
<attr path="/api/package[@name='com.acuant.mobilesdk']/interface[@name='CardCroppingListener']/method[@name='onCardCroppingFinish' and count(parameter)=2 and parameter[1][@type='android.graphics.Bitmap'] and parameter[2][@type='boolean']]"
name="argsType">CardCroppingFinishWithBoolEventArgs</attr>
<attr path="/api/package[@name='com.acuant.mobilesdk']/interface[@name='CardCroppingListener']/method[@name='onCardCroppingFinish' and count(parameter)=2 and parameter[1][@type='android.graphics.Bitmap'] and parameter[2][@type='boolean']]"
name="name">CardCroppingFinishWithBool</attr>
<!-- Resolve member names same as type name -->
<attr path="/api/package[@name='com.microblink.config']/class[@name='llIIlIlIIl']/field[@name='llIIlIlIIl']"
name="name">llIIlIlIIlField</attr>
<attr path="/api/package[@name='com.microblink.hardware.camera.strategy']/class[@name='IlIllIlIIl']/field[@name='IlIllIlIIl']"
name="name">llIIlIlIIlField</attr>
<attr path="/api/package[@name='com.microblink.recognition']/class[@name='llIIlIlIIl.llIIlIlIIl']"
name="name">llIIlIlIIlField</attr>
<attr path="/api/package[@name='com.microblink.view.viewfinder']/class[@name='llIIlIlIIl.llIIlIlIIl']"
name="name">llIIlIlIIlField</attr>
<!-- Resolve issues with org.apache.http library. I am assuming for the moment that you do not need to expose this to C# -->
<remove-node path="/api/package[@name='org.apache.http.impl.cookie']/class[@name='AbstractCookieSpec']" />
<remove-node path="/api/package[@name='org.apache.http.conn.params']/class[@name='ConnManagerParams']" />
<!-- Resolve issues with Com.Acuant.Mobilesdk.Task types "does not implement inherited abstract member...". I am assuming for the moment that you do not need to expose this to C#
see https://forums.xamarin.com/discussion/4217/does-not-implement-inherited-abstract-member-how-to-solve-it for more info and if you need these types to be exposed to C#-->
<remove-node path="/api/package[@name='com.acuant.mobilesdk.task']/class[@name='CroppingTaskAuto']" />
<remove-node path="/api/package[@name='com.acuant.mobilesdk.task']/class[@name='CroppingTaskManual']" />
<remove-node path="/api/package[@name='com.acuant.mobilesdk.task']/class[@name='CroppingTaskPDF417']" />
</metadata>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment