pgstath / Sharp.Xmpp

Sharp.Xmpp is looking for a maintainer! Unfortunatelly I do not have currently the time needed to maintain the library. Luckily a small but vibrant community has evolved around Sharp.Xmpp. If you would like to be the project's maintainer please sent an email to pgstath@gmail.com. This should include issues, tickets and commits that you have done for Sharp.Xmpp or other similar project. Sharp.Xmpp is a multiplatform, Windows and Android, .NET XMPP client assembly.Sharp.Xmpp supports IM functionality & a variety of XMPP extensions, is simple and is extensively tested against Android Xamarin. It is a fork of the currently frozen excellent S22.Xmpp project. Sharp.Xmpp will be at the FOSSDEM 2016 Real time DevRoom!
Other
84 stars 51 forks source link

Compatibility with xamarin forms? #62

Open axcl opened 6 years ago

axcl commented 6 years ago

I am creating a chat application. I have successfully added Sharp.XMPP library using Nuget in Xamarin Forms project using Shared Assets cause i came to know that PCL is not supported from one the post on stackoverflow. But i can not use library in my shared code cause i can not reference it there.

Harisankar commented 6 years ago

you can use sharp.comp in Xamarin.Android.

On 12-Nov-2017 6:38 pm, "Ankit" notifications@github.com wrote:

I am creating a chat application. I have successfully added Sharp.XMPP library using Nuget in Xamarin Forms project using Shared Assets cause i came to know that PCL is not supported from one the post on stackoverflow. But i can not use library in my shared code cause i can not reference it there.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pgstath/Sharp.Xmpp/issues/62, or mute the thread https://github.com/notifications/unsubscribe-auth/AAj3GaA9h3XLBKRpSnHX-L3Haz_1CsCbks5s1u3SgaJpZM4Qa3yG .

axcl commented 6 years ago

Then how am i able to use single code base for all platforms.

claudiocleberson commented 6 years ago

@axcl , That library won't run inside a PCL, I faced that problem when I tried to use, but that will not be a problem in a Shared project. once you create a Shared project, you can just create a ChatService.cs and handle the chat logic. There others suggestions like create two individual PCL for Android and iOS. but in my case just the share project was enough. be advise though lots of example on the community for xamarin.forms are made on PCL. that was one of the drawbacks. a part from that, I think that library will be useful. cheers...