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

Fix Xamarin Incompatibility #41

Merged
merged 1 commit into from
Oct 25, 2019
Merged

Fix Xamarin Incompatibility #41

merged 1 commit into from
Oct 25, 2019

Conversation

aweck
Copy link
Contributor

@aweck aweck commented Oct 25, 2019

Fix Xamarin Incompatibility

When I try to convert the library to Xamarin, I have a small issue with access modifiers. I think C# is a little more strict than java on this, but the issue is that if an abstract method is protected, an override must be protected or private. It can't be made public. In the Transcoder library, DefaultDataSource.applyExtractor and DefaultDataSource.applyRetriever are protected, but all the overrides are public. This PR makes the base class abstract methods public to remove the issue.

@natario1
Copy link
Owner

Sorry to bother, but can you make the overrides protected instead? It makes much more sense. Thanks for spotting this

@aweck
Copy link
Contributor Author

aweck commented Oct 25, 2019

No problem at all, I can definitely do that. Thanks for taking a look!

@aweck
Copy link
Contributor Author

aweck commented Oct 25, 2019

Sorry, I need to clean up this commit history. Working on it.

When I try to convert the library to Xamarin, I have a small issue with access modifiers. I think C# is a little more strict than java on this, but the issue is that if an abstract method is protected, an override must be protected or private. It can't be made public. In the Transcoder library, DefaultDataSource.applyExtractor and DefaultDataSource.applyRetriever are protected, but all the overrides are public. This PR makes the subclass methods protected to remove the issue.
@aweck
Copy link
Contributor Author

aweck commented Oct 25, 2019

Alright, all fixed up. Updated these files and the commit message.

@natario1 natario1 changed the title Update DefaultDataSource.java Fix Xamarin Incompatibility Oct 25, 2019
@natario1 natario1 merged commit 103ce76 into natario1:master Oct 25, 2019
@natario1
Copy link
Owner

Thank you @aweck !

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

Successfully merging this pull request may close these issues.

None yet

2 participants