Skip to content

Commit 9f65399

Browse files
authored
Move codec.dart to former place (grpc#713)
1 parent 0d02e43 commit 9f65399

12 files changed

+14
-13
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Set compressed flag correctly for grpc-encoding = identity. Fixes [#669](https://github.com/grpc/grpc-dart/issues/669) (https://github.com/grpc/grpc-dart/pull/693)
44
* Remove generated status codes.
55
* Remove dependency on `package:archive`.
6+
* Move `codec.dart`.
67

78
## 3.2.4
89

lib/grpc.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export 'src/server/server.dart'
5555
export 'src/server/server_keepalive.dart' show ServerKeepAliveOptions;
5656
export 'src/server/service.dart' show ServiceMethod, Service;
5757
export 'src/shared/api.dart';
58-
export 'src/shared/codec/codec.dart' show Codec, IdentityCodec, GzipCodec;
58+
export 'src/shared/codec.dart' show Codec, IdentityCodec, GzipCodec;
5959
export 'src/shared/codec_registry.dart';
6060
export 'src/shared/message.dart'
6161
show GrpcMessage, GrpcMetadata, GrpcData, grpcDecompressor;

lib/grpc_connection_interface.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export 'src/client/options.dart' show ChannelOptions;
2525
export 'src/client/transport/transport.dart'
2626
show GrpcTransportStream, ErrorHandler;
2727

28-
export 'src/shared/codec/codec.dart';
28+
export 'src/shared/codec.dart';
2929
export 'src/shared/codec_registry.dart';
3030
export 'src/shared/message.dart' show frame, GrpcMessage, grpcDecompressor;
3131
export 'src/shared/status.dart' show GrpcError;

lib/src/client/call.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import 'dart:async';
1717
import 'dart:developer';
1818

19-
import '../shared/codec/codec.dart';
19+
import '../shared/codec.dart';
2020
import '../shared/message.dart';
2121
import '../shared/profiler.dart';
2222
import '../shared/status.dart';

lib/src/client/http2_connection.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import 'dart:typed_data';
2020

2121
import 'package:http2/transport.dart';
2222

23-
import '../shared/codec/codec.dart';
23+
import '../shared/codec.dart';
2424
import '../shared/timeout.dart';
2525
import 'call.dart';
2626
import 'client_keepalive.dart';

lib/src/client/transport/http2_transport.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import 'dart:async';
1717

1818
import 'package:http2/transport.dart';
1919

20-
import '../../shared/codec/codec.dart';
20+
import '../../shared/codec.dart';
2121
import '../../shared/codec_registry.dart';
2222
import '../../shared/message.dart';
2323
import '../../shared/streams.dart';

lib/src/server/handler.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import 'dart:convert';
1818

1919
import 'package:http2/transport.dart';
2020

21-
import '../shared/codec/codec.dart';
21+
import '../shared/codec.dart';
2222
import '../shared/codec_registry.dart';
2323
import '../shared/io_bits/io_bits.dart' show InternetAddress, X509Certificate;
2424
import '../shared/message.dart';

lib/src/shared/codec/codec.dart renamed to lib/src/shared/codec.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
// See the License for the specific language governing permissions and
1414
// limitations under the License.
1515

16-
export 'codec_all.dart';
17-
export 'codec_io.dart'
18-
if (dart.library.js_interop) 'codec_web.dart'; // package:web implementation
16+
export 'codec/codec_all.dart';
17+
export 'codec/codec_io.dart'
18+
if (dart.library.js_interop) 'codec/codec_web.dart'; // package:web implementation

lib/src/shared/codec_registry.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// See the License for the specific language governing permissions and
1414
// limitations under the License.
1515

16-
import 'codec/codec.dart';
16+
import 'codec.dart';
1717

1818
/// Encloses classes related to the compression and decompression of messages.
1919
class CodecRegistry {

lib/src/shared/message.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import 'dart:async';
1717
import 'dart:typed_data';
1818

19-
import 'codec/codec.dart';
19+
import 'codec.dart';
2020
import 'codec_registry.dart';
2121
import 'status.dart';
2222

test/grpc_compression_flag_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
@TestOn('vm')
1717

18-
import 'package:grpc/src/shared/codec/codec.dart';
18+
import 'package:grpc/src/shared/codec.dart';
1919
import 'package:grpc/src/shared/message.dart';
2020
import 'package:test/test.dart';
2121

test/shared_tests/codec_registry_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// See the License for the specific language governing permissions and
1414
// limitations under the License.
1515

16-
import 'package:grpc/src/shared/codec/codec.dart';
16+
import 'package:grpc/src/shared/codec.dart';
1717
import 'package:grpc/src/shared/codec_registry.dart';
1818
import 'package:test/test.dart';
1919

0 commit comments

Comments
 (0)