diff --git a/app/lib/application/pipelines_root.dart b/app/lib/application/pipelines_root.dart index 8095d4e9..933e28fd 100644 --- a/app/lib/application/pipelines_root.dart +++ b/app/lib/application/pipelines_root.dart @@ -33,6 +33,7 @@ class PipelinesRoot extends StatefulWidget { this.catalogStore = const SharedPreferencesServerCatalogStore(), this.web = kIsWeb, this.clientFactory, + this.nativeUpdatesSupported, }); final ServerEndpoint server; @@ -46,6 +47,9 @@ class PipelinesRoot extends StatefulWidget { final SettingsStore settingsStore; final ServerCatalogStore catalogStore; final bool web; + + /// Optional capability override for platform hosts and isolated widget tests. + final bool? nativeUpdatesSupported; final PipelinesClient Function()? clientFactory; @override @@ -275,6 +279,7 @@ class _PipelinesRootState extends State { } if (!_onboarding) { return PipelinesApp( + androidSupported: widget.nativeUpdatesSupported, key: ValueKey(_generation), server: _server, client: _client, diff --git a/app/notes/native-multi-server-updates.md b/app/notes/native-multi-server-updates.md index 1c5b9f57..e9595c17 100644 --- a/app/notes/native-multi-server-updates.md +++ b/app/notes/native-multi-server-updates.md @@ -37,3 +37,10 @@ is not claimed by these captures. Final suite `/tmp/memwatch/out.6XWDNJ`: 36 passed; analyzer clean at `/var/folders/jp/q0qvjyg54fl_c5vhhk1ylz2m0000gn/T/flutter-analyze.zQ46R4`. Display names subsequently polished to Linux/macOS (feed values unchanged). + +Manager integration: combined server-selection/creation, updater/session, +server scopes and chat automation suite passed 89 tests after adding an explicit +native-update capability override to the Root test host. Existing server-switch +fixtures disable native network probing; production defaults still enable all +supported native platforms. This resolved two pending-timer fixture failures +introduced when Linux became supported. Analyzer clean (9sOpy3). diff --git a/app/test/application/pipelines_root_test.dart b/app/test/application/pipelines_root_test.dart index 2bea8b50..9300696b 100644 --- a/app/test/application/pipelines_root_test.dart +++ b/app/test/application/pipelines_root_test.dart @@ -35,6 +35,7 @@ void main() { (tester) async { await tester.pumpWidget( PipelinesRoot( + nativeUpdatesSupported: false, server: _server(''), buildDefault: 'wss://build.example/connect', check: (_) async => SessionState.signedOut, @@ -54,6 +55,7 @@ void main() { ) async { await tester.pumpWidget( PipelinesRoot( + nativeUpdatesSupported: false, server: _server('wss://home.example/connect'), // A saved server with no kept session goes to onboarding directly. signedIn: false, diff --git a/app/test/application/server_selection_test.dart b/app/test/application/server_selection_test.dart index 768f49a5..9a3f27be 100644 --- a/app/test/application/server_selection_test.dart +++ b/app/test/application/server_selection_test.dart @@ -57,6 +57,7 @@ void main() { await ServerSession.load(); await tester.pumpWidget( PipelinesRoot( + nativeUpdatesSupported: false, server: ServerEndpoint.resolve( base: Uri.parse('file:///'), web: false, @@ -119,6 +120,7 @@ void main() { ); await tester.pumpWidget( PipelinesRoot( + nativeUpdatesSupported: false, server: server, catalogStore: store, clientFactory: factory, @@ -207,6 +209,7 @@ void main() { ); await tester.pumpWidget( PipelinesRoot( + nativeUpdatesSupported: false, server: ServerEndpoint.resolve( base: Uri.parse('file:///'), web: false,