赞
踩
import bundleManager from '@ohos.bundle.bundleManager';
import { Logger } from './Logger';
bundleManager.getBundleInfoForSelf(bundleManager.BundleFlag.GET_BUNDLE_INFO_WITH_APPLICATION)
.then(bundleInfo => {
Logger.info('versionName:' + bundleInfo.versionName + ', versionCode:' + bundleInfo.versionCode + ',packageName:' + bundleInfo.name)
const appInfo = bundleInfo.appInfo
Logger.info('packageName:' + appInfo.name + ', label:' + appInfo.label + ', description:' + appInfo.description
+ ', icon:' + appInfo.icon + ', process:' + appInfo.process + ', codePath:' + appInfo.codePath)
})
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。