mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 18:38:36 +08:00
Use flutter_runtime_env for firebase test lab check
flutter_sentry provided this as well, but I'm going to remove that for the official flutter sentry integration
This commit is contained in:
@ -7,7 +7,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:device_info/device_info.dart';
|
||||
import 'package:easy_localization/easy_localization.dart';
|
||||
import 'package:easy_localization_loader/easy_localization_loader.dart';
|
||||
import 'package:flutter_sentry/flutter_sentry.dart';
|
||||
import 'package:flutter_runtime_env/flutter_runtime_env.dart';
|
||||
import 'package:package_info/package_info.dart';
|
||||
import 'package:path_provider/path_provider.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
@ -120,7 +120,7 @@ class JournalApp extends StatefulWidget {
|
||||
JournalApp.isInDebugMode = true;
|
||||
}
|
||||
|
||||
bool inFireBaseTestLab = await FlutterSentry.isFirebaseTestLab();
|
||||
bool inFireBaseTestLab = await inFirebaseTestLab();
|
||||
bool enabled = !JournalApp.isInDebugMode && !inFireBaseTestLab;
|
||||
|
||||
Log.d("Analytics Collection: $enabled");
|
||||
|
@ -386,6 +386,13 @@ packages:
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "2.0.0"
|
||||
flutter_runtime_env:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: flutter_runtime_env
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.0.4"
|
||||
flutter_sentry:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
|
@ -43,6 +43,7 @@ dependencies:
|
||||
flutter_emoji: ">= 2.0.0"
|
||||
flutter_markdown: ^0.6.1
|
||||
flutter_sentry: ^0.4.4
|
||||
flutter_runtime_env: ^0.0.4
|
||||
flutter_staggered_grid_view: ^0.3.0
|
||||
flutter_svg: ^0.21.0-nullsafety.0
|
||||
font_awesome_flutter: ^8.7.0
|
||||
|
Reference in New Issue
Block a user