- App: manual update checker (GitHub API, Play Store redirect) - App: website button in sidebar - App: timer_box shows Connecting/Syncing spinner during handshake - App: synced app_config.example.dart with app_config.dart - Sidebar: 6 rows (added Website, Check for updates) - Server: add_vless_client now includes flow xtls-rprx-vision - Deps: added package_info_plus - Version bump: 1.0.6+10 → 1.0.7+11 - CHANGELOG.md created
35 lines
2.1 KiB
Dart
35 lines
2.1 KiB
Dart
// =============================================================================
|
|
// app_config.example.dart — TEMPLATE FOR SERVER SETTINGS
|
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
|
|
abstract final class AppConfig {
|
|
AppConfig._();
|
|
|
|
// ── Server (API) ──────────────────────────────────────────────────────
|
|
static const String serverDomain = 'yourdomain.com';
|
|
|
|
static String get hivemindApiBase => 'https://$serverDomain/api';
|
|
|
|
// ── Reality (VPN tunnel) ──────────────────────────────────────────────
|
|
// These are fallbacks — normally overridden by /session/status response.
|
|
static const String realitySni = 'www.microsoft.com';
|
|
static const String realityFp = 'chrome';
|
|
|
|
// These are authoritative — never sent by the server.
|
|
static const String vlessSecurity = 'reality';
|
|
static const String vlessType = 'tcp';
|
|
static const String vlessFlow = 'xtls-rprx-vision';
|
|
|
|
// ── Updates ────────────────────────────────────────────────────────────
|
|
/// Used by the updater.
|
|
static const String applicationId = 'com.paladinvpn.app';
|
|
static const String githubOwner = 'YOUR_USERNAME';
|
|
static const String githubRepo = 'revoltvpn';
|
|
|
|
/// Fallback URL if the GitHub API call fails.
|
|
static const String githubReleasesUrl = 'https://github.com/$githubOwner/$githubRepo/releases/latest';
|
|
|
|
// ── AdMob ──────────────────────────────────────────────────────────────
|
|
static const String adUnitId = 'ca-app-pub-0000000000000000/0000000000'; // REPLACE
|
|
}
|