Skip to content

Fix X509Utils import conflict between archive and pointycastle - #127

Open
amrgetment wants to merge 1 commit into
Ephenodrom:masterfrom
amrgetment:fix/x509utils-archive-pointycastle-import-conflict
Open

amrgetment wants to merge 1 commit into
Ephenodrom:masterfrom
amrgetment:fix/x509utils-archive-pointycastle-import-conflict

Conversation

@amrgetment

Copy link
Copy Markdown

Summary

  • Narrow archive import in lib/src/X509Utils.dart to only GZipDecoder.
  • Prevent Digest / KeyParameter symbol ambiguity introduced by archive's internal encryption exports.

Problem

X509Utils.dart imported both:

  • package:archive/archive.dart
  • package:pointycastle/...

Both expose Digest and KeyParameter, causing compilation errors like:

  • Digest is imported from both ...
  • KeyParameter is imported from both ...

Fix

Replace:

  • import 'package:archive/archive.dart';

With:

  • import 'package:archive/archive.dart' show GZipDecoder;

X509Utils only uses GZipDecoder from archive, so this keeps behavior unchanged while removing the collision.

Fixes #124

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Doesn't compile anymore

2 participants