- ViewRegistryHelper class is only required for the application which uses Dali json theme/style Builder
- ViewRegistryHelper uses C# System.Runtime library and this causes some delay at launching time (ex: KantM board, 300ms delay)
- This is not needed for all application (no need to included in NUI) so it is moved to application side.
Conflicts:
NUISamples/NUISamples/NUISamples.TizenTV/examples/Main.cs
Change-Id: I5ee38801a1f81991f9d6e76a0cbaa6b59d4a3d4f
Signed-off-by: dongsug.song <dongsug.song@samsung.com>
<Compile Include="src\internal\ViewImpl.cs" />\r
<Compile Include="src\internal\ViewMode.cs" />\r
<Compile Include="src\internal\ViewRegistry.cs" />\r
<Compile Include="src\internal\ViewImpl.cs" />\r
<Compile Include="src\internal\ViewMode.cs" />\r
<Compile Include="src\internal\ViewRegistry.cs" />\r
- <Compile Include="src\internal\ViewRegistryHelper.cs" />\r
<Compile Include="src\internal\ViewWrapper.cs" />\r
<Compile Include="src\internal\ViewWrapperImpl.cs" />\r
<Compile Include="src\internal\VisualTransformPolicyType.cs" />\r
<Compile Include="src\internal\ViewWrapper.cs" />\r
<Compile Include="src\internal\ViewWrapperImpl.cs" />\r
<Compile Include="src\internal\VisualTransformPolicyType.cs" />\r
LOG(" NewApplication(string stylesheet, Application.WindowMode windowMode) is called! ");
// register all Views with the type registry, so that can be created / styled via JSON
LOG(" NewApplication(string stylesheet, Application.WindowMode windowMode) is called! ");
// register all Views with the type registry, so that can be created / styled via JSON
- ViewRegistryHelper.Initialize();
+ //ViewRegistryHelper.Initialize(); //moved to Application side.
Application ret = New(1, stylesheet, windowMode);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
Application ret = New(1, stylesheet, windowMode);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+++ /dev/null
-using System;
-
-// include all custom views here which will be
-namespace Tizen.NUI
-{
- public class ViewRegistryHelper
- {
- static public void Initialize()
- {
- // Register all views with the type registry
- System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor (typeof(Tizen.NUI.Spin).TypeHandle);
- }
- }
-}
-