feat: remove check for updates in market releases

This commit is contained in:
problematicconsumer
2023-09-15 23:09:58 +03:30
parent bd1c3b8ac9
commit b9034f5dd7
6 changed files with 53 additions and 18 deletions

View File

@@ -1,4 +1,23 @@
import 'package:dartx/dartx.dart';
enum Environment {
prod,
dev;
}
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;
}