-
-
Notifications
You must be signed in to change notification settings - Fork 423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request - exportPath dynamic for each build variant. #814
Comments
@apkelly thank you for describing your usecase. I may need some more information to better understand the benefit. As you describe, you are passing the What would the major benefit of the exportPath internally identifying the variant specific folder? As I assume this is only gonna be defined ones and then most likely stay for the most part like that? Theoretically the android integration would do something like this: https://github.com/mikepenz/AboutLibraries/blob/develop/plugin-build/plugin/src/main/kotlin/com/mikepenz/aboutlibraries/plugin/AboutLibrariesPluginAndroidExtension.kt#L43 But personally I also prefer the "manual" approach, with the file being checked in as it allows for much more control of what's getting changed. |
The app I work on is branded for different clients, and also runs on different vendor hardware (each with their own SDKs)....its not an app for mobile phones, so we have lots of different "release" build variants. I like the idea of manually running the export command, but I wanted to see if there was a way to cut down on the configuration, so that |
Oh I see. So it's not an Android project, as such the automatic registration for Not sure how much can be reproduced of that as part of the sample app. But it may be worth exploring to add some of these variants to the One thing I am not sure on is, if Gradle will have the appropriate folder per variant. I'd prefer not to base the folder path definition on assumptions which may break for other people. |
About this 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
orsrc/pro/assets
folders.It'd be great if
exportPath
could use the configuration ofexportVariant
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 insrc/pro/assets
Details
Checklist
The text was updated successfully, but these errors were encountered: