René's URL Explorer Experiment


Title: feat(android): --gradleFlavor to build a product flavor by farfromrefug · Pull Request #6133 · NativeScript/nativescript-cli · GitHub

Open Graph Title: feat(android): --gradleFlavor to build a product flavor by farfromrefug · Pull Request #6133 · NativeScript/nativescript-cli

X Title: feat(android): --gradleFlavor to build a product flavor by farfromrefug · Pull Request #6133 · NativeScript/nativescript-cli

Description: What An app that declares product flavors in its gradle configuration has no way to tell the CLI which one to build. The task name is built as: const baseTaskName = buildData.androidBundle ? "bundle" : "assemble"; so the CLI always asks for assembleDebug/assembleRelease — which gradle rejects once flavors exist, because there is no flavourless variant to assemble. --gradleFlavor foo inserts the flavor into the task name: ns build android --gradleFlavor foo --release # assembleFooRelease ns run android --gradleFlavor foo # assembleFooDebug ns build android --gradleFlavor foo --aab # bundleFooRelease The flavor is capitalized to match gradle's task naming, and a flavor that is already capitalized is left alone. Build output No special handling needed. A flavored build lands in build/outputs/apk// with a name like app-foo-debug.apk. getAllAppPackages already falls back to a recursive walk of the output directory, and the android getValidBuildOutputData regex is (|app)-.*-(Debug|Release)(-unsigned)?\.apk which matches the flavored name as is. Tests npm test — 1860 passing. Added cases in test/services/android/gradle-build-args-service.ts for the debug, release, app bundle and already-capitalized forms. Notes From https://github.com/Akylas/nativescript-cli. Independent of #6129, #6130, #6131 and #6132, though it adds an option next to gradlePath in lib/options.ts like some of those do — expect a small textual conflict depending on merge order.

Open Graph Description: What An app that declares product flavors in its gradle configuration has no way to tell the CLI which one to build. The task name is built as: const baseTaskName = buildData.androidBundle ? "...

X Description: What An app that declares product flavors in its gradle configuration has no way to tell the CLI which one to build. The task name is built as: const baseTaskName = buildData.androidBundle ? &q...

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

X: @github

direct link

Domain: 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:f9f644d4-729a-8184-ab40-a67b2df8b384
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9EF8:154D88:D7CED8:1131061:6B0140EE
html-safe-nonce21aa7901c1dcf198a0cf6842525e0b926fea063eeda68e08aabe0f035fc02f92
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RUY4OjE1NEQ4ODpEN0NFRDg6MTEzMTA2MTo2QjAxNDBFRSIsInZpc2l0b3JfaWQiOiIzMzk2MzU3MTgwNTE2MDI0NTU4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac2e99a0a353d764329a3fd6319388f27a5f670241e596812d08f6980058598241
hovercard-subject-tagpull_request:4308127273
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/6133/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:altWhat An app that declares product flavors in its gradle configuration has no way to tell the CLI which one to build. The task name is built as: const baseTaskName = buildData.androidBundle ? "...
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://github.com/NativeScript/nativescript-cli/pull/6133/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fnativescript-cli%2Fpull%2F6133%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://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fnativescript-cli%2Fpull%2F6133%2Ffiles
Sign uphttps://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://github.com/NativeScript/nativescript-cli/pull/6133/files
Reloadhttps://github.com/NativeScript/nativescript-cli/pull/6133/files
Reloadhttps://github.com/NativeScript/nativescript-cli/pull/6133/files
NativeScripthttps://github.com/NativeScript
nativescript-clihttps://github.com/NativeScript/nativescript-cli
Codehttps://github.com/NativeScript/nativescript-cli
Issues357 (357)https://github.com/NativeScript/nativescript-cli/issues
Pull requests37 (37)https://github.com/NativeScript/nativescript-cli/pulls
Actionshttps://github.com/NativeScript/nativescript-cli/actions
Projectshttps://github.com/NativeScript/nativescript-cli/projects
Security and qualityhttps://github.com/NativeScript/nativescript-cli/security
Insightshttps://github.com/NativeScript/nativescript-cli/insights
Sign up for GitHub https://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://github.com/login?return_to=%2FNativeScript%2Fnativescript-cli%2Fissues%2Fnew%2Fchoose
NathanWalkerhttps://github.com/NathanWalker
NativeScript:mainhttps://github.com/NativeScript/nativescript-cli/tree/main
Akylas:feat/gradle-flavorhttps://github.com/Akylas/nativescript-cli/tree/feat/gradle-flavor
Conversation 1 https://github.com/NativeScript/nativescript-cli/pull/6133
Commits 1 https://github.com/NativeScript/nativescript-cli/pull/6133/commits
Checks 11 https://github.com/NativeScript/nativescript-cli/pull/6133/checks
Files changed https://github.com/NativeScript/nativescript-cli/pull/6133/files
Please reload this pagehttps://github.com/NativeScript/nativescript-cli/pull/6133/files
feat(android): --gradleFlavor to build a product flavor https://github.com/NativeScript/nativescript-cli/pull/6133/files#top
Show all changes 1 commit https://github.com/NativeScript/nativescript-cli/pull/6133/files
c6a6a97 feat(android): --gradleFlavor to build a product flavor farfromrefug Aug 18, 2026 https://github.com/NativeScript/nativescript-cli/pull/6133/commits/c6a6a97fb083e1c1d154369ec9539b833079de62
Clear filters https://github.com/NativeScript/nativescript-cli/pull/6133/files
Please reload this pagehttps://github.com/NativeScript/nativescript-cli/pull/6133/files
Please reload this pagehttps://github.com/NativeScript/nativescript-cli/pull/6133/files
build-android.md https://github.com/NativeScript/nativescript-cli/pull/6133/files#diff-18d14212a5eb87e324e71666de06345df6dc1b309a7ebff1904d8b6a2b3bb008
debug-android.md https://github.com/NativeScript/nativescript-cli/pull/6133/files#diff-45d9df2629a91991e5eca5a112eb365751b0b8d3b175035befd2a23af844d4f9
run-android.md https://github.com/NativeScript/nativescript-cli/pull/6133/files#diff-cdc6c5f40e3b6501e160f7dc5c8ce121a3be3b8ad80d6eb21dd701bc3ac6e1f7
build-data.ts https://github.com/NativeScript/nativescript-cli/pull/6133/files#diff-b82542140396ff5c6d831ed659f629289eb42b63510ef6941ab9669803185520
declarations.d.ts https://github.com/NativeScript/nativescript-cli/pull/6133/files#diff-d1fe78194de7de3a72a6e8ce229d84fe5e32344138b32b86e1f542f0617e5aee
build.d.ts https://github.com/NativeScript/nativescript-cli/pull/6133/files#diff-4d9a41790141e51c1081a95a46cfbcb4daccef6f16dcb32b4986667834ba77d1
options.ts https://github.com/NativeScript/nativescript-cli/pull/6133/files#diff-7aa514e8766689bfea8a2264cb7dfc9140125a8b34e7eb5876b542ed6e1b3add
gradle-build-args-service.ts https://github.com/NativeScript/nativescript-cli/pull/6133/files#diff-f06591a2eb4e8c6f1ddb959a3bf4895449faee9e8f63a005bbc0eb83a60dfe53
gradle-build-args-service.ts https://github.com/NativeScript/nativescript-cli/pull/6133/files#diff-c6d4105d754dd3f11a4257160b98e9c4c32ec49342e4857e1f0e7c937874c2c4
docs/man_pages/project/testing/build-android.mdhttps://github.com/NativeScript/nativescript-cli/pull/6133/files#diff-18d14212a5eb87e324e71666de06345df6dc1b309a7ebff1904d8b6a2b3bb008
View file https://github.com/Akylas/nativescript-cli/blob/c6a6a97fb083e1c1d154369ec9539b833079de62/docs/man_pages/project/testing/build-android.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/nativescript-cli/pull/6133/{{ revealButtonHref }}
https://github.com/NativeScript/nativescript-cli/pull/6133/files#diff-18d14212a5eb87e324e71666de06345df6dc1b309a7ebff1904d8b6a2b3bb008
https://github.com/NativeScript/nativescript-cli/pull/6133/files#diff-18d14212a5eb87e324e71666de06345df6dc1b309a7ebff1904d8b6a2b3bb008
docs/man_pages/project/testing/debug-android.mdhttps://github.com/NativeScript/nativescript-cli/pull/6133/files#diff-45d9df2629a91991e5eca5a112eb365751b0b8d3b175035befd2a23af844d4f9
View file https://github.com/Akylas/nativescript-cli/blob/c6a6a97fb083e1c1d154369ec9539b833079de62/docs/man_pages/project/testing/debug-android.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/nativescript-cli/pull/6133/{{ revealButtonHref }}
https://github.com/NativeScript/nativescript-cli/pull/6133/files#diff-45d9df2629a91991e5eca5a112eb365751b0b8d3b175035befd2a23af844d4f9
https://github.com/NativeScript/nativescript-cli/pull/6133/files#diff-45d9df2629a91991e5eca5a112eb365751b0b8d3b175035befd2a23af844d4f9
docs/man_pages/project/testing/run-android.mdhttps://github.com/NativeScript/nativescript-cli/pull/6133/files#diff-cdc6c5f40e3b6501e160f7dc5c8ce121a3be3b8ad80d6eb21dd701bc3ac6e1f7
View file https://github.com/Akylas/nativescript-cli/blob/c6a6a97fb083e1c1d154369ec9539b833079de62/docs/man_pages/project/testing/run-android.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/nativescript-cli/pull/6133/{{ revealButtonHref }}
https://github.com/NativeScript/nativescript-cli/pull/6133/files#diff-cdc6c5f40e3b6501e160f7dc5c8ce121a3be3b8ad80d6eb21dd701bc3ac6e1f7
https://github.com/NativeScript/nativescript-cli/pull/6133/files#diff-cdc6c5f40e3b6501e160f7dc5c8ce121a3be3b8ad80d6eb21dd701bc3ac6e1f7
lib/data/build-data.tshttps://github.com/NativeScript/nativescript-cli/pull/6133/files#diff-b82542140396ff5c6d831ed659f629289eb42b63510ef6941ab9669803185520
View file https://github.com/Akylas/nativescript-cli/blob/c6a6a97fb083e1c1d154369ec9539b833079de62/lib/data/build-data.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/nativescript-cli/pull/6133/{{ revealButtonHref }}
https://github.com/NativeScript/nativescript-cli/pull/6133/files#diff-b82542140396ff5c6d831ed659f629289eb42b63510ef6941ab9669803185520
https://github.com/NativeScript/nativescript-cli/pull/6133/files#diff-b82542140396ff5c6d831ed659f629289eb42b63510ef6941ab9669803185520
https://github.com/NativeScript/nativescript-cli/pull/6133/files#diff-b82542140396ff5c6d831ed659f629289eb42b63510ef6941ab9669803185520
lib/declarations.d.tshttps://github.com/NativeScript/nativescript-cli/pull/6133/files#diff-d1fe78194de7de3a72a6e8ce229d84fe5e32344138b32b86e1f542f0617e5aee
View file https://github.com/Akylas/nativescript-cli/blob/c6a6a97fb083e1c1d154369ec9539b833079de62/lib/declarations.d.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/nativescript-cli/pull/6133/{{ revealButtonHref }}
https://github.com/NativeScript/nativescript-cli/pull/6133/files#diff-d1fe78194de7de3a72a6e8ce229d84fe5e32344138b32b86e1f542f0617e5aee
https://github.com/NativeScript/nativescript-cli/pull/6133/files#diff-d1fe78194de7de3a72a6e8ce229d84fe5e32344138b32b86e1f542f0617e5aee
lib/definitions/build.d.tshttps://github.com/NativeScript/nativescript-cli/pull/6133/files#diff-4d9a41790141e51c1081a95a46cfbcb4daccef6f16dcb32b4986667834ba77d1
View file https://github.com/Akylas/nativescript-cli/blob/c6a6a97fb083e1c1d154369ec9539b833079de62/lib/definitions/build.d.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/nativescript-cli/pull/6133/{{ revealButtonHref }}
https://github.com/NativeScript/nativescript-cli/pull/6133/files#diff-4d9a41790141e51c1081a95a46cfbcb4daccef6f16dcb32b4986667834ba77d1
https://github.com/NativeScript/nativescript-cli/pull/6133/files#diff-4d9a41790141e51c1081a95a46cfbcb4daccef6f16dcb32b4986667834ba77d1
lib/options.tshttps://github.com/NativeScript/nativescript-cli/pull/6133/files#diff-7aa514e8766689bfea8a2264cb7dfc9140125a8b34e7eb5876b542ed6e1b3add
View file https://github.com/Akylas/nativescript-cli/blob/c6a6a97fb083e1c1d154369ec9539b833079de62/lib/options.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/nativescript-cli/pull/6133/{{ revealButtonHref }}
https://github.com/NativeScript/nativescript-cli/pull/6133/files#diff-7aa514e8766689bfea8a2264cb7dfc9140125a8b34e7eb5876b542ed6e1b3add
https://github.com/NativeScript/nativescript-cli/pull/6133/files#diff-7aa514e8766689bfea8a2264cb7dfc9140125a8b34e7eb5876b542ed6e1b3add
lib/services/android/gradle-build-args-service.tshttps://github.com/NativeScript/nativescript-cli/pull/6133/files#diff-f06591a2eb4e8c6f1ddb959a3bf4895449faee9e8f63a005bbc0eb83a60dfe53
View file https://github.com/Akylas/nativescript-cli/blob/c6a6a97fb083e1c1d154369ec9539b833079de62/lib/services/android/gradle-build-args-service.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/nativescript-cli/pull/6133/{{ revealButtonHref }}
https://github.com/NativeScript/nativescript-cli/pull/6133/files#diff-f06591a2eb4e8c6f1ddb959a3bf4895449faee9e8f63a005bbc0eb83a60dfe53
https://github.com/NativeScript/nativescript-cli/pull/6133/files#diff-f06591a2eb4e8c6f1ddb959a3bf4895449faee9e8f63a005bbc0eb83a60dfe53
test/services/android/gradle-build-args-service.tshttps://github.com/NativeScript/nativescript-cli/pull/6133/files#diff-c6d4105d754dd3f11a4257160b98e9c4c32ec49342e4857e1f0e7c937874c2c4
View file https://github.com/Akylas/nativescript-cli/blob/c6a6a97fb083e1c1d154369ec9539b833079de62/test/services/android/gradle-build-args-service.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/nativescript-cli/pull/6133/{{ revealButtonHref }}
https://github.com/NativeScript/nativescript-cli/pull/6133/files#diff-c6d4105d754dd3f11a4257160b98e9c4c32ec49342e4857e1f0e7c937874c2c4
https://github.com/NativeScript/nativescript-cli/pull/6133/files#diff-c6d4105d754dd3f11a4257160b98e9c4c32ec49342e4857e1f0e7c937874c2c4
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.