File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -83,13 +83,13 @@ class JournalApp extends StatelessWidget {
83
83
JournalApp .isInDebugMode = true ;
84
84
}
85
85
86
- bool should = ( JournalApp .isInDebugMode == false );
87
- should = should && ( await runtime_env. inFirebaseTestLab ()) ;
86
+ bool inFireBaseTestLab = await runtime_env. inFirebaseTestLab ( );
87
+ bool enabled = ! JournalApp .isInDebugMode && ! inFireBaseTestLab ;
88
88
89
- Fimber .d ("Analytics Collection: $should " );
90
- JournalApp .analytics.setAnalyticsCollectionEnabled (should );
89
+ Fimber .d ("Analytics Collection: $enabled " );
90
+ JournalApp .analytics.setAnalyticsCollectionEnabled (enabled );
91
91
92
- if (should ) {
92
+ if (enabled ) {
93
93
JournalApp .analytics.logEvent (
94
94
name: "settings" ,
95
95
parameters: Settings .instance.toLoggableMap (),
You can’t perform that action at this time.
0 commit comments