Skip to content

Commit

Permalink
Explicit crash files added to all chapters
Browse files Browse the repository at this point in the history
  • Loading branch information
vpalcar committed Sep 23, 2022
1 parent bffcaab commit 2722ba3
Show file tree
Hide file tree
Showing 65 changed files with 545 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'package:firebase_core/firebase_core.dart';
export 'src/dynamic_link_service.dart';
export 'src/analytics_service.dart';
export 'src/error_reporting_service.dart';
export 'src/explicit_crash.dart';
export 'src/remote_value_service.dart';

Future<void> initializeMonitoringPackage() => Firebase.initializeApp();
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();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'package:firebase_core/firebase_core.dart';
export 'src/dynamic_link_service.dart';
export 'src/analytics_service.dart';
export 'src/error_reporting_service.dart';
export 'src/explicit_crash.dart';
export 'src/remote_value_service.dart';

Future<void> initializeMonitoringPackage() => Firebase.initializeApp();
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();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'package:firebase_core/firebase_core.dart';
export 'src/dynamic_link_service.dart';
export 'src/analytics_service.dart';
export 'src/error_reporting_service.dart';
export 'src/explicit_crash.dart';
export 'src/remote_value_service.dart';

Future<void> initializeMonitoringPackage() => Firebase.initializeApp();
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();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'package:firebase_core/firebase_core.dart';
export 'src/dynamic_link_service.dart';
export 'src/analytics_service.dart';
export 'src/error_reporting_service.dart';
export 'src/explicit_crash.dart';
export 'src/remote_value_service.dart';

Future<void> initializeMonitoringPackage() => Firebase.initializeApp();
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();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'package:firebase_core/firebase_core.dart';
export 'src/dynamic_link_service.dart';
export 'src/analytics_service.dart';
export 'src/error_reporting_service.dart';
export 'src/explicit_crash.dart';
export 'src/remote_value_service.dart';

Future<void> initializeMonitoringPackage() => Firebase.initializeApp();
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();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'package:firebase_core/firebase_core.dart';
export 'src/dynamic_link_service.dart';
export 'src/analytics_service.dart';
export 'src/error_reporting_service.dart';
export 'src/explicit_crash.dart';
export 'src/remote_value_service.dart';

Future<void> initializeMonitoringPackage() => Firebase.initializeApp();
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();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'package:firebase_core/firebase_core.dart';
export 'src/dynamic_link_service.dart';
export 'src/analytics_service.dart';
export 'src/error_reporting_service.dart';
export 'src/explicit_crash.dart';
export 'src/remote_value_service.dart';

Future<void> initializeMonitoringPackage() => Firebase.initializeApp();
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();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'package:firebase_core/firebase_core.dart';
export 'src/dynamic_link_service.dart';
export 'src/analytics_service.dart';
export 'src/error_reporting_service.dart';
export 'src/explicit_crash.dart';
export 'src/remote_value_service.dart';

Future<void> initializeMonitoringPackage() => Firebase.initializeApp();
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();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'package:firebase_core/firebase_core.dart';
export 'src/dynamic_link_service.dart';
export 'src/analytics_service.dart';
export 'src/error_reporting_service.dart';
export 'src/explicit_crash.dart';
export 'src/remote_value_service.dart';

Future<void> initializeMonitoringPackage() => Firebase.initializeApp();
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();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'package:firebase_core/firebase_core.dart';
export 'src/dynamic_link_service.dart';
export 'src/analytics_service.dart';
export 'src/error_reporting_service.dart';
export 'src/explicit_crash.dart';
export 'src/remote_value_service.dart';

Future<void> initializeMonitoringPackage() => Firebase.initializeApp();
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();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'package:firebase_core/firebase_core.dart';
export 'src/dynamic_link_service.dart';
export 'src/analytics_service.dart';
export 'src/error_reporting_service.dart';
export 'src/explicit_crash.dart';
export 'src/remote_value_service.dart';

Future<void> initializeMonitoringPackage() => Firebase.initializeApp();
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();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'package:firebase_core/firebase_core.dart';
export 'src/dynamic_link_service.dart';
export 'src/analytics_service.dart';
export 'src/error_reporting_service.dart';
export 'src/explicit_crash.dart';
export 'src/remote_value_service.dart';

Future<void> initializeMonitoringPackage() => Firebase.initializeApp();
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();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'package:firebase_core/firebase_core.dart';
export 'src/dynamic_link_service.dart';
export 'src/analytics_service.dart';
export 'src/error_reporting_service.dart';
export 'src/explicit_crash.dart';
export 'src/remote_value_service.dart';

Future<void> initializeMonitoringPackage() => Firebase.initializeApp();
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();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'package:firebase_core/firebase_core.dart';
export 'src/dynamic_link_service.dart';
export 'src/analytics_service.dart';
export 'src/error_reporting_service.dart';
export 'src/explicit_crash.dart';
export 'src/remote_value_service.dart';

Future<void> initializeMonitoringPackage() => Firebase.initializeApp();
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();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'package:firebase_core/firebase_core.dart';
export 'src/dynamic_link_service.dart';
export 'src/analytics_service.dart';
export 'src/error_reporting_service.dart';
export 'src/explicit_crash.dart';
export 'src/remote_value_service.dart';

Future<void> initializeMonitoringPackage() => Firebase.initializeApp();
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();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'package:firebase_core/firebase_core.dart';
export 'src/dynamic_link_service.dart';
export 'src/analytics_service.dart';
export 'src/error_reporting_service.dart';
export 'src/explicit_crash.dart';
export 'src/remote_value_service.dart';

Future<void> initializeMonitoringPackage() => Firebase.initializeApp();
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();
}
}
Loading

0 comments on commit 2722ba3

Please sign in to comment.