NativeScript / NativeScript/android

Metadata build task in gradle does not depend on `libs` folder

Open
#1,522 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

Currently, the buildMetadata task in the app/build.gradle does not depend on changes in the application's App_Resources/Android/libs folder.

The bug is reproduced with the following steps:

  1. execute tns build android
  2. add a JAR dependency in App_Resources/Android/libs in the application's folder
  3. execute tns build android

After the last build, there would be no metadata for the classes in the added JAR. This is caused by the buildMetadata not being run.

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 in app/build.gradle and inspect the buildMetadata task alongside the application's App_Resources/Android/libs folder. Reproduce the two-build sequence with a newly added JAR, then verify that the metadata build is triggered and includes classes from that dependency.

Written by the indexing model from the issue text.

Assessment

Tech stack
android
Domain
build-system, mobile-dev
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.