Skip to content

Feature Request - exportPath dynamic for each build variant. #814

@apkelly

Description

@apkelly

About this issue

  • Briefly describe the issue
    I currently use a command like this to generate my aboutlicense.json file

./gradlew app:exportLibraryDefinitions -PaboutLibraries.exportPath=src/main/assets/ -PaboutLibraries.exportVariant=dimensionRelease

Where dimension is different components of my build variant. Different variants will possibly have different included libraries e.g. a "pro" version of my app might include an extra library.

When building the different versions of my app, free/pro etc, I'd like the output json file placed in the correct src/free/assets or src/pro/assets folders.

It'd be great if exportPath could use the configuration of exportVariant to know where to place the file, perhaps making the path relative to dimension. e.g. -PaboutLibraries.exportPath=/assets/ PaboutLibraries.exportVariant=proRelease would place the file in src/pro/assets

Details

  •  Used library version - 10.5.1
  •  Used support library version
  •  Used gradle build tools version - 7.3.3
  •  Used tooling / Android Studio version - Android Studio Flamingo, Canary 8
  •  Other used libraries, potential conflicting libraries - Jetpack Compose 1.3

Checklist

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions