Xamarin.GooglePlayServices.Oss.Licenses reports no licenses in use
Android framework version
net9.0-android
Affected platform version
VS 2022 DotNET9
Description
I've included Xamarin.GooglePlayServices.Oss.Licenses and triggered the activity the result is a page that says "This app does not have any open source licenses.
Steps to Reproduce
Create a new MAUI applicaiton include Xamarin.GooglePlayServices.Oss.Licenses In the Android target trigger Platform.CurrentActivity.StartActivity(new Intent(Platform.CurrentActivity, typeof(OssLicensesMenuActivity)));
Did you find any workaround?
Scanning the sources using a tool Like Black Duck finds hundreds of expecting Android open source licenses which can get added as a text file to the application
Relevant log output
I don't think this is an issue really. When you look at the docs for this library it states:
How the list of licenses is determined At compile time, the Gradle plugin scans the POM dependencies of your app's project. When a Maven POM exists for a direct dependency of the app, the plugin processes each
element and embeds the link and title of each license in an Android asset that's included with your app.
Since .NET does not use Maven for dependencies this won't work.
Instead you can use CycloneDX or SBOM .NET tool to generate a software bill of materials for your App and parse the output.
It makes sense why it doesn't work.
If it's intended behaviour that it does nothing is there even a point in having this wrapper library exist and maintained?
It makes sense why it doesn't work.
If it's intended behaviour that it does nothing is there even a point in having this wrapper library exist and maintained?
Yeah that we can agree on. I don't see any other library depending on this one in NuGet either. So maybe support for it could be dropped.