Skip to content

Commit

Permalink
Merge pull request #5192 from cb1kenobi/timob-16092_3_2_X
Browse files Browse the repository at this point in the history
[TIMOB-16092] Fixed bug with build dir libs not being copied into final ...
  • Loading branch information
ayeung committed Jan 7, 2014
2 parents 1fe55e7 + 2679897 commit 9c726d0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions android/cli/commands/_build.js
Original file line number Diff line number Diff line change
Expand Up @@ -3817,6 +3817,7 @@ AndroidBuilder.prototype.createUnsignedApk = function createUnsignedApk(next) {
}.bind(this);

try {
// add Titanium native modules
addNativeLibs(path.join(this.platformPath, 'native', 'libs'));
} catch (abi) {
// this should never be called since we already validated this
Expand All @@ -3832,9 +3833,15 @@ AndroidBuilder.prototype.createUnsignedApk = function createUnsignedApk(next) {
process.exit(1);
}

try {
// add native modules from the build dir's "libs" dir
addNativeLibs(path.join(this.buildDir, 'libs'));
} catch (e) {}

this.modules.forEach(function (m) {
if (m.native) {
try {
// add native modules for each module
addNativeLibs(path.join(m.modulePath, 'libs'));
} catch (abi) {
// this should never be called since we already validated this
Expand Down

0 comments on commit 9c726d0

Please sign in to comment.