mirror of
https://github.com/apache/cordova-android.git
synced 2026-04-23 00:00:09 +08:00
Remove unnecessary stuff (#1015)
* Remove licenses for previously bundled packages * Remove utils module with duplicate function * Remove unused function check_reqs.check_ant * Remove unused test helper
This commit is contained in:
committed by
GitHub
parent
3204b9804b
commit
d86cb99dd5
-12
@@ -98,18 +98,6 @@ module.exports.get_target = function () {
|
||||
return target;
|
||||
};
|
||||
|
||||
// Returns a promise. Called only by build and clean commands.
|
||||
module.exports.check_ant = function () {
|
||||
return execa('ant', ['-version']).then(({ stdout: output }) => {
|
||||
// Parse Ant version from command output
|
||||
return /version ((?:\d+\.)+(?:\d+))/i.exec(output)[1];
|
||||
}).catch(function (err) {
|
||||
if (err) {
|
||||
throw new CordovaError('Failed to run `ant -version`. Make sure you have `ant` on your $PATH.');
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
module.exports.get_gradle_wrapper = function () {
|
||||
var androidStudioPath;
|
||||
var i = 0;
|
||||
|
||||
Reference in New Issue
Block a user