NativeScript / NativeScript/android

Decalre Gradle settings & wrapper settings

Open
#1,746 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
563
Forks
144
Avg merge
10h 46m
Merged PRs (30d)
14

Description

Is your feature request related to a problem? Please describe.

Good day I am trying to build sample android app (https://github.com/NativeScript/tutorials/tree/main/react-tutorial)
in linux ubuntu without internet but with nexus repo with all libs and distrous for npm\gradle
At that moment i can't understand how to change gradle settings and gradle wrapper setting without manual changing this config files in the catalog platform/android

files changed is
platforms/android/gradle.properties
platforms/android/build.gradle
platforms/android/gradle/wrapper/gradle-wrapper.properties
platforms/android/app/build.gradle

Describe the solution you'd like

If there posibility to declare all settngs for the files discrbed in previous section from catalog App_Resources/Android/ for example

Changes i have made it is setting maven repo, distributionurl for wrapper, and path to the jks keystore with password, because nexus repo have self signed certificate

Describe alternatives you've considered

I was looking info about hooks but did not find good example for my issue

Additional context

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 by reading the Android configuration files named in the issue: platforms/android/gradle.properties, build.gradle, gradle/wrapper/gradle-wrapper.properties, and app/build.gradle, then inspect App_Resources/Android/. Determine how settings such as Maven repositories, the wrapper distribution URL, and keystore values could be declared there; done means generated Android projects use those declarations without manual edits.

Written by the indexing model from the issue text.

Assessment

Tech stack
android
Domain
build-system, mobile-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.