/*
 * F7cloud Talk - Android Client
 *
 * SPDX-FileCopyrightText: 2022 Andy Scherzinger <info@andy-scherzinger.de>
 * SPDX-FileCopyrightText: 2017-2018 Mario Danic <mario@lovelyhq.com>
 * SPDX-License-Identifier: GPL-3.0-or-later
 */
package ru.f7cloud.talk.utils.database.arbitrarystorage;

import ru.f7cloud.talk.application.F7cloudTalkApplication;
import ru.f7cloud.talk.arbitrarystorage.ArbitraryStorageManager;
import ru.f7cloud.talk.dagger.modules.DatabaseModule;
import ru.f7cloud.talk.data.storage.ArbitraryStoragesRepository;

import javax.inject.Inject;

import autodagger.AutoInjector;
import dagger.Module;
import dagger.Provides;

@Module(includes = DatabaseModule.class)
@AutoInjector(F7cloudTalkApplication.class)
public class ArbitraryStorageModule {

    @Inject
    public ArbitraryStorageModule() {
    }

    @Provides
    public ArbitraryStorageManager provideArbitraryStorageManager(ArbitraryStoragesRepository repository) {
        return new ArbitraryStorageManager(repository);
    }
}
