Skip to content

Commit 2600435

Browse files
removed: unnecessary file and code
1 parent f21dce9 commit 2600435

File tree

9 files changed

+20
-30
lines changed

9 files changed

+20
-30
lines changed

.vscode/launch.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
{
2-
// Use IntelliSense to learn about possible attributes.
3-
// Hover to view descriptions of existing attributes.
4-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
52
"version": "0.2.0",
63
"inputs": [
74
{
85
"id": "option",
96
"type": "pickString",
10-
"description": "Select option",
7+
"description": "buildMode",
118
"options": [
129
"debug",
1310
"profile",

assets/env/develop.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
"api_url": "",
99
"firebase_id": null,
1010
"timeout_limit": 20000,
11-
"enable_local_logs": true,
12-
"enable_cloud_logs": true,
13-
"enable_api_log_interceptor": true,
11+
"enable_local_logs": false,
12+
"enable_cloud_logs": false,
13+
"enable_api_log_interceptor": false,
1414
"sentry_config": null,
1515
"push_notifications_service_type": "none",
1616
"internal_notifications_service_type": "none",

assets/env/production.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"firebase_id": null,
1010
"timeout_limit": 20000,
1111
"enable_local_logs": false,
12-
"enable_cloud_logs": true,
13-
"enable_api_log_interceptor": true,
12+
"enable_cloud_logs": false,
13+
"enable_api_log_interceptor": false,
1414
"sentry_config": null,
1515
"push_notifications_service_type": "none",
1616
"internal_notifications_service_type": "none",

assets/env/staging.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
"api_url": "",
99
"firebase_id": null,
1010
"timeout_limit": 20000,
11-
"enable_local_logs": true,
12-
"enable_cloud_logs": true,
13-
"enable_api_log_interceptor": true,
11+
"enable_local_logs": false,
12+
"enable_cloud_logs": false,
13+
"enable_api_log_interceptor": false,
1414
"sentry_config": null,
1515
"push_notifications_service_type": "none",
1616
"internal_notifications_service_type": "none",

lib/vaahextendflutter/env/env.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ class EnvironmentConfig {
112112
version: '1.0.0',
113113
build: '1',
114114
apiUrl: '',
115-
timeoutLimit: 20 * 1000, // 20 seconds
115+
timeoutLimit: 20, // 20 seconds
116116
enableLocalLogs: true,
117-
enableCloudLogs: true,
118-
enableApiLogInterceptor: true,
117+
enableCloudLogs: false,
118+
enableApiLogInterceptor: false,
119119
pushNotificationsServiceType: PushNotificationsServiceType.none,
120120
internalNotificationsServiceType: InternalNotificationsServiceType.none,
121121
showDebugPanel: true,

lib/vaahextendflutter/helpers/assets.dart

Lines changed: 0 additions & 5 deletions
This file was deleted.

lib/vaahextendflutter/services/api.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ abstract class Api {
177177
}) async {
178178
Response? response;
179179
final Options options = await _getOptions();
180-
options.sendTimeout = Duration(milliseconds: customTimeoutLimit ?? _config.timeoutLimit);
181-
options.receiveTimeout = Duration(milliseconds: customTimeoutLimit ?? _config.timeoutLimit);
180+
options.sendTimeout = Duration(seconds: customTimeoutLimit ?? _config.timeoutLimit);
181+
options.receiveTimeout = Duration(seconds: customTimeoutLimit ?? _config.timeoutLimit);
182182
if (headers != null && headers.isNotEmpty) {
183183
if (options.headers != null) {
184184
for (Map<String, String> element in headers) {

lib/vaahextendflutter/services/logging_library/logging_library.dart

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import 'package:sentry_flutter/sentry_flutter.dart';
2-
31
import '../../env/env.dart';
42
import '_cloud/firebase_logging_service.dart';
53
import '_cloud/sentry_logging_service.dart';
@@ -82,24 +80,24 @@ class Log {
8280
Console.danger('$throwable\n$hint', data);
8381
}
8482
if (_config.enableCloudLogs && !disableCloudLogging) {
85-
final hintWithData = <String, Object>{
86-
'hint': hint ?? {},
87-
'data': data ?? {},
83+
final hintWithData = {
84+
'hint': hint,
85+
'data': data,
8886
};
8987
for (final service in _services) {
9088
switch (service) {
9189
case SentryLoggingService:
9290
SentryLoggingService.logException(
9391
throwable,
9492
stackTrace: stackTrace,
95-
hint: Hint.withMap(hintWithData),
93+
hint: hintWithData,
9694
);
9795
return;
9896
case FirebaseLoggingService:
9997
FirebaseLoggingService.logException(
10098
throwable,
10199
stackTrace: stackTrace,
102-
hint: Hint.withMap(hintWithData),
100+
hint: hintWithData,
103101
);
104102
return;
105103
default:

lib/vaahextendflutter/widgets/debug.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ class DebugWidgetState extends State<DebugWidget> with SingleTickerProviderState
183183
Data(value: _environmentConfig.apiUrl),
184184
'Request and Response Timeout': Data(
185185
value:
186-
'${_environmentConfig.timeoutLimit / 1000} Seconds',
186+
'${_environmentConfig.timeoutLimit} Seconds',
187187
),
188188
'Firebase Id': Data(
189189
value: _environmentConfig.firebaseId,

0 commit comments

Comments
 (0)