You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
789 B
Dart

2 years ago
import 'package:package_info_plus/package_info_plus.dart';
import 'package:shared_preferences/shared_preferences.dart';
2 years ago
typedef VoidFutureCallback = Future<void> Function();
typedef BoolFutureCallback = Future<bool> Function();
class Global {
static const String siteConfigUrl = "https://www.isekai.cn/app/config.json";
static const String wikiApiUrl = "https://www.isekai.cn/api.php";
static String wikiHomeUrl = "https://www.isekai.cn/";
static String restfulApiUrl = "https://www.isekai.cn/api/rest_v1";
static String pageUrl = "https://www.isekai.cn/{{title}}";
static const String renderThemeFallback = "vector";
2 years ago
static PackageInfo? packageInfo;
static String wikiLang = "zh-cn";
static String? webOrigin;
static SharedPreferences? sharedPreferences;
2 years ago
}