- Introduced buildinfo.json5 to enable impeller feature. - Added Chinese localization strings in string.json for module description and entry ability. - Created Ability.test.ets for unit testing of ability functionalities. - Implemented List.test.ets to run the ability tests. - Developed TestAbility.ets to manage test execution and lifecycle events. - Created Index.ets as a testability page with UI components. - Added OpenHarmonyTestRunner.ts for managing test execution in OpenHarmony. - Defined module.json5 for entry_test module configuration. - Established color.json and string.json for base resources. - Included icon.png for the test module. - Created test_pages.json to define testability page sources. - Configured hvigor and oh-package.json5 for project setup. - Updated pubspec.yaml and related files to downgrade Dart SDK to 3.11.0 and adjust dependencies. - Added PowerShell script to enable OpenHarmony Flutter toolchain. - Updated multiple package pubspec.yaml files to align with Dart SDK version 3.11.0 and adjust dependencies accordingly.
34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
YAML
name: core_auth
|
||
description: 会话与门店上下文。token 存取、刷新串行化、登出/切店级联。
|
||
publish_to: none
|
||
version: 0.1.0
|
||
resolution: workspace
|
||
|
||
# ---------------------------------------------------------------------------
|
||
# 依赖约束(01 §依赖约束,硬规则):
|
||
# core_auth ↛ core_network —— 否则 AuthInterceptor 与刷新逻辑会互相纠缠成环
|
||
# core_auth ↛ core_storage —— 清缓存通过下面的 SessionScopedStore 接口反转依赖
|
||
# 因此本包里的 token 刷新用的是一个**不带任何拦截器的裸 Dio**。
|
||
# ---------------------------------------------------------------------------
|
||
environment:
|
||
sdk: ^3.11.0
|
||
|
||
dependencies:
|
||
core_foundation: ^0.1.0
|
||
dio: ^5.11.0
|
||
flutter:
|
||
sdk: flutter
|
||
flutter_riverpod: 3.2.1
|
||
flutter_secure_storage: ^11.0.0
|
||
# 4.0.3+ 的 generator 引入 analyzer ^12,要求 meta ^1.18;
|
||
# Harmony Flutter(Dart 3.11)固定 meta 1.17.0,故保持在兼容组合。
|
||
riverpod_annotation: 4.0.2
|
||
|
||
dev_dependencies:
|
||
build_runner: ^2.4.13
|
||
flutter_lints: ^6.0.0
|
||
flutter_test:
|
||
sdk: flutter
|
||
mocktail: ^1.0.5
|
||
riverpod_generator: 4.0.3
|