#include "InstallerUtil.h"
-#define OSP_INSTALLER_VERSION "version=[20130703.1]"
+#define OSP_INSTALLER_VERSION "version=[20130703.2]"
#define DIR_BIN L"/bin"
#define DIR_INFO L"/info"
#define METADATA_SPLASH_INDICATOR_DISPLAY L"http://developer.samsung.com/tizen/metadata/splash/indicatordisplay"
#define METADATA_SPLASH_PORTRAIT L"http://developer.samsung.com/tizen/metadata/splash/portrait"
#define METADATA_SPLASH_LANDSCAPE L"http://developer.samsung.com/tizen/metadata/splash/landscape"
+#define METADATA_DISABLE_SCREEN_READER L"http://developer.samsung.com/tizen/metadata/disablescreenreader"
#define DIR_APPLICATIONS_TMP "/opt/usr/apps/tmp"
InstallerUtil::CreateSymlink(oldPath, newPath);
#else
newPath = appRootPath + L"/Res";
- std::unique_ptr< char[] > pResPath(_StringConverter::CopyToCharArrayN(newPath));
- int ret = symlink("./res", pResPath.get());
- smackManager.SetupPath(pContext->__packageId, newPath, SMACK_DIR_TYPE_ANY_LABEL, L"_");
+ InstallerUtil::CreateSymlink(L"./res", newPath, false);
#endif
#if 0
InstallerUtil::CreateSymlink(oldPath, newPath);
#else
newPath = appRootPath + L"/Home";
- std::unique_ptr< char[] > pHomePath(_StringConverter::CopyToCharArrayN(newPath));
- ret = symlink("./data", pHomePath.get());
- smackManager.SetupPath(pContext->__packageId, newPath, SMACK_DIR_TYPE_ANY_LABEL, L"_");
+ InstallerUtil::CreateSymlink(L"./data", newPath, false);
#endif
oldPath = appRootPath + DIR_RES + L"/screen-size-normal";
ManifestGenerator::WriteApp(int index, AppData* pAppData)
{
IMap* pNameList = pAppData->__pNameList;
+ HashMap* pMetadataMap = pAppData->__pMetadataMap;
String label("label");
String type("c++app");
String binaryPath;
__pWriter->WriteAttribute("hw-acceleration", glFrame);
__pWriter->WriteAttribute("mainapp", mainapp);
+ String screenReaderOff(METADATA_DISABLE_SCREEN_READER);
+ if (pMetadataMap->ContainsKey(screenReaderOff) == true)
+ {
+ __pWriter->WriteAttribute(L"screen-reader", L"screenreader-off");
+ }
+
String indicatorDisplay;
String portraitValue;
String landscapeValue;
__pWriter->EndElement();
}
- HashMap* pMetadataMap = pAppData->__pMetadataMap;
if (pMetadataMap->GetCount() > 0)
{
WriteMetadata(pMetadataMap);