Backup before removing hiddify references
This commit is contained in:
@@ -13,10 +13,9 @@ import 'dart:async' as $async;
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:grpc/service_api.dart' as $grpc;
|
||||
import 'package:hiddify/singbox/generated/core.pb.dart' as $0;
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
import 'core.pb.dart' as $0;
|
||||
|
||||
export 'core.pb.dart';
|
||||
|
||||
@$pb.GrpcServiceName('ConfigOptions.CoreService')
|
||||
@@ -24,17 +23,17 @@ class CoreServiceClient extends $grpc.Client {
|
||||
static final _$parseConfig = $grpc.ClientMethod<$0.ParseConfigRequest, $0.ParseConfigResponse>(
|
||||
'/ConfigOptions.CoreService/ParseConfig',
|
||||
($0.ParseConfigRequest value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $0.ParseConfigResponse.fromBuffer(value));
|
||||
($core.List<$core.int> value) => $0.ParseConfigResponse.fromBuffer(value),);
|
||||
static final _$generateFullConfig = $grpc.ClientMethod<$0.GenerateConfigRequest, $0.GenerateConfigResponse>(
|
||||
'/ConfigOptions.CoreService/GenerateFullConfig',
|
||||
($0.GenerateConfigRequest value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $0.GenerateConfigResponse.fromBuffer(value));
|
||||
($core.List<$core.int> value) => $0.GenerateConfigResponse.fromBuffer(value),);
|
||||
|
||||
CoreServiceClient($grpc.ClientChannel channel,
|
||||
{$grpc.CallOptions? options,
|
||||
$core.Iterable<$grpc.ClientInterceptor>? interceptors})
|
||||
$core.Iterable<$grpc.ClientInterceptor>? interceptors,})
|
||||
: super(channel, options: options,
|
||||
interceptors: interceptors);
|
||||
interceptors: interceptors,);
|
||||
|
||||
$grpc.ResponseFuture<$0.ParseConfigResponse> parseConfig($0.ParseConfigRequest request, {$grpc.CallOptions? options}) {
|
||||
return $createUnaryCall(_$parseConfig, request, options: options);
|
||||
@@ -56,14 +55,14 @@ abstract class CoreServiceBase extends $grpc.Service {
|
||||
false,
|
||||
false,
|
||||
($core.List<$core.int> value) => $0.ParseConfigRequest.fromBuffer(value),
|
||||
($0.ParseConfigResponse value) => value.writeToBuffer()));
|
||||
($0.ParseConfigResponse value) => value.writeToBuffer(),),);
|
||||
$addMethod($grpc.ServiceMethod<$0.GenerateConfigRequest, $0.GenerateConfigResponse>(
|
||||
'GenerateFullConfig',
|
||||
generateFullConfig_Pre,
|
||||
false,
|
||||
false,
|
||||
($core.List<$core.int> value) => $0.GenerateConfigRequest.fromBuffer(value),
|
||||
($0.GenerateConfigResponse value) => value.writeToBuffer()));
|
||||
($0.GenerateConfigResponse value) => value.writeToBuffer(),),);
|
||||
}
|
||||
|
||||
$async.Future<$0.ParseConfigResponse> parseConfig_Pre($grpc.ServiceCall call, $async.Future<$0.ParseConfigRequest> request) async {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import 'package:dartx/dartx.dart';
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
import 'package:hiddify/singbox/model/singbox_proxy_type.dart';
|
||||
|
||||
|
||||
@@ -186,7 +186,10 @@ class PlatformSingboxService with InfraLogger implements SingboxService {
|
||||
return activeGroupsChannel.receiveBroadcastStream().map(
|
||||
(event) {
|
||||
if (event case String _) {
|
||||
return (jsonDecode(event) as List).map((e) {
|
||||
final decoded = jsonDecode(event) as List;
|
||||
loggy.info("🔍 DECODED JSON: ${decoded.length} groups");
|
||||
return decoded.map((e) {
|
||||
loggy.info("🔍 GROUP DATA: $e");
|
||||
return SingboxOutboundGroup.fromJson(e as Map<String, dynamic>);
|
||||
}).toList();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user