package link.roadio.riff.shared.config import android.content.ContentResolver import android.net.Uri import android.os.Bundle import java.io.IOException /** Admission/FD requests must not make Player a stable dependency killed with a dying Indexer. * Authority: https://wiki.271.pics/Riff/1-1-0/ipc * The client owns returned descriptors independently; a dead endpoint is a retryable IPC failure. */ object ConfigurationProviderClient { fun call( resolver: ContentResolver, uri: Uri, method: String, extras: Bundle? = null, ): Bundle? = (resolver.acquireUnstableContentProviderClient(uri) ?: throw IOException("Configuration authority is unavailable")) .use { it.call(method, null, extras) } }