mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
refactor: remove useless prints.
This commit is contained in:
parent
fbd4359d61
commit
1a97cdf91d
@ -25,7 +25,7 @@ Future main() async {
|
||||
await locator<RevancedAPI>().initialize(apiUrl);
|
||||
bool isSentryEnabled = locator<ManagerAPI>().isSentryEnabled();
|
||||
bool isCrashlyticsEnabled = locator<ManagerAPI>().isCrashlyticsEnabled();
|
||||
// Remove this line if you are building from source and don't have firebase config
|
||||
// Remove this section if you are building from source and don't have firebase config
|
||||
if (isCrashlyticsEnabled) {
|
||||
await Firebase.initializeApp(
|
||||
options: DefaultFirebaseOptions.currentPlatform,
|
||||
@ -41,11 +41,11 @@ Future main() async {
|
||||
await locator<PatcherAPI>().initialize();
|
||||
tz.initializeTimeZones();
|
||||
|
||||
// Remove this line if you are building from source and don't have sentry configured
|
||||
// Remove this section if you are building from source and don't have sentry configured
|
||||
await SentryFlutter.init(
|
||||
(options) {
|
||||
options
|
||||
..dsn = isSentryEnabled ? Env.sentry_dsn : ''
|
||||
..dsn = isSentryEnabled ? Env.sentryDSN : ''
|
||||
..environment = 'alpha'
|
||||
..release = '0.1'
|
||||
..tracesSampleRate = 1.0
|
||||
@ -53,18 +53,14 @@ Future main() async {
|
||||
..enableOutOfMemoryTracking = true
|
||||
..sampleRate = isSentryEnabled ? 1.0 : 0.0
|
||||
..beforeSend = (event, hint) {
|
||||
print('isSentryEnabled: $isSentryEnabled');
|
||||
if (isSentryEnabled) {
|
||||
print("Sentry event sent");
|
||||
return event;
|
||||
} else {
|
||||
print("Sentry is disabled");
|
||||
return null;
|
||||
}
|
||||
} as BeforeSendCallback?;
|
||||
},
|
||||
appRunner: () {
|
||||
// Pass all uncaught errors from the framework to Crashlytics.
|
||||
if (isCrashlyticsEnabled) {
|
||||
FlutterError.onError = FirebaseCrashlytics.instance.recordFlutterError;
|
||||
}
|
||||
|
@ -88,7 +88,6 @@ class ManagerAPI {
|
||||
|
||||
Future<void> setSentryStatus(bool value) async {
|
||||
await _prefs.setBool('sentryEnabled', value);
|
||||
print('Sentry status: $value');
|
||||
}
|
||||
|
||||
bool isCrashlyticsEnabled() {
|
||||
@ -97,7 +96,6 @@ class ManagerAPI {
|
||||
|
||||
Future<void> setCrashlyticsStatus(bool value) async {
|
||||
await _prefs.setBool('crashlyticsEnabled', value);
|
||||
print('Crashlytics status: $value');
|
||||
}
|
||||
|
||||
List<PatchedApplication> getPatchedApps() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user