Skip to content

Commit

Permalink
Construct SavepointsImporter in providesUpgradeInitializer
Browse files Browse the repository at this point in the history
  • Loading branch information
grzesiek2010 committed May 13, 2024
1 parent 224dfbd commit de2aea0
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -536,20 +536,15 @@ public GoogleDriveProjectsDeleter providesGoogleDriveProjectsDeleter(ProjectsRep
}

@Provides
public SavepointsImporter providesSavepointsMigrator(ProjectsRepository projectsRepository, ProjectDependencyProviderFactory projectDependencyProviderFactory) {
return new SavepointsImporter(projectsRepository, projectDependencyProviderFactory);
}

@Provides
public UpgradeInitializer providesUpgradeInitializer(Context context, SettingsProvider settingsProvider, ExistingProjectMigrator existingProjectMigrator, ExistingSettingsMigrator existingSettingsMigrator, FormUpdatesUpgrade formUpdatesUpgrade, GoogleDriveProjectsDeleter googleDriveProjectsDeleter, SavepointsImporter savepointsImporter) {
public UpgradeInitializer providesUpgradeInitializer(Context context, SettingsProvider settingsProvider, ExistingProjectMigrator existingProjectMigrator, ExistingSettingsMigrator existingSettingsMigrator, FormUpdatesUpgrade formUpdatesUpgrade, GoogleDriveProjectsDeleter googleDriveProjectsDeleter, ProjectsRepository projectsRepository, ProjectDependencyProviderFactory projectDependencyProviderFactory) {
return new UpgradeInitializer(
context,
settingsProvider,
existingProjectMigrator,
existingSettingsMigrator,
formUpdatesUpgrade,
googleDriveProjectsDeleter,
savepointsImporter
new SavepointsImporter(projectsRepository, projectDependencyProviderFactory)
);
}

Expand Down

0 comments on commit de2aea0

Please sign in to comment.