We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b073e8a commit 657f6f4Copy full SHA for 657f6f4
lib/services/android-plugin-build-service.ts
@@ -38,7 +38,12 @@ export class AndroidPluginBuildService implements IAndroidPluginBuildService {
38
}
39
40
private getShortPluginName(pluginName: string): string {
41
- return pluginName.replace(/[\-]/g, "_");
+ return this.sanitizePluginName(pluginName).replace(/[\-]/g, "_");
42
+ }
43
+
44
+ private sanitizePluginName(pluginName: string): string {
45
+ // avoid long plugin names, exclude the npm module scope (@scope/nativescript-plugin) from the android plugin name
46
+ return pluginName.split("/").pop();
47
48
49
private async updateManifestContent(oldManifestContent: string, defaultPackageName: string): Promise<string> {
0 commit comments