Skip to content

Commit 381f32f

Browse files
committed
ng-sample remove stale widgets.jar
1 parent 3bc9ea5 commit 381f32f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
var path = require('path');
2+
var shelljs = require('shelljs');
3+
4+
module.exports = function ($logger, $projectData, $usbLiveSyncService) {
5+
if (!$usbLiveSyncService.isInitialized) {
6+
// Delete stale widgets.jar brought by old Android platforms.
7+
// TODO: Remove this after version 1.6.0 of the Android runtime gets released
8+
var jars = shelljs.find('platforms/android').filter(function(fileName){
9+
return fileName.match(/widgets.jar$/);
10+
});
11+
jars.forEach(function(jarFile) {
12+
console.log('Deleting stale jar file: ' + jarFile);
13+
shelljs.rm(jarFile);
14+
});
15+
}
16+
};

0 commit comments

Comments
 (0)