package com.moac.android.soundmap.injection.module;

import javax.inject.Named;
import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;

@Module
public class ConfigModule {

    @Provides @Singleton @Named(ApiModule.URL_CONFIG)
    public String provideApiModuleUrlConfig() {
        return "https://www.freesound.org/";
    }

    @Provides @Singleton @Named(ApiModule.API_TOKEN_CONFIG)
    public String provideApiModuleApiTokenConfig() {
        return "2c07851ee5c1f2f44248adb4568bfb142e8b7f62";
    }

    @Provides @Singleton @Named(ApiModule.SEARCH_CACHE_SIZE_CONFIG)
    public int provideApiModuleSearchCacheSizeConfig() {
        return 50;
    }

    @Provides @Singleton @Named(ApiModule.BITMAP_CACHE_SIZE_CONFIG)
    public int provideApiModuleBitmapCacheSizeConfig() {
        return 50;
    }

}

package com.moac.android.soundmap.injection.module;

import javax.inject.Named;
import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;

@Module
public class ConfigModule {

    @Provides @Singleton @Named(ApiModule.URL_CONFIG)
    public String provideApiModuleUrlConfig() {
        return "https://www.freesound.org/";
    }

    @Provides @Singleton @Named(ApiModule.API_TOKEN_CONFIG)
    public String provideApiModuleApiTokenConfig() {
        throw new IllegalStateException("No Api Token defined");
    }

    @Provides @Singleton @Named(ApiModule.SEARCH_CACHE_SIZE_CONFIG)
    public int provideApiModuleSearchCacheSizeConfig() {
        return 50;
    }

    @Provides @Singleton @Named(ApiModule.BITMAP_CACHE_SIZE_CONFIG)
    public int provideApiModuleBitmapCacheSizeConfig() {
        return 50;
    }

}

Update screenshot reference