Commit 8725a994 authored by 林生雨's avatar 林生雨

add grpc

parent 16b2c122
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
{"version":"20e59316b8b8474554b38493b8ca888794b0234a","properties":{"buildMode":"BuildMode.release","targetPlatform":"TargetPlatform.android_arm","entryPoint":"build/flutteroutput/aot/app.dill","sharedLib":"false","extraGenSnapshotOptions":"","engineHash":"fee001c93f25a1e7258e762781a7361f122d29f5","buildersUsed":"false"},"files":{"/Users/apple/Downloads/flutter/bin/cache/pkg/sky_engine/lib/ui/ui.dart":"eb7755654f7eeb3b79fe0e7292ba8b7b","/Users/apple/Downloads/flutter/bin/cache/pkg/sky_engine/sdk_ext/vmservice_io.dart":"6137595b8118b04910c4f137a94bad5f","build/flutteroutput/aot/app.dill":"6aa1107af87155a0ade198493fbbfa28","build/flutteroutput/aot/isolate_snapshot_data":"2496d8bcce7266b6fd11c352fb50e9c7","build/flutteroutput/aot/isolate_snapshot_instr":"71688c0b3adc35d35adf7c67990843b7","build/flutteroutput/aot/vm_snapshot_data":"9df51beb7ff50608e0e854f7232fd2f4","build/flutteroutput/aot/vm_snapshot_instr":"4f207dc4df14e95febb3bb4e4c611765"}}
\ No newline at end of file
{"version":"20e59316b8b8474554b38493b8ca888794b0234a","properties":{"buildMode":"BuildMode.release","targetPlatform":"TargetPlatform.android_arm","entryPoint":"build/flutteroutput/aot/app.dill","sharedLib":"false","extraGenSnapshotOptions":"","engineHash":"fee001c93f25a1e7258e762781a7361f122d29f5","buildersUsed":"false"},"files":{"/Users/apple/Downloads/flutter/bin/cache/pkg/sky_engine/lib/ui/ui.dart":"eb7755654f7eeb3b79fe0e7292ba8b7b","/Users/apple/Downloads/flutter/bin/cache/pkg/sky_engine/sdk_ext/vmservice_io.dart":"6137595b8118b04910c4f137a94bad5f","build/flutteroutput/aot/app.dill":"1918ad21fef6f42d625e523f189cb53b","build/flutteroutput/aot/isolate_snapshot_data":"27e2f2cfeb055abb6a12a3458d4f45ca","build/flutteroutput/aot/isolate_snapshot_instr":"82bbcffe85de66b3db653f1b3fd466d3","build/flutteroutput/aot/vm_snapshot_data":"9df51beb7ff50608e0e854f7232fd2f4","build/flutteroutput/aot/vm_snapshot_instr":"4f207dc4df14e95febb3bb4e4c611765"}}
\ No newline at end of file
......@@ -218,8 +218,8 @@ mkdir /Users/apple/lsy/aar_update/ios${message}/
clean
android
#android_publish
#upload_android_aar
ios
upload_android_aar
#ios
#ios_publish
#notifyDingDing
......
PODS:
- Flutter (1.0.0)
- flutter_boost (0.0.1):
- Flutter
- xservice_kit
- FMDB (2.7.5):
- FMDB/standard (= 2.7.5)
- FMDB/standard (2.7.5)
- gengmei_flutter_plugin (0.0.1):
- Flutter
- path_provider (0.0.1):
- Flutter
- sqflite (0.0.1):
- Flutter
- FMDB (~> 2.7.2)
- xservice_kit (0.0.1):
- Flutter
DEPENDENCIES:
- Flutter (from `.symlinks/flutter/ios`)
- flutter_boost (from `.symlinks/plugins/flutter_boost/ios`)
- gengmei_flutter_plugin (from `.symlinks/plugins/gengmei_flutter_plugin/ios`)
- path_provider (from `.symlinks/plugins/path_provider/ios`)
- sqflite (from `.symlinks/plugins/sqflite/ios`)
- xservice_kit (from `.symlinks/plugins/xservice_kit/ios`)
SPEC REPOS:
https://github.com/cocoapods/specs.git:
- FMDB
EXTERNAL SOURCES:
Flutter:
:path: ".symlinks/flutter/ios"
flutter_boost:
:path: ".symlinks/plugins/flutter_boost/ios"
gengmei_flutter_plugin:
:path: ".symlinks/plugins/gengmei_flutter_plugin/ios"
path_provider:
:path: ".symlinks/plugins/path_provider/ios"
sqflite:
:path: ".symlinks/plugins/sqflite/ios"
xservice_kit:
:path: ".symlinks/plugins/xservice_kit/ios"
SPEC CHECKSUMS:
Flutter: 58dd7d1b27887414a370fcccb9e645c08ffd7a6a
flutter_boost: dd4635cb5672549d64a0a9e47accd1e9ee1c4de8
FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a
gengmei_flutter_plugin: 9461e8644c06c4a0e38292ddcca1cc55e6ac6156
path_provider: d6b45f2abd6d46082316e15beadf67eeb95adb2a
sqflite: 5ba50d7e98116c306c2d9c67067d2c963bdb4c9e
xservice_kit: 076aa63eef6fad67a8fd1542f7b1cabb5a8b23fc
PODFILE CHECKSUM: 35a37ac9f50a31e3627f8c9992b49120478cca1a
COCOAPODS: 1.7.4
/*
* @author lsy
* @date 2019-09-29
**/
import 'package:gmalpha_flutter/BuriedLib/BuriedRouter.dart';
class BuriedImpl implements BuriedRouter{
}
\ No newline at end of file
/*
* @author lsy
* @date 2019-09-29
**/
import 'package:gmalpha_flutter/Annotations/RouterBaser.dart';
import 'package:gmalpha_flutter/Annotations/anno/Router.dart';
import 'package:gmalpha_flutter/BuriedLib/BuriedImpl.dart';
@Router("buried_router",BuriedImpl)
abstract class BuriedRouter extends RouterBaser{
}
\ No newline at end of file
///
// Generated code. Do not modify.
// source: burying.proto
//
// @dart = 2.3
// ignore_for_file: camel_case_types,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type
import 'dart:core' as $core;
import 'package:protobuf/protobuf.dart' as $pb;
class HomeNote extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo('HomeNote',
package: const $pb.PackageName('likebury'), createEmptyInstance: create)
..aOS(1, 'event')
..aOS(2, 'message')
..hasRequiredFields = false;
HomeNote._() : super();
factory HomeNote() => create();
factory HomeNote.fromBuffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
factory HomeNote.fromJson($core.String i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
HomeNote clone() => HomeNote()..mergeFromMessage(this);
HomeNote copyWith(void Function(HomeNote) updates) =>
super.copyWith((message) => updates(message as HomeNote));
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static HomeNote create() => HomeNote._();
HomeNote createEmptyInstance() => create();
static $pb.PbList<HomeNote> createRepeated() => $pb.PbList<HomeNote>();
@$core.pragma('dart2js:noInline')
static HomeNote getDefault() =>
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<HomeNote>(create);
static HomeNote _defaultInstance;
@$pb.TagNumber(1)
$core.String get event => $_getSZ(0);
@$pb.TagNumber(1)
set event($core.String v) {
$_setString(0, v);
}
@$pb.TagNumber(1)
$core.bool hasEvent() => $_has(0);
@$pb.TagNumber(1)
void clearEvent() => clearField(1);
@$pb.TagNumber(2)
$core.String get message => $_getSZ(1);
@$pb.TagNumber(2)
set message($core.String v) {
$_setString(1, v);
}
@$pb.TagNumber(2)
$core.bool hasMessage() => $_has(1);
@$pb.TagNumber(2)
void clearMessage() => clearField(2);
}
class ServiceNote extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo('ServiceNote',
package: const $pb.PackageName('likebury'), createEmptyInstance: create)
..aOS(1, 'message')
..hasRequiredFields = false;
ServiceNote._() : super();
factory ServiceNote() => create();
factory ServiceNote.fromBuffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
factory ServiceNote.fromJson($core.String i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
ServiceNote clone() => ServiceNote()..mergeFromMessage(this);
ServiceNote copyWith(void Function(ServiceNote) updates) =>
super.copyWith((message) => updates(message as ServiceNote));
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static ServiceNote create() => ServiceNote._();
ServiceNote createEmptyInstance() => create();
static $pb.PbList<ServiceNote> createRepeated() => $pb.PbList<ServiceNote>();
@$core.pragma('dart2js:noInline')
static ServiceNote getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<ServiceNote>(create);
static ServiceNote _defaultInstance;
@$pb.TagNumber(1)
$core.String get message => $_getSZ(0);
@$pb.TagNumber(1)
set message($core.String v) {
$_setString(0, v);
}
@$pb.TagNumber(1)
$core.bool hasMessage() => $_has(0);
@$pb.TagNumber(1)
void clearMessage() => clearField(1);
}
///
// Generated code. Do not modify.
// source: burying.proto
//
// @dart = 2.3
// ignore_for_file: camel_case_types,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type
///
// Generated code. Do not modify.
// source: burying.proto
//
// @dart = 2.3
// ignore_for_file: camel_case_types,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type
import 'dart:async' as $async;
import 'dart:core' as $core;
import 'package:grpc/service_api.dart' as $grpc;
import 'burying.pb.dart' as $0;
export 'burying.pb.dart';
class BuryingClient extends $grpc.Client {
static final _$homeBury = $grpc.ClientMethod<$0.HomeNote, $0.ServiceNote>(
'/likebury.Burying/HomeBury',
($0.HomeNote value) => value.writeToBuffer(),
($core.List<$core.int> value) => $0.ServiceNote.fromBuffer(value));
BuryingClient($grpc.ClientChannel channel, {$grpc.CallOptions options})
: super(channel, options: options);
$grpc.ResponseStream<$0.ServiceNote> homeBury(
$async.Stream<$0.HomeNote> request,
{$grpc.CallOptions options}) {
final call = $createCall(_$homeBury, request, options: options);
return $grpc.ResponseStream(call);
}
}
abstract class BuryingServiceBase extends $grpc.Service {
$core.String get $name => 'likebury.Burying';
BuryingServiceBase() {
$addMethod($grpc.ServiceMethod<$0.HomeNote, $0.ServiceNote>(
'HomeBury',
homeBury,
true,
true,
($core.List<$core.int> value) => $0.HomeNote.fromBuffer(value),
($0.ServiceNote value) => value.writeToBuffer()));
}
$async.Stream<$0.ServiceNote> homeBury(
$grpc.ServiceCall call, $async.Stream<$0.HomeNote> request);
}
syntax = "proto3";
package likebury;
// 定义一个叫做Burying的grpc服务
service Burying {
// 定一个Homebury的方法,
// 参数是HomeNote eg: {event: "click", message: "user click the homepage"}
// 返回值是ServiceNote eg: {message: "success"}
rpc HomeBury (stream HomeNote) returns (stream ServiceNote) {}
}
message HomeNote {
string event = 1;
string message = 2;
}
message ServiceNote {
string message = 1;
}
//package cos;
//
//service CosService {
// // Cos 服务
//
// // 获取临时凭证服务
// rpc GetCredential (GetCredentialRequest) returns (GetCredentialResponse) {
// }
//}
//
//
//message GetCredentialRequest {
// // 获取临时凭证请求
//}
//
//message GetCredentialResponse {
// // 获取临时凭证响应
//
// message Credential {
// string session_token = 1;
// string tmp_secret_id = 2;
// string tmp_secret_key = 3;
// }
//
// Credential credential = 1;
// int64 expired_time = 2;
// string request_id = 3;
//
//}
//
......@@ -223,6 +223,13 @@ packages:
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.1.7"
googleapis_auth:
dependency: transitive
description:
name: googleapis_auth
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.2.10"
graphs:
dependency: transitive
description:
......@@ -230,6 +237,13 @@ packages:
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.2.0"
grpc:
dependency: "direct main"
description:
name: grpc
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.1.2"
html:
dependency: transitive
description:
......@@ -244,6 +258,13 @@ packages:
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.12.0+2"
http2:
dependency: transitive
description:
name: http2
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.0.0"
http_multi_server:
dependency: transitive
description:
......@@ -363,6 +384,13 @@ packages:
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.4.0"
protobuf:
dependency: "direct main"
description:
name: protobuf
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.14.4"
pub_semver:
dependency: transitive
description:
......
......@@ -35,7 +35,8 @@ dependencies:
git:
url: 'git@git.wanmeizhensuo.com:linshengyu/flutter_plugin.git'
ref: "4e7c15a7f1e1b7c17655e87ab3ad3434bbe5cdae"
protobuf: ^0.14.4
grpc: ^2.1.2
dev_dependencies:
source_gen: '>=0.8.0'
......
#!/usr/bin/env bash
protoc --dart_out=grpc:lib/BuriedLib/proto -Iprotos/ protos/*.proto --plugin /Users/apple/.pub-cache/bin/protoc-gen-dart
#rm lib/BuriedLib/proto/*.pbjson.dart
#rm lib/BuriedLib/proto/{empty,test}.pbenum.dart
dartfmt -w lib/BuriedLib/proto
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment