mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-31 17:32:51 +08:00
parent
1f06176149
commit
854946e313
4
bin/templates/cordova/Api.js
vendored
4
bin/templates/cordova/Api.js
vendored
@ -66,7 +66,7 @@ function Api(platform, platformRootDir, events) {
|
|||||||
this.locations = {
|
this.locations = {
|
||||||
root: self.root,
|
root: self.root,
|
||||||
www: path.join(self.root, 'assets/www'),
|
www: path.join(self.root, 'assets/www'),
|
||||||
res: path.relative(self.root, path.join(self.root, 'res')),
|
res: path.join(self.root, 'res'),
|
||||||
platformWww: path.join(self.root, 'platform_www'),
|
platformWww: path.join(self.root, 'platform_www'),
|
||||||
configXml: path.join(self.root, 'res/xml/config.xml'),
|
configXml: path.join(self.root, 'res/xml/config.xml'),
|
||||||
defaultConfigXml: path.join(self.root, 'cordova/defaults.xml'),
|
defaultConfigXml: path.join(self.root, 'cordova/defaults.xml'),
|
||||||
@ -85,7 +85,7 @@ function Api(platform, platformRootDir, events) {
|
|||||||
this.locations.strings = path.join(self.root, 'app/src/main/res/xml/strings.xml');
|
this.locations.strings = path.join(self.root, 'app/src/main/res/xml/strings.xml');
|
||||||
this.locations.manifest = path.join(self.root, 'app/src/main/AndroidManifest.xml');
|
this.locations.manifest = path.join(self.root, 'app/src/main/AndroidManifest.xml');
|
||||||
this.locations.www = path.join(self.root, 'app/src/main/assets/www');
|
this.locations.www = path.join(self.root, 'app/src/main/assets/www');
|
||||||
this.locations.res = path.relative(self.root, path.join(self.root, 'app/src/main/res'));
|
this.locations.res = path.join(self.root, 'app/src/main/res');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
8
bin/templates/cordova/lib/prepare.js
vendored
8
bin/templates/cordova/lib/prepare.js
vendored
@ -46,8 +46,8 @@ module.exports.prepare = function (cordovaProject, options) {
|
|||||||
return updateProjectAccordingTo(self._config, self.locations);
|
return updateProjectAccordingTo(self._config, self.locations);
|
||||||
})
|
})
|
||||||
.then(function () {
|
.then(function () {
|
||||||
updateIcons(cordovaProject, self.locations.res);
|
updateIcons(cordovaProject, path.relative(cordovaProject.root, self.locations.res));
|
||||||
updateSplashes(cordovaProject, self.locations.res);
|
updateSplashes(cordovaProject, path.relative(cordovaProject.root, self.locations.res));
|
||||||
})
|
})
|
||||||
.then(function () {
|
.then(function () {
|
||||||
events.emit('verbose', 'Prepared android project successfully');
|
events.emit('verbose', 'Prepared android project successfully');
|
||||||
@ -70,8 +70,8 @@ module.exports.clean = function (options) {
|
|||||||
var self = this;
|
var self = this;
|
||||||
return Q().then(function () {
|
return Q().then(function () {
|
||||||
cleanWww(projectRoot, self.locations);
|
cleanWww(projectRoot, self.locations);
|
||||||
cleanIcons(projectRoot, projectConfig, self.locations.res);
|
cleanIcons(projectRoot, projectConfig, path.relative(projectRoot, self.locations.res));
|
||||||
cleanSplashes(projectRoot, projectConfig, self.locations.res);
|
cleanSplashes(projectRoot, projectConfig, path.relative(projectRoot, self.locations.res));
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user