dartmole_plugin 0.1.0
dartmole_plugin: ^0.1.0 copied to clipboard
Routes a Flutter app's HTTP through Dartmole, so it can be inspected and mocked.
0.1.0 #
First release.
Dartmole().createHttpClient()routes Dart HTTP through a paired Dartmole, trusting its certificate authority alongside the system ones. Unpaired or switched off, it is an ordinaryHttpClient.- Pairing by QR code or typed address, in the
DartmoleSettingspanel. Pairing.toJson/fromJsonandDartmole().reconnectfor remembering a pairing across launches, with the certificate authority pinned.- Also intercept native traffic links to Dartmole's setup page for
device-wide interception.
UserCertificateTrust.check()tells whether the build can use it; on Android this reads the build's network security config. DartmoleSettingschecks that interception works rather than only that it is on: a request down Dart's networking and one down the platform's, with what is missing when either does not reach Dartmole. In code:checkDartTraffic()andcheckNativeTraffic(). The plugin now has iOS native code as well as Android.