feat: support adding project build script dependencies

This commit is contained in:
Erisu
2026-05-12 13:02:42 +09:00
parent a1f75a3e95
commit 8d20f842a3
5 changed files with 56 additions and 2 deletions
+14
View File
@@ -124,6 +124,20 @@ class AndroidProject {
this._dirty = true;
}
addAppBuildScriptDependency (parentDir, value) {
const parentProjectFile = path.resolve(parentDir, 'project.properties');
const parentProperties = this._getPropertiesFile(parentProjectFile);
addToPropertyList(parentProperties, 'cordova.appbuildscript.dependency', value);
this._dirty = true;
}
removeAppBuildScriptDependency (parentDir, value) {
const parentProjectFile = path.resolve(parentDir, 'project.properties');
const parentProperties = this._getPropertiesFile(parentProjectFile);
removeFromPropertyList(parentProperties, 'cordova.appbuildscript.dependency', value);
this._dirty = true;
}
addSystemLibrary (parentDir, value) {
const parentProjectFile = path.resolve(parentDir, 'project.properties');
const parentProperties = this._getPropertiesFile(parentProjectFile);