NativeScript / NativeScript/nativescript-cli

Feature Request: Passing -P params to gradle

Open
#2,481 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature os: android
Dominant language
JavaScript
Stars
1.1k
Forks
204
Avg merge
1d 9h
Merged PRs (30d)
8

Description

When you build for android it calls gradlew, gradle has -Pxxx where xxx is a value to allow you to control what it builds; one item that would be very useful to be able to set is the supportVersion

I would like tns to support passing on something maybe something like --gradle "-PsupportVersion=yyyy -Pblah=zzz -Petc=aaa"

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the tns Android build command and trace where it invokes gradlew and parses command-line options. Determine how user-supplied -P parameters could be forwarded to Gradle, then verify that supportVersion and multiple parameters reach the Android build correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, javascript
Domain
build-system, cli, mobile
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.