Skip to content

Commit

Permalink
remove recase dependency (#512)
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorUvarov authored Jan 4, 2025
1 parent e9fdea4 commit 1622e27
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 51 deletions.
2 changes: 1 addition & 1 deletion example/lib/src/callscreen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ class _MyCallScreenWidget extends State<CallScreenWidget>
return Scaffold(
appBar: AppBar(
automaticallyImplyLeading: false,
title: Text('[$direction] ${EnumHelper.getName(_state)}'),
title: Text('[$direction] ${_state.name}'),
),
body: _buildContent(),
floatingActionButtonLocation: FloatingActionButtonLocation.centerFloat,
Expand Down
2 changes: 1 addition & 1 deletion example/lib/src/dialpad.dart
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ class _MyDialPadWidget extends State<DialPadWidget>
SizedBox(height: 8),
Center(
child: Text(
'Register Status: ${EnumHelper.getName(helper!.registerState.state)}',
'Register Status: ${helper!.registerState.state?.name ?? ''}',
style: TextStyle(fontSize: 18, color: textColor),
),
),
Expand Down
2 changes: 1 addition & 1 deletion example/lib/src/register.dart
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class _MyRegisterWidget extends State<RegisterWidget>
children: <Widget>[
Center(
child: Text(
'Register Status: ${EnumHelper.getName(_registerState.state)}',
'Register Status: ${_registerState.state?.name ?? ''}',
style: TextStyle(fontSize: 18, color: textColor),
),
),
Expand Down
1 change: 0 additions & 1 deletion lib/sip_ua.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export 'src/enum_helper.dart';
export 'src/enums.dart';
export 'src/sip_message.dart';
export 'src/sip_ua_helper.dart';
Expand Down
43 changes: 0 additions & 43 deletions lib/src/enum_helper.dart

This file was deleted.

4 changes: 1 addition & 3 deletions lib/src/logger.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'package:intl/intl.dart';
import 'package:logger/logger.dart';

import 'enum_helper.dart';
import 'stack_trace_nj.dart';

Logger logger = Log();
Expand Down Expand Up @@ -41,8 +40,7 @@ class MyLogPrinter extends LogPrinter {

@override
List<String> log(LogEvent event) {
if (EnumHelper.getIndexOf(Level.values, Log._loggingLevel) >
EnumHelper.getIndexOf(Level.values, event.level)) {
if (Log._loggingLevel.index > event.level.index) {
// don't log events where the log level is set higher
return <String>[];
}
Expand Down
1 change: 0 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ dependencies:
logger: ^2.0.2+1
path: ^1.6.4
random_string: ^2.3.1
recase: ^4.1.0
sdp_transform: ^0.3.2
text: ^0.2.0
uuid: ^4.2.1
Expand Down

0 comments on commit 1622e27

Please sign in to comment.