Skip to content

Commit

Permalink
[TIMOB-24834] Adjust value resources pattern for module compatibilty (#…
Browse files Browse the repository at this point in the history
…9374)

The pattern used to detect value resources was only working for Android libraries extracted by Hyperloop. With this fix, resources from both Hyperloop and module provided Android libraries are properly handled.
  • Loading branch information
janvennemann authored and hansemannn committed Aug 30, 2017
1 parent 017da0a commit f47d327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android/cli/lib/base-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ AndroidBaseBuilder.prototype.writeXmlFile = function writeXmlFile(srcOrDoc, dest
} else {
// Resource sets under a qualifier all need to be merged into a single values
// file so we adjust the destination path here if necessary
var valueResourcesPattern = /res\/(values(?:-[^/]+)?)\/.*/i;
var valueResourcesPattern = new RegExp('(values(?:-[^' + path.sep + ']+)?)' + path.sep + '[^' + path.sep + ']+$', 'i');
var match = dest.match(valueResourcesPattern);
if (match !== null) {
var resourceQualifier = match[1];
Expand Down

0 comments on commit f47d327

Please sign in to comment.