feat(common): 新增基础设施 HAR(网络/鉴权/日志/状态/工具)

This commit is contained in:
AndyChen1024
2026-09-11 16:22:45 +08:00
parent 2dc02b44c7
commit b73e74fa4a
16 changed files with 307 additions and 0 deletions

17
common/BuildProfile.ets Normal file
View File

@@ -0,0 +1,17 @@
/**
* Use these variables when you tailor your ArkTS code. They must be of the const type.
*/
export const HAR_VERSION = '1.0.0';
export const BUILD_MODE_NAME = 'debug';
export const DEBUG = true;
export const TARGET_NAME = 'default';
/**
* BuildProfile Class is used only for compatibility purposes.
*/
export default class BuildProfile {
static readonly HAR_VERSION = HAR_VERSION;
static readonly BUILD_MODE_NAME = BUILD_MODE_NAME;
static readonly DEBUG = DEBUG;
static readonly TARGET_NAME = TARGET_NAME;
}