From 026e414388c5a5858334229f8f2bd175ffb3a25e Mon Sep 17 00:00:00 2001 From: lollipopkit Date: Sat, 27 Apr 2024 15:40:23 +0800 Subject: [PATCH] feat: wake lock (#347) --- ios/Runner.xcodeproj/project.pbxproj | 54 ++++++++++++------- lib/data/res/build_data.dart | 8 +-- lib/data/store/setting.dart | 3 ++ lib/l10n/app_de.arb | 1 + lib/l10n/app_en.arb | 1 + lib/l10n/app_es.arb | 1 + lib/l10n/app_fr.arb | 1 + lib/l10n/app_id.arb | 1 + lib/l10n/app_ja.arb | 1 + lib/l10n/app_nl.arb | 1 + lib/l10n/app_pt.arb | 1 + lib/l10n/app_ru.arb | 1 + lib/l10n/app_zh.arb | 1 + lib/l10n/app_zh_tw.arb | 1 + lib/view/page/setting/entry.dart | 9 ++++ lib/view/page/ssh/page.dart | 4 ++ macos/Flutter/GeneratedPluginRegistrant.swift | 4 ++ macos/Runner.xcodeproj/project.pbxproj | 12 ++--- pubspec.lock | 44 ++++++++++++++- pubspec.yaml | 1 + 20 files changed, 120 insertions(+), 30 deletions(-) diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index 8db87248..751020d9 100644 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -302,6 +302,7 @@ E33A3E4A2A626DD0009744AB /* Embed Foundation Extensions */, E39515D52AB5AD64003602C1 /* Embed Watch Content */, 3B06AD1E1E4923F5004D2608 /* Thin Binary */, + 955896919A10AA2BEC131F36 /* [CP] Copy Pods Resources */, ); buildRules = ( ); @@ -451,6 +452,23 @@ shellPath = /bin/sh; shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; }; + 955896919A10AA2BEC131F36 /* [CP] Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Copy Pods Resources"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; 9740EEB61CF901F6004384FC /* Run Script */ = { isa = PBXShellScriptBuildPhase; alwaysOutOfDate = 1; @@ -672,7 +690,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; - CURRENT_PROJECT_VERSION = 873; + CURRENT_PROJECT_VERSION = 876; DEVELOPMENT_TEAM = BA88US33G6; ENABLE_BITCODE = NO; INFOPLIST_FILE = "Runner/Info-$(CONFIGURATION).plist"; @@ -682,7 +700,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.0.873; + MARKETING_VERSION = 1.0.876; PRODUCT_BUNDLE_IDENTIFIER = com.lollipopkit.toolbox; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; @@ -808,7 +826,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; - CURRENT_PROJECT_VERSION = 873; + CURRENT_PROJECT_VERSION = 876; DEVELOPMENT_TEAM = BA88US33G6; ENABLE_BITCODE = NO; INFOPLIST_FILE = "Runner/Info-$(CONFIGURATION).plist"; @@ -818,7 +836,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.0.873; + MARKETING_VERSION = 1.0.876; PRODUCT_BUNDLE_IDENTIFIER = com.lollipopkit.toolbox; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; @@ -836,7 +854,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; - CURRENT_PROJECT_VERSION = 873; + CURRENT_PROJECT_VERSION = 876; DEVELOPMENT_TEAM = BA88US33G6; ENABLE_BITCODE = NO; INFOPLIST_FILE = "Runner/Info-$(CONFIGURATION).plist"; @@ -846,7 +864,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.0.873; + MARKETING_VERSION = 1.0.876; PRODUCT_BUNDLE_IDENTIFIER = com.lollipopkit.toolbox; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; @@ -867,7 +885,7 @@ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 873; + CURRENT_PROJECT_VERSION = 876; DEVELOPMENT_TEAM = BA88US33G6; GCC_C_LANGUAGE_STANDARD = gnu11; GENERATE_INFOPLIST_FILE = YES; @@ -880,7 +898,7 @@ "@executable_path/Frameworks", "@executable_path/../../Frameworks", ); - MARKETING_VERSION = 1.0.873; + MARKETING_VERSION = 1.0.876; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; PRODUCT_BUNDLE_IDENTIFIER = com.lollipopkit.toolbox.StatusWidget; @@ -906,7 +924,7 @@ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 873; + CURRENT_PROJECT_VERSION = 876; DEVELOPMENT_TEAM = BA88US33G6; GCC_C_LANGUAGE_STANDARD = gnu11; GENERATE_INFOPLIST_FILE = YES; @@ -919,7 +937,7 @@ "@executable_path/Frameworks", "@executable_path/../../Frameworks", ); - MARKETING_VERSION = 1.0.873; + MARKETING_VERSION = 1.0.876; MTL_FAST_MATH = YES; PRODUCT_BUNDLE_IDENTIFIER = com.lollipopkit.toolbox.StatusWidget; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -942,7 +960,7 @@ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 873; + CURRENT_PROJECT_VERSION = 876; DEVELOPMENT_TEAM = BA88US33G6; GCC_C_LANGUAGE_STANDARD = gnu11; GENERATE_INFOPLIST_FILE = YES; @@ -955,7 +973,7 @@ "@executable_path/Frameworks", "@executable_path/../../Frameworks", ); - MARKETING_VERSION = 1.0.873; + MARKETING_VERSION = 1.0.876; MTL_FAST_MATH = YES; PRODUCT_BUNDLE_IDENTIFIER = com.lollipopkit.toolbox.StatusWidget; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -978,7 +996,7 @@ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 873; + CURRENT_PROJECT_VERSION = 876; DEVELOPMENT_ASSET_PATHS = ""; DEVELOPMENT_TEAM = BA88US33G6; ENABLE_PREVIEWS = YES; @@ -990,7 +1008,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.0.873; + MARKETING_VERSION = 1.0.876; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; PRODUCT_BUNDLE_IDENTIFIER = com.lollipopkit.toolbox.WatchEnd; @@ -1019,7 +1037,7 @@ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 873; + CURRENT_PROJECT_VERSION = 876; DEVELOPMENT_ASSET_PATHS = ""; DEVELOPMENT_TEAM = BA88US33G6; ENABLE_PREVIEWS = YES; @@ -1031,7 +1049,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.0.873; + MARKETING_VERSION = 1.0.876; MTL_FAST_MATH = YES; PRODUCT_BUNDLE_IDENTIFIER = com.lollipopkit.toolbox.WatchEnd; PRODUCT_NAME = ServerBox; @@ -1057,7 +1075,7 @@ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 873; + CURRENT_PROJECT_VERSION = 876; DEVELOPMENT_ASSET_PATHS = ""; DEVELOPMENT_TEAM = BA88US33G6; ENABLE_PREVIEWS = YES; @@ -1069,7 +1087,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.0.873; + MARKETING_VERSION = 1.0.876; MTL_FAST_MATH = YES; PRODUCT_BUNDLE_IDENTIFIER = com.lollipopkit.toolbox.WatchEnd; PRODUCT_NAME = ServerBox; diff --git a/lib/data/res/build_data.dart b/lib/data/res/build_data.dart index 9fc0a3c1..6bad109d 100644 --- a/lib/data/res/build_data.dart +++ b/lib/data/res/build_data.dart @@ -2,9 +2,9 @@ class BuildData { static const String name = "ServerBox"; - static const int build = 873; - static const String engine = "3.19.5"; - static const String buildAt = "2024-04-23 17:37:20"; - static const int modifications = 2; + static const int build = 876; + static const String engine = "3.19.6"; + static const String buildAt = "2024-04-26 23:44:14"; + static const int modifications = 4; static const int script = 45; } diff --git a/lib/data/store/setting.dart b/lib/data/store/setting.dart index e1269014..289a01c4 100644 --- a/lib/data/store/setting.dart +++ b/lib/data/store/setting.dart @@ -273,6 +273,9 @@ class SettingStore extends PersistentStore { late final collectUsage = property('collectUsage', true); + /// eg: ssh page + late final wakeLock = property('wakeLock', true); + // Never show these settings for users // // ------BEGIN------ diff --git a/lib/l10n/app_de.arb b/lib/l10n/app_de.arb index f653ac93..dd5b6e82 100644 --- a/lib/l10n/app_de.arb +++ b/lib/l10n/app_de.arb @@ -320,6 +320,7 @@ "virtKeyHelpIME": "Tastatur ein-/ausschalten", "virtKeyHelpSFTP": "Aktuelles Verzeichnis in SFTP öffnen.", "waitConnection": "Bitte warte, bis die Verbindung hergestellt wurde.", + "wakeLock": "Wach halten", "watchNotPaired": "Keine gekoppelte Apple Watch", "webdavSettingEmpty": "Webdav-Einstellungen sind leer", "whenOpenApp": "Beim Öffnen der App", diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index c3e9548a..2bc28a04 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -320,6 +320,7 @@ "virtKeyHelpIME": "Turn on/off the keyboard", "virtKeyHelpSFTP": "Open current directory in SFTP.", "waitConnection": "Please wait for the connection to be established.", + "wakeLock": "Keep awake", "watchNotPaired": "No paired Apple Watch", "webdavSettingEmpty": "Webdav setting is empty", "whenOpenApp": "When opening the app", diff --git a/lib/l10n/app_es.arb b/lib/l10n/app_es.arb index 8a6417b7..97cab162 100644 --- a/lib/l10n/app_es.arb +++ b/lib/l10n/app_es.arb @@ -320,6 +320,7 @@ "virtKeyHelpIME": "Encender/apagar el teclado", "virtKeyHelpSFTP": "Abrir la ruta actual en SFTP.", "waitConnection": "Por favor, espera a que la conexión se establezca", + "wakeLock": "Mantener despierto", "watchNotPaired": "No hay un Apple Watch emparejado", "webdavSettingEmpty": "La configuración de Webdav está vacía", "whenOpenApp": "Al abrir la App", diff --git a/lib/l10n/app_fr.arb b/lib/l10n/app_fr.arb index 3979f0da..2d269160 100644 --- a/lib/l10n/app_fr.arb +++ b/lib/l10n/app_fr.arb @@ -320,6 +320,7 @@ "virtKeyHelpIME": "Allumer/éteindre le clavier", "virtKeyHelpSFTP": "Ouvrir le répertoire actuel dans SFTP.", "waitConnection": "Veuillez attendre l'établissement de la connexion.", + "wakeLock": "Garder éveillé", "watchNotPaired": "Aucune Apple Watch appairée", "webdavSettingEmpty": "La configuration Webdav est vide", "whenOpenApp": "À l'ouverture de l'application", diff --git a/lib/l10n/app_id.arb b/lib/l10n/app_id.arb index e0fe804d..092e32d0 100644 --- a/lib/l10n/app_id.arb +++ b/lib/l10n/app_id.arb @@ -320,6 +320,7 @@ "virtKeyHelpIME": "Menyalakan/mematikan keyboard", "virtKeyHelpSFTP": "Buka direktori saat ini di SFTP.", "waitConnection": "Harap tunggu koneksi akan dibuat.", + "wakeLock": "Tetap terjaga", "watchNotPaired": "Tidak ada Apple Watch yang dipasangkan", "webdavSettingEmpty": "Pengaturan webdav kosong", "whenOpenApp": "Saat membuka aplikasi", diff --git a/lib/l10n/app_ja.arb b/lib/l10n/app_ja.arb index c69831f0..9bf5f51c 100644 --- a/lib/l10n/app_ja.arb +++ b/lib/l10n/app_ja.arb @@ -320,6 +320,7 @@ "virtKeyHelpIME": "キーボードのオン/オフ", "virtKeyHelpSFTP": "現在のパスでSFTPを開く。", "waitConnection": "接続の確立を待ってください", + "wakeLock": "起動を保つ", "watchNotPaired": "ペアリングされたApple Watchがありません", "webdavSettingEmpty": "Webdavの設定が空です", "whenOpenApp": "アプリを開くとき", diff --git a/lib/l10n/app_nl.arb b/lib/l10n/app_nl.arb index f6c8f716..7b1fbaf1 100644 --- a/lib/l10n/app_nl.arb +++ b/lib/l10n/app_nl.arb @@ -319,6 +319,7 @@ "virtKeyHelpIME": "Toetsenbord aan/uit zetten", "virtKeyHelpSFTP": "Huidige map openen in SFTP.", "waitConnection": "Wacht alstublieft tot de verbinding tot stand is gebracht.", + "wakeLock": "Wakker houden", "watchNotPaired": "Geen gekoppelde Apple Watch", "webdavSettingEmpty": "Webdav-instelling is leeg", "whenOpenApp": "Bij het openen van de app", diff --git a/lib/l10n/app_pt.arb b/lib/l10n/app_pt.arb index ede04ed6..1d129a9c 100644 --- a/lib/l10n/app_pt.arb +++ b/lib/l10n/app_pt.arb @@ -320,6 +320,7 @@ "virtKeyHelpIME": "Ligar/desligar o teclado", "virtKeyHelpSFTP": "Abre o caminho atual em SFTP.", "waitConnection": "Por favor, aguarde a conexão ser estabelecida", + "wakeLock": "Manter acordado", "watchNotPaired": "Não há Apple Watch pareado", "webdavSettingEmpty": "Configurações de Webdav estão vazias", "whenOpenApp": "Ao abrir o app", diff --git a/lib/l10n/app_ru.arb b/lib/l10n/app_ru.arb index de9af698..21ac79e5 100644 --- a/lib/l10n/app_ru.arb +++ b/lib/l10n/app_ru.arb @@ -320,6 +320,7 @@ "virtKeyHelpIME": "Включить/выключить клавиатуру", "virtKeyHelpSFTP": "Открыть текущий путь в SFTP.", "waitConnection": "Пожалуйста, дождитесь установки соединения", + "wakeLock": "Держать включенным", "watchNotPaired": "Apple Watch не сопряжены", "webdavSettingEmpty": "Настройки Webdav пусты", "whenOpenApp": "при открытии приложения", diff --git a/lib/l10n/app_zh.arb b/lib/l10n/app_zh.arb index b650fe93..cb8b5227 100644 --- a/lib/l10n/app_zh.arb +++ b/lib/l10n/app_zh.arb @@ -320,6 +320,7 @@ "virtKeyHelpIME": "打开/关闭键盘", "virtKeyHelpSFTP": "在 SFTP 中打开当前路径。", "waitConnection": "请等待连接建立", + "wakeLock": "保持喚醒", "watchNotPaired": "没有已配对的 Apple Watch", "webdavSettingEmpty": "Webdav 设置项为空", "whenOpenApp": "当打开 App 时", diff --git a/lib/l10n/app_zh_tw.arb b/lib/l10n/app_zh_tw.arb index d8d0bfa1..81741624 100644 --- a/lib/l10n/app_zh_tw.arb +++ b/lib/l10n/app_zh_tw.arb @@ -320,6 +320,7 @@ "virtKeyHelpIME": "打開/關閉鍵盤", "virtKeyHelpSFTP": "在 SFTP 中打開當前路徑。", "waitConnection": "請等待連接建立", + "wakeLock": "保持喚醒", "watchNotPaired": "沒有已配對的 Apple Watch", "webdavSettingEmpty": "Webdav 設置項爲空", "whenOpenApp": "當打開 App 時", diff --git a/lib/view/page/setting/entry.dart b/lib/view/page/setting/entry.dart index 3bfedb31..e15f749f 100644 --- a/lib/view/page/setting/entry.dart +++ b/lib/view/page/setting/entry.dart @@ -176,6 +176,7 @@ class _SettingPageState extends State { Widget _buildSSH() { return Column( children: [ + _buildWakeLock(), _buildTermTheme(), _buildFont(), _buildTermFontSize(), @@ -1130,4 +1131,12 @@ class _SettingPageState extends State { trailing: StoreSwitch(prop: _setting.collectUsage), ); } + + Widget _buildWakeLock() { + return ListTile( + leading: const Icon(MingCute.lock_fill), + title: Text(l10n.wakeLock), + trailing: StoreSwitch(prop: _setting.wakeLock), + ); + } } diff --git a/lib/view/page/ssh/page.dart b/lib/view/page/ssh/page.dart index 7208498e..1d789b80 100644 --- a/lib/view/page/ssh/page.dart +++ b/lib/view/page/ssh/page.dart @@ -17,6 +17,7 @@ import 'package:toolbox/data/provider/virtual_keyboard.dart'; import 'package:toolbox/data/res/provider.dart'; import 'package:toolbox/data/res/store.dart'; import 'package:toolbox/view/widget/appbar.dart'; +import 'package:wakelock_plus/wakelock_plus.dart'; import 'package:xterm/core.dart'; import 'package:xterm/ui.dart' hide TerminalThemes; @@ -77,6 +78,8 @@ class _SSHPageState extends State with AutomaticKeepAliveClientMixin { Future.delayed(const Duration(milliseconds: 77), () async { _showHelp(); await _initTerminal(); + + if (Stores.setting.wakeLock.fetch()) WakelockPlus.enable(); }); } @@ -86,6 +89,7 @@ class _SSHPageState extends State with AutomaticKeepAliveClientMixin { _virtKeyLongPressTimer?.cancel(); _terminalController.dispose(); _discontinuityTimer?.cancel(); + WakelockPlus.disable(); } @override diff --git a/macos/Flutter/GeneratedPluginRegistrant.swift b/macos/Flutter/GeneratedPluginRegistrant.swift index b2a0347a..f68ecd9a 100644 --- a/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/macos/Flutter/GeneratedPluginRegistrant.swift @@ -7,20 +7,24 @@ import Foundation import dynamic_color import icloud_storage +import package_info_plus import path_provider_foundation import screen_retriever import share_plus import shared_preferences_foundation import url_launcher_macos +import wakelock_plus import window_manager func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { DynamicColorPlugin.register(with: registry.registrar(forPlugin: "DynamicColorPlugin")) IcloudStoragePlugin.register(with: registry.registrar(forPlugin: "IcloudStoragePlugin")) + FPPPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FPPPackageInfoPlusPlugin")) PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) ScreenRetrieverPlugin.register(with: registry.registrar(forPlugin: "ScreenRetrieverPlugin")) SharePlusMacosPlugin.register(with: registry.registrar(forPlugin: "SharePlusMacosPlugin")) SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin")) UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin")) + WakelockPlusMacosPlugin.register(with: registry.registrar(forPlugin: "WakelockPlusMacosPlugin")) WindowManagerPlugin.register(with: registry.registrar(forPlugin: "WindowManagerPlugin")) } diff --git a/macos/Runner.xcodeproj/project.pbxproj b/macos/Runner.xcodeproj/project.pbxproj index 0dcaaac1..b5f5c54e 100644 --- a/macos/Runner.xcodeproj/project.pbxproj +++ b/macos/Runner.xcodeproj/project.pbxproj @@ -471,7 +471,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 873; + CURRENT_PROJECT_VERSION = 876; DEVELOPMENT_TEAM = BA88US33G6; INFOPLIST_FILE = Runner/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = "Server Box"; @@ -481,7 +481,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 10.15; - MARKETING_VERSION = 1.0.873; + MARKETING_VERSION = 1.0.876; PRODUCT_BUNDLE_IDENTIFIER = com.lollipopkit.toolbox; PRODUCT_NAME = "Server Box"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -608,7 +608,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 873; + CURRENT_PROJECT_VERSION = 876; DEVELOPMENT_TEAM = BA88US33G6; INFOPLIST_FILE = Runner/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = "Server Box"; @@ -618,7 +618,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 10.15; - MARKETING_VERSION = 1.0.873; + MARKETING_VERSION = 1.0.876; PRODUCT_BUNDLE_IDENTIFIER = com.lollipopkit.toolbox; PRODUCT_NAME = "Server Box"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -638,7 +638,7 @@ "CODE_SIGN_IDENTITY[sdk=macosx*]" = "3rd Party Mac Developer Application"; CODE_SIGN_STYLE = Manual; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 873; + CURRENT_PROJECT_VERSION = 876; DEVELOPMENT_TEAM = ""; "DEVELOPMENT_TEAM[sdk=macosx*]" = BA88US33G6; INFOPLIST_FILE = Runner/Info.plist; @@ -649,7 +649,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 10.15; - MARKETING_VERSION = 1.0.873; + MARKETING_VERSION = 1.0.876; PRODUCT_BUNDLE_IDENTIFIER = com.lollipopkit.toolbox; PRODUCT_NAME = "Server Box"; PROVISIONING_PROFILE_SPECIFIER = ""; diff --git a/pubspec.lock b/pubspec.lock index b4574a3b..0d1e3b30 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -267,6 +267,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.9.1-pre" + dbus: + dependency: transitive + description: + name: dbus + sha256: "365c771ac3b0e58845f39ec6deebc76e3276aa9922b0cc60840712094d9047ac" + url: "https://pub.dev" + source: hosted + version: "0.7.10" dio: dependency: "direct main" description: @@ -751,6 +759,22 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.0" + package_info_plus: + dependency: transitive + description: + name: package_info_plus + sha256: "2c582551839386fa7ddbc7770658be7c0f87f388a4bff72066478f597c34d17f" + url: "https://pub.dev" + source: hosted + version: "7.0.0" + package_info_plus_platform_interface: + dependency: transitive + description: + name: package_info_plus_platform_interface + sha256: f49918f3433a3146047372f9d4f1f847511f2acd5cd030e1f44fe5a50036b70e + url: "https://pub.dev" + source: hosted + version: "3.0.0" path: dependency: transitive description: @@ -1284,6 +1308,22 @@ packages: url: "https://pub.dev" source: hosted version: "13.0.0" + wakelock_plus: + dependency: "direct main" + description: + name: wakelock_plus + sha256: c8b7cc80f045533b40a0e6c9109905494e3cf32c0fbd5c62616998e0de44003f + url: "https://pub.dev" + source: hosted + version: "1.2.4" + wakelock_plus_platform_interface: + dependency: transitive + description: + name: wakelock_plus_platform_interface + sha256: "422d1cdbb448079a8a62a5a770b69baa489f8f7ca21aef47800c726d404f9d16" + url: "https://pub.dev" + source: hosted + version: "1.2.1" watch_connectivity: dependency: "direct main" description: @@ -1338,10 +1378,10 @@ packages: dependency: transitive description: name: win32 - sha256: "464f5674532865248444b4c3daca12bd9bf2d7c47f759ce2617986e7229494a8" + sha256: "0eaf06e3446824099858367950a813472af675116bf63f008a4c2a75ae13e9cb" url: "https://pub.dev" source: hosted - version: "5.2.0" + version: "5.5.0" window_manager: dependency: "direct main" description: diff --git a/pubspec.yaml b/pubspec.yaml index 2307feda..f21bdcf9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -75,6 +75,7 @@ dependencies: icons_plus: ^5.0.0 permission_handler: ^11.3.1 fl_chart: ^0.67.0 + wakelock_plus: ^1.2.4 dev_dependencies: flutter_native_splash: ^2.1.6