mirror of
https://github.com/StarCitizenToolBox/app.git
synced 2026-02-04 14:21:12 +00:00
feat: AnalyticsApi disable firstLaunch
This commit is contained in:
parent
c31b31516f
commit
71c3b61bdd
@ -121,10 +121,10 @@ class AppGlobalModel extends _$AppGlobalModel {
|
||||
if (!kIsWeb) Hive.init("$applicationSupportDir/db");
|
||||
final box = await Hive.openBox("app_conf");
|
||||
state = state.copyWith(appConfBox: box);
|
||||
if (box.get("install_id", defaultValue: "") == "") {
|
||||
await box.put("install_id", const Uuid().v4());
|
||||
AnalyticsApi.touch("firstLaunch");
|
||||
}
|
||||
// if (box.get("install_id", defaultValue: "") == "") {
|
||||
// await box.put("install_id", const Uuid().v4());
|
||||
// AnalyticsApi.touch("firstLaunch");
|
||||
// }
|
||||
final deviceUUID = box.get("install_id", defaultValue: "");
|
||||
final localeCode = box.get("app_locale", defaultValue: null);
|
||||
Locale? locale;
|
||||
|
||||
@ -10,10 +10,7 @@ class RSHttp {
|
||||
static Map<String, String> _defaultHeaders = {};
|
||||
|
||||
static Future<void> init() async {
|
||||
_defaultHeaders = {
|
||||
"User-Agent":
|
||||
"SCToolBox/${ConstConf.appVersion} (${ConstConf.appVersionCode})${ConstConf.isMSE ? "" : " DEV"} RSHttp",
|
||||
};
|
||||
_defaultHeaders = {};
|
||||
|
||||
_dio = Dio(
|
||||
BaseOptions(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user