Package-level declarations

The DetectUpdateTriggerWorker can be used to periodically invoke UpdaterService.detectUpdate of an UpdaterService.

The DownloadHelper can be used to download updates using Android's DownloadManager and to monitor the progress of downloads.

The MavenRepositoryUpdateChecker is a base class for obtaining update information about the latest version of an artifact hosted in a Maven repository.

The PackageInstallerHelper can be used to install APKs using Android's PackageInstaller and monitor the progress of the installation.

The UpdaterServiceBroadcastReceiver can be used to forward broadcast intents to an UpdaterService.

The VaultWrapper is a small wrapper around the Vault Java Driver.

Types

Link copied to clipboard
@IviExperimental(reasons = [])
@Serializable
data class ArtifactUpdateInfo(val artifactVersion: String, val artifactUrl: URL, val artifactSize: Long?)

The obtained update information about the latest version of an artifact.

Link copied to clipboard
@IviExperimental(reasons = [])
data class DetectUpdateTriggerWorkConfig(val repeatInterval: Duration, val backoffPolicy: BackoffPolicy, val backoffDuration: Duration)

Configuration of DetectUpdateTriggerWorker.

Link copied to clipboard
@IviExperimental(reasons = [])
class DetectUpdateTriggerWorker(context: Context, workerParameters: WorkerParameters) : CoroutineWorker

Worker to invoke UpdaterService.detectUpdate with an UpdateComponentId of a service identified by a IviServiceId. Both the UpdateComponentId and IviServiceId are obtained from InputParameters.

Link copied to clipboard
@IviExperimental(reasons = [])
class DownloadHelper(updateComponentId: UpdateComponentId, context: Context)

Helper class to download an update by using the DownloadManager and monitor the progress of downloads.

Link copied to clipboard
@IviExperimental(reasons = [])
class MavenRepository(baseUrl: URL)

Represents a Maven repository.

Link copied to clipboard
@IviExperimental(reasons = [])
abstract class MavenRepositoryUpdateChecker

Base class for obtaining update information about the latest version of an artifact hosted in a Maven repository. The information of the latest version (ArtifactUpdateInfo) consists of:

Link copied to clipboard
@IviExperimental(reasons = [])
class PackageInstallerHelper(context: Context)

Helper class to install APKs by using the PackageInstaller.

Link copied to clipboard

Forwards broadcast intents to an UpdaterService.

Link copied to clipboard
@IviExperimental(reasons = [])
class VaultWrapper(config: VaultConfig, login: Auth.() -> AuthResponse)

Small wrapper around the Vault Java Driver.