generated from kodecocodes/bkk-materials
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Explicit crash files added to all chapters
- Loading branch information
Showing
65 changed files
with
545 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...etting-up-your-environment/projects/final/packages/monitoring/lib/src/explicit_crash.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import 'package:firebase_crashlytics/firebase_crashlytics.dart'; | ||
import 'package:flutter/foundation.dart'; | ||
|
||
class ExplicitCrash { | ||
ExplicitCrash({ | ||
@visibleForTesting FirebaseCrashlytics? crashlytics, | ||
}) : _crashlytics = crashlytics ?? FirebaseCrashlytics.instance; | ||
|
||
// 1 | ||
final FirebaseCrashlytics _crashlytics; | ||
|
||
// 2 | ||
crashTheApp() { | ||
_crashlytics.crash(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...ting-up-your-environment/projects/starter/packages/monitoring/lib/src/explicit_crash.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import 'package:firebase_crashlytics/firebase_crashlytics.dart'; | ||
import 'package:flutter/foundation.dart'; | ||
|
||
class ExplicitCrash { | ||
ExplicitCrash({ | ||
@visibleForTesting FirebaseCrashlytics? crashlytics, | ||
}) : _crashlytics = crashlytics ?? FirebaseCrashlytics.instance; | ||
|
||
// 1 | ||
final FirebaseCrashlytics _crashlytics; | ||
|
||
// 2 | ||
crashTheApp() { | ||
_crashlytics.crash(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...ing-the-repository-pattern/projects/final/packages/monitoring/lib/src/explicit_crash.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import 'package:firebase_crashlytics/firebase_crashlytics.dart'; | ||
import 'package:flutter/foundation.dart'; | ||
|
||
class ExplicitCrash { | ||
ExplicitCrash({ | ||
@visibleForTesting FirebaseCrashlytics? crashlytics, | ||
}) : _crashlytics = crashlytics ?? FirebaseCrashlytics.instance; | ||
|
||
// 1 | ||
final FirebaseCrashlytics _crashlytics; | ||
|
||
// 2 | ||
crashTheApp() { | ||
_crashlytics.crash(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...g-the-repository-pattern/projects/starter/packages/monitoring/lib/src/explicit_crash.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import 'package:firebase_crashlytics/firebase_crashlytics.dart'; | ||
import 'package:flutter/foundation.dart'; | ||
|
||
class ExplicitCrash { | ||
ExplicitCrash({ | ||
@visibleForTesting FirebaseCrashlytics? crashlytics, | ||
}) : _crashlytics = crashlytics ?? FirebaseCrashlytics.instance; | ||
|
||
// 1 | ||
final FirebaseCrashlytics _crashlytics; | ||
|
||
// 2 | ||
crashTheApp() { | ||
_crashlytics.crash(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...s-and-the-bloc-library/projects/challenge/packages/monitoring/lib/src/explicit_crash.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import 'package:firebase_crashlytics/firebase_crashlytics.dart'; | ||
import 'package:flutter/foundation.dart'; | ||
|
||
class ExplicitCrash { | ||
ExplicitCrash({ | ||
@visibleForTesting FirebaseCrashlytics? crashlytics, | ||
}) : _crashlytics = crashlytics ?? FirebaseCrashlytics.instance; | ||
|
||
// 1 | ||
final FirebaseCrashlytics _crashlytics; | ||
|
||
// 2 | ||
crashTheApp() { | ||
_crashlytics.crash(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...ubits-and-the-bloc-library/projects/final/packages/monitoring/lib/src/explicit_crash.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import 'package:firebase_crashlytics/firebase_crashlytics.dart'; | ||
import 'package:flutter/foundation.dart'; | ||
|
||
class ExplicitCrash { | ||
ExplicitCrash({ | ||
@visibleForTesting FirebaseCrashlytics? crashlytics, | ||
}) : _crashlytics = crashlytics ?? FirebaseCrashlytics.instance; | ||
|
||
// 1 | ||
final FirebaseCrashlytics _crashlytics; | ||
|
||
// 2 | ||
crashTheApp() { | ||
_crashlytics.crash(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...its-and-the-bloc-library/projects/starter/packages/monitoring/lib/src/explicit_crash.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import 'package:firebase_crashlytics/firebase_crashlytics.dart'; | ||
import 'package:flutter/foundation.dart'; | ||
|
||
class ExplicitCrash { | ||
ExplicitCrash({ | ||
@visibleForTesting FirebaseCrashlytics? crashlytics, | ||
}) : _crashlytics = crashlytics ?? FirebaseCrashlytics.instance; | ||
|
||
// 1 | ||
final FirebaseCrashlytics _crashlytics; | ||
|
||
// 2 | ||
crashTheApp() { | ||
_crashlytics.crash(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...lidating-forms-with-cubits/projects/final/packages/monitoring/lib/src/explicit_crash.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import 'package:firebase_crashlytics/firebase_crashlytics.dart'; | ||
import 'package:flutter/foundation.dart'; | ||
|
||
class ExplicitCrash { | ||
ExplicitCrash({ | ||
@visibleForTesting FirebaseCrashlytics? crashlytics, | ||
}) : _crashlytics = crashlytics ?? FirebaseCrashlytics.instance; | ||
|
||
// 1 | ||
final FirebaseCrashlytics _crashlytics; | ||
|
||
// 2 | ||
crashTheApp() { | ||
_crashlytics.crash(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...dating-forms-with-cubits/projects/starter/packages/monitoring/lib/src/explicit_crash.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import 'package:firebase_crashlytics/firebase_crashlytics.dart'; | ||
import 'package:flutter/foundation.dart'; | ||
|
||
class ExplicitCrash { | ||
ExplicitCrash({ | ||
@visibleForTesting FirebaseCrashlytics? crashlytics, | ||
}) : _crashlytics = crashlytics ?? FirebaseCrashlytics.instance; | ||
|
||
// 1 | ||
final FirebaseCrashlytics _crashlytics; | ||
|
||
// 2 | ||
crashTheApp() { | ||
_crashlytics.crash(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...g-complex-state-with-blocs/projects/final/packages/monitoring/lib/src/explicit_crash.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import 'package:firebase_crashlytics/firebase_crashlytics.dart'; | ||
import 'package:flutter/foundation.dart'; | ||
|
||
class ExplicitCrash { | ||
ExplicitCrash({ | ||
@visibleForTesting FirebaseCrashlytics? crashlytics, | ||
}) : _crashlytics = crashlytics ?? FirebaseCrashlytics.instance; | ||
|
||
// 1 | ||
final FirebaseCrashlytics _crashlytics; | ||
|
||
// 2 | ||
crashTheApp() { | ||
_crashlytics.crash(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...complex-state-with-blocs/projects/starter/packages/monitoring/lib/src/explicit_crash.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import 'package:firebase_crashlytics/firebase_crashlytics.dart'; | ||
import 'package:flutter/foundation.dart'; | ||
|
||
class ExplicitCrash { | ||
ExplicitCrash({ | ||
@visibleForTesting FirebaseCrashlytics? crashlytics, | ||
}) : _crashlytics = crashlytics ?? FirebaseCrashlytics.instance; | ||
|
||
// 1 | ||
final FirebaseCrashlytics _crashlytics; | ||
|
||
// 2 | ||
crashTheApp() { | ||
_crashlytics.crash(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
06-authenticating-users/projects/final/packages/monitoring/lib/src/explicit_crash.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import 'package:firebase_crashlytics/firebase_crashlytics.dart'; | ||
import 'package:flutter/foundation.dart'; | ||
|
||
class ExplicitCrash { | ||
ExplicitCrash({ | ||
@visibleForTesting FirebaseCrashlytics? crashlytics, | ||
}) : _crashlytics = crashlytics ?? FirebaseCrashlytics.instance; | ||
|
||
// 1 | ||
final FirebaseCrashlytics _crashlytics; | ||
|
||
// 2 | ||
crashTheApp() { | ||
_crashlytics.crash(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
06-authenticating-users/projects/starter/packages/monitoring/lib/src/explicit_crash.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import 'package:firebase_crashlytics/firebase_crashlytics.dart'; | ||
import 'package:flutter/foundation.dart'; | ||
|
||
class ExplicitCrash { | ||
ExplicitCrash({ | ||
@visibleForTesting FirebaseCrashlytics? crashlytics, | ||
}) : _crashlytics = crashlytics ?? FirebaseCrashlytics.instance; | ||
|
||
// 1 | ||
final FirebaseCrashlytics _crashlytics; | ||
|
||
// 2 | ||
crashTheApp() { | ||
_crashlytics.crash(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
07-routing-and-navigating/projects/final/packages/monitoring/lib/src/explicit_crash.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import 'package:firebase_crashlytics/firebase_crashlytics.dart'; | ||
import 'package:flutter/foundation.dart'; | ||
|
||
class ExplicitCrash { | ||
ExplicitCrash({ | ||
@visibleForTesting FirebaseCrashlytics? crashlytics, | ||
}) : _crashlytics = crashlytics ?? FirebaseCrashlytics.instance; | ||
|
||
// 1 | ||
final FirebaseCrashlytics _crashlytics; | ||
|
||
// 2 | ||
crashTheApp() { | ||
_crashlytics.crash(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
07-routing-and-navigating/projects/starter/packages/monitoring/lib/src/explicit_crash.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import 'package:firebase_crashlytics/firebase_crashlytics.dart'; | ||
import 'package:flutter/foundation.dart'; | ||
|
||
class ExplicitCrash { | ||
ExplicitCrash({ | ||
@visibleForTesting FirebaseCrashlytics? crashlytics, | ||
}) : _crashlytics = crashlytics ?? FirebaseCrashlytics.instance; | ||
|
||
// 1 | ||
final FirebaseCrashlytics _crashlytics; | ||
|
||
// 2 | ||
crashTheApp() { | ||
_crashlytics.crash(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
08-deep-linking/projects/final/packages/monitoring/lib/src/explicit_crash.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import 'package:firebase_crashlytics/firebase_crashlytics.dart'; | ||
import 'package:flutter/foundation.dart'; | ||
|
||
class ExplicitCrash { | ||
ExplicitCrash({ | ||
@visibleForTesting FirebaseCrashlytics? crashlytics, | ||
}) : _crashlytics = crashlytics ?? FirebaseCrashlytics.instance; | ||
|
||
// 1 | ||
final FirebaseCrashlytics _crashlytics; | ||
|
||
// 2 | ||
crashTheApp() { | ||
_crashlytics.crash(); | ||
} | ||
} |
Oops, something went wrong.