diff options
author | Scott Murray <scott.murray@konsulko.com> | 2023-09-14 14:01:24 -0400 |
---|---|---|
committer | Scott Murray <scott.murray@konsulko.com> | 2023-09-14 14:37:02 -0400 |
commit | cbbb9f40e283d12f6c52ad28609516f390316f7a (patch) | |
tree | d8d2cd8f4641299dd35a3138c0e28f11443928d6 /lib/main.dart | |
parent | 5ce59ba69f1451ec18c565b7b18301856553f574 (diff) |
Rework to use KUKSA.val databroker gRPC API
Rework to move from the WebSocket API with the older KUKSA.val
server to the gRPC "VAL" API of the databroker.
Changes include:
- All VISS WebSocket API code has been removed, and the signal
providers replumbed to be driven by a new VssClient class with
a homescreen-specific child class to hold all the gRPC API
handling.
- The generated code for the VAL API and its dependencies has
been checked in under lib/generated, as there still does not
seem to be a good way to generate it during the Flutter build.
- The configuration file is now expected to be "homescreen.yaml"
instead of "homescreen_config.yaml". The authorization token
field name has been renamed to "authorization", and there are
new "use-tls" and "ca-certificate" configuration fields. TLS
is disabled by default for now, and the default CA certificate
is /etc/kuksa.val/CA.pem.
- Updated .gitignore to cover a couple of generated files that
weren't included.
Bug-AGL: SPEC-4762, SPEC-4903
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: I1b95ed27a72435364d54ec846f2be88e3d8bb092
Diffstat (limited to 'lib/main.dart')
-rw-r--r-- | lib/main.dart | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/main.dart b/lib/main.dart index f5ea0f7..455f54b 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -2,17 +2,14 @@ import 'dart:io'; import 'package:flutter/material.dart'; import 'package:flutter_homescreen/homescreen.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:flutter_homescreen/vehicle-signals/viss_config.dart'; Future<void> main() async { WidgetsFlutterBinding.ensureInitialized(); - HttpClient client = await initializeClient(); - runApp(ProviderScope(child: MyApp(client: client))); + runApp(ProviderScope(child: MyApp())); } class MyApp extends ConsumerWidget { - MyApp({Key? key, required this.client}) : super(key: key); - final HttpClient client; + MyApp({Key? key}) : super(key: key); // This widget is the root of your application. @override @@ -32,7 +29,7 @@ class MyApp extends ConsumerWidget { color: navBarIconColor, ))), ), - home: Homescreen(client: client), + home: Homescreen(), ); } } |