GmsLicenseInfoRepository

class GmsLicenseInfoRepository(appContext: Context, mainCoroutineDispatcher: CoroutineDispatcher = Dispatchers.Main, ioCoroutineDispatcher: CoroutineDispatcher = Dispatchers.IO, thirdPartyLicensesResourceName: String = "third_party_licenses", thirdPartyLicenseMetadataResourceName: String = "third_party_license_metadata") : LicenseInfoRepository(source)

Retrieve License information stored in application resources

Constructors

Link copied to clipboard
constructor(appContext: Context, mainCoroutineDispatcher: CoroutineDispatcher = Dispatchers.Main, ioCoroutineDispatcher: CoroutineDispatcher = Dispatchers.IO, thirdPartyLicensesResourceName: String = "third_party_licenses", thirdPartyLicenseMetadataResourceName: String = "third_party_license_metadata")

Functions

Link copied to clipboard
open suspend override fun getLicenseFor(dependency: String): String

Get license text for a specific dependency

Link copied to clipboard
open suspend override fun getLicensesInfo(): Map<String, String>

Get a map of license text per dependency