Skip to content
This repository has been archived by the owner on Apr 8, 2021. It is now read-only.

ContactService.Android / iOS purpose #5

Open
agat366 opened this issue Aug 3, 2018 · 4 comments
Open

ContactService.Android / iOS purpose #5

agat366 opened this issue Aug 3, 2018 · 4 comments

Comments

@agat366
Copy link

agat366 commented Aug 3, 2018

Hi!

I am trying to enhance some logic in the plugin, but don't quite understand a purpose of ContactService.Android and iOS projects (from DependencyService) folder as long as implementation of those services (seems) located in ContactService\Shared* corresponding files.

Any hint?

@enisn
Copy link
Owner

enisn commented Aug 4, 2018

@agat366
You can use Nuget Plugin verison of Contacs instead of implementing dependency service to your project.

Download nuget, you can find it from here. and just use that code below:

async void GetContacts() 
{
  var contacts = await Plugin.ContactService.CrossContactService.Current.GetContactListAsync();
  //do something here with contacts.
}

@agat366
Copy link
Author

agat366 commented Aug 4, 2018

Yes. I surely can do that. I am aware of Nuget, thanks. ))
But what I am actually trying to do is to enhance your package, possibly with Pull Request or even Forking as your current code doesn't support extraction of images from iOS.

@nbsoftware
Copy link

I too forked the repo but have no clue (yet) of how to build the full plugin, at least on VS for Mac.
I can build the shared implementation successfully.
But I don't know how to build the platform dependant binaries (iOS & Android), again at least from VS.
Are you using MSBuild command line to build the plugin?

@nbsoftware
Copy link

My bad... I didn't see at first that there was a specific sln file (DependencyService.ContactService.sln).
Now that one doesn' build either...

/work/repositories/github/Xamarin.Forms.Contacts/DependencyService.ContactService/DependencyService.ContactService/CSC: Error CS0006: Metadata file '/work/repositories/github/Xamarin.Forms.Contacts/Plugin/ContactService/bin/Debug/netstandard2.0/Plugin.ContactService.dll' could not be found (CS0006) (DependencyService.ContactService)

Looking...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants