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(cordova): Don't add as system library if it's a vendored library #2729

Merged
merged 2 commits into from
Apr 8, 2020

Conversation

jcesarmobile
Copy link
Member

Only system libraries should be added to libraries section, but since it's hard to know if the library is a system library or not, at least don't include a library in libraries section if it's also on vendored_libraries section

closes #2642

@@ -340,6 +341,11 @@ function filterARCFiles(plugin: Plugin) {
return sourcesARC.length > 0;
}

function removeNoSystem(library: string, sourceFrameworks: Array<string>) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should start preferring this syntax for TS arrays. Thoughts?

Suggested change
function removeNoSystem(library: string, sourceFrameworks: Array<string>) {
function removeNoSystem(library: string, sourceFrameworks: string[]) {

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no preference on one syntax over the other, but yeah, we should decide one or the other and always use the same.
Won't change it for now, but we can do a refactor later that replaces all of them.

@jcesarmobile jcesarmobile merged commit 404574d into ionic-team:master Apr 8, 2020
@jcesarmobile jcesarmobile deleted the remove-no-system branch April 8, 2020 18:45
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.

2 participants