package com.narutohuo.xindazhou.core.config

/**
 * 配置服务接口
 * 应用配置管理、环境切换、功能开关、版本管理
 * 
 * 所有SDK模块通过此接口获取配置，实现类由app模块提供
 */
interface IConfig {
    fun getString(key: String, defaultValue: String = ""): String
    fun getInt(key: String, defaultValue: Int = 0): Int
    fun getBoolean(key: String, defaultValue: Boolean = false): Boolean
    
    fun setString(key: String, value: String)
    fun setInt(key: String, value: Int)
    fun setBoolean(key: String, value: Boolean)
    
    /**
     * 环境切换
     */
    fun getEnvironment(): String // dev, test, prod
    fun setEnvironment(env: String)
    
    /**
     * 功能开关
     */
    fun isFeatureEnabled(feature: String): Boolean
    fun setFeatureEnabled(feature: String, enabled: Boolean)
}

