Skip to content

fix(plugin-build): strip npm scope names from android plugin names #3448

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 13, 2018

Conversation

petekanev
Copy link
Contributor

@petekanev petekanev commented Mar 12, 2018

Don't merge before: telerik/mobile-cli-lib#1063

Problem:
Plugins contained within an npm scope, like @nota/nativescript-accessibility-ext fail to build because their android plugin name becomes @nota/nativescript-accessibility-ext, both @ and / are illegal characters in an Android package name.

Proposed solution:
Split the plugin name string by a forward slash (/) and take the last element, effectively removing all forward slashes, and omitting the npm scope name, if any.

@Plamen5kov
Copy link
Contributor

run CI

@Plamen5kov Plamen5kov force-pushed the pete/rebuild-aar-patch2 branch from 0674e65 to 54a5c73 Compare March 13, 2018 08:59
@Plamen5kov Plamen5kov force-pushed the pete/rebuild-aar-patch2 branch from 360e276 to 19c178c Compare March 13, 2018 09:08
@Plamen5kov Plamen5kov force-pushed the pete/rebuild-aar-patch2 branch from 19c178c to 70574a5 Compare March 13, 2018 11:30
@Plamen5kov Plamen5kov merged commit 8292188 into master Mar 13, 2018
@Plamen5kov Plamen5kov deleted the pete/rebuild-aar-patch2 branch March 13, 2018 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants