ViewRegistryHelper class is moved to Application side
authordongsug.song <dongsug.song@samsung.com>
Tue, 2 May 2017 03:49:35 +0000 (12:49 +0900)
committerdongsug.song <dongsug.song@samsung.com>
Tue, 2 May 2017 08:41:43 +0000 (17:41 +0900)
- 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>
src/Tizen.NUI/Tizen.NUI.csproj
src/Tizen.NUI/src/internal/Application.cs
src/Tizen.NUI/src/internal/ViewRegistryHelper.cs [deleted file]

index 9d88869..07bed33 100755 (executable)
     <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
index 89de23b..5188882 100755 (executable)
@@ -1104,7 +1104,7 @@ namespace Tizen.NUI
             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();
diff --git a/src/Tizen.NUI/src/internal/ViewRegistryHelper.cs b/src/Tizen.NUI/src/internal/ViewRegistryHelper.cs
deleted file mode 100755 (executable)
index 6df88e5..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-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);
-    }
-  }
-}
-