2019-12-04 11:19:05 +01:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
package org.mozilla.fenix
|
|
|
|
|
|
|
|
import mozilla.components.support.migration.AbstractMigrationService
|
2020-01-08 13:35:14 +01:00
|
|
|
import mozilla.components.support.migration.state.MigrationStore
|
2020-01-15 06:59:08 +01:00
|
|
|
import org.mozilla.fenix.ext.components
|
2020-01-31 19:23:04 +01:00
|
|
|
import org.mozilla.fenix.migration.MigrationProgressActivity
|
2019-12-04 11:19:05 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Background service for running the migration from legacy Firefox for Android (Fennec).
|
|
|
|
*/
|
|
|
|
class MigrationService : AbstractMigrationService() {
|
|
|
|
override val migrator by lazy { getMigratorFromApplication() }
|
2020-01-15 06:59:08 +01:00
|
|
|
override val store: MigrationStore by lazy { components.migrationStore }
|
2020-01-31 19:23:04 +01:00
|
|
|
override val migrationActivity = MigrationProgressActivity::class.java
|
2019-12-04 11:19:05 +01:00
|
|
|
}
|