fix:参考金值,研听,研值工程通用通用工程公共能力,重点对比网络请求、登录认证、状态管理、本地存储、WebView、推送、版本更新、一键登录、主题/UI 等模块,确定后续统一整改方案

This commit is contained in:
jingyun committed 2026-09-10 09:52:36 +08:00
1 parent 6997a65c96
commit d364c6d908
46 files changed
+2060 -395

No files matched your search

@@ -1,11 +1,14 @@
import 'package:flutter_test/flutter_test.dart';
import 'package:jinzhi_flutter_app/common/storage/preferences_storage.dart';
import 'package:jinzhi_flutter_app/features/mall/application/mall_entry_promo_store.dart';
import 'package:shared_preferences/shared_preferences.dart';
void main() {
test('records each first-install mall promotion exposure once', () async {
SharedPreferences.setMockInitialValues(<String, Object>{});
final store = MallEntryPromoStore(await SharedPreferences.getInstance());
final store = MallEntryPromoStore(
PreferencesStorage(await SharedPreferences.getInstance()),
);
expect(store.hasOpenedMall, isFalse);
expect(store.hasSeenHomeBadge, isFalse);