How to distribute Xamarin.Mobile code in a cross-platform application

I am working on a cross-platform mobile application, and as I understand it, Xamarin.Mobile was designed to increase code sharing in cross-platform applications. Although I could not put it in PCL. What I got is an implementation on the platform of every aspect of the API (contacts, geolocation, etc.).

Similar links to time files will not work, because the Geolocator constructor (for example only) contains platform-specific arguments (Android.Context in the case of MonoDroid).

How do I talk about Xamarin.Mobile related logic in Monodroid, Monotouch, and WP? Am I missing the concept of Xamarin?

Thank you Alexey Fear

+4
source share
1 answer

Xamarin.Mobile does not currently support portable libraries. It should be reorganized so that it includes interfaces in a portable library and implementations for them in platform-specific libraries.

I don’t know if it was on their roadmap, but it is open source at https://github.com/xamarin/Xamarin.Mobile , so if you feel hard work you can send them a pull request. :)

+6
source

All Articles