mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-23 19:32:16 +00:00
Add: CreateIconUri for Compose's items
This commit is contained in:
parent
32330744f3
commit
f6ff3844ae
@ -142,4 +142,15 @@ object CoilDownloader {
|
||||
}
|
||||
.build()
|
||||
}
|
||||
|
||||
fun createIconUri(
|
||||
packageName: String, icon: String, metadataIcon: String,
|
||||
address: String, auth: String
|
||||
): Uri = Uri.Builder().scheme("https").authority(HOST_ICON)
|
||||
.appendQueryParameter(QUERY_ADDRESS, address)
|
||||
.appendQueryParameter(QUERY_AUTHENTICATION, auth)
|
||||
.appendQueryParameter(QUERY_PACKAGE_NAME, packageName)
|
||||
.appendQueryParameter(QUERY_ICON, icon)
|
||||
.appendQueryParameter(QUERY_METADATA_ICON, metadataIcon)
|
||||
.build()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user