diff --git a/frameworks/bundle_lite/src/bundle_info.cpp b/frameworks/bundle_lite/src/bundle_info.cpp index 33bb9ed89d9b5da742115339b2a1f17a62895b61..67b061e94aecacc5de151599e715d6cb615440fd 100755 --- a/frameworks/bundle_lite/src/bundle_info.cpp +++ b/frameworks/bundle_lite/src/bundle_info.cpp @@ -13,33 +13,18 @@ * limitations under the License. */ -#include "bundle_info.h" - -#include "bundle_info_utils.h" -#include "securec.h" -#include "utils.h" - -void ClearBundleInfo(BundleInfo *bundleInfo) +#include + +int main() { - if (bundleInfo == nullptr) { - return; + int i,j; + for(i=0;i<8;i++) + { + for(j=0;j<8;j++) + if((i+j)%2==0) + printf("%c%c",219,219); + else printf(" "); + printf("\n"); } - AdapterFree(bundleInfo->bundleName); - AdapterFree(bundleInfo->versionName); - AdapterFree(bundleInfo->label); - AdapterFree(bundleInfo->bigIconPath); - AdapterFree(bundleInfo->codePath); - AdapterFree(bundleInfo->dataPath); - AdapterFree(bundleInfo->vendor); - OHOS::BundleInfoUtils::ClearModuleInfos(bundleInfo->moduleInfos, bundleInfo->numOfModule); - AdapterFree(bundleInfo->moduleInfos); - AdapterFree(bundleInfo->appId); -#ifdef OHOS_APPEXECFWK_BMS_BUNDLEMANAGER - OHOS::BundleInfoUtils::ClearAbilityInfos(bundleInfo->abilityInfos, bundleInfo->numOfAbility); - AdapterFree(bundleInfo->abilityInfos); -#else - AdapterFree(bundleInfo->smallIconPath); - ClearAbilityInfo(bundleInfo->abilityInfo); - AdapterFree(bundleInfo->abilityInfo); -#endif + return 0; }