[Applications][Non-ACR][Change test application] 68/195468/1
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 13 Dec 2018 23:52:31 +0000 (08:52 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 13 Dec 2018 23:52:31 +0000 (08:52 +0900)
Change-Id: I351522dd4f31c095754640338afbbc0cef58a86d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
tct-suite-vs/Resource/Tizen.Applications.Tests/code/Reply/Reply.sln [deleted file]
tct-suite-vs/Resource/Tizen.Applications.Tests/code/Reply/Reply/Reply.cs [deleted file]
tct-suite-vs/Resource/Tizen.Applications.Tests/code/Reply/Reply/Reply.csproj [deleted file]
tct-suite-vs/Resource/Tizen.Applications.Tests/code/Reply/Reply/shared/res/Reply.png [deleted file]
tct-suite-vs/Resource/Tizen.Applications.Tests/code/Reply/Reply/tizen-manifest.xml [deleted file]
tct-suite-vs/Resource/Tizen.Applications.Tests/code/org.tizen.example.Reply/Reply.sln [new file with mode: 0755]
tct-suite-vs/Resource/Tizen.Applications.Tests/code/org.tizen.example.Reply/Reply/Reply.csproj [new file with mode: 0755]
tct-suite-vs/Resource/Tizen.Applications.Tests/code/org.tizen.example.Reply/Reply/Reply_App.cs [new file with mode: 0755]
tct-suite-vs/Resource/Tizen.Applications.Tests/code/org.tizen.example.Reply/Reply/shared/res/Reply.png [new file with mode: 0755]
tct-suite-vs/Resource/Tizen.Applications.Tests/code/org.tizen.example.Reply/Reply/tizen-manifest.xml [new file with mode: 0755]
tct-suite-vs/Resource/Tizen.Applications.Tests/org.tizen.example.Reply-1.0.0.tpk

diff --git a/tct-suite-vs/Resource/Tizen.Applications.Tests/code/Reply/Reply.sln b/tct-suite-vs/Resource/Tizen.Applications.Tests/code/Reply/Reply.sln
deleted file mode 100755 (executable)
index f9097d3..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-\r
-Microsoft Visual Studio Solution File, Format Version 12.00\r
-# Visual Studio 15\r
-VisualStudioVersion = 15.0.28010.2050\r
-MinimumVisualStudioVersion = 10.0.40219.1\r
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Reply", "Reply\Reply.csproj", "{7ABD6289-AA0F-4268-A633-8B54C1759E4D}"\r
-EndProject\r
-Global\r
-       GlobalSection(SolutionConfigurationPlatforms) = preSolution\r
-               Debug|Any CPU = Debug|Any CPU\r
-               Release|Any CPU = Release|Any CPU\r
-       EndGlobalSection\r
-       GlobalSection(ProjectConfigurationPlatforms) = postSolution\r
-               {7ABD6289-AA0F-4268-A633-8B54C1759E4D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\r
-               {7ABD6289-AA0F-4268-A633-8B54C1759E4D}.Debug|Any CPU.Build.0 = Debug|Any CPU\r
-               {7ABD6289-AA0F-4268-A633-8B54C1759E4D}.Release|Any CPU.ActiveCfg = Release|Any CPU\r
-               {7ABD6289-AA0F-4268-A633-8B54C1759E4D}.Release|Any CPU.Build.0 = Release|Any CPU\r
-       EndGlobalSection\r
-       GlobalSection(SolutionProperties) = preSolution\r
-               HideSolutionNode = FALSE\r
-       EndGlobalSection\r
-       GlobalSection(ExtensibilityGlobals) = postSolution\r
-               SolutionGuid = {297EF507-9B6A-48C8-BCA8-700F28D05D7D}\r
-       EndGlobalSection\r
-EndGlobal\r
diff --git a/tct-suite-vs/Resource/Tizen.Applications.Tests/code/Reply/Reply/Reply.cs b/tct-suite-vs/Resource/Tizen.Applications.Tests/code/Reply/Reply/Reply.cs
deleted file mode 100755 (executable)
index 86b1807..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-using System;\r
-using Tizen;\r
-using Tizen.Applications;\r
-using Tizen.NUI;\r
-using Tizen.NUI.BaseComponents;\r
-\r
-namespace Reply\r
-{\r
-    class Program : NUIApplication\r
-    {\r
-        static private string LogTag = "Reply";\r
-\r
-        protected override void OnCreate()\r
-        {\r
-            base.OnCreate();\r
-            Initialize();\r
-            Log.Info(LogTag, "OnCreate()");\r
-        }\r
-\r
-        protected override void OnAppControlReceived(AppControlReceivedEventArgs e)\r
-        {\r
-            base.OnAppControlReceived(e);\r
-            Log.Info(LogTag, "OnAppControlReceived()");\r
-            if (e.ReceivedAppControl.IsReplyRequest == true)\r
-            {\r
-                AppControl replyRequest = new AppControl();\r
-                e.ReceivedAppControl.ReplyToLaunchRequest(replyRequest, AppControlReplyResult.Succeeded);\r
-                Log.Info(LogTag, "ReplyToLaunchRequest()");\r
-            }\r
-        }\r
-\r
-        protected override void OnResume()\r
-        {\r
-            base.OnResume();\r
-            Log.Info(LogTag, "OnResume()");\r
-        }\r
-\r
-        protected override void OnPause()\r
-        {\r
-            base.OnPause();\r
-            Log.Info(LogTag, "OnPause()");\r
-        }\r
-\r
-        protected override void OnTerminate()\r
-        {\r
-            base.OnTerminate();\r
-            Log.Info(LogTag, "OnTerminte()");\r
-        }\r
-\r
-        void Initialize()\r
-        {\r
-            Window.Instance.KeyEvent += OnKeyEvent;\r
-\r
-            TextLabel text = new TextLabel("Hello Tizen NUI World");\r
-            text.HorizontalAlignment = HorizontalAlignment.Center;\r
-            text.VerticalAlignment = VerticalAlignment.Center;\r
-            text.TextColor = Color.Blue;\r
-            text.PointSize = 12.0f;\r
-            text.HeightResizePolicy = ResizePolicyType.FillToParent;\r
-            text.WidthResizePolicy = ResizePolicyType.FillToParent;\r
-            Window.Instance.GetDefaultLayer().Add(text);\r
-\r
-            Animation animation = new Animation(2000);\r
-            animation.AnimateTo(text, "Orientation", new Rotation(new Radian(new Degree(180.0f)), PositionAxis.X), 0, 500);\r
-            animation.AnimateTo(text, "Orientation", new Rotation(new Radian(new Degree(0.0f)), PositionAxis.X), 500, 1000);\r
-            animation.Looping = true;\r
-            animation.Play();\r
-        }\r
-\r
-        public void OnKeyEvent(object sender, Window.KeyEventArgs e)\r
-        {\r
-            if (e.Key.State == Key.StateType.Down && (e.Key.KeyPressedName == "XF86Back" || e.Key.KeyPressedName == "Escape"))\r
-            {\r
-                Exit();\r
-            }\r
-        }\r
-\r
-        static void Main(string[] args)\r
-        {\r
-            var app = new Program();\r
-            app.Run(args);\r
-        }\r
-    }\r
-}\r
diff --git a/tct-suite-vs/Resource/Tizen.Applications.Tests/code/Reply/Reply/Reply.csproj b/tct-suite-vs/Resource/Tizen.Applications.Tests/code/Reply/Reply/Reply.csproj
deleted file mode 100755 (executable)
index 5f980d9..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<Project Sdk="Microsoft.NET.Sdk">\r
-\r
-  <PropertyGroup>\r
-    <OutputType>Exe</OutputType>\r
-    <TargetFramework>netcoreapp2.0</TargetFramework>\r
-  </PropertyGroup>\r
-\r
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">\r
-    <DebugType>portable</DebugType>\r
-  </PropertyGroup>\r
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">\r
-    <DebugType>None</DebugType>\r
-  </PropertyGroup>\r
-\r
-  <ItemGroup>\r
-    <Folder Include="lib\"/>\r
-    <Folder Include="res\"/>\r
-  </ItemGroup>\r
-\r
-  <ItemGroup>\r
-    <PackageReference Include="Tizen.NET" Version="5.0.0.14562" >\r
-      <ExcludeAssets>Runtime</ExcludeAssets>\r
-    </PackageReference>\r
-    <PackageReference Include="Tizen.NET.Sdk" Version="1.0.1" />\r
-  </ItemGroup>\r
-\r
-</Project>\r
-\r
diff --git a/tct-suite-vs/Resource/Tizen.Applications.Tests/code/Reply/Reply/shared/res/Reply.png b/tct-suite-vs/Resource/Tizen.Applications.Tests/code/Reply/Reply/shared/res/Reply.png
deleted file mode 100755 (executable)
index 9f3cb98..0000000
Binary files a/tct-suite-vs/Resource/Tizen.Applications.Tests/code/Reply/Reply/shared/res/Reply.png and /dev/null differ
diff --git a/tct-suite-vs/Resource/Tizen.Applications.Tests/code/Reply/Reply/tizen-manifest.xml b/tct-suite-vs/Resource/Tizen.Applications.Tests/code/Reply/Reply/tizen-manifest.xml
deleted file mode 100755 (executable)
index a8ca162..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>\r
-<manifest xmlns="http://tizen.org/ns/packages" api-version="5" package="org.tizen.example.Reply" version="1.0.0">\r
-  <profile name="common" />\r
-  <ui-application appid="org.tizen.example.Reply"\r
-                                       exec="Reply.dll"\r
-                                       type="dotnet"\r
-                                       multiple="false"\r
-                                       taskmanage="true"\r
-                                       nodisplay="false"\r
-                                       launch_mode="single">\r
-    <label>Reply</label>\r
-    <icon>Reply.png</icon>\r
-    <metadata key="http://tizen.org/metadata/prefer_dotnet_aot" value="true" />\r
-  </ui-application>\r
-</manifest>\r
diff --git a/tct-suite-vs/Resource/Tizen.Applications.Tests/code/org.tizen.example.Reply/Reply.sln b/tct-suite-vs/Resource/Tizen.Applications.Tests/code/org.tizen.example.Reply/Reply.sln
new file mode 100755 (executable)
index 0000000..05179c4
--- /dev/null
@@ -0,0 +1,25 @@
+\r
+Microsoft Visual Studio Solution File, Format Version 12.00\r
+# Visual Studio 15\r
+VisualStudioVersion = 15.0.28010.2050\r
+MinimumVisualStudioVersion = 10.0.40219.1\r
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Reply", "Reply\Reply.csproj", "{A26FBF66-9161-4969-B91E-3A4EA42C34B8}"\r
+EndProject\r
+Global\r
+       GlobalSection(SolutionConfigurationPlatforms) = preSolution\r
+               Debug|Any CPU = Debug|Any CPU\r
+               Release|Any CPU = Release|Any CPU\r
+       EndGlobalSection\r
+       GlobalSection(ProjectConfigurationPlatforms) = postSolution\r
+               {A26FBF66-9161-4969-B91E-3A4EA42C34B8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\r
+               {A26FBF66-9161-4969-B91E-3A4EA42C34B8}.Debug|Any CPU.Build.0 = Debug|Any CPU\r
+               {A26FBF66-9161-4969-B91E-3A4EA42C34B8}.Release|Any CPU.ActiveCfg = Release|Any CPU\r
+               {A26FBF66-9161-4969-B91E-3A4EA42C34B8}.Release|Any CPU.Build.0 = Release|Any CPU\r
+       EndGlobalSection\r
+       GlobalSection(SolutionProperties) = preSolution\r
+               HideSolutionNode = FALSE\r
+       EndGlobalSection\r
+       GlobalSection(ExtensibilityGlobals) = postSolution\r
+               SolutionGuid = {773286B3-CD92-42D0-8FEC-DCA906EF4794}\r
+       EndGlobalSection\r
+EndGlobal\r
diff --git a/tct-suite-vs/Resource/Tizen.Applications.Tests/code/org.tizen.example.Reply/Reply/Reply.csproj b/tct-suite-vs/Resource/Tizen.Applications.Tests/code/org.tizen.example.Reply/Reply/Reply.csproj
new file mode 100755 (executable)
index 0000000..0595f8d
--- /dev/null
@@ -0,0 +1,29 @@
+<Project Sdk="Microsoft.NET.Sdk">\r
+\r
+  <!-- Property Group for .NET Core Project -->\r
+  <PropertyGroup>\r
+    <OutputType>Exe</OutputType>\r
+    <TargetFramework>netcoreapp2.0</TargetFramework>\r
+  </PropertyGroup>\r
+\r
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">\r
+    <DebugType>portable</DebugType>\r
+  </PropertyGroup>\r
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">\r
+    <DebugType>None</DebugType>\r
+  </PropertyGroup>\r
+\r
+  <ItemGroup>\r
+    <Folder Include="lib\"/>\r
+    <Folder Include="res\"/>\r
+  </ItemGroup>\r
+\r
+  <!-- Include Nuget Package for Tizen Project building -->\r
+  <ItemGroup>\r
+    <PackageReference Include="Tizen.NET" Version="5.0.0.14562" >\r
+      <ExcludeAssets>Runtime</ExcludeAssets>\r
+    </PackageReference>\r
+    <PackageReference Include="Tizen.NET.Sdk" Version="1.0.1" />\r
+  </ItemGroup>\r
+\r
+</Project>\r
diff --git a/tct-suite-vs/Resource/Tizen.Applications.Tests/code/org.tizen.example.Reply/Reply/Reply_App.cs b/tct-suite-vs/Resource/Tizen.Applications.Tests/code/org.tizen.example.Reply/Reply/Reply_App.cs
new file mode 100755 (executable)
index 0000000..e708f62
--- /dev/null
@@ -0,0 +1,96 @@
+using Tizen.Applications;\r
+using ElmSharp;\r
+using Tizen;\r
+\r
+namespace Reply\r
+{\r
+    class App : CoreUIApplication\r
+    {\r
+        static private string LogTag = "Reply";\r
+\r
+        protected override void OnCreate()\r
+        {\r
+            base.OnCreate();\r
+            Initialize();\r
+            Log.Info(LogTag, "OnCreate()");\r
+        }\r
+\r
+        protected override void OnAppControlReceived(AppControlReceivedEventArgs e)\r
+        {\r
+            base.OnAppControlReceived(e);\r
+            Log.Info(LogTag, "OnAppControlReceived()");\r
+            if (e.ReceivedAppControl.IsReplyRequest == true)\r
+            {\r
+                AppControl replyRequest = new AppControl();\r
+                e.ReceivedAppControl.ReplyToLaunchRequest(replyRequest, AppControlReplyResult.Succeeded);\r
+                Log.Info(LogTag, "ReplyToLaunchRequest()");\r
+            }\r
+        }\r
+\r
+        protected override void OnResume()\r
+        {\r
+            base.OnResume();\r
+            Log.Info(LogTag, "OnResume()");\r
+        }\r
+\r
+        protected override void OnPause()\r
+        {\r
+            base.OnPause();\r
+            Log.Info(LogTag, "OnPause()");\r
+        }\r
+\r
+        protected override void OnTerminate()\r
+        {\r
+            base.OnTerminate();\r
+            Log.Info(LogTag, "OnTerminte()");\r
+        }\r
+\r
+        void Initialize()\r
+        {\r
+            Window window = new Window("ElmSharpApp")\r
+            {\r
+                AvailableRotations = DisplayRotation.Degree_0 | DisplayRotation.Degree_180 | DisplayRotation.Degree_270 | DisplayRotation.Degree_90\r
+            };\r
+            window.BackButtonPressed += (s, e) =>\r
+            {\r
+                Exit();\r
+            };\r
+            window.Show();\r
+\r
+            var box = new Box(window)\r
+            {\r
+                AlignmentX = -1,\r
+                AlignmentY = -1,\r
+                WeightX = 1,\r
+                WeightY = 1,\r
+            };\r
+            box.Show();\r
+\r
+            var bg = new Background(window)\r
+            {\r
+                Color = Color.White\r
+            };\r
+            bg.SetContent(box);\r
+\r
+            var conformant = new Conformant(window);\r
+            conformant.Show();\r
+            conformant.SetContent(bg);\r
+\r
+            var label = new Label(window)\r
+            {\r
+                Text = "Hello, Tizen",\r
+                Color = Color.Black\r
+            };\r
+            label.Show();\r
+            box.PackEnd(label);\r
+        }\r
+\r
+        static void Main(string[] args)\r
+        {\r
+            Elementary.Initialize();\r
+            Elementary.ThemeOverlay();\r
+            App app = new App();\r
+            app.Run(args);\r
+        }\r
+    }\r
+}\r
diff --git a/tct-suite-vs/Resource/Tizen.Applications.Tests/code/org.tizen.example.Reply/Reply/shared/res/Reply.png b/tct-suite-vs/Resource/Tizen.Applications.Tests/code/org.tizen.example.Reply/Reply/shared/res/Reply.png
new file mode 100755 (executable)
index 0000000..9f3cb98
Binary files /dev/null and b/tct-suite-vs/Resource/Tizen.Applications.Tests/code/org.tizen.example.Reply/Reply/shared/res/Reply.png differ
diff --git a/tct-suite-vs/Resource/Tizen.Applications.Tests/code/org.tizen.example.Reply/Reply/tizen-manifest.xml b/tct-suite-vs/Resource/Tizen.Applications.Tests/code/org.tizen.example.Reply/Reply/tizen-manifest.xml
new file mode 100755 (executable)
index 0000000..a8ca162
--- /dev/null
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>\r
+<manifest xmlns="http://tizen.org/ns/packages" api-version="5" package="org.tizen.example.Reply" version="1.0.0">\r
+  <profile name="common" />\r
+  <ui-application appid="org.tizen.example.Reply"\r
+                                       exec="Reply.dll"\r
+                                       type="dotnet"\r
+                                       multiple="false"\r
+                                       taskmanage="true"\r
+                                       nodisplay="false"\r
+                                       launch_mode="single">\r
+    <label>Reply</label>\r
+    <icon>Reply.png</icon>\r
+    <metadata key="http://tizen.org/metadata/prefer_dotnet_aot" value="true" />\r
+  </ui-application>\r
+</manifest>\r
index 8d4ceca69851142b2d29d5020197d501470224ce..ab35ee23903ca348f21ade278b86753ace93448d 100755 (executable)
Binary files a/tct-suite-vs/Resource/Tizen.Applications.Tests/org.tizen.example.Reply-1.0.0.tpk and b/tct-suite-vs/Resource/Tizen.Applications.Tests/org.tizen.example.Reply-1.0.0.tpk differ