Skip to content

Commit 01e45ff

Browse files
FatmeFatme
authored andcommitted
Merge pull request #804 from NativeScript/fatme/android-project-update
Execute android project update in addLibrary
2 parents cfc4c33 + 8e0f15d commit 01e45ff

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/services/android-project-service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ class AndroidProjectService extends projectServiceBaseLib.PlatformProjectService
243243
let libProjProp = path.join(libraryPath, "project.properties");
244244
if (this.$fs.exists(libProjProp).wait()) {
245245
this.updateProjectReferences(this.platformData.projectRoot, targetLibPath).wait();
246+
this.runAndroidUpdate(targetLibPath, this.getTarget(this.platformData.projectRoot).wait()).wait();
246247
}
247248
}).future<void>()();
248249
}

lib/services/plugins-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export class PluginsService implements IPluginsService {
184184
let pluginData: any = {};
185185
pluginData.name = cacheData.name;
186186
pluginData.version = cacheData.version;
187-
pluginData.fullPath = path.dirname(this.getPackageJsonFilePathForModule(cacheData.name));
187+
pluginData.fullPath = cacheData.directory || path.dirname(this.getPackageJsonFilePathForModule(cacheData.name));
188188
pluginData.isPlugin = !!cacheData.nativescript;
189189
pluginData.pluginPlatformsFolderPath = (platform: string) => path.join(pluginData.fullPath, "platforms", platform);
190190

0 commit comments

Comments
 (0)