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
build(android): rework merging of external library's resources #11094
Conversation
Rework the merging of third party native libraries resources.
Tests:
|
@ypbnv Given that this is an Android fix/improvement, shouldn't this be scheduled for 8.3.0 milestone/release? |
@sgtcoolguy Ah, my bad. I will change it. BTW this change may be irrelevant once we move to using |
android/cli/lib/base-builder.js
Outdated
}); | ||
nodes[node.tagName][n].appendChild(nodeChild.cloneNode(true)); | ||
}); | ||
_t.logger.warn(__('Merging XML node %s in file %s', String(n).cyan, dest.cyan)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has been bothering me for ages, but i think this should be debug
rather than warn
. Also move it back to the top before doing the actual merging otherwise it could cause confusion when something goes wrong during the merge and the last log was for a completely different merge operation.
android/cli/lib/base-builder.js
Outdated
// We have a node with the same name. Merging as follows: | ||
// Nodes with the same name get overwritten to maintain backwards compatiblity. | ||
// Nodes with different name are appended to the parent node. | ||
xml.forEachElement(node, function (nodeChild) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
xml.forEachElement(node, function (nodeChild) { | |
xml.forEachElement(node, function (childNode) { |
@janvennemann Updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CR: Pass
FR Passed. |
JIRA: https://jira.appcelerator.org/browse/TIMOB-27252
Description:
Rework the merging of third party native libraries resources. In order to try to keep backwards compatibility the merging now:
Test case:
There is an archive in the JIRA ticket with a version of a third party native library. Put the AAR files under
app/platform/android
for an Alloy project and build the project.