Skip to content

Commit

Permalink
Merge branch '7_0_X' into TIMOB-25565_70X
Browse files Browse the repository at this point in the history
  • Loading branch information
ssjsamir committed Jan 9, 2018
2 parents acf75ed + 556ec92 commit aeeb64b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion android/cli/commands/_buildModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,15 @@ AndroidModuleBuilder.prototype.loginfo = function loginfo(next) {

AndroidModuleBuilder.prototype.cleanup = function cleanup(next) {
fs.emptyDirSync(this.buildDir);
fs.emptyDirSync(this.libsDir);

// remove old module libraries
fs.existsSync(this.libsDir) && this.dirWalker(this.libsDir, function (file) {
const libExp = new RegExp('lib' + this.manifest.moduleid + '.so$', 'i');
if (libExp.test(file) && fs.existsSync(file)) {
this.logger.debug(__('Removing %s', file.cyan));
fs.removeSync(file);
}
}.bind(this));

this.requiredArchitectures.forEach(function (architecture) {
fs.mkdirsSync(path.join(this.libsDir, architecture));
Expand Down

0 comments on commit aeeb64b

Please sign in to comment.