#include "ni_common.h"
#include "log.h"
#include "utils.h"
-#include <vconf.h>
#include <cstring>
#include <vector>
+
+#include <vconf.h>
#include <glib.h>
#include <pkgmgr_installer_info.h>
return -1;
}
- if (metaValue == METADATA_VALUE) {
+ if (metaValue == METADATA_VALUE_TRUE) {
_DBG("Prefer dotnet application AOT set TRUE");
if (initNICommon() != NI_ERROR_NONE) {
return -1;
}
- DWORD flags = 0;
- if (createNIUnderPkgRoot(pkgId, flags) != NI_ERROR_NONE) {
+ NIOption* opt = getNIOption();
+ if (opt == nullptr) {
+ _ERR("Fail to create option structure.");
+ return -1;
+ }
+
+ if (createNIUnderPkgRoot(pkgId, opt) != NI_ERROR_NONE) {
_ERR("Failed to generate application to native image [%s]", pkgId);
return -1;
}