Skip to content

Commit

Permalink
🏗️ Make native_dio_adapter depends on http_compatibility_layer
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Dec 2, 2023
1 parent 65b3cfd commit 2feef4e
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 191 deletions.
92 changes: 0 additions & 92 deletions plugins/native_dio_adapter/lib/src/conversion_layer_adapter.dart

This file was deleted.

2 changes: 1 addition & 1 deletion plugins/native_dio_adapter/lib/src/cronet_adapter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'dart:typed_data';

import 'package:cronet_http/cronet_http.dart';
import 'package:dio/dio.dart';
import 'conversion_layer_adapter.dart';
import 'package:dio_http_compatibility_layer/dio_http_compatibility_layer.dart';

/// A [HttpClientAdapter] for Dio which delegates HTTP requests
/// to the native platform by making use of
Expand Down
2 changes: 1 addition & 1 deletion plugins/native_dio_adapter/lib/src/cupertino_adapter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'dart:typed_data';

import 'package:cupertino_http/cupertino_http.dart';
import 'package:dio/dio.dart';
import 'conversion_layer_adapter.dart';
import 'package:dio_http_compatibility_layer/dio_http_compatibility_layer.dart';

/// A [HttpClientAdapter] for Dio which delegates HTTP requests
/// to the native platform by making use of
Expand Down
3 changes: 1 addition & 2 deletions plugins/native_dio_adapter/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@ dependencies:
cupertino_http: ^1.0.0
cronet_http: ^0.4.0
http: ^1.0.0
dio_http_compatibility_layer: ^0.0.1

dev_dependencies:
lints: ^2.0.0
flutter_test:
sdk: flutter

platforms:
android:
Expand Down
32 changes: 0 additions & 32 deletions plugins/native_dio_adapter/test/client_mock.dart

This file was deleted.

63 changes: 0 additions & 63 deletions plugins/native_dio_adapter/test/conversion_layer_adapter_test.dart

This file was deleted.

0 comments on commit 2feef4e

Please sign in to comment.