2023-07-06 17:18:41 +03:30
|
|
|
|
abstract class Constants {
|
2026-01-15 12:28:40 +03:00
|
|
|
|
static const appName = "Umbrix";
|
|
|
|
|
|
static const githubUrl = "https://github.com/umbrix-app/umbrix";
|
|
|
|
|
|
static const githubReleasesApiUrl = "https://api.github.com/repos/umbrix-app/umbrix/releases";
|
|
|
|
|
|
static const githubLatestReleaseUrl = "https://github.com/umbrix-app/umbrix/releases/latest";
|
2026-01-18 06:56:35 +03:00
|
|
|
|
static const appCastUrl = "http://localhost:8000/api/appcast.xml";
|
2026-01-15 12:28:40 +03:00
|
|
|
|
static const telegramChannelUrl = "https://t.me/umbrix_app";
|
|
|
|
|
|
static const privacyPolicyUrl = "https://umbrix.net/privacy.html";
|
|
|
|
|
|
static const termsAndConditionsUrl = "https://umbrix.net/terms.html";
|
|
|
|
|
|
static const cfWarpPrivacyPolicy = "https://www.cloudflare.com/application/privacypolicy/";
|
|
|
|
|
|
static const cfWarpTermsOfService = "https://www.cloudflare.com/application/terms/";
|
2026-01-17 13:09:20 +03:00
|
|
|
|
|
|
|
|
|
|
// ===== НАСТРОЙКИ СЕРВЕРА ОБНОВЛЕНИЙ =====
|
|
|
|
|
|
|
|
|
|
|
|
// Собственный сервер обновлений (для приватного репозитория)
|
|
|
|
|
|
// 📝 ИНСТРУКЦИЯ: Замените на URL вашего API сервера
|
|
|
|
|
|
// Пример: "https://api.umbrix.net/api/latest"
|
2026-01-18 06:56:35 +03:00
|
|
|
|
// 🖥️ Для Linux десктопа используйте: "http://localhost:8000/api/appcast.xml"
|
|
|
|
|
|
// 📱 Для Android эмулятора используйте: "http://10.0.2.2:8000/api/appcast.xml"
|
2026-01-17 13:09:20 +03:00
|
|
|
|
// См. документацию в папке: update-server/README.md
|
2026-01-18 06:56:35 +03:00
|
|
|
|
static const customUpdateServerUrl = "http://localhost:8000/api/appcast.xml";
|
2026-01-17 13:09:20 +03:00
|
|
|
|
|
|
|
|
|
|
// Использовать собственный сервер обновлений вместо GitHub
|
|
|
|
|
|
// true = использовать customUpdateServerUrl (для приватного репозитория)
|
|
|
|
|
|
// false = использовать GitHub Releases (для публичного репозитория)
|
|
|
|
|
|
static const useCustomUpdateServer = true;
|
2023-07-06 17:18:41 +03:30
|
|
|
|
}
|
2024-03-08 15:07:45 +03:30
|
|
|
|
|
|
|
|
|
|
const kAnimationDuration = Duration(milliseconds: 250);
|