Uploaded image for project: 'AeroGear'
  1. AeroGear
  2. AEROGEAR-2611

Investigate solutions to inject platform specific code into shared projects

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None
    • Service Team 1 - Sprint 6, Service Team 1 - Sprint 7, Service Team 1 - Sprint 8

      In the Xamarin SDK we have platform independent projects and platform specific projects implementing functions that must use platform-specific features.

      We need a way to be able to reference platform specific implementation from shared code without a hard dependency, so that we can do a sort of "write once, run everywhere".

      The idea is that shared projects host the interface definition of the service, while platform projects will host the concrete implementation.

      When the feature will be ready, the user must be able to get the platform specific implementation with the following code:

      MobileCore.GetInstance<IMyServiceInterface>();
      

              mziccard Massimiliano Ziccardi
              mziccard Massimiliano Ziccardi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: