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

Use license name for license info when license url is empty #289

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

littledog623
Copy link

@littledog623 littledog623 commented Feb 26, 2024

Sometimes the artifact only declares license name, and the license url is empty. This results in the empty page for such artifact in the Google Play OssLicenseActivity. An example of such artifact is com.microsoft.identity:common: https://repo1.maven.org/maven2/com/microsoft/identity/common/17.0.0/common-17.0.0.pom, where only a <name>MIT License<\name> tag is provided. I think we should display the name tag if the license tag is absent.

Use license name as a fallback when license url is not available to make sure there is always something to display in the license.

@littledog623
Copy link
Author

Can someone please help review this pull request? Thank you! :)

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

Successfully merging this pull request may close these issues.

None yet

1 participant