oh-package.json5
用于描述包名、版本、入口文件和依賴項等信息。
{"license": "","devDependencies": {},"author": "","name": "entry","description": "Please describe the basic information.","main": "","version": "1.0.0","dependencies": {"@hw-agconnect/api-ohos": "^1.1.2","@hw-agconnect/core-ohos": "^1.1.2","@hw-agconnect/auth-ohos": "^1.1.2","@ohos/common": "file:../common"}
}
oh-package-lock.json5
文件記錄了項目中所有依賴包的確切版本號,確保在不同環境中安裝的依賴版本一致,避免因版本差異導致的問題。
build-profile.json5
工程配置信息,包括簽名signingConfigs、產品配置Products等。其中products中可配置當前運行環境,默認HarmonyOS.
modules 節點的配置決定了這些模塊如何被構建和集成到最終的應用中。
{"app": {"signingConfigs": [],"products": [{"name": "default","signingConfig": "default","compatibleSdkVersion": "4.0.0(10)","runtimeOS": "HarmonyOS"}]},"modules": [{"name": "entry","srcPath": "./entry","targets": [{"name": "default","applyToProducts": ["default"]}]},{"name": "common","srcPath": "./common"}]
}