This commit is contained in:
problematicconsumer
2023-12-01 12:56:24 +03:30
parent 9c165e178b
commit ed614988a2
181 changed files with 3092 additions and 2341 deletions

View File

@@ -0,0 +1,25 @@
import 'package:dartx/dartx.dart';
enum Environment {
prod,
dev;
static const sentryDSN = String.fromEnvironment("sentry_dsn");
}
enum Release {
general("general"),
googlePlay("google-play");
const Release(this.key);
final String key;
bool get allowCustomUpdateChecker => this == general;
static Release read() =>
Release.values.firstOrNullWhere(
(e) => e.key == const String.fromEnvironment("release"),
) ??
Release.general;
}