Skip to content

Commit

Permalink
Merge pull request #23 from Cleveroad/flutter_and_dependency_update
Browse files Browse the repository at this point in the history
Flutter and dependency update
  • Loading branch information
NikitaAmelinCR authored Feb 19, 2024
2 parents ae1ec16 + 9bd3a77 commit ad324c1
Show file tree
Hide file tree
Showing 110 changed files with 139,068 additions and 76,761 deletions.
4 changes: 4 additions & 0 deletions .fvm/fvm_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"flutterSdkVersion": "3.16.5",
"flavors": {}
}
11 changes: 11 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
*.g.dart -diff
*.svg -diff
*.png -diff
*.lock -diff
*.xcconfig -diff
ios/Runner.xcodeproj/* -diff
ios/Runner.xcworkspace/* -diff
lib/generated/* -diff
ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json -diff
android/app/src/main/res/drawable -diff
*.idea/* -diff
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
## 2.4.2

### Changed

- Updated flutter version to 3.16.5, updated dependencies.
- Added class modifiers.
- Possibility to add parameters to the text of the logs. Such parameter value can be copied by the
tap on it from log details screen.
- Added package topics to the pubspec file.
- Added the ability to create logs with SnackBar. Clicking on the "OPEN" button opens the log
details page.
- Added ability to remove logs. After deleting, it is possible to restore the deleted log in the
opened SnackBar by pressing the "UNDO" button.
- Changed placeholders on pages to view database logs

### Breaking changes

- The error and stackTrace log parameters are now named

### Fixed

- Fixed exception when swiping log tabs
- Fixed display of new logs when viewing the database list
- Fixed display of logs when changing the database logs view
- Fixed errors when the HTTP log search page is open
- Fixed HTTP tabs update after closing the search page HTTP logs
- Fixed log list update when scrolling the list to the initial position

## 2.3.0

### Added

- Dart 3 support.

## 2.2.0
Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,20 @@ search for logs from the database.

Share logs with your team

#### Create log with parameter

You can create log with parameters. To do this use {{parameter}} pattern to highlight text needed to be displayed as parameter.

Example:
```dart
const parameter = 'PARAMETER';
log.d('Debug message with param: {{$parameter}}');
log.v('Verbose message with param: {{$parameter}}');
log.i('Info message with param: {{$parameter}}');
log.e('Error message with param: {{$parameter}}');
```
Now you can copy the value of this parameter by simply clicking on it in the details of the log.

#### Actions and values

Opens a page that contains action buttons and value notifiers.
Expand Down
107 changes: 2 additions & 105 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ linter:
- prefer_constructors_over_static_methods # PREFER defining constructors instead of static methods to create instances.
- prefer_contains # DON'T use indexOf to see if a collection contains an element.
# - prefer_double_quotes # DO use double quotes where they wouldn't require additional escapes. # Conflicts with better rule prefer_single_quotes.
- prefer_equal_for_default_values # DO Use = to separate a named parameter from its default value.
# - prefer_expression_function_bodies # CONSIDER using => for short members whose body is a single return statement. # Some functions are not convenient to use with this.
- prefer_final_fields # DO prefer declaring private fields as final if they are not reassigned later in the class.
- prefer_final_in_for_each # DO prefer declaring for-each loop variables as final if they are not reassigned later in the code.
Expand Down Expand Up @@ -162,8 +161,7 @@ linter:
# - diagnostic_describe_all_properties # DO reference all public properties in debug method implementations. # We don't use this
- empty_statements # AVOID empty statements.
- hash_and_equals # DO override hashCode if overriding == and prefer overriding == if overriding hashCode.
- iterable_contains_unrelated_type # DON'T invoke contains on Iterable with an instance of different type than the parameter type.
- list_remove_unrelated_type # DON'T invoke remove on List with an instance of different type than the parameter type.
- collection_methods_unrelated_type # DON’T invoke certain collection method with an argument with an unrelated type.
- literal_only_boolean_expressions # DON'T test for conditions composed only by literals, since the value can be inferred at compile time.
- no_adjacent_strings_in_list # DON'T use adjacent strings in list.
- no_duplicate_case_values # DON'T use more than one case with same value.
Expand All @@ -187,8 +185,6 @@ analyzer:
# Stricter type checks.
# implicit-casts: false
# implicit-dynamic: false
plugins:
- dart_code_metrics
errors:
missing_required_param: error
exclude:
Expand All @@ -197,103 +193,4 @@ analyzer:
# Generated code
- 'lib/**.g.dart'
# Assets
- 'assets/**'

dart_code_metrics:
anti-patterns:
- long-method
- long-parameter-list
metrics:
cyclomatic-complexity: 20
maximum-nesting-level: 5
number-of-parameters: 4
# todo should be 50 later
source-lines-of-code: 160
rules:
- avoid-unnecessary-type-casts
- avoid-throw-in-catch-block
- avoid-unnecessary-type-assertions
- avoid-missing-enum-constant-in-map
- prefer-correct-type-name:
- min-length: 2
- max-length: 40
- prefer-first
- prefer-last
- avoid-nested-conditional-expressions:
acceptable-level: 2
- newline-before-return
- no-boolean-literal-compare
- no-empty-block
- always-remove-listener
- avoid-unused-parameters
- binary-expression-operand-order
- double-literal-format
- avoid-returning-widgets
- avoid-unnecessary-setstate
- avoid-wrapping-in-padding
- prefer-extracting-callbacks
- prefer-trailing-comma:
break-on: 3
- prefer-conditional-expressions
- no-equal-then-else
- member-ordering:
alphabetize: false
order:
- constructors
- public-const-fields
- private-const-fields
- public-static-fields
- private-static-fields
- public-final-fields
- private-final-fields
- public-var-fields
- private-var-fields
- public-late-fields
- private-late-fields
- public-nullable-fields
- private-nullable-fields
- overridden-fields
- overridden-var-fields
- overridden-nullable-fields
- public-getters-setters
- private-getters-setters
- public-methods
- overridden-methods
- protected-methods
- private-methods
widgets-order:
- constructor
- public-const-fields
- private-const-fields
- public-static-fields
- private-static-fields
- public-final-fields
- private-final-fields
- public-var-fields
- private-var-fields
- public-late-fields
- private-late-fields
- public-nullable-fields
- private-nullable-fields
- overridden-fields
- overridden-var-fields
- overridden-nullable-fields
- public-getters-setters
- private-getters-setters
- create-bloc-method
- on-argument-extracted-method
- init-state-method
- dispose-method
- did-change-dependencies-method
- on-rebuild-method
- on-state-listener-method
- build-method
- body-widget-method
- did-update-widget-method
- on-action-method
- on-error-method
- did-change-app-lifecycle-state-method
- public-methods
- overridden-methods
- protected-methods
- private-methods
- 'assets/**'
2 changes: 1 addition & 1 deletion docs/.last_build_id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d53138d5fdb7d0ae38b7d7e1472afba3
846120b4c5c0513ff1e25f1352e8304a
1 change: 1 addition & 0 deletions docs/assets/AssetManifest.bin
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
assets/ic_debug.png assetassets/ic_debug.pngassets/ic_debug_native.png assetassets/ic_debug_native.pngassets/ic_error.png assetassets/ic_error.pngassets/ic_error_android.png assetassets/ic_error_android.pngassets/ic_error_ios.png assetassets/ic_error_ios.pngassets/ic_http.png assetassets/ic_http.pngassets/ic_json.png assetassets/ic_json.pngassets/ic_warning.png assetassets/ic_warning.pngassets/ic_warning_android.png assetassets/ic_warning_android.pngassets/ic_warning_ios.png assetassets/ic_warning_ios.pngfonts/Epilogue-Medium.ttf assetfonts/Epilogue-Medium.ttffonts/Epilogue-Regular.ttf assetfonts/Epilogue-Regular.ttf(packages/cr_logger/assets/arrow_down.png asset(packages/cr_logger/assets/arrow_down.png*packages/cr_logger/assets/content_copy.png asset*packages/cr_logger/assets/content_copy.png%packages/cr_logger/assets/ic_back.png asset%packages/cr_logger/assets/ic_back.png%packages/cr_logger/assets/ic_menu.png asset%packages/cr_logger/assets/ic_menu.png,packages/cr_logger/fonts/Epilogue-Medium.ttf asset,packages/cr_logger/fonts/Epilogue-Medium.ttf-packages/cr_logger/fonts/Epilogue-Regular.ttf asset-packages/cr_logger/fonts/Epilogue-Regular.ttf8packages/flutter_dropzone_web/assets/flutter_dropzone.js asset8packages/flutter_dropzone_web/assets/flutter_dropzone.js
Expand Down
1 change: 1 addition & 0 deletions docs/assets/AssetManifest.bin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"DRMHE2Fzc2V0cy9pY19kZWJ1Zy5wbmcMAQ0BBwVhc3NldAcTYXNzZXRzL2ljX2RlYnVnLnBuZwcaYXNzZXRzL2ljX2RlYnVnX25hdGl2ZS5wbmcMAQ0BBwVhc3NldAcaYXNzZXRzL2ljX2RlYnVnX25hdGl2ZS5wbmcHE2Fzc2V0cy9pY19lcnJvci5wbmcMAQ0BBwVhc3NldAc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