File tree Expand file tree Collapse file tree 9 files changed +20
-30
lines changed
Expand file tree Collapse file tree 9 files changed +20
-30
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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 ,
Load Diff This file was deleted.
Original file line number Diff line number Diff 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) {
Original file line number Diff line number Diff line change 1- import 'package:sentry_flutter/sentry_flutter.dart' ;
2-
31import '../../env/env.dart' ;
42import '_cloud/firebase_logging_service.dart' ;
53import '_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 :
Original file line number Diff line number Diff 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,
You can’t perform that action at this time.
0 commit comments