[components] Fennec FxA state migration
commit24261cfe8ffc1146123db1d8994292c1e0b9d0a9
authorGrisha Kruglov <gkruglov@mozilla.com>
Wed, 23 Oct 2019 18:59:38 +0000 (23 11:59 -0700)
committerGrisha Kruglov <gkruglov@mozilla.com>
Thu, 31 Oct 2019 21:54:34 +0000 (31 14:54 -0700)
treeaafd10e3f983b5cda0c95d8e3e12ad4505d07720
parenteb17106ec8d052520caf8ed9a1793ff1d1ea6bb2
[components] Fennec FxA state migration

This adds basics of the Fennec Firefox Account state migration, bailing
out if we're not processing v4 fxa state.

Migration is done from the "pickle file". Cleaning up system account is TBD.
16 files changed:
mobile/android/android-components/components/support/migration/build.gradle
mobile/android/android-components/components/support/migration/src/main/java/mozilla/components/support/migration/FennecFxaMigration.kt [new file with mode: 0644]
mobile/android/android-components/components/support/migration/src/main/java/mozilla/components/support/migration/FennecMigrator.kt
mobile/android/android-components/components/support/migration/src/main/java/mozilla/components/support/migration/FennecSessionMigration.kt
mobile/android/android-components/components/support/migration/src/test/java/mozilla/components/support/migration/FennecFxaMigrationTest.kt [new file with mode: 0644]
mobile/android/android-components/components/support/migration/src/test/java/mozilla/components/support/migration/FennecMigratorTest.kt
mobile/android/android-components/components/support/migration/src/test/resources/fxa/cohabiting-v4.json [new file with mode: 0644]
mobile/android/android-components/components/support/migration/src/test/resources/fxa/corrupt-married-v4.json [new file with mode: 0644]
mobile/android/android-components/components/support/migration/src/test/resources/fxa/corrupt-separated-missing-versions-v4.json [new file with mode: 0644]
mobile/android/android-components/components/support/migration/src/test/resources/fxa/doghouse-v4.json [new file with mode: 0644]
mobile/android/android-components/components/support/migration/src/test/resources/fxa/married-v4.json [new file with mode: 0644]
mobile/android/android-components/components/support/migration/src/test/resources/fxa/separated-bad-account-version-v4.json [new file with mode: 0644]
mobile/android/android-components/components/support/migration/src/test/resources/fxa/separated-bad-pickle-version-v4.json [new file with mode: 0644]
mobile/android/android-components/components/support/migration/src/test/resources/fxa/separated-bad-state-version-v10.json [new file with mode: 0644]
mobile/android/android-components/components/support/migration/src/test/resources/fxa/separated-bad-state.json [new file with mode: 0644]
mobile/android/android-components/components/support/migration/src/test/resources/fxa/separated-v4.json [new file with mode: 0644]