/*
 * SPDX-License-Identifier: GPL-3.0-or-later
 */
package com.runicgateway.app.di

import com.runicgateway.app.BuildConfig
import com.runicgateway.app.core.AppConfig
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
object AppModule {

    @Provides
    @Singleton
    fun provideAppConfig(): AppConfig = AppConfig(
        allowInsecureHttp = BuildConfig.DEBUG,
        versionName = BuildConfig.VERSION_NAME,
    )
}
