René's URL Explorer Experiment


Title: feat(android): per-plugin build options, with aarSuffix to break name clashes by farfromrefug · Pull Request #6132 · NativeScript/nativescript-cli · GitHub

Open Graph Title: feat(android): per-plugin build options, with aarSuffix to break name clashes by farfromrefug · Pull Request #6132 · NativeScript/nativescript-cli

X Title: feat(android): per-plugin build options, with aarSuffix to break name clashes by farfromrefug · Pull Request #6132 · NativeScript/nativescript-cli

Description: The problem getShortPluginName drops the npm scope: sanitizePluginName(pluginName).replace(/[\-]/g, "_") // "@foo/plugin-x" -> "plugin_x" That name becomes the temp build directory, the produced .aar and the android namespace fallback. Two plugins from different scopes with the same package name — @foo/plugin-x and @bar/plugin-x — both build a plugin_x.aar, and which one gradle ends up linking depends on build order. What A project can give one of them a suffix: // nativescript.config.ts export default { android: { plugins: { "@bar/plugin-x": { aarSuffix: "-bar" }, }, }, } satisfies NativeScriptConfig; @bar/plugin-x now builds plugin_x_bar.aar and stops colliding. android.plugins is a map keyed by npm package name whose entries are spread into the options buildAar receives, so it is also where future per-plugin build settings can go. aarSuffix is the only key it carries today. Details The suffix is appended to the plugin name before it is shortened, so it goes through the same sanitizing as the rest of the name. setupGradle used to recompute getShortPluginName(pluginName) for the namespace fallback (org.nativescript.), which would have kept colliding. It now takes the already-computed name as a parameter, so the temp directory, the .aar and the namespace all agree. Nothing changes for a project that does not set plugins — the suffix defaults to empty and the name is exactly what it was. Not covered ns plugin build does not read the config: it runs inside a plugin's own directory, where there is no consuming app to declare a suffix. The option is on IPluginBuildOptions, so a hook can still set it there. Tests npm test — 1858 passing. The childProcess stub in test/services/android-plugin-build-service.ts now derives the built .aar name from the plugin directory gradle was pointed at instead of assuming it, which let me add two cases: the default name, and the name with aarSuffix applied. Notes From https://github.com/Akylas/nativescript-cli. Independent of #6129, #6130 and #6131, though #6129 also touches IAndroidBuildOptions.gradleArgs and the options object in android-project-service — expect a small textual conflict depending on merge order. Summary by CodeRabbit New Features Added optional Android plugin configuration for customizing generated .aar filenames with a suffix. Supports per-plugin suffixes to prevent naming conflicts between similarly named plugins. Bug Fixes Improved Android plugin build output naming to consistently honor configured suffixes and plugin paths.

Open Graph Description: The problem getShortPluginName drops the npm scope: sanitizePluginName(pluginName).replace(/[\-]/g, "_") // "@foo/plugin-x" -> "plugin_x" That name becomes the tem...

X Description: The problem getShortPluginName drops the npm scope: sanitizePluginName(pluginName).replace(/[\-]/g, "_") // "@foo/plugin-x" -> "plugin_x&quo...

Opengraph URL: https://github.com/NativeScript/nativescript-cli/pull/6132

X: @github

direct link

Domain: redirect.github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:bca380f8-4197-d07d-588a-02f823817d51
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id85B8:2270F4:26783EC:3315E7E:6B01A432
html-safe-nonce5e7e51b2b9683512a8e69521170f5ec9c71243f6d0f14783441a8ea679523684
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NUI4OjIyNzBGNDoyNjc4M0VDOjMzMTVFN0U6NkIwMUE0MzIiLCJ2aXNpdG9yX2lkIjoiNjY0NTY0MzMwNTk0ODM5MDQ1MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac3de9a34839b01d10b750a505baf07559caf34ce5b91fe2546f2a68952f67d8a9
hovercard-subject-tagpull_request:4308113617
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/NativeScript/nativescript-cli/pull/6132/files
twitter:imagehttps://avatars.githubusercontent.com/u/655344?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/655344?s=400&v=4
og:image:altThe problem getShortPluginName drops the npm scope: sanitizePluginName(pluginName).replace(/[\-]/g, "_") // "@foo/plugin-x" -> "plugin_x" That name becomes the tem...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/NativeScript/nativescript-cli git https://github.com/NativeScript/nativescript-cli.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id21347346
octolytics-dimension-repository_nwoNativeScript/nativescript-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id21347346
octolytics-dimension-repository_network_root_nwoNativeScript/nativescript-cli
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files#start-of-content
https://redirect.github.com/
Sign inhttps://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fnativescript-cli%2Fpull%2F6132%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fnativescript-cli%2Fpull%2F6132%2Ffiles
Sign uphttps://redirect.github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=NativeScript%2Fnativescript-cli
Reloadhttps://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files
Reloadhttps://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files
Reloadhttps://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files
NativeScripthttps://redirect.github.com/NativeScript
nativescript-clihttps://redirect.github.com/NativeScript/nativescript-cli
Codehttps://redirect.github.com/NativeScript/nativescript-cli
Issues357 (357)https://redirect.github.com/NativeScript/nativescript-cli/issues
Pull requests38 (38)https://redirect.github.com/NativeScript/nativescript-cli/pulls
Actionshttps://redirect.github.com/NativeScript/nativescript-cli/actions
Projectshttps://redirect.github.com/NativeScript/nativescript-cli/projects
Security and qualityhttps://redirect.github.com/NativeScript/nativescript-cli/security
Insightshttps://redirect.github.com/NativeScript/nativescript-cli/insights
Sign up for GitHub https://redirect.github.com/signup?return_to=%2FNativeScript%2Fnativescript-cli%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://redirect.github.com/login?return_to=%2FNativeScript%2Fnativescript-cli%2Fissues%2Fnew%2Fchoose
farfromrefughttps://redirect.github.com/farfromrefug
NativeScript:mainhttps://redirect.github.com/NativeScript/nativescript-cli/tree/main
Akylas:feat/plugin-build-optionshttps://redirect.github.com/Akylas/nativescript-cli/tree/feat/plugin-build-options
Conversation 1 https://redirect.github.com/NativeScript/nativescript-cli/pull/6132
Commits 1 https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/commits
Checks 11 https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/checks
Files changed https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files
Please reload this pagehttps://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files
feat(android): per-plugin build options, with aarSuffix to break name clashes https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files#top
Show all changes 1 commit https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files
bc7375b feat(android): per-plugin build options, with aarSuffix to break name… farfromrefug Aug 18, 2026 https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/commits/bc7375b506e7c78c90bfb3b42066a49a5995b512
Clear filters https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files
Please reload this pagehttps://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files
Please reload this pagehttps://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files
android-plugin-migrator.d.ts https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files#diff-35501e2931eaee4045fe9800d27597e3c1e31cb3c1a1848c7366fa51942f752a
project.d.ts https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files#diff-1a8d705894e0644814b9ccb9e2f271c53427dcad1d0036aeb470dd2bca9aeaf8
android-plugin-build-service.ts https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files#diff-59b6842fdcf0d4de31f543c0644c2f55ac000d70ee9031c772116e149ed15664
android-project-service.ts https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files#diff-cc87259033e9377285616a13cbe198cd3bf42d79a9c6f63ce1642a9f03486415
android-plugin-build-service.ts https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files#diff-7bc9a24c86b1e6aa86d4c01fb81bc8f2a00f09697292fdae7959e50cf9102add
lib/definitions/android-plugin-migrator.d.tshttps://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files#diff-35501e2931eaee4045fe9800d27597e3c1e31cb3c1a1848c7366fa51942f752a
View file https://redirect.github.com/NativeScript/nativescript-cli/blob/bc7375b506e7c78c90bfb3b42066a49a5995b512/lib/definitions/android-plugin-migrator.d.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/{{ revealButtonHref }}
https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files#diff-35501e2931eaee4045fe9800d27597e3c1e31cb3c1a1848c7366fa51942f752a
https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files#diff-35501e2931eaee4045fe9800d27597e3c1e31cb3c1a1848c7366fa51942f752a
lib/definitions/project.d.tshttps://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files#diff-1a8d705894e0644814b9ccb9e2f271c53427dcad1d0036aeb470dd2bca9aeaf8
View file https://redirect.github.com/NativeScript/nativescript-cli/blob/bc7375b506e7c78c90bfb3b42066a49a5995b512/lib/definitions/project.d.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/{{ revealButtonHref }}
https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files#diff-1a8d705894e0644814b9ccb9e2f271c53427dcad1d0036aeb470dd2bca9aeaf8
https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files#diff-1a8d705894e0644814b9ccb9e2f271c53427dcad1d0036aeb470dd2bca9aeaf8
https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files#diff-1a8d705894e0644814b9ccb9e2f271c53427dcad1d0036aeb470dd2bca9aeaf8
https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files#diff-1a8d705894e0644814b9ccb9e2f271c53427dcad1d0036aeb470dd2bca9aeaf8
lib/services/android-plugin-build-service.tshttps://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files#diff-59b6842fdcf0d4de31f543c0644c2f55ac000d70ee9031c772116e149ed15664
View file https://redirect.github.com/NativeScript/nativescript-cli/blob/bc7375b506e7c78c90bfb3b42066a49a5995b512/lib/services/android-plugin-build-service.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/{{ revealButtonHref }}
https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files#diff-59b6842fdcf0d4de31f543c0644c2f55ac000d70ee9031c772116e149ed15664
https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files#diff-59b6842fdcf0d4de31f543c0644c2f55ac000d70ee9031c772116e149ed15664
https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files#diff-59b6842fdcf0d4de31f543c0644c2f55ac000d70ee9031c772116e149ed15664
https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files#diff-59b6842fdcf0d4de31f543c0644c2f55ac000d70ee9031c772116e149ed15664
https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files#diff-59b6842fdcf0d4de31f543c0644c2f55ac000d70ee9031c772116e149ed15664
https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files#diff-59b6842fdcf0d4de31f543c0644c2f55ac000d70ee9031c772116e149ed15664
https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files#diff-59b6842fdcf0d4de31f543c0644c2f55ac000d70ee9031c772116e149ed15664
lib/services/android-project-service.tshttps://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files#diff-cc87259033e9377285616a13cbe198cd3bf42d79a9c6f63ce1642a9f03486415
View file https://redirect.github.com/NativeScript/nativescript-cli/blob/bc7375b506e7c78c90bfb3b42066a49a5995b512/lib/services/android-project-service.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/{{ revealButtonHref }}
https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files#diff-cc87259033e9377285616a13cbe198cd3bf42d79a9c6f63ce1642a9f03486415
https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files#diff-cc87259033e9377285616a13cbe198cd3bf42d79a9c6f63ce1642a9f03486415
https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files#diff-cc87259033e9377285616a13cbe198cd3bf42d79a9c6f63ce1642a9f03486415
test/services/android-plugin-build-service.tshttps://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files#diff-7bc9a24c86b1e6aa86d4c01fb81bc8f2a00f09697292fdae7959e50cf9102add
View file https://redirect.github.com/NativeScript/nativescript-cli/blob/bc7375b506e7c78c90bfb3b42066a49a5995b512/test/services/android-plugin-build-service.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/{{ revealButtonHref }}
https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files#diff-7bc9a24c86b1e6aa86d4c01fb81bc8f2a00f09697292fdae7959e50cf9102add
https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files#diff-7bc9a24c86b1e6aa86d4c01fb81bc8f2a00f09697292fdae7959e50cf9102add
https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files#diff-7bc9a24c86b1e6aa86d4c01fb81bc8f2a00f09697292fdae7959e50cf9102add
https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files#diff-7bc9a24c86b1e6aa86d4c01fb81bc8f2a00f09697292fdae7959e50cf9102add
https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files#diff-7bc9a24c86b1e6aa86d4c01fb81bc8f2a00f09697292fdae7959e50cf9102add
https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files#diff-7bc9a24c86b1e6aa86d4c01fb81bc8f2a00f09697292fdae7959e50cf9102add
https://redirect.github.com/NativeScript/nativescript-cli/pull/6132/files#diff-7bc9a24c86b1e6aa86d4c01fb81bc8f2a00f09697292fdae7959e50cf9102add
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.