Update protos
All checks were successful
ci/woodpecker/push/build Pipeline was successful

Signed-off-by: Nikolai Rodionov <iam@allanger.xyz>
This commit is contained in:
2026-05-11 12:15:12 +02:00
parent 81e2bf2ef4
commit 3102296735
5 changed files with 26 additions and 32 deletions

View File

@@ -1,25 +0,0 @@
import 'dart:developer';
import 'package:grpc/grpc_web.dart';
import 'package:softplayer_dart_proto/src/test/v1/test_v1.pb.dart';
import 'package:softplayer_dart_proto/src/test/v1/test_v1.pbgrpc.dart';
class TestAuthGrpc {
final GrpcWebClientChannel channel;
late TestAuthServiceClient serviceStub;
TestAuthGrpc({required this.channel});
void init() {
serviceStub = TestAuthServiceClient(channel);
}
Future<void> pong() async {
final request = PongRequest();
try {
final response = await serviceStub.pong(request);
log(response.toString());
} catch (e) {
rethrow;
}
}
}

View File

@@ -4,13 +4,33 @@ import 'package:grpc/grpc_web.dart';
import 'package:softplayer_dart_proto/src/test/v1/test_v1.pb.dart';
import 'package:softplayer_dart_proto/src/test/v1/test_v1.pbgrpc.dart';
class TestAuthGrpc {
final GrpcWebClientChannel channel;
late TestServiceClient serviceStub;
TestAuthGrpc({required this.channel});
void init() {
serviceStub = TestServiceClient(channel);
}
Future<void> pong() async {
final request = PongRequest();
try {
final response = await serviceStub.pong(request);
log(response.toString());
} catch (e) {
rethrow;
}
}
}
class TestNoAuthGrpc {
final GrpcWebClientChannel channel;
late TestNoAuthServiceClient serviceStub;
late PublicTestServiceClient serviceStub;
TestNoAuthGrpc({required this.channel});
void init() {
serviceStub = TestNoAuthServiceClient(channel);
serviceStub = PublicTestServiceClient(channel);
}
Future<void> ping() async {

View File

@@ -1,7 +1,6 @@
import 'dart:developer';
import 'package:softplayer_web/api/grpc/test_auth.dart';
import 'package:softplayer_web/api/grpc/test_no_auth.dart';
import 'package:softplayer_web/api/grpc/test_service.dart';
import 'package:web/web.dart' as web;
import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'package:flutter/material.dart';

View File

@@ -276,8 +276,8 @@ packages:
dependency: "direct main"
description:
path: "."
ref: d7bdb92492d6986db4ade9e81ff088dee2a6757b
resolved-ref: d7bdb92492d6986db4ade9e81ff088dee2a6757b
ref: a9a7f05332596f776b37d2757b33f06f6faa92e9
resolved-ref: a9a7f05332596f776b37d2757b33f06f6faa92e9
url: "https://gitea.badhouseplants.net/softplayer/softplayer-dart-proto.git"
source: git
version: "1.0.0"

View File

@@ -11,7 +11,7 @@ dependencies:
softplayer_dart_proto:
git:
url: https://gitea.badhouseplants.net/softplayer/softplayer-dart-proto.git
ref: d7bdb92492d6986db4ade9e81ff088dee2a6757b
ref: a9a7f05332596f776b37d2757b33f06f6faa92e9
cupertino_icons: ^1.0.9
grpc: 5.1.0
http: ^1.6.0