feat(android): 平板版适配(1280×800dp,免授权,应用商店分发)

- flutter create 增加 android 平台:包名 cc.sincos.sequence_diagram,应用名「时序图设计器」,minSdk 24 / targetSdk 36

- 多分辨率动态兼容:触屏侧栏默认贴边把手(点把手直接停靠),面板宽度随屏宽压缩,窄屏双侧栏停靠不溢出

- 免授权:LicenseService 非 Windows 平台直接判定已授权

- 移动端存储/文件浏览器适配(无 APPDATA/盘符/桌面);edge-to-edge + SafeArea + 文本缩放固定 1.0

- launcher 图标沿用「环序」标志(tools/gen-android-icons.py);Gradle 腾讯镜像 + Maven 阿里镜像

- 自测:7 种分辨率无溢出回归(test/tablet_layout_test.dart)+ 平板截图(demo/tablet-*.png)

- 产物:release/sequence_diagram_tablet_v1.0.1_release.apk(universal,50.3MB)
This commit is contained in:
admin
2026-10-06 21:04:38 +08:00
parent f5412ee99d
commit fad82a30d8
37 changed files with 772 additions and 42 deletions
+7
View File
@@ -58,7 +58,14 @@ class LicenseService {
Directory get licenseDir => Directory('${Directory.current.path}${Platform.pathSeparator}license');
/// 初始化:读取 MAC 并校验 `license/*.lic`。
///
/// Android 平板版(应用商店分发)不需要授权:非 Windows 平台直接判定为
/// 已授权,跳过 MAC 读取与 .lic 校验。
Future<LicenseInfo> init() async {
if (!Platform.isWindows) {
_info = const LicenseInfo(mac: null, valid: true);
return _info;
}
final String? mac = await _readMac();
bool valid = false;
String? hitPath;