Skip to content
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

Can LicenseDialog dynamically retrieve licenses from dependencies? #78

Closed
JimVanG opened this issue Apr 10, 2017 · 2 comments
Closed

Can LicenseDialog dynamically retrieve licenses from dependencies? #78

JimVanG opened this issue Apr 10, 2017 · 2 comments

Comments

@JimVanG
Copy link

JimVanG commented Apr 10, 2017

Hello,

I'm curious if LicenseDialog has the ability to pull in the licenses from an app's dependencies dynamically?

Right now it appears that the end developer needs to manually define their dependencies in a static xml file, or create Notice objects programmatically. Both of which require the developer to manually and statically add in every license from every dependency in their project.

Please correct me if I'm wrong! I'd love to use LicenseDialog in my app, but I kind of need the licenses to be retrieved dynamically during the Gradle build.

@JimVanG JimVanG changed the title Can LicenseDialog dynamically get licenses from dependencies using Gradle? Can LicenseDialog dynamically retrieve licenses from dependencies? Apr 10, 2017
@hameno
Copy link
Member

hameno commented Apr 10, 2017

Currently not, no. That would also only work if the dependency declared the license in the pom.

@JimVanG
Copy link
Author

JimVanG commented Apr 10, 2017

Alright, thanks for the quick reply!

I'm looking into tools that can dynamically retrieve licenses. I've found this Gradle plugin: https://github.com/cookpad/license-tools-plugin?utm_source=android-arsenal.com&utm_medium=referral&utm_campaign=3627

But unfortunately it's not a completely automated thing... It helps, but you still need to go in an manually include some information about the dependencies before you can generate a "licenses.html" file for your app to use at runtime.

@hameno hameno closed this as completed Jul 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants