ServerClientMigrationEnvironment

Types

Link copied to clipboard

Defines migration based on version of AIDL interface.

Link copied to clipboard

Defines migrations based on concrete protocol version.

Functions

Link copied to clipboard
fun <ReturnType> forExactVersion(version: String, migration: () -> ReturnType)

Performs migration only for one specific version

Link copied to clipboard
fun <ReturnType> forVersions(vararg versions: String, migration: (String) -> ReturnType): ReturnType?
Link copied to clipboard
abstract fun getVersion(): String?
Link copied to clipboard
fun <ReturnType> notForVersions(vararg versions: String, migration: (String) -> ReturnType): ReturnType?

Performs migration for all the versions except versions