[Problem] NUIGadgetResourceManager.GetString(String name) was getting null for newly installed gadgets.
[Cause & Measure]
Cause : As defined by the FW team, DLL directories should be "res/allowed/<res-type>" rather than "res/allowed" to get the resources properly.
Measure : Changed the post build script accordingly to store the resources files in proper destination
Change-Id: I65e9a861f6e5baba60222a8d914d3378e20a17fe
Signed-off-by: azijur-r <azijur.r@samsung.com>
</EmbeddedResource>
</ItemGroup>
+ <PropertyGroup>
+ <GadgetResourceType>org.tizen.appfw.gadget.Settings</GadgetResourceType>
+ </PropertyGroup>
+
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
- <Exec Command=":: Copy resource dll
rmdir /S /Q res\allowed\locale
mkdir res\allowed\locale
dir $(OutDir)\
xcopy /S /K /D /H /Y $(OutDir)\ res\allowed\locale
del /q res\allowed\locale\*.*
xcopy /S /K /D /H /Y res\allowed\locale\* res\allowed
rmdir /S /Q res\allowed\locale
" />
+ <Exec Command=":: Copy resource dll
rmdir /S /Q res\allowed\$(GadgetResourceType)
mkdir res\allowed\$(GadgetResourceType)
rmdir /S /Q res\allowed\locale
mkdir res\allowed\locale
dir $(OutDir)\
xcopy /S /K /D /H /Y $(OutDir)\ res\allowed\locale
del /Q res\allowed\locale\*.*
xcopy /S /K /D /H /Y res\allowed\locale\* res\allowed\$(GadgetResourceType)
rmdir /S /Q res\allowed\locale
" />
</Target>
</Project>