#ifndef _INSTALLER_DEFS_H_
#define _INSTALLER_DEFS_H_
-#define OSP_INSTALLER_VERSION "osp-installer version=20130107.3"
+#define OSP_INSTALLER_VERSION "osp-installer version=20130108.1"
#define DIR_BIN L"/bin"
#define DIR_INFO L"/info"
#define FILE_EXT_INFO L"info"
#define VERSION_INFO_FILE L"/info/version.info"
+#define COMPAT_INFO_FILE L"/info/compat.info"
#define UISCALABILITY_INFO_FILE L"/info/uiscalability.info"
#define WEBSERVICE_INFO_FILE L"/info/webservice.info"
#define TYPE_INFO_FILE L"/info/type.info"
versionInfoFile.Format(1024, L"%ls%ls", rootPath.GetPointer(), VERSION_INFO_FILE);
CreateInfoFile(versionInfoFile, &apiVersion);
+ if (pContext->__isOspCompat == true)
+ {
+ AppLogTag(OSP_INSTALLER, "[OspCompat] is detected");
+
+ String compatInfoFile;
+ compatInfoFile.Format(1024, L"%ls%ls", rootPath.GetPointer(), COMPAT_INFO_FILE);
+ CreateInfoFile(compatInfoFile, null);
+ }
+
String webServicePrivilege(TIZEN_PRIVILEGE_WEB_SERVICE);
if (FindPrivilege(pContext, webServicePrivilege) == true)
{
bool
ManifestHandler::OnUiAppStartElement(void)
{
- XmlAttribute *pAttr = null;
-
__pPackageAppInfoImpl = new (std::nothrow) _PackageAppInfoImpl;
TryReturn(__pPackageAppInfoImpl, false, "[osp-installer] __pPackageAppInfoImpl is null");
AppLogTag(OSP_INSTALLER, "<UiApp>");
- pAttr = GetAttribute();
+ XmlAttribute *pAttr = GetAttribute();
TryReturn(pAttr, true, "[osp-installer] pAttr is null");
ParseAppAttribute(pAttr, true);
bool
ManifestHandler::OnServiceAppStartElement(void)
{
- XmlAttribute *pAttr = null;
-
__pPackageAppInfoImpl = new (std::nothrow) _PackageAppInfoImpl;
TryReturn(__pPackageAppInfoImpl, false, "[osp-installer] __pPackageAppInfoImpl is null");
AppLogTag(OSP_INSTALLER, "<ServiceApp>");
- pAttr = GetAttribute();
+ XmlAttribute *pAttr = GetAttribute();
TryReturn(pAttr, true, "pAttr is null");
ParseAppAttribute(pAttr, false);
__pPackageInfoImpl->SetAppApiVersion(pCharacters);
AppLogTag(OSP_INSTALLER, "<ApiVersion>%s</ApiVersion>", pCharacters);
+ XmlAttribute *pAttr = GetAttribute();
+ if (pAttr)
+ {
+ char* pOspCompat = pAttr->Find("OspCompat");
+ if (pOspCompat)
+ {
+ AppLogTag(OSP_INSTALLER, " - OspCompat=%s", pOspCompat);
+ __pContext->__isOspCompat = true;
+ }
+ }
+
return true;
}