fix(ci): align toolchains and isolate platform tests

This commit is contained in:
edde746
2026-07-24 10:06:50 +02:00
parent 6c03094ef1
commit 40833e65ec
17 changed files with 170 additions and 147 deletions
+3 -2
View File
@@ -58,9 +58,10 @@ String constrainLogUploadPayload({required String header, required String logs,
}
class LogsScreen extends StatefulWidget {
const LogsScreen({super.key, this.httpClient});
const LogsScreen({super.key, this.httpClient, this.deviceInfoPlugin});
final MediaServerHttpClient? httpClient;
final DeviceInfoPlugin? deviceInfoPlugin;
@override
State<LogsScreen> createState() => _LogsScreenState();
@@ -82,7 +83,7 @@ class _LogsScreenState extends State<LogsScreen> with MountedSetStateMixin {
Future<void> _loadDeviceInfo() async {
final packageInfo = await PackageInfo.fromPlatform();
final deviceInfo = DeviceInfoPlugin();
final deviceInfo = widget.deviceInfoPlugin ?? DeviceInfoPlugin();
final buffer = StringBuffer();
final commitSuffix = gitCommit.isNotEmpty ? ' ${gitCommit.substring(0, 7)}' : '';
buffer.writeln('${t.app.title} v${packageInfo.version} (${packageInfo.buildNumber})$commitSuffix');