Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve.cs #2446

Closed
tofutim opened this issue Dec 7, 2017 · 2 comments
Closed

Preserve.cs #2446

tofutim opened this issue Dec 7, 2017 · 2 comments

Comments

@tofutim
Copy link
Contributor

tofutim commented Dec 7, 2017

A quick question about Preserve.cs. I noticed that it is included by linking in every Plugin. Why is this? Is there a reason why we don't just call it from somewhere? Do I need to do this on my own plugins?

@kjeremy
Copy link
Contributor

kjeremy commented Dec 7, 2017

It's so that the methods don't get linked out.

See for example https://developer.xamarin.com/guides/android/advanced_topics/linking/#Preserving_Code

@kjeremy kjeremy closed this as completed Dec 7, 2017
@tofutim
Copy link
Contributor Author

tofutim commented Dec 7, 2017

Thank you Jeremy, I was wondering if the Preserve.cs had to be linked in or if I can just be referenced from elsewhere, say MvvmCross.Platform.

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

No branches or pull requests

2 participants