Modifying the post build script. 68/309668/3 accepted/tizen/unified/20240621.010443 accepted/tizen/unified/dev/20240701.073131 accepted/tizen/unified/toolchain/20240624.121616 accepted/tizen/unified/x/20240624.032012 accepted/tizen/unified/x/asan/20240625.092742
authorazijur-r <azijur.r@samsung.com>
Mon, 15 Apr 2024 06:57:43 +0000 (12:57 +0600)
committerAzijur Rahman Sheatu <azijur.r@samsung.com>
Tue, 28 May 2024 08:15:12 +0000 (14:15 +0600)
[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>
SettingMainGadget/SettingMainGadget/SettingMainGadget.csproj
packaging/org.tizen.settings.main-1.1.20.rpk

index f4179cc62f1d46b1dbaea64bf9e1061486479e4f..b89cc6495a488fdc2ddaf2df7d49e80189bda7ad 100644 (file)
     </EmbeddedResource>
   </ItemGroup>
 
+  <PropertyGroup>
+    <GadgetResourceType>org.tizen.appfw.gadget.Settings</GadgetResourceType>
+  </PropertyGroup>
+
   <Target Name="PostBuild" AfterTargets="PostBuildEvent">
-    <Exec Command=":: Copy resource dll&#xD;&#xA;rmdir /S /Q res\allowed\locale&#xD;&#xA;mkdir res\allowed\locale&#xD;&#xA;dir $(OutDir)\&#xD;&#xA;xcopy /S /K /D /H /Y $(OutDir)\ res\allowed\locale&#xD;&#xA;del /q res\allowed\locale\*.*&#xD;&#xA;xcopy /S /K /D /H /Y res\allowed\locale\* res\allowed&#xD;&#xA;rmdir /S /Q res\allowed\locale&#xD;&#xA;" />
+    <Exec Command=":: Copy resource dll&#xD;&#xA;rmdir /S /Q res\allowed\$(GadgetResourceType)&#xD;&#xA;mkdir res\allowed\$(GadgetResourceType)&#xD;&#xA;rmdir /S /Q res\allowed\locale&#xD;&#xA;mkdir res\allowed\locale&#xD;&#xA;dir $(OutDir)\&#xD;&#xA;xcopy /S /K /D /H /Y $(OutDir)\ res\allowed\locale&#xD;&#xA;del /Q res\allowed\locale\*.*&#xD;&#xA;xcopy /S /K /D /H /Y res\allowed\locale\* res\allowed\$(GadgetResourceType)&#xD;&#xA;rmdir /S /Q res\allowed\locale&#xD;&#xA;" />
   </Target>
 
 </Project>
index 0018329a6c0d309dc94c4fde9fa94f4f9e2ccedb..9d89b282b8aeb26588050f0fa339e945dc79dc6f 100644 (file)
Binary files a/packaging/org.tizen.settings.main-1.1.20.rpk and b/packaging/org.tizen.settings.main-1.1.20.rpk differ