Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Binding a Java Library (Smack)

$
0
0

This is the library which I'm working on: http://www.igniterealtime.org/projects/smack/
These are the libraries included into the project

http://forums.xamarin.com/utility/thumbnail/1351/~cf/FileUpload/70/d8f522c97f1d086a675ccd5d8931ef.png

The build action for each one respectively are
⦁ EmbeddedJar
⦁ EmbeddedReferenceJar
⦁ EmbeddedReferenceJar
⦁ EmbeddedReferenceJar

After do this, we have to fix build issues into Metadata.xml file. At this momment, I've got the following metadata

<metadata>  
    <!-- fixup the namespaces, notice that we have to do onw for each namespace. -->
    <attr path="/api/package[@name='org.jivesoftware']" name="managedName">Jivesoftware</attr>
    <attr path="/api/package[@name='org.jivesoftware.smack']" name="managedName">Jivesoftware.Smack</attr>
    <attr path="/api/package[@name='org.jivesoftware.smack.compression']" name="managedName">Jivesoftware.Smack.Compression</attr>
    <attr path="/api/package[@name='org.jivesoftware.smack.debugger']" name="managedName">Jivesoftware.Smack.Debugger</attr>    
    <attr path="/api/package[@name='org.jivesoftware.smack.filter']" name="managedName">Jivesoftware.Smack.Filter</attr>   
    <attr path="/api/package[@name='org.jivesoftware.smack.keepalive']" name="managedName">Jivesoftware.Smack.KeepAlive</attr>
    <attr path="/api/package[@name='org.jivesoftware.smack.packet']" name="managedName">Jivesoftware.Smack.Packet</attr>
    <attr path="/api/package[@name='org.jivesoftware.smack.ping']" name="managedName">Jivesoftware.Smack.Ping</attr>
    <attr path="/api/package[@name='org.jivesoftware.smack.ping.packet']" name="managedName">Jivesoftware.Smack.Ping.Packet</attr>       
    <attr path="/api/package[@name='org.jivesoftware.smack.ping.provider']" name="managedName">Jivesoftware.Smack.Ping.Provider</attr>   
    <attr path="/api/package[@name='org.jivesoftware.smack.provider']" name="managedName">Jivesoftware.Smack.Provider</attr>
    <attr path="/api/package[@name='org.jivesoftware.smack.proxy']" name="managedName">Jivesoftware.Smack.Proxy</attr>    
    <attr path="/api/package[@name='org.jivesoftware.smack.sasl']" name="managedName">Jivesoftware.Smack.SASL</attr>     
    <attr path="/api/package[@name='org.jivesoftware.smack.util']" name="managedName">Jivesoftware.Smack.Util</attr>
    <attr path="/api/package[@name='org.jivesoftware.smack.util.dns']" name="managedName">Jivesoftware.Smack.Util.Dns</attr>
    <attr path="/api/package[@name='org.jivesoftware.smack.util.collections']" name="managedName">Jivesoftware.Smack.Util.Collections</attr>

        <!-- different scoping rules in .NET, so we make these public -->
        <!-- <attr path="/api/package[@name='org.jivesoftware.smack']/interface[@name='IUserAuthentication']" name="visibility">public</attr> -->
        <attr path="/api/package[@name='org.jivesoftware.smack.util.collections']/class[@name='AbstractHashedMap.EntrySet']" name="visibility">public</attr>
        <attr path="/api/package[@name='org.jivesoftware.smack.util.collections']/class[@name='AbstractReferenceMap.ReferenceEntry']" name="visibility">public</attr>
        <attr path="/api/package[@name='org.jivesoftware.smack.util.collections']/class[@name='AbstractHashedMap.HashEntry']" name="visibility">public</attr>
        <attr path="/api/package[@name='org.jivesoftware.smack.util.collections']/class[@name='AbstractHashedMap.KeySet']" name="visibility">public</attr>
        <attr path="/api/package[@name='org.jivesoftware.smack.util.collections']/class[@name='AbstractHashedMap.Values']" name="visibility">public</attr>
        <attr path="/api/package[@name='org.jivesoftware.smack.util.collections']/class[@name='AbstractEmptyIterator']" name="visibility">public</attr>
</metadata>

But it stills remaining only one error

http://forums.xamarin.com/utility/thumbnail/1352/~cf/FileUpload/2a/4dd72496732d6b914c5edc627a529c.png

C:...\Projects\JavaBinding1\JavaBinding1\obj\Debug\generated\src\Jivesoftware.Smack.SASLAuthentication.cs(97,97): Error CS0234: The type or namespace name 'IUserAuthentication' does not exist in the namespace 'Jivesoftware.Smack' (are you missing an assembly reference?) (CS0234) (JavaBinding1)


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>