android-components / mozilla.components.support.migration / VersionedMigration

VersionedMigration

data class VersionedMigration (source)

Describes a Migration at a specific version, enforcing in-range version specification.

Constructors

Name Summary
<init> VersionedMigration(migration: Migration, version: Int = migration.currentVersion)
Describes a Migration at a specific version, enforcing in-range version specification.

Properties

Name Summary
migration val migration: Migration
A Migration in question.
version val version: Int
Version of the migration, defaulting to the current version.

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.