values-v<sdk>
Android resource directories are not prepared correctly
#5120
Labels
bug
build
Describes issues related to build operations
debug
os: android
prepare
Describes issues related to prepare command
run
Describes issues related to run command
unit testing
Milestone
Environment
Provide version numbers for the following components (information can be retrieved by running
tns info
in your project folder or by inspecting thepackage.json
of the project):Describe the bug
Currently all values-v directories from
<path to project's App_Resources>/Android/src/main/res
are included in the native project. The purpose of these directories is to separate the resources and features available for different SDKs. In case you build the application with SDK 28 for example, the resources for SDK 29 shouldn't be included in the project as probably they contain a resource usage that is not buildable with SDK28.To Reproduce
tns create appValuesIssue --js
appValuesIssue/app/App_Resources/Android/src/main/res/values-v21/
toappValuesIssue/app/App_Resources/Android/src/main/res/values-v29/
tns build android --compileSdk 28
Build fails with error:
appValuesIssue/platforms/android/app/src/main/res/values-v29/
dir - it will be there, while in fact, it shouldn't.Additional context
The text was updated successfully, but these errors were encountered: