diff -r 79794afbbf95 -r 2474591aa280 ui/common/src/commonMain/kotlin/OpenSourceLicensesViewModel.kt --- a/ui/common/src/commonMain/kotlin/OpenSourceLicensesViewModel.kt Mon May 05 02:56:41 2025 -0400 +++ b/ui/common/src/commonMain/kotlin/OpenSourceLicensesViewModel.kt Mon May 05 03:37:00 2025 -0400 @@ -40,10 +40,16 @@ emit(licenseInfoRepository.getLicensesInfo()) }.stateIn(viewModelScope, SharingStarted.WhileSubscribed(5000), emptyMap()) + /** + * List of dependencies + */ val dependenciesList = licensesInfo.map { licensesInfo -> licensesInfo.keys.sortedBy { it.lowercase() } } + /** + * Obtain the license for [dependency] + */ fun getLicenseDependency(dependency: String) = flow { emit(licenseInfoRepository.getLicenseFor(dependency)) }