mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-06-08 16:59:55 +00:00
Add: CreateIconUri for Compose's items
This commit is contained in:
parent
32330744f3
commit
f6ff3844ae
@ -142,4 +142,15 @@ object CoilDownloader {
|
|||||||
}
|
}
|
||||||
.build()
|
.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