feat(app): the native app signs in at the web login and carries the session on its socket and downloads
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import '../core/session/server_session.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/widgets.dart';
|
||||
|
||||
@@ -43,6 +44,9 @@ Future<void> runPipelinesApp({
|
||||
SettingsStore? settingsStore,
|
||||
}) async {
|
||||
useAppUrlStrategy();
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
// A phone behind the web login reconnects with its kept session.
|
||||
await ServerSession.load();
|
||||
final server = await resolveLaunchServer(
|
||||
base: base,
|
||||
configured: configured,
|
||||
|
||||
@@ -468,6 +468,8 @@ class _PipelinesAppState extends State<PipelinesApp>
|
||||
),
|
||||
AppDestination.settings: (_) => SettingsScreen(
|
||||
client: _session.client,
|
||||
// A phone signs in at the web login; a browser has its own.
|
||||
showSignIn: !kIsWeb,
|
||||
initialEndpoint: _session.endpoint,
|
||||
embedded: true,
|
||||
onOpenTemplates: _delegate.openTemplates,
|
||||
|
||||
Reference in New Issue
Block a user