From 4742fde5c48726357cc8db06d237e9db6c3df608 Mon Sep 17 00:00:00 2001 From: Scott Murray Date: Sun, 31 Dec 2023 16:24:51 -0500 Subject: Initial radio implementation Notable changes: - Add radio gRPC API protobuf definitation and generated files. - Reworked existing single gRPC APIs library to split it into per-API libraries to avoid name collision issues. - Add radio gRPC client class and associated radio state class and RiverPod providers. - Split media controls and play list table classes into media player and radio specific versions to facilitate customization and wiring up their appropriate backends in a straightforward fashion. Some potential rationalization of styling widgets may be done as a follow up to avoid some duplication. - Added radio configuration and presets loading. The presets will be populated with the contents of a radio-presets.yaml file from the configured location, the default location is the /etc/xdg/AGL/ics-homescreen directory. - Implemented FM radio player against the radio gRPC API. For the sake of expediency, no attempt has been made to make the player able to handle AM band support. - Reworked media page navigation state so that active player is restored when coming back to the page. Logic has been added to start/stop the radio on navigating to or leaving the FM radio sub-page. This will potentially be reworked before CES to work with the pause/stop button present on the other pages. - Started pruning down global exports.dart a bit to remove files only used in a specific page/hierarchy, starting with media. Bug-AGL: SPEC-5029 Change-Id: I1ae0aca4a7a8218e69e4286c863f01509a1cccb7 Signed-off-by: Scott Murray --- protos/lib/src/generated/todo.pb.dart | 146 ---------------------------------- 1 file changed, 146 deletions(-) delete mode 100644 protos/lib/src/generated/todo.pb.dart (limited to 'protos/lib/src/generated/todo.pb.dart') diff --git a/protos/lib/src/generated/todo.pb.dart b/protos/lib/src/generated/todo.pb.dart deleted file mode 100644 index d42a385..0000000 --- a/protos/lib/src/generated/todo.pb.dart +++ /dev/null @@ -1,146 +0,0 @@ -// -// Generated code. Do not modify. -// source: todo.proto -// -// @dart = 2.12 - -// ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import - -import 'dart:core' as $core; - -import 'package:protobuf/protobuf.dart' as $pb; - -class Todo extends $pb.GeneratedMessage { - factory Todo({ - $core.int? id, - $core.String? title, - $core.bool? completed, - }) { - final $result = create(); - if (id != null) { - $result.id = id; - } - if (title != null) { - $result.title = title; - } - if (completed != null) { - $result.completed = completed; - } - return $result; - } - Todo._() : super(); - factory Todo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Todo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Todo', createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'id', $pb.PbFieldType.O3) - ..aOS(2, _omitFieldNames ? '' : 'title') - ..aOB(3, _omitFieldNames ? '' : 'completed') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - Todo clone() => Todo()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Todo copyWith(void Function(Todo) updates) => super.copyWith((message) => updates(message as Todo)) as Todo; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static Todo create() => Todo._(); - Todo createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static Todo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static Todo? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get id => $_getIZ(0); - @$pb.TagNumber(1) - set id($core.int v) { $_setSignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasId() => $_has(0); - @$pb.TagNumber(1) - void clearId() => clearField(1); - - @$pb.TagNumber(2) - $core.String get title => $_getSZ(1); - @$pb.TagNumber(2) - set title($core.String v) { $_setString(1, v); } - @$pb.TagNumber(2) - $core.bool hasTitle() => $_has(1); - @$pb.TagNumber(2) - void clearTitle() => clearField(2); - - @$pb.TagNumber(3) - $core.bool get completed => $_getBF(2); - @$pb.TagNumber(3) - set completed($core.bool v) { $_setBool(2, v); } - @$pb.TagNumber(3) - $core.bool hasCompleted() => $_has(2); - @$pb.TagNumber(3) - void clearCompleted() => clearField(3); -} - -class GetTodoByIdRequest extends $pb.GeneratedMessage { - factory GetTodoByIdRequest({ - $core.int? id, - }) { - final $result = create(); - if (id != null) { - $result.id = id; - } - return $result; - } - GetTodoByIdRequest._() : super(); - factory GetTodoByIdRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetTodoByIdRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetTodoByIdRequest', createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'id', $pb.PbFieldType.O3) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GetTodoByIdRequest clone() => GetTodoByIdRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetTodoByIdRequest copyWith(void Function(GetTodoByIdRequest) updates) => super.copyWith((message) => updates(message as GetTodoByIdRequest)) as GetTodoByIdRequest; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static GetTodoByIdRequest create() => GetTodoByIdRequest._(); - GetTodoByIdRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static GetTodoByIdRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static GetTodoByIdRequest? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get id => $_getIZ(0); - @$pb.TagNumber(1) - set id($core.int v) { $_setSignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasId() => $_has(0); - @$pb.TagNumber(1) - void clearId() => clearField(1); -} - - -const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); -- cgit