Skip to content

Commit

Permalink
Merge pull request #52 from knottx/master
Browse files Browse the repository at this point in the history
add dio constraints, update alamofire, add vscode helper
  • Loading branch information
diefferson authored Dec 4, 2023
2 parents cf5a374 + 4e99337 commit 4832089
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 4 deletions.
9 changes: 9 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"[dart]": {
"editor.formatOnSave": true
},
"editor.codeActionsOnSave": {
"source.organizeImports": true
},
}

12 changes: 12 additions & 0 deletions example/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug",
"request": "launch",
"type": "dart",
"program": "lib/main.dart",
"flutterMode": "debug",
},
]
}
9 changes: 9 additions & 0 deletions example/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"[dart]": {
"editor.formatOnSave": true
},
"editor.codeActionsOnSave": {
"source.organizeImports": true
},
}

6 changes: 3 additions & 3 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ PODS:
- CryptoSwift (1.7.1)
- Flutter (1.0.0)
- http_certificate_pinning (1.0.3):
- Alamofire (~> 4.7)
- Alamofire (~> 4.9.1)
- CryptoSwift
- Flutter

Expand All @@ -26,8 +26,8 @@ SPEC CHECKSUMS:
Alamofire: 85e8a02c69d6020a0d734f6054870d7ecb75cf18
CryptoSwift: d3d18dc357932f7e6d580689e065cf1f176007c1
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
http_certificate_pinning: 23157eae20c5887e49372b3cbe7a1d5863eb9bad
http_certificate_pinning: 2a9097b304c7ea3b51804af46d381aba8108fa29

PODFILE CHECKSUM: ef19549a9bc3046e7bb7d2fab4d021637c0c58a3

COCOAPODS: 1.11.3
COCOAPODS: 1.12.1
2 changes: 1 addition & 1 deletion ios/http_certificate_pinning.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Https Certificate pinning for Flutter
s.source_files = 'Classes/**/*'
s.dependency 'Flutter'
s.dependency 'CryptoSwift'
s.dependency 'Alamofire', '~> 4.7'
s.dependency 'Alamofire', '~> 4.9.1'
s.platform = :ios, '8.0'

# Flutter.framework does not contain a i386 slice. Only x86_64 simulators are supported.
Expand Down
2 changes: 2 additions & 0 deletions lib/src/dio/certificate_pinning_interceptor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class CertificatePinningInterceptor extends Interceptor {
: <String>[],
_timeout = timeout;


@override
Future onRequest(
RequestOptions options,
Expand Down Expand Up @@ -56,6 +57,7 @@ class CertificatePinningInterceptor extends Interceptor {
requestOptions: options,
error: CertificateNotVerifiedException(),
),
callFollowingErrorInterceptor,
);
}
} on Exception catch (e) {
Expand Down

0 comments on commit 4832089

Please sign in to comment.