@@ -4,48 +4,56 @@ final class BugseeConfigState extends Equatable {
44 /// Indicate if the app require a restart to reactivate the bugsee configurations
55 ///
66 /// `true` only if `isConfigurationValid == true` and bugsee is turned on
7- bool isRestartRequired;
7+ final bool isRestartRequired;
88
99 /// Indicate if bugsee is enabled or not
1010 /// by default bugsee is enabled if `isConfigurationValid == true` .
11- bool isBugseeEnabled;
11+ final bool isBugseeEnabled;
1212
1313 /// Indicate whether video capturing is enabled or not.
1414 /// enabled by default if `isBugseeEnabled == true` .
1515 ///
1616 /// cannot be true if `isBugseeEnabled == false` .
17- bool isVideoCaptureEnabled;
17+ final bool isVideoCaptureEnabled;
1818
1919 /// Indicate if bugsee configuration is valid
2020 /// config is valid if app in release mode and the provided token is valid
2121 /// following the [bugseeTokenFormat] regex.
22- bool isConfigurationValid;
22+ final bool isConfigurationValid;
2323
2424 /// Indicate whether data is obscured in report videos
2525 ///
2626 /// cannot be true if `isBugseeEnabled == false` .
27- bool isDataObscured;
27+ final bool isDataObscured;
2828
2929 /// Indicate whether log will be collected during Bugsee reporting or not
3030 /// by default logs are collected but filterd.
3131 ///
3232 /// This value is initialized from [dotenv.env] and shared prefs storage.
33- bool isLogCollectionEnabled;
33+ final bool isLogCollectionEnabled;
3434
3535 /// Indicate whether log will be filterd or not
3636 /// by default all logs are filted using [bugseeFilterRegex] defined in [BugseeManager]
3737 ///
3838 /// This value is initialized from [dotenv.env] map and shared prefs storage.
39- bool isLogFilterEnabled;
39+ final bool isLogFilterEnabled;
4040
41- BugseeConfigState ({
41+ /// Indicate whether Bugsee will attach the log file when reporting crashes/exceptions
42+ /// or not
43+ ///
44+ /// The initial value is taken from [dotenv.env] and shared prefs.
45+ /// By default it's enabled.
46+ final bool attachLogFile;
47+
48+ const BugseeConfigState ({
4249 this .isRestartRequired = false ,
4350 this .isBugseeEnabled = false ,
4451 this .isVideoCaptureEnabled = false ,
4552 this .isConfigurationValid = false ,
4653 this .isDataObscured = false ,
4754 this .isLogCollectionEnabled = false ,
4855 this .isLogFilterEnabled = false ,
56+ this .attachLogFile = false ,
4957 });
5058
5159 BugseeConfigState copyWith ({
@@ -56,13 +64,15 @@ final class BugseeConfigState extends Equatable {
5664 bool ? isDataObscured,
5765 bool ? isLogCollectionEnabled,
5866 bool ? isLogFilterEnabled,
67+ bool ? attachLogFile,
5968 }) =>
6069 BugseeConfigState (
6170 isRestartRequired: isRestartRequired ?? this .isRestartRequired,
6271 isBugseeEnabled: isBugseeEnabled ?? this .isBugseeEnabled,
6372 isConfigurationValid: isConfigurationValid ?? this .isConfigurationValid,
6473 isDataObscured: isDataObscured ?? this .isDataObscured,
6574 isLogFilterEnabled: isLogFilterEnabled ?? this .isLogFilterEnabled,
75+ attachLogFile: attachLogFile ?? this .attachLogFile,
6676 isLogCollectionEnabled:
6777 isLogCollectionEnabled ?? this .isLogCollectionEnabled,
6878 isVideoCaptureEnabled:
0 commit comments