Skip to content

Commit

Permalink
Merge pull request #254 from Frezyx/f/update-codebase
Browse files Browse the repository at this point in the history
Release v4.4.0
  • Loading branch information
Frezyx authored Jul 31, 2024
2 parents 6a4f5e0 + 09a3a9c commit 54bb362
Show file tree
Hide file tree
Showing 35 changed files with 130 additions and 150 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ Follow these steps to the coolest experience in error handling
### Add dependency
```yaml
dependencies:
talker: ^4.3.4
talker: ^4.4.0
```
### Easy to use
Expand Down Expand Up @@ -294,7 +294,7 @@ Talker Flutter is an extension for the Dart Talker package that adds extra funct
### Add dependency
```yaml
dependencies:
talker_flutter: ^4.3.4
talker_flutter: ^4.4.0
```
### Setup
Expand Down Expand Up @@ -522,7 +522,7 @@ Follow these steps to use this package
### Add dependency
```yaml
dependencies:
talker_dio_logger: ^4.3.4
talker_dio_logger: ^4.4.0
```
### Usage
Expand Down Expand Up @@ -618,7 +618,7 @@ Follow these steps to use this package
### Add dependency
```yaml
dependencies:
talker_bloc_logger: ^4.3.4
talker_bloc_logger: ^4.4.0
```
### Usage
Expand Down Expand Up @@ -706,7 +706,7 @@ Follow these steps to use this package
### Add dependency
```yaml
dependencies:
talker_riverpod_logger: ^1.1.4
talker_riverpod_logger: ^4.4.0
```
### Usage
Expand Down
10 changes: 5 additions & 5 deletions examples/shop_app_example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -459,35 +459,35 @@ packages:
path: "../../packages/talker"
relative: true
source: path
version: "4.3.4"
version: "4.4.0"
talker_bloc_logger:
dependency: "direct main"
description:
path: "../../packages/talker_bloc_logger"
relative: true
source: path
version: "4.3.4"
version: "4.4.0"
talker_dio_logger:
dependency: "direct main"
description:
path: "../../packages/talker_dio_logger"
relative: true
source: path
version: "4.3.4"
version: "4.4.0"
talker_flutter:
dependency: "direct main"
description:
path: "../../packages/talker_flutter"
relative: true
source: path
version: "4.3.4"
version: "4.4.0"
talker_logger:
dependency: "direct overridden"
description:
path: "../../packages/talker_logger"
relative: true
source: path
version: "4.3.4"
version: "4.4.0"
term_glyph:
dependency: transitive
description:
Expand Down
6 changes: 3 additions & 3 deletions examples/shop_app_example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ dependencies:
flutter:
sdk: flutter

talker_flutter: ^4.3.4
talker_dio_logger: ^4.3.4
talker_bloc_logger: ^4.3.4
talker_flutter: ^4.4.0
talker_dio_logger: ^4.4.0
talker_bloc_logger: ^4.4.0

get_it: ^7.6.7
flutter_bloc: ^8.1.3
Expand Down
9 changes: 8 additions & 1 deletion packages/talker/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# 4.4.0
- [talker] Stable ```TimeFormat``` release (Support of custom time formatting for every talker package)
- [talker_riverpod_logger] Bump version to talker common versions system

# 4.3.5
- [talker_bloc_logger] Setup common time format from talker settings for Bloc logs

# 4.3.4
- [riverpod_logger] Duplicated state logs fixes
- [talker_riverpod_logger] Duplicated state logs fixes

Thanks to [ArinFaraj](https://github.com/ArinFaraj)

Expand Down
4 changes: 2 additions & 2 deletions packages/talker/lib/src/settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ class TalkerSettings {
final bool _useHistory;

/// By default talker print all Errors / Exceptions and logs in console.
/// If [true] - printing in history [false] - not printing.
/// If [true] - printing in console [false] - not printing.
bool get useConsoleLogs => _useConsoleLogs && enabled;
final bool _useConsoleLogs;

/// Max records count in history list
int get maxHistoryItems => _maxHistoryItems;
final int _maxHistoryItems;

/// the time format of the logs [TimeFormat]
/// The time format of the logs [TimeFormat]
TimeFormat get timeFormat => _timeFormat;
final TimeFormat _timeFormat;

Expand Down
29 changes: 8 additions & 21 deletions packages/talker/lib/src/talker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -339,25 +339,19 @@ class Talker {
}

/// Clear log history
void cleanHistory() {
_history.clean();
}

/// Method stops all [Talker] works
///
/// If you config package to handle errors or making logs,
/// this method stop these processes
void disable() {
settings.enabled = false;
}
void cleanHistory() => _history.clean();

/// Method run all [Talker] works
///
/// The method will return everything back
/// if the package was suspended by the [disable] method
void enable() {
settings.enabled = true;
}
void enable() => settings.enabled = true;

/// Method stops all [Talker] works
///
/// If you config package to handle errors or making logs,
/// this method stop these processes
void disable() => settings.enabled = false;

void _handleLog(
dynamic message,
Expand Down Expand Up @@ -434,13 +428,6 @@ class Talker {
_history.write(data);
}

//TODO: recreate file manager logic
// void _writeToFile(TalkerDataInterface data) {
// if (_settings.writeToFile) {
// _fileManager.writeToLogFile(data.generateTextMessage());
// }
// }

bool _isApprovedByFilter(TalkerData data) {
final approved = _filter.filter(data);
return approved;
Expand Down
4 changes: 2 additions & 2 deletions packages/talker/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: talker
description: Advanced error handler and logger package for flutter and dart. App monitoring, logs history, report sharing, custom logs, and etc.
version: 4.3.4
version: 4.4.0
homepage: https://github.com/Frezyx/talker
repository: https://github.com/Frezyx/talker
issue_tracker: https://github.com/Frezyx/talker/issues
Expand All @@ -16,7 +16,7 @@ environment:
sdk: '>=2.17.0 <4.0.0'

dependencies:
talker_logger: ^4.3.4
talker_logger: ^4.4.0

dev_dependencies:
lints: ^2.0.0
Expand Down
9 changes: 8 additions & 1 deletion packages/talker_bloc_logger/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# 4.4.0
- [talker] Stable ```TimeFormat``` release (Support of custom time formatting for every talker package)
- [talker_riverpod_logger] Bump version to talker common versions system

# 4.3.5
- [talker_bloc_logger] Setup common time format from talker settings for Bloc logs

# 4.3.4
- [riverpod_logger] Duplicated state logs fixes
- [talker_riverpod_logger] Duplicated state logs fixes

Thanks to [ArinFaraj](https://github.com/ArinFaraj)

Expand Down
2 changes: 1 addition & 1 deletion packages/talker_bloc_logger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Follow these steps to use this package
### Add dependency
```yaml
dependencies:
talker_bloc_logger: ^4.3.4
talker_bloc_logger: ^4.4.0
```
### Usage
Expand Down
30 changes: 5 additions & 25 deletions packages/talker_bloc_logger/lib/bloc_logs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,8 @@ class BlocEventLog extends TalkerLog {
String generateTextMessage({
TimeFormat timeFormat = TimeFormat.timeAndSeconds,
}) {
return _createMessage();
}

String _createMessage() {
final sb = StringBuffer();
sb.write(displayTitleWithTime());
sb.write(displayTitleWithTime(timeFormat: timeFormat));
sb.write('\n$message');
return sb.toString();
}
Expand All @@ -53,12 +49,8 @@ class BlocStateLog extends TalkerLog {
String generateTextMessage({
TimeFormat timeFormat = TimeFormat.timeAndSeconds,
}) {
return _createMessage();
}

String _createMessage() {
final sb = StringBuffer();
sb.write(displayTitleWithTime());
sb.write(displayTitleWithTime(timeFormat: timeFormat));
sb.write('\n$message');
sb.write(
'\n${'CURRENT state: ${settings.printStateFullData ? '\n${transition.currentState}' : transition.currentState.runtimeType}'}');
Expand Down Expand Up @@ -87,12 +79,8 @@ class BlocChangeLog extends TalkerLog {
String generateTextMessage({
TimeFormat timeFormat = TimeFormat.timeAndSeconds,
}) {
return _createMessage();
}

String _createMessage() {
final sb = StringBuffer();
sb.write(displayTitleWithTime());
sb.write(displayTitleWithTime(timeFormat: timeFormat));
sb.write('\n$message');
sb.write(
'\n${'CURRENT state: ${settings.printStateFullData ? '\n${change.currentState}' : change.currentState.runtimeType}'}');
Expand All @@ -117,12 +105,8 @@ class BlocCreateLog extends TalkerLog {
String generateTextMessage({
TimeFormat timeFormat = TimeFormat.timeAndSeconds,
}) {
return _createMessage();
}

String _createMessage() {
final sb = StringBuffer();
sb.write(displayTitleWithTime());
sb.write(displayTitleWithTime(timeFormat: timeFormat));
sb.write('\n$message');
return sb.toString();
}
Expand All @@ -143,12 +127,8 @@ class BlocCloseLog extends TalkerLog {
String generateTextMessage({
TimeFormat timeFormat = TimeFormat.timeAndSeconds,
}) {
return _createMessage();
}

String _createMessage() {
final sb = StringBuffer();
sb.write(displayTitleWithTime());
sb.write(displayTitleWithTime(timeFormat: timeFormat));
sb.write('\n$message');
return sb.toString();
}
Expand Down
4 changes: 2 additions & 2 deletions packages/talker_bloc_logger/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: talker_bloc_logger
description: Lightweight and customizable BLoC state management library logger on talker base.
version: 4.3.4
version: 4.4.0
homepage: https://github.com/Frezyx/talker
repository: https://github.com/Frezyx/talker
issue_tracker: https://github.com/Frezyx/talker/issues
Expand All @@ -16,7 +16,7 @@ environment:
sdk: '>=2.15.0 <4.0.0'

dependencies:
talker: ^4.3.4
talker: ^4.4.0
bloc: ^8.1.1
meta: ^1.8.0

Expand Down
9 changes: 8 additions & 1 deletion packages/talker_dio_logger/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# 4.4.0
- [talker] Stable ```TimeFormat``` release (Support of custom time formatting for every talker package)
- [talker_riverpod_logger] Bump version to talker common versions system

# 4.3.5
- [talker_bloc_logger] Setup common time format from talker settings for Bloc logs

# 4.3.4
- [riverpod_logger] Duplicated state logs fixes
- [talker_riverpod_logger] Duplicated state logs fixes

Thanks to [ArinFaraj](https://github.com/ArinFaraj)

Expand Down
2 changes: 1 addition & 1 deletion packages/talker_dio_logger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Follow these steps to use this package
### Add dependency
```yaml
dependencies:
talker_dio_logger: ^4.3.4
talker_dio_logger: ^4.4.0
```
### Usage
Expand Down
8 changes: 4 additions & 4 deletions packages/talker_dio_logger/example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -348,29 +348,29 @@ packages:
sha256: "9384aad65c72fecc4a37aeb95379716073e315e37e15cbb23a374cf3a828d60e"
url: "https://pub.dev"
source: hosted
version: "4.3.4"
version: "4.4.0"
talker_dio_logger:
dependency: "direct main"
description:
path: ".."
relative: true
source: path
version: "4.3.4"
version: "4.4.0"
talker_flutter:
dependency: "direct main"
description:
path: "../../talker_flutter"
relative: true
source: path
version: "4.3.4"
version: "4.4.0"
talker_logger:
dependency: transitive
description:
name: talker_logger
sha256: ed79a64aa1a0a71958258ea2f3d014f68ccdd8a41d436446e8603d90bc61c720
url: "https://pub.dev"
source: hosted
version: "4.3.4"
version: "4.4.0"
term_glyph:
dependency: transitive
description:
Expand Down
4 changes: 2 additions & 2 deletions packages/talker_dio_logger/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ dependencies:
flutter:
sdk: flutter
dio: ^5.0.0
talker_dio_logger: ^4.3.4
talker_flutter: ^4.3.4
talker_dio_logger: ^4.4.0
talker_flutter: ^4.4.0

dev_dependencies:
flutter_test:
Expand Down
4 changes: 2 additions & 2 deletions packages/talker_dio_logger/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: talker_dio_logger
description: Lightweight and customizable dio http client logger on talker base
version: 4.3.4
version: 4.4.0

homepage: https://github.com/Frezyx/talker
repository: https://github.com/Frezyx/talker
Expand All @@ -18,7 +18,7 @@ environment:

dependencies:
dio: ^5.4.0
talker: ^4.3.4
talker: ^4.4.0

dev_dependencies:
lints: ^2.0.0
Expand Down
Loading

0 comments on commit 54bb362

Please sign in to comment.