mirror of
https://github.com/kuhyx/screen-locker.git
synced 2026-11-28 15:29:08 +01:00
Fix flutter analyze infos for the push gate
Document the now-public ServerAddressTile.addresses field, wrap the prod DB-path ignore in a start/end block to avoid an >80-char line, and reflow a pre-existing >80-char comment in sync_service. flutter analyze is clean. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UWkAKQ48Jhg5iSPkzh8NsH
This commit is contained in:
parent
79c7d8d1c6
commit
a0923ce694
@ -285,6 +285,7 @@ class ServerAddressTile extends StatelessWidget {
|
|||||||
/// Creates a tile listing [addresses] (may be empty).
|
/// Creates a tile listing [addresses] (may be empty).
|
||||||
const ServerAddressTile({required this.addresses, super.key});
|
const ServerAddressTile({required this.addresses, super.key});
|
||||||
|
|
||||||
|
/// LAN addresses the server is reachable at; empty when not started.
|
||||||
final List<String> addresses;
|
final List<String> addresses;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|||||||
@ -86,7 +86,9 @@ class StorageService {
|
|||||||
Future<void> _open() async {
|
Future<void> _open() async {
|
||||||
final dbPath =
|
final dbPath =
|
||||||
_testDbPath ??
|
_testDbPath ??
|
||||||
p.join(await getDatabasesPath(), 'workout_app.db'); // coverage:ignore-line
|
// coverage:ignore-start
|
||||||
|
p.join(await getDatabasesPath(), 'workout_app.db');
|
||||||
|
// coverage:ignore-end
|
||||||
_db = await openDatabase(
|
_db = await openDatabase(
|
||||||
dbPath,
|
dbPath,
|
||||||
version: 3,
|
version: 3,
|
||||||
|
|||||||
@ -29,8 +29,8 @@ class SyncService {
|
|||||||
// Fallback: app-specific external directory (still ADB accessible).
|
// Fallback: app-specific external directory (still ADB accessible).
|
||||||
}
|
}
|
||||||
|
|
||||||
// External storage is Android-only; getExternalStorageDirectory() throws an
|
// External storage is Android-only; getExternalStorageDirectory() throws
|
||||||
// UnsupportedError (not an Exception) on other platforms, so guard the call.
|
// an UnsupportedError (not an Exception) elsewhere, so guard the call.
|
||||||
// coverage:ignore-start
|
// coverage:ignore-start
|
||||||
// Android-only: getExternalStorageDirectory is unavailable on the Linux
|
// Android-only: getExternalStorageDirectory is unavailable on the Linux
|
||||||
// test host, so this block can't be exercised in CI.
|
// test host, so this block can't be exercised in CI.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user