Add remote configuration support and fix app name
Features: - Fixed app name from "Dark Side Admin" to "SilverDROID" - Added remote configuration loader with AppStore integration - Support for user-specific configurations - Bearer token authentication for secure config retrieval - Automatic fallback to local config if remote fails - Remote config refresh interval support Configuration example updated with remoteConfig section. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -16,6 +16,9 @@ data class AppConfig(
|
||||
val showUrlBar: Boolean = false,
|
||||
val allowNavigation: Boolean = true,
|
||||
|
||||
// Remote configuration
|
||||
val remoteConfig: RemoteConfigSettings? = null,
|
||||
|
||||
// VPN configuration (optional)
|
||||
val vpn: VpnConfig? = null,
|
||||
|
||||
@@ -26,6 +29,15 @@ data class AppConfig(
|
||||
val theme: ThemeConfig = ThemeConfig()
|
||||
)
|
||||
|
||||
@Serializable
|
||||
data class RemoteConfigSettings(
|
||||
val enabled: Boolean = true,
|
||||
val url: String,
|
||||
val authToken: String? = null,
|
||||
val userSpecific: Boolean = false,
|
||||
val refreshInterval: Long = 3600000 // 1 hour in milliseconds
|
||||
)
|
||||
|
||||
@Serializable
|
||||
data class VpnConfig(
|
||||
val enabled: Boolean = false,
|
||||
|
||||
Reference in New Issue
Block a user