-
-
Notifications
You must be signed in to change notification settings - Fork 116
feat: Talker http logger v1.0.0 #362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
230c638
:construction: initial refactor
techouse a406819
:construction: update SDK and dependency versions in pubspec.yaml
techouse d87e168
:construction: add more settings
techouse 38b2f33
:construction: add more settings
techouse 8dc5943
:construction: wip
techouse e0b30f9
:construction: wip
techouse 8e7ed8b
:construction: wip
techouse 6e3a263
:construction: wip
techouse 7a4185b
:construction: wip
techouse 7c869ff
:construction: wip
techouse fbdef97
:speech_balloon: update workflow name for consistency
techouse c76fca6
Merge branch 'master' into feat/http-logger-v1.0.0
techouse 70e177a
:construction: wip
techouse cb5615e
:construction: wip
techouse 53543f8
:white_check_mark: increase test coverage
techouse 5f74d76
:white_check_mark: increase test coverage
techouse 5059add
:white_check_mark: increase test coverage
techouse c4d7823
:white_check_mark: increase test coverage
techouse a009ae0
:white_check_mark: increase test coverage
techouse 9faf52b
:white_check_mark: increase test coverage
techouse d3fde75
:technologist: update example
techouse 899932a
:memo: update changelog
techouse 9a16d0c
:art: refactor CurlRequest extension to use static JsonEncoder
techouse e2d0b13
:memo: update README to enhance example project documentation
techouse 12c0d1a
:bento: add preview image
techouse d1724f1
:memo: update readme
techouse 439258f
:memo: update readme
techouse dff1d52
:rewind: revert dio readme change
techouse 9576e2e
:memo: update example readme
techouse c0015b1
:memo: fix docs
techouse 4835530
Update packages/talker_http_logger/README.md
techouse eb2cd34
Merge branch 'master' into feat/http-logger-v1.0.0
techouse cacccef
Merge remote-tracking branch 'origin/master' into feat/http-logger-v1…
techouse ed123e4
Merge branch 'master' into feat/http-logger-v1.0.0
techouse c3d19c9
Merge branch 'master' into feat/http-logger-v1.0.0
techouse f26d121
Merge branch 'master' into feat/http-logger-v1.0.0
techouse 724795d
Merge branch 'master' into feat/http-logger-v1.0.0
techouse 3ffb8f8
Merge branch 'master' into feat/http-logger-v1.0.0
Frezyx File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| name: talker_http_logger | ||
|
|
||
| on: | ||
| push: | ||
| paths: | ||
| - "packages/talker_http_logger/**" | ||
| - ".github/workflows/talker_http_logger.yaml" | ||
| pull_request: | ||
| paths: | ||
| - "packages/talker_http_logger/**" | ||
| - ".github/workflows/talker_http_logger.yaml" | ||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| test: | ||
| uses: ./.github/workflows/test.yaml | ||
| with: | ||
| package: talker_http_logger | ||
| sdk: dart |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| # Makefile | ||
|
|
||
| help: | ||
| @printf "%-20s %s\n" "Target" "Description" | ||
| @printf "%-20s %s\n" "------" "-----------" | ||
| @make -pqR : 2>/dev/null \ | ||
| | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' \ | ||
| | sort \ | ||
| | egrep -v -e '^[^[:alnum:]]' -e '^$@$$' \ | ||
| | xargs -I _ sh -c 'printf "%-20s " _; make _ -nB | (grep -i "^# Help:" || echo "") | tail -1 | sed "s/^# Help: //g"' | ||
|
|
||
| analyze: | ||
| @# Help: Analyze the project's Dart code. | ||
| dart analyze --fatal-infos | ||
|
|
||
| check_format: | ||
| @# Help: Check the formatting of one or more Dart files. | ||
| dart format --output=none --set-exit-if-changed . | ||
|
|
||
| check_outdated: | ||
| @# Help: Check which of the project's packages are outdated. | ||
| dart pub outdated | ||
|
|
||
| check_style: | ||
| @# Help: Analyze the project's Dart code and check the formatting one or more Dart files. | ||
| make analyze && make check_format | ||
|
|
||
| code_gen: | ||
| @# Help: Run the build system for Dart code generation and modular compilation. | ||
| dart run build_runner build --delete-conflicting-outputs | ||
|
|
||
| code_gen_watcher: | ||
| @# Help: Run the build system for Dart code generation and modular compilation as a watcher. | ||
| dart run build_runner watch --delete-conflicting-outputs | ||
|
|
||
| format: | ||
| @# Help: Format one or more Dart files. | ||
| dart format . | ||
|
|
||
| install: | ||
| @# Help: Install all the project's packages | ||
| dart pub get | ||
|
|
||
| sure: | ||
| @# Help: Analyze the project's Dart code, check the formatting one or more Dart files and run unit tests for the current project. | ||
| make check_style && make tests | ||
|
|
||
| show_test_coverage: | ||
| @# Help: Run Dart unit tests for the current project and show the coverage. | ||
| dart pub global activate coverage && dart pub global run coverage:test_with_coverage | ||
| lcov --remove coverage/lcov.info '**.g.dart' '**.mock.dart' -o coverage/lcov_without_generated_code.info --ignore-errors unused | ||
| genhtml coverage/lcov_without_generated_code.info -o coverage/html | ||
| source tool/makefile_helpers.sh && open_link "coverage/html/index.html" | ||
|
|
||
| tests: | ||
| @# Help: Run Dart unit and widget tests for the current project. | ||
| dart test | ||
|
|
||
| upgrade: | ||
| @# Help: Upgrade all the project's packages. | ||
| dart pub upgrade |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| # Miscellaneous | ||
| *.class | ||
| *.log | ||
| *.pyc | ||
| *.swp | ||
| .DS_Store | ||
| .atom/ | ||
| .build/ | ||
| .buildlog/ | ||
| .history | ||
| .svn/ | ||
| .swiftpm/ | ||
| migrate_working_dir/ | ||
|
|
||
| # IntelliJ related | ||
| *.iml | ||
| *.ipr | ||
| *.iws | ||
| .idea/ | ||
|
|
||
| # The .vscode folder contains launch configuration and tasks you configure in | ||
| # VS Code which you may wish to be included in version control, so this line | ||
| # is commented out by default. | ||
| #.vscode/ | ||
|
|
||
| # Flutter/Dart/Pub related | ||
| **/doc/api/ | ||
| **/ios/Flutter/.last_build_id | ||
| .dart_tool/ | ||
| .flutter-plugins | ||
| .flutter-plugins-dependencies | ||
| .pub-cache/ | ||
| .pub/ | ||
| /build/ | ||
| pubspec.lock | ||
|
|
||
| # Symbolication related | ||
| app.*.symbols | ||
|
|
||
| # Obfuscation related | ||
| app.*.map.json | ||
|
|
||
| # Android Studio will place build artifacts here | ||
| /android/app/debug | ||
| /android/app/profile | ||
| /android/app/release |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| # This file tracks properties of this Flutter project. | ||
| # Used by Flutter tool to assess capabilities and perform upgrades etc. | ||
| # | ||
| # This file should be version controlled and should not be manually edited. | ||
|
|
||
| version: | ||
| revision: "ea121f8859e4b13e47a8f845e4586164519588bc" | ||
| channel: "stable" | ||
|
|
||
| project_type: app | ||
|
|
||
| # Tracks metadata for the flutter migrate command | ||
| migration: | ||
| platforms: | ||
| - platform: root | ||
| create_revision: ea121f8859e4b13e47a8f845e4586164519588bc | ||
| base_revision: ea121f8859e4b13e47a8f845e4586164519588bc | ||
| - platform: android | ||
| create_revision: ea121f8859e4b13e47a8f845e4586164519588bc | ||
| base_revision: ea121f8859e4b13e47a8f845e4586164519588bc | ||
| - platform: ios | ||
| create_revision: ea121f8859e4b13e47a8f845e4586164519588bc | ||
| base_revision: ea121f8859e4b13e47a8f845e4586164519588bc | ||
| - platform: web | ||
| create_revision: ea121f8859e4b13e47a8f845e4586164519588bc | ||
| base_revision: ea121f8859e4b13e47a8f845e4586164519588bc | ||
|
|
||
| # User provided section | ||
|
|
||
| # List of Local paths (relative to this file) that should be | ||
| # ignored by the migrate tool. | ||
| # | ||
| # Files that are not part of the templates will be ignored by default. | ||
| unmanaged_files: | ||
| - 'lib/main.dart' | ||
| - 'ios/Runner.xcodeproj/project.pbxproj' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| # Example Project | ||
|
|
||
| This example demonstrates the usage of the talker_http_logger package for logging HTTP requests, responses, and | ||
| errors. | ||
|
|
||
| ## Setup | ||
|
|
||
| Install dependencies: | ||
|
|
||
| ```shell | ||
| flutter pub get | ||
| ``` | ||
|
|
||
| ## Running the Example | ||
|
|
||
| To run the example application: | ||
|
|
||
| ```shell | ||
| flutter run | ||
| ``` | ||
|
|
||
| ## Directory Structure | ||
|
|
||
| Within the example directory you will typically find: | ||
|
|
||
| - A main entry point that demonstrates the logging functionality. | ||
| - Supporting files or configurations that illustrate how logging is customized using the package's settings. | ||
|
|
||
| ## Customization | ||
|
|
||
| - Adjust logging settings directly within the example code to explore options such as: | ||
| - Printing request headers and data. | ||
| - Displaying cURL commands to replicate HTTP requests. | ||
| - Customizing the output format of errors, responses, and request logs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| analyzer: | ||
| exclude: | ||
| - "lib/generated_plugin_registrant.dart" | ||
| - "**.mocks.dart" | ||
| - "**.gen.dart" | ||
|
|
||
| include: package:flutter_lints/flutter.yaml | ||
|
|
||
| linter: | ||
| rules: | ||
| - require_trailing_commas |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| gradle-wrapper.jar | ||
| /.gradle | ||
| /captures/ | ||
| /gradlew | ||
| /gradlew.bat | ||
| /local.properties | ||
| GeneratedPluginRegistrant.java | ||
| .cxx/ | ||
|
|
||
| # Remember to never publicly share your keystore. | ||
| # See https://flutter.dev/to/reference-keystore | ||
| key.properties | ||
| **/*.keystore | ||
| **/*.jks |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.