Skip to content

Commit

Permalink
Optimize imports
Browse files Browse the repository at this point in the history
  • Loading branch information
gmpassos committed Feb 3, 2024
1 parent 75c9abd commit b962843
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 13 deletions.
6 changes: 5 additions & 1 deletion lib/src/certificates_handler_io.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ import 'package:basic_utils/basic_utils.dart' hide Domain;
import 'package:collection/collection.dart';
import 'package:path/path.dart' as pack_path;

import '../shelf_letsencrypt.dart';
import 'certs_handler.dart';
import 'domain.dart';
import 'domain_certificate_file_path.dart';
import 'pem_key_pair.dart';
import 'security_context_builder.dart';

/// A [CertificatesHandler] implementation using [dart:io].
class CertificatesHandlerIO extends CertificatesHandler {
Expand Down
3 changes: 2 additions & 1 deletion lib/src/certs_handler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import 'dart:io';
import 'package:basic_utils/basic_utils.dart' hide Domain;
import 'package:collection/collection.dart';

import '../shelf_letsencrypt.dart';
import 'domain.dart';
import 'pem_key_pair.dart';

/// Base class for a certificate handler.
///
Expand Down
4 changes: 0 additions & 4 deletions lib/src/check_certificate_status.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// ignore_for_file: avoid_catches_without_on_clauses

import 'package:shelf_letsencrypt/src/letsencrypt.dart';

/// The [LetsEncrypt.checkCertificate] status.
enum CheckCertificateStatus {
ok,
Expand Down
2 changes: 0 additions & 2 deletions lib/src/domain.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'package:shelf_letsencrypt/shelf_letsencrypt.dart';

/// A [LetsEncrypt] domain.
class Domain {
/// The domain name. Ex.: your-domain.com
Expand Down
3 changes: 2 additions & 1 deletion lib/src/domain_certificate_file_path.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import 'dart:io';

import '../shelf_letsencrypt.dart';
import 'certs_handler.dart';

/// A [DomainCertificate] implementation using file paths.
class DomainCertificateFilePath extends DomainCertificate {
/// The fullChain file path.
final String fullChainFilePath;

/// The private key file path.
final String privateKeyFilePath;

DomainCertificateFilePath(List<String> super.domains, this.fullChainFilePath,

Check warning on line 13 in lib/src/domain_certificate_file_path.dart

View check run for this annotation

Codecov / codecov/patch

lib/src/domain_certificate_file_path.dart#L13

Added line #L13 was not covered by tests
Expand Down
4 changes: 1 addition & 3 deletions lib/src/letsencrypt.dart
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
// ignore_for_file: avoid_catches_without_on_clauses

import 'dart:async';
import 'dart:convert';
import 'dart:io';

import 'package:acme_client/acme_client.dart';
import 'package:shelf/shelf.dart';
import 'package:shelf/shelf_io.dart';
import 'package:shelf_letsencrypt/src/check_certificate_status.dart';

import 'certs_handler.dart';
import 'check_certificate_status.dart';
import 'domain.dart';
import 'logging.dart';

Expand Down
1 change: 0 additions & 1 deletion lib/src/security_context_builder.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'dart:io';

import '../shelf_letsencrypt.dart';
import 'certs_handler.dart';

/// A [SecurityContext] builder.
Expand Down

0 comments on commit b962843

Please sign in to comment.