Some device doesn't print debug level dlog.
Change-Id: I7b626467310a536b4767a9362ff3810832896ce6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
--- /dev/null
+\r
+Microsoft Visual Studio Solution File, Format Version 12.00\r
+# Visual Studio 15\r
+VisualStudioVersion = 15.0.27004.2002\r
+MinimumVisualStudioVersion = 10.0.40219.1\r
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ApplicationManual", "ApplicationManual\ApplicationManual\ApplicationManual.csproj", "{F7A40B63-0126-40B3-9AB9-963729A44851}"\r
+EndProject\r
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ApplicationManual.Tizen", "ApplicationManual\ApplicationManual.Tizen\ApplicationManual.Tizen.csproj", "{58D53A35-1520-41F2-AE74-FE73EAB09A7C}"\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
+ {F7A40B63-0126-40B3-9AB9-963729A44851}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\r
+ {F7A40B63-0126-40B3-9AB9-963729A44851}.Debug|Any CPU.Build.0 = Debug|Any CPU\r
+ {F7A40B63-0126-40B3-9AB9-963729A44851}.Release|Any CPU.ActiveCfg = Release|Any CPU\r
+ {F7A40B63-0126-40B3-9AB9-963729A44851}.Release|Any CPU.Build.0 = Release|Any CPU\r
+ {58D53A35-1520-41F2-AE74-FE73EAB09A7C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\r
+ {58D53A35-1520-41F2-AE74-FE73EAB09A7C}.Debug|Any CPU.Build.0 = Debug|Any CPU\r
+ {58D53A35-1520-41F2-AE74-FE73EAB09A7C}.Release|Any CPU.ActiveCfg = Release|Any CPU\r
+ {58D53A35-1520-41F2-AE74-FE73EAB09A7C}.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 = {D9D488D7-77BF-416A-BEC6-A9F3E2B8C09A}\r
+ EndGlobalSection\r
+EndGlobal\r
--- /dev/null
+using System;\r
+using Tizen;\r
+using Tizen.Applications;\r
+\r
+namespace ApplicationManual.Tizen\r
+{\r
+ class Program : global::Xamarin.Forms.Platform.Tizen.FormsApplication, App.IAppEvent\r
+ {\r
+ private App app_;\r
+\r
+ public void OnButtonPressed()\r
+ {\r
+ Log.Info("TCT", "Call Exit()");\r
+ Exit();\r
+ }\r
+ protected override void OnPreCreate()\r
+ {\r
+ Log.Info("TCT", "[TestCase][OnPreCreate][Application] Pass");\r
+ base.OnPreCreate();\r
+ app_ = new App()\r
+ {\r
+ AppEvent = this\r
+ };\r
+ }\r
+ protected override void OnCreate()\r
+ {\r
+ base.OnCreate();\r
+\r
+ Log.Info("TCT", "[TestCase][OnCreate][Application] Pass");\r
+\r
+ LoadApplication(app_);\r
+ }\r
+\r
+ protected override void OnResume()\r
+ {\r
+ Log.Info("TCT", "[TestCase][OnResume][Application] Pass");\r
+ base.OnResume();\r
+ }\r
+\r
+ protected override void OnPause()\r
+ {\r
+ Log.Info("TCT", "[TestCase][OnPause][Application] Pass");\r
+ base.OnPause();\r
+ }\r
+\r
+ protected override void OnTerminate()\r
+ {\r
+ Log.Info("TCT", "Application::OnTerminate()");\r
+ Log.Info("TCT", "[TestCase][OnTerminate][Application] Pass");\r
+ base.OnTerminate();\r
+ }\r
+\r
+ protected override void OnAppControlReceived(AppControlReceivedEventArgs e)\r
+ {\r
+ Log.Info("TCT", "Application::OnAppControlReceived()");\r
+ if (e.ReceivedAppControl != null)\r
+ {\r
+ Log.Info("TCT", "[TestCase][Test_Properties] ReceivedAppControl properties is not null");\r
+ Log.Info("TCT", "[TestCase][Test_Properties] ReceivedAppControl Type: " + e.ReceivedAppControl.GetType());\r
+ }\r
+ //logBuilder.AppendLine("TCT [TestCase][OnAppControlReceived] Pass");\r
+ Log.Info("TCT", "[TestCase][OnAppControlReceived][Application] Pass");\r
+\r
+ base.OnAppControlReceived(e);\r
+ ShowPropertiesInfo();\r
+ }\r
+\r
+ protected override void OnLocaleChanged(LocaleChangedEventArgs e)\r
+ {\r
+ Log.Info("TCT", "Application::OnLocaleChanged()");\r
+ if (e.Locale != null)\r
+ {\r
+ Log.Info("TCT", "[Test_Properties] Locale properties is not null");\r
+ Log.Info("TCT", "[Test_Properties] Current value of Locale : " + e.Locale);\r
+ Log.Info("TCT", "[Test_Properties] Locale type: " + e.Locale.GetType());\r
+ }\r
+\r
+ Log.Info("TCT", "[TestCase][OnLocaleChanged][Application] Pass");\r
+ base.OnLocaleChanged(e);\r
+ }\r
+\r
+ protected override void OnRegionFormatChanged(RegionFormatChangedEventArgs e)\r
+ {\r
+ Log.Info("TCT", "Application::OnRegionFormatChanged()");\r
+ if (e != null)\r
+ {\r
+ Log.Info("TCT", "[Test_Properties] Region properties is not null");\r
+ Log.Info("TCT", "[Test_Properties] Current value of Region : " + e.Region);\r
+ Log.Info("TCT", "[Test_Properties] Region type: " + e.Region.GetType());\r
+ }\r
+\r
+ Log.Info("TCT", "[TestCase][OnRegionFormatChanged][Application] Pass");\r
+ base.OnRegionFormatChanged(e);\r
+ }\r
+\r
+ protected override void OnDeviceOrientationChanged(DeviceOrientationEventArgs e)\r
+ {\r
+ Log.Info("TCT", "Application::OnDeviceOrientationChanged()");\r
+ if (e != null)\r
+ {\r
+ Log.Info("TCT", "[Test_Properties] DeviceOrientation properties is not null");\r
+ Log.Info("TCT", "[Test_Properties] Current value of DeviceOrientation : " + e.DeviceOrientation);\r
+ Log.Info("TCT", "[Test_Properties] DeviceOrientation type: " + e.DeviceOrientation.GetType());\r
+ }\r
+\r
+ Log.Info("TCT", "[TestCase][OnDeviceOrientationChanged][Application] Pass");\r
+ base.OnDeviceOrientationChanged(e);\r
+ }\r
+\r
+ protected override void OnLowMemory(LowMemoryEventArgs e)\r
+ {\r
+ Log.Info("TCT", "Application::OnLowMemory()");\r
+ if (e.LowMemoryStatus != LowMemoryStatus.None)\r
+ {\r
+ Log.Info("TCT", "[Test_Properties] LowMemoryStatus properties is not null");\r
+ Log.Info("TCT", "[Test_Properties] Current value of LowMemoryStatus : " + e.LowMemoryStatus.ToString());\r
+ Log.Info("TCT", "[Test_Properties] LowMemoryStatus type: " + e.LowMemoryStatus.GetType());\r
+ }\r
+ //logBuilder.AppendLine("TCT [TestCase][OnLowMemory] Pass");\r
+ Log.Info("TCT", "[TestCase][OnLowMemory][Application] Pass");\r
+\r
+ base.OnLowMemory(e);\r
+ }\r
+\r
+ protected override void OnLowBattery(LowBatteryEventArgs e)\r
+ {\r
+ Log.Info("TCT", "Application::OnLowBattery()");\r
+ if (e.LowBatteryStatus != LowBatteryStatus.None)\r
+ {\r
+ Log.Info("TCT", "[Test_Properties] LowBatteryStatus properties is not null");\r
+ Log.Info("TCT", "[Test_Properties] Current value of LowBatteryStatus : " + e.LowBatteryStatus.ToString());\r
+ Log.Info("TCT", "[Test_Properties] LowBatteryStatus type: " + e.LowBatteryStatus.GetType());\r
+ }\r
+\r
+ Log.Info("TCT", "[TestCase][OnLowBattery][Application] Pass");\r
+\r
+ base.OnLowBattery(e);\r
+ }\r
+\r
+ public override void Run(string[] args)\r
+ {\r
+ Created += Created_Event_Test;\r
+ AppControlReceived += AppControlReceived_Event_Test;\r
+ LocaleChanged += LocaleChanged_Event_Test;\r
+ LowMemory += LowMemory_Event_Test;\r
+ LowBattery += LowBattery_Event_Test;\r
+ Terminated += Terminated_Event_Test;\r
+ Paused += EventHandlerPaused;\r
+ Resumed += EventHandlerResumed;\r
+ DeviceOrientationChanged += DeviceOrientationCHanged_Event_Test;\r
+ RegionFormatChanged += RegionFormatChanged_Event_Test;\r
+\r
+ Log.Info("TCT", "[TestCase][Run][Application] Pass");\r
+\r
+ base.Run(args);\r
+ }\r
+\r
+ private void Terminated_Event_Test(object sender, EventArgs e)\r
+ {\r
+ /* \r
+ * SCENARIO:\r
+ * Launch app\r
+ * -> If log show "Application::Terminated_Event_Test()" -> PASS\r
+ */\r
+ Log.Info("TCT", "Application::Terminated_Event_Test");\r
+ //logBuilder.AppendLine("TCT [TestCase][Terminated_Event_Test] Pass");\r
+ Log.Info("TCT", "[TestCase][Terminated_Event_Test][Application] Pass");\r
+ }\r
+\r
+ private void LocaleChanged_Event_Test(object sender, LocaleChangedEventArgs e)\r
+ {\r
+ /* \r
+ * SCENARIO:\r
+ * Launch app\r
+ * -> If log show "Application::LocaleChanged_Event_Test()" -> PASS\r
+ */\r
+ Log.Info("TCT", "Application::LocaleChanged_Event_Test");\r
+ Log.Info("TCT", "Application::LocaleChanged_Event_Test: new located - " + e.Locale);\r
+ //logBuilder.AppendLine("TCT [TestCase][LocaleChanged_Event_Test] Pass");\r
+ Log.Info("TCT", "[TestCase][LocaleChanged_Event_Test][Application] Pass");\r
+ }\r
+\r
+ private void RegionFormatChanged_Event_Test(object sender, RegionFormatChangedEventArgs e)\r
+ {\r
+ Log.Info("TCT", "Application::RegionFormatChanged_Event_Test");\r
+ Log.Info("TCT", "Application::RegionFormatChanged_Event_Test: new region - " + e.Region);\r
+ //logBuilder.AppendLine("TCT [TestCase][LocaleChanged_Event_Test] Pass");\r
+ Log.Info("TCT", "[TestCase][RegionFormatChanged_Event_Test][Application] Pass");\r
+ }\r
+\r
+ private void DeviceOrientationCHanged_Event_Test(object sender, DeviceOrientationEventArgs e)\r
+ {\r
+ Log.Info("TCT", "Application::DeviceOrientationCHanged_Event_Test");\r
+ Log.Info("TCT", "Application::DeviceOrientationCHanged_Event_Test: new located - " + e.DeviceOrientation);\r
+ Log.Info("TCT", "[TestCase][DeviceOrientationCHanged_Event_Test][Application] Pass");\r
+ }\r
+\r
+ private void LowMemory_Event_Test(object sender, LowMemoryEventArgs e)\r
+ {\r
+ /*\r
+ * SCENARIO:\r
+ * Launch app\r
+ * -> If log show "Application::LowMemory_Event_Test()" -> PASS\r
+ */\r
+ Log.Info("TCT", "Application::LowMemory_Event_Test");\r
+ if (e.LowMemoryStatus == LowMemoryStatus.None)\r
+ {\r
+ Log.Info("TCT", "Application::LowMemory_Event_Test: LowMemoryStatus.None");\r
+ }\r
+ else if (e.LowMemoryStatus == LowMemoryStatus.Normal)\r
+ {\r
+ Log.Info("TCT", "Application::LowMemory_Event_Test: LowMemoryStatus.Normal");\r
+ }\r
+ else if (e.LowMemoryStatus == LowMemoryStatus.SoftWarning)\r
+ {\r
+ Log.Info("TCT", "Application::LowMemory_Event_Test: LowMemoryStatus.SoftWarning");\r
+ }\r
+ else if (e.LowMemoryStatus == LowMemoryStatus.HardWarning)\r
+ {\r
+ Log.Info("TCT", "Application::LowMemory_Event_Test: LowMemoryStatus.HardWarning");\r
+ }\r
+ //logBuilder.AppendLine("TCT [TestCase][LowMemory_Event_Test] Pass");\r
+ Log.Info("TCT", "[TestCase][LowMemory_Event_Test][Application] Pass");\r
+ }\r
+\r
+ private void LowBattery_Event_Test(object sender, LowBatteryEventArgs e)\r
+ {\r
+ Log.Info("TCT", "Application::LowBattery_Event_Test");\r
+\r
+ if (e.LowBatteryStatus == LowBatteryStatus.CriticalLow)\r
+ {\r
+ Log.Info("TCT", "Application::LowBattery_Event_Test: LowMemoryStatus.CriticalLow");\r
+ }\r
+ Log.Info("TCT", "[TestCase][LowBattery_Event_Test][Application] Pass");\r
+ }\r
+\r
+ private void AppControlReceived_Event_Test(object sender, AppControlReceivedEventArgs e)\r
+ {\r
+ /*\r
+ * SCENARIO:\r
+ * Launch app\r
+ * -> If log show "Application::AppControlReceived_Event_Test()" -> PASS\r
+ */\r
+ Log.Info("TCT", "Application::AppControlReceived_Event_Test");\r
+ //logBuilder.AppendLine("TCT [TestCase][AppControlReceived_Event_Test] Pass");\r
+ Log.Info("TCT", "[TestCase][AppControlReceived_Event_Test][Application] Pass");\r
+ }\r
+\r
+ private void Created_Event_Test(object sender, EventArgs e)\r
+ {\r
+ /*\r
+ * SCENARIO:\r
+ * Launch app\r
+ * -> If log show "Application::Created_Event_Test()" -> PASS\r
+ */\r
+ Log.Info("TCT", "Application::Created_Event_Test");\r
+ //logBuilder.AppendLine("TCT [TestCase][Created_Event_Test] Pass");\r
+ Log.Info("TCT", "[TestCase][Created_Event_Test][Application] Pass");\r
+ }\r
+ public void EventHandlerPaused(object sender, EventArgs e)\r
+ {\r
+ /*\r
+ * PRECONDITION\r
+ * 1. Open Application app.\r
+ * 2. Open other app.\r
+ */\r
+ Log.Info("TCT", "[TestCase][EventHandlerPaused][Application] Pass");\r
+ }\r
+ public void EventHandlerResumed(object sender, EventArgs e)\r
+ {\r
+ /*\r
+ * PRECONDITION\r
+ * 1. Open Application app.\r
+ * 2. Open other app.\r
+ * 3. Long press HOME button and tap to Applicaton shortcut.\r
+ */\r
+ Log.Info("TCT", "Application Resumed event occur!");\r
+ Log.Info("TCT", "[TestCase][EventHandlerResumed][Application] Pass");\r
+ }\r
+\r
+ public override void Exit()\r
+ {\r
+ Log.Info("TCT", "[TestCase][Exit][Application] Pass");\r
+ base.Exit();\r
+ }\r
+ void ShowPropertiesInfo()\r
+ {\r
+ if (base.ApplicationInfo != null)\r
+ {\r
+ Log.Info("TCT", "[Info] ApplicationInfo is not null");\r
+ Log.Info("TCT", "[Info] ApplicationInfo.ApplicationId = " + base.ApplicationInfo.ApplicationId);\r
+ Log.Info("TCT", "[Info] ApplicationInfo.ApplicationType = " + base.ApplicationInfo.ApplicationType);\r
+ Log.Info("TCT", "[Info] ApplicationInfo.ExecutablePath = " + base.ApplicationInfo.ExecutablePath);\r
+ Log.Info("TCT", "[Info] ApplicationInfo.ExternalSharedDataPath = " + base.ApplicationInfo.ExternalSharedDataPath);\r
+ Log.Info("TCT", "[Info] ApplicationInfo.IconPath = " + base.ApplicationInfo.IconPath);\r
+ Log.Info("TCT", "[Info] ApplicationInfo.IsNoDisplay = " + base.ApplicationInfo.IsNoDisplay);\r
+ Log.Info("TCT", "[Info] ApplicationInfo.IsOnBoot = " + base.ApplicationInfo.IsOnBoot);\r
+ Log.Info("TCT", "[Info] ApplicationInfo.IsPreload = " + base.ApplicationInfo.IsPreload);\r
+ Log.Info("TCT", "[Info] ApplicationInfo.Label = " + base.ApplicationInfo.Label);\r
+ Log.Info("TCT", "[Info] ApplicationInfo.Metadata Count = " + base.ApplicationInfo.Metadata.Count);\r
+ foreach (var item in base.ApplicationInfo.Metadata)\r
+ {\r
+ Log.Info("TCT", "[Info] ApplicationInfo.Metadata, Key: " + item.Key + " Value: " + item.Value);\r
+ }\r
+ Log.Info("TCT", "[Info] ApplicationInfo.PackageId = " + base.ApplicationInfo.PackageId);\r
+ Log.Info("TCT", "[Info] ApplicationInfo.SharedDataPath = " + base.ApplicationInfo.SharedDataPath);\r
+ Log.Info("TCT", "[Info] ApplicationInfo.SharedResourcePath = " + base.ApplicationInfo.SharedResourcePath);\r
+ Log.Info("TCT", "[Info] ApplicationInfo.SharedTrustedPath = " + base.ApplicationInfo.SharedTrustedPath);\r
+ }\r
+ if (base.DirectoryInfo != null)\r
+ {\r
+ Log.Info("TCT", "[Info] DirectoryInfo is not null");\r
+ Log.Info("TCT", "[Info] DirectoryInfo.Cache = " + base.DirectoryInfo.Cache);\r
+ Log.Info("TCT", "[Info] DirectoryInfo.Data = " + base.DirectoryInfo.Data);\r
+ Log.Info("TCT", "[Info] DirectoryInfo.ExpansionPackageResource = " + base.DirectoryInfo.ExpansionPackageResource);\r
+ Log.Info("TCT", "[Info] DirectoryInfo.ExternalCache = " + base.DirectoryInfo.ExternalCache);\r
+ Log.Info("TCT", "[Info] DirectoryInfo.ExternalData = " + base.DirectoryInfo.ExternalData);\r
+ Log.Info("TCT", "[Info] DirectoryInfo.ExternalSharedData = " + base.DirectoryInfo.ExternalSharedData);\r
+ Log.Info("TCT", "[Info] DirectoryInfo.Resource = " + base.DirectoryInfo.Resource);\r
+ Log.Info("TCT", "[Info] DirectoryInfo.SharedData = " + base.DirectoryInfo.SharedData);\r
+ Log.Info("TCT", "[Info] DirectoryInfo.SharedResource = " + base.DirectoryInfo.SharedResource);\r
+ Log.Info("TCT", "[Info] DirectoryInfo.SharedTrusted = " + base.DirectoryInfo.SharedTrusted);\r
+ }\r
+\r
+ Log.Info("TCT", "[Info] Current == this : " + (Current == this));\r
+ Log.Info("TCT", "[Info] Current.ApplicationInfo.ApplicationId = " + Current.ApplicationInfo.ApplicationId);\r
+ }\r
+\r
+ static void Main(string[] args)\r
+ {\r
+ var app = new Program();\r
+ global::Xamarin.Forms.Platform.Tizen.Forms.Init(app);\r
+ app.Run(args);\r
+ }\r
+ }\r
+}\r
--- /dev/null
+<Project Sdk="Microsoft.NET.Sdk">\r
+\r
+ <!-- Property Group for Tizen40 Project -->\r
+ <PropertyGroup>\r
+ <OutputType>Exe</OutputType>\r
+ <TargetFramework>tizen40</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
+ \r
+ <!-- If solution already has PCL project, will reference -->\r
+ <ItemGroup>\r
+ <ProjectReference Include="..\ApplicationManual\ApplicationManual.csproj" />\r
+ </ItemGroup>\r
+ \r
+\r
+ <!-- Include Nuget Package for Tizen Project building -->\r
+ <ItemGroup>\r
+ <PackageReference Include="Tizen.NET" Version="4.0.0" >\r
+ <ExcludeAssets>Runtime</ExcludeAssets>\r
+ </PackageReference>\r
+ <PackageReference Include="Tizen.NET.Sdk" Version="1.0.1-pre1" />\r
+ <PackageReference Include="Xamarin.Forms.Platform.Tizen" Version="2.5.0.77107" />\r
+ </ItemGroup>\r
+</Project>\r
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>\r
+<manifest package="org.tizen.ApplicationManual.Tizen" version="1.0.0" api-version="4" xmlns="http://tizen.org/ns/packages">\r
+ <profile name="common" />\r
+ <ui-application appid="org.tizen.ApplicationManual.Tizen" exec="ApplicationManual.Tizen.dll" multiple="false" nodisplay="false" taskmanage="true" splash-screen-display="true" type="dotnet" launch_mode="single">\r
+ <label>ApplicationManual.Tizen</label>\r
+ <icon>ApplicationManual.Tizen.png</icon>\r
+ <metadata key="http://tizen.org/metadata/prefer_dotnet_aot" value="true" />\r
+ </ui-application>\r
+ <provides-appdefined-privileges />\r
+ <privileges>\r
+ <privilege>http://tizen.org/privilege/appdir.shareddata</privilege>\r
+ </privileges>\r
+</manifest>\r
\r
using Xamarin.Forms;\r
\r
-namespace org.tizen.ApplicationManual\r
+namespace ApplicationManual\r
{\r
public class App : Application\r
{\r
+ public interface IAppEvent\r
+ {\r
+ void OnButtonPressed();\r
+ }\r
+ public IAppEvent AppEvent { get; set; }\r
+\r
+\r
public App()\r
{\r
Button eButton = new Button\r
- {
- HorizontalOptions = LayoutOptions.Center,
- Text = "EXIT",
- FontSize = 15,
- WidthRequest = 330,
+ {\r
+ HorizontalOptions = LayoutOptions.Center,\r
+ Text = "EXIT",\r
+ FontSize = 15,\r
+ WidthRequest = 330,\r
HeightRequest = 80\r
};\r
\r
- eButton.Clicked += (sender, e) =>
+ eButton.Clicked += (sender, e) =>\r
{\r
- global::Tizen.Applications.Application.Current.Exit();\r
+ AppEvent?.OnButtonPressed();\r
};\r
- \r
+\r
// The root page of your application\r
MainPage = new ContentPage\r
{\r
{\r
VerticalOptions = LayoutOptions.Center,\r
Children = {\r
- /*new Label {\r
+ new Label {\r
HorizontalTextAlignment = TextAlignment.Center,\r
- Text = "Welcome to Xamarin Forms!"\r
- }*/\r
+ Text = "org.tizen.ApplicationManual.Tizen"\r
+ },\r
eButton\r
}\r
- } \r
- }; \r
+ }\r
+ };\r
}\r
\r
protected override void OnStart()\r
--- /dev/null
+<Project Sdk="Microsoft.NET.Sdk">\r
+\r
+ <PropertyGroup>\r
+ <TargetFramework>netstandard2.0</TargetFramework>\r
+ </PropertyGroup>\r
+\r
+ <!-- Include Nuget Package for Xamarin building -->\r
+ <ItemGroup>\r
+ <PackageReference Include="Xamarin.Forms" Version="2.5.0.77107" />\r
+ </ItemGroup>\r
+\r
+</Project>\r
+++ /dev/null
-using System;\r
-using Tizen;\r
-using Tizen.Applications;\r
-\r
-namespace EventListener.Tizen\r
-{\r
- class Program : global::Xamarin.Forms.Platform.Tizen.FormsApplication\r
- {\r
- private const string LogTag = "[EventListener]";\r
-\r
- private static void EventEnabled(object sender, ApplicationEnabledEventArgs args)\r
- {\r
- Log.Debug(LogTag, "====================================================");\r
- Log.Debug(LogTag, "[EventEnabled] ApplicationEnabled");\r
- Log.Debug(LogTag, "[EventEnabled] ApplicationId: " + args.ApplicationId);\r
- Log.Debug(LogTag, "[EventEnabled] EventState: " + args.EventState.ToString());\r
- Log.Debug(LogTag, "====================================================");\r
- }\r
-\r
- private static void EventDisabled(object sender, ApplicationDisabledEventArgs args)\r
- {\r
- Log.Debug(LogTag, "====================================================");\r
- Log.Debug(LogTag, "[EventDisabled] ApplicationDisabled");\r
- Log.Debug(LogTag, "[EventDisabled] ApplicationId: " + args.ApplicationId);\r
- Log.Debug(LogTag, "[EventDisabled] EventState: " + args.EventState.ToString());\r
- Log.Debug(LogTag, "====================================================");\r
- }\r
-\r
- protected override void OnPreCreate()\r
- {\r
- base.OnPreCreate();\r
- Log.Debug(LogTag, "OnPreCreate()");\r
- \r
- ApplicationManager.ApplicationEnabled += EventEnabled;\r
- ApplicationManager.ApplicationDisabled += EventDisabled;\r
- }\r
-\r
- protected override void OnCreate()\r
- {\r
- base.OnCreate();\r
- LoadApplication(new App());\r
- Log.Debug(LogTag, "OnCreate()");\r
- }\r
-\r
- protected override void OnAppControlReceived(AppControlReceivedEventArgs e)\r
- {\r
- base.OnAppControlReceived(e);\r
- Log.Debug(LogTag, "OnAppControlReceived()");\r
- }\r
-\r
- protected override void OnResume()\r
- {\r
- base.OnResume();\r
- Log.Debug(LogTag, "OnResume()");\r
- }\r
-\r
- protected override void OnPause()\r
- {\r
- base.OnPause();\r
- Log.Debug(LogTag, "OnPause()");\r
- }\r
-\r
- protected override void OnTerminate()\r
- {\r
- base.OnTerminate();\r
- Log.Debug(LogTag, "OnTerminate()");\r
- ApplicationManager.ApplicationEnabled -= EventEnabled;\r
- ApplicationManager.ApplicationDisabled -= EventDisabled;\r
- }\r
-\r
- static void Main(string[] args)\r
- {\r
- var app = new Program();\r
- global::Xamarin.Forms.Platform.Tizen.Forms.Init(app);\r
- app.Run(args);\r
- }\r
- }\r
-}\r
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>\r
-<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">\r
- <PropertyGroup>\r
- <MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>\r
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>\r
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>\r
- <ProductVersion>8.0.30703</ProductVersion>\r
- <SchemaVersion>2.0</SchemaVersion>\r
- <ProjectTypeGuids>{2F98DAC9-6F16-457B-AED7-D43CAC379341};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>\r
- <ProjectGuid>{F74B9087-C2FC-4170-B39C-C7F7225B0F72}</ProjectGuid>\r
- <OutputType>Exe</OutputType>\r
- <AppDesignerFolder>Properties</AppDesignerFolder>\r
- <RootNamespace>EventListener.Tizen</RootNamespace>\r
- <AssemblyName>EventListener.Tizen</AssemblyName>\r
- <FileAlignment>512</FileAlignment>\r
- <DefaultLanguage>en-US</DefaultLanguage>\r
- </PropertyGroup>\r
- <PropertyGroup>\r
- <TargetFrameworkIdentifier>.NETCoreApp</TargetFrameworkIdentifier>\r
- <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>\r
- <AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>\r
- <NuGetTargetMoniker>.NETCoreApp,Version=v2.0</NuGetTargetMoniker>\r
- <BaseNuGetRuntimeIdentifier>tizen.4.0.0-armel</BaseNuGetRuntimeIdentifier>\r
- <NoStdLib>true</NoStdLib>\r
- <NoWarn>$(NoWarn);1701</NoWarn>\r
- <UseVSHostingProcess>false</UseVSHostingProcess>\r
- </PropertyGroup>\r
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">\r
- <DebugSymbols>true</DebugSymbols>\r
- <DebugType>portable</DebugType>\r
- <Optimize>false</Optimize>\r
- <OutputPath>bin\Debug\</OutputPath>\r
- <DefineConstants>DEBUG;TRACE</DefineConstants>\r
- <ErrorReport>prompt</ErrorReport>\r
- <WarningLevel>4</WarningLevel>\r
- </PropertyGroup>\r
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">\r
- <DebugSymbols>true</DebugSymbols>\r
- <DebugType>portable</DebugType>\r
- <Optimize>true</Optimize>\r
- <OutputPath>bin\Release\</OutputPath>\r
- <DefineConstants>TRACE</DefineConstants>\r
- <ErrorReport>prompt</ErrorReport>\r
- <WarningLevel>4</WarningLevel>\r
- </PropertyGroup>\r
- <ItemGroup>\r
- <None Include="EventListener.Tizen.project.json" />\r
- <None Include="tizen-manifest.xml" />\r
- <None Include="shared\res\EventListener.Tizen.png" />\r
- </ItemGroup>\r
- <ItemGroup>\r
- <Compile Include="EventListener.cs" />\r
- <Compile Include="EventListener.Tizen.cs" />\r
- <Compile Include="Properties\AssemblyInfo.cs" />\r
- </ItemGroup>\r
- <ItemGroup>\r
- <Folder Include="lib\" />\r
- <Folder Include="res\" />\r
- </ItemGroup>\r
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />\r
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.\r
- Other similar extension points exist, see Microsoft.Common.targets.\r
- <Target Name="BeforeBuild">\r
- </Target>\r
- <Target Name="AfterBuild">\r
- </Target>\r
- -->\r
- <PropertyGroup>\r
- <!-- https://github.com/dotnet/corefxlab/tree/master/samples/NetCoreSample and\r
- https://docs.microsoft.com/en-us/dotnet/articles/core/tutorials/target-dotnetcore-with-msbuild\r
- -->\r
- <!-- We don't use any of MSBuild's resolution logic for resolving the framework, so just set these two\r
- properties to any folder that exists to skip the GetReferenceAssemblyPaths task (not target) and\r
- to prevent it from outputting a warning (MSB3644).\r
- -->\r
- <_TargetFrameworkDirectories>$(MSBuildThisFileDirectory)</_TargetFrameworkDirectories>\r
- <_FullFrameworkReferenceAssemblyPaths>$(MSBuildThisFileDirectory)</_FullFrameworkReferenceAssemblyPaths>\r
- <AutoUnifyAssemblyReferences>true</AutoUnifyAssemblyReferences>\r
- </PropertyGroup>\r
- <ProjectExtensions>\r
- <VisualStudio>\r
- <FlavorProperties GUID="{2F98DAC9-6F16-457B-AED7-D43CAC379341}" Configuration="Debug|Any CPU">\r
- <ProjectCommonFlavorCfg>\r
- <excludeXamarinForms>True</excludeXamarinForms>\r
- </ProjectCommonFlavorCfg>\r
- </FlavorProperties>\r
- <FlavorProperties GUID="{2F98DAC9-6F16-457B-AED7-D43CAC379341}" Configuration="Release|Any CPU">\r
- <ProjectCommonFlavorCfg />\r
- </FlavorProperties>\r
- </VisualStudio>\r
- </ProjectExtensions>\r
-</Project>
\ No newline at end of file
+++ /dev/null
-{\r
- "buildOptions": {\r
- "emitEntryPoint": true,\r
- "debugType": "portable",\r
- "platform": "AnyCPU",\r
- "preserveCompilationContext": true\r
- },\r
- "dependencies": {\r
- "Microsoft.NETCore.App": "2.0.0-preview1-002111-00",\r
- "Tizen.Applications.Common": "1.5.8",\r
- "Tizen.Applications.UI": "1.5.8",\r
- "Xamarin.Forms": "2.3.5.256-pre6",\r
- "Xamarin.Forms.Platform.Tizen": "2.3.5-r256-001"\r
- },\r
- "runtimes": {\r
- "tizen.4.0.0-armel": {}\r
- },\r
- "frameworks": {\r
- "netcoreapp2.0": {\r
- "imports": [\r
- "portable-net45+wp80+win81+wpa81",\r
- "netstandard1.6"\r
- ]\r
- }\r
- }\r
-}
\ No newline at end of file
+++ /dev/null
-\r
-Microsoft Visual Studio Solution File, Format Version 12.00\r
-# Visual Studio 15\r
-VisualStudioVersion = 15.0.26403.7\r
-MinimumVisualStudioVersion = 10.0.40219.1\r
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EventListener.Tizen", "EventListener.Tizen.csproj", "{F74B9087-C2FC-4170-B39C-C7F7225B0F72}"\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
- {F74B9087-C2FC-4170-B39C-C7F7225B0F72}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\r
- {F74B9087-C2FC-4170-B39C-C7F7225B0F72}.Debug|Any CPU.Build.0 = Debug|Any CPU\r
- {F74B9087-C2FC-4170-B39C-C7F7225B0F72}.Release|Any CPU.ActiveCfg = Release|Any CPU\r
- {F74B9087-C2FC-4170-B39C-C7F7225B0F72}.Release|Any CPU.Build.0 = Release|Any CPU\r
- EndGlobalSection\r
- GlobalSection(SolutionProperties) = preSolution\r
- HideSolutionNode = FALSE\r
- EndGlobalSection\r
-EndGlobal\r
+++ /dev/null
-using System.Reflection;\r
-using System.Runtime.CompilerServices;\r
-using System.Runtime.InteropServices;\r
-\r
-// General Information about an assembly is controlled through the following\r
-// set of attributes. Change these attribute values to modify the information\r
-// associated with an assembly.\r
-[assembly: AssemblyTitle("EventListener.Tizen")]\r
-[assembly: AssemblyDescription("")]\r
-[assembly: AssemblyConfiguration("")]\r
-[assembly: AssemblyCompany("")]\r
-[assembly: AssemblyProduct("EventListener.Tizen")]\r
-[assembly: AssemblyCopyright("Copyright © 2017")]\r
-[assembly: AssemblyTrademark("")]\r
-[assembly: AssemblyCulture("")]\r
-\r
-// Setting ComVisible to false makes the types in this assembly not visible\r
-// to COM components. If you need to access a type in this assembly from\r
-// COM, set the ComVisible attribute to true on that type.\r
-[assembly: ComVisible(false)]\r
-\r
-// The following GUID is for the ID of the typelib if this project is exposed to COM\r
-[assembly: Guid("f74b9087-c2fc-4170-b39c-c7f7225b0f72")]\r
-\r
-// Version information for an assembly consists of the following four values:\r
-//\r
-// Major Version\r
-// Minor Version\r
-// Build Number\r
-// Revision\r
-//\r
-// You can specify all the values or you can default the Build and Revision Numbers\r
-// by using the '*' as shown below:\r
-// [assembly: AssemblyVersion("1.0.*")]\r
-[assembly: AssemblyVersion("1.0.0.0")]\r
-[assembly: AssemblyFileVersion("1.0.0.0")]\r
--- /dev/null
+\r
+Microsoft Visual Studio Solution File, Format Version 12.00\r
+# Visual Studio 15\r
+VisualStudioVersion = 15.0.27004.2002\r
+MinimumVisualStudioVersion = 10.0.40219.1\r
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EventListener", "EventListener\EventListener\EventListener.csproj", "{A876FD73-CABC-4CCD-8C2A-36490E9E5637}"\r
+EndProject\r
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EventListener.Tizen", "EventListener\EventListener.Tizen\EventListener.Tizen.csproj", "{D8A7ED42-DA8B-4E58-AE4A-918CE7BABAE9}"\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
+ {A876FD73-CABC-4CCD-8C2A-36490E9E5637}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\r
+ {A876FD73-CABC-4CCD-8C2A-36490E9E5637}.Debug|Any CPU.Build.0 = Debug|Any CPU\r
+ {A876FD73-CABC-4CCD-8C2A-36490E9E5637}.Release|Any CPU.ActiveCfg = Release|Any CPU\r
+ {A876FD73-CABC-4CCD-8C2A-36490E9E5637}.Release|Any CPU.Build.0 = Release|Any CPU\r
+ {D8A7ED42-DA8B-4E58-AE4A-918CE7BABAE9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\r
+ {D8A7ED42-DA8B-4E58-AE4A-918CE7BABAE9}.Debug|Any CPU.Build.0 = Debug|Any CPU\r
+ {D8A7ED42-DA8B-4E58-AE4A-918CE7BABAE9}.Release|Any CPU.ActiveCfg = Release|Any CPU\r
+ {D8A7ED42-DA8B-4E58-AE4A-918CE7BABAE9}.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 = {EC7F9067-40D6-4979-B7E8-DDB85B0A92BA}\r
+ EndGlobalSection\r
+EndGlobal\r
--- /dev/null
+using System;\r
+using Tizen;\r
+using Tizen.Applications;\r
+\r
+namespace EventListener.Tizen\r
+{\r
+ class Program : global::Xamarin.Forms.Platform.Tizen.FormsApplication, App.IAppEvent\r
+ {\r
+ private const string LogTag = "[EventListener]";\r
+ private const string LogTag2 = "EventListener";\r
+ private App app_;\r
+\r
+ public void OnButtonPressed()\r
+ {\r
+ Log.Info(LogTag, "Call Exit()");\r
+ Log.Info(LogTag2, "Call Exit()");\r
+ Current.Exit();\r
+ }\r
+\r
+\r
+ private static void EventEnabled(object sender, ApplicationEnabledEventArgs args)\r
+ {\r
+ Log.Info(LogTag, "====================================================");\r
+ Log.Info(LogTag, "[EventEnabled] ApplicationEnabled");\r
+ Log.Info(LogTag, "[EventEnabled] ApplicationId: " + args.ApplicationId);\r
+ Log.Info(LogTag, "[EventEnabled] EventState: " + args.EventState.ToString());\r
+ Log.Info(LogTag, "====================================================");\r
+\r
+ Log.Info(LogTag2, "====================================================");\r
+ Log.Info(LogTag2, "[EventEnabled] ApplicationEnabled");\r
+ Log.Info(LogTag2, "[EventEnabled] ApplicationId: " + args.ApplicationId);\r
+ Log.Info(LogTag2, "[EventEnabled] EventState: " + args.EventState.ToString());\r
+ Log.Info(LogTag2, "====================================================");\r
+ }\r
+\r
+ private static void EventDisabled(object sender, ApplicationDisabledEventArgs args)\r
+ {\r
+ Log.Info(LogTag, "====================================================");\r
+ Log.Info(LogTag, "[EventDisabled] ApplicationDisabled");\r
+ Log.Info(LogTag, "[EventDisabled] ApplicationId: " + args.ApplicationId);\r
+ Log.Info(LogTag, "[EventDisabled] EventState: " + args.EventState.ToString());\r
+ Log.Info(LogTag, "====================================================");\r
+\r
+ Log.Info(LogTag2, "====================================================");\r
+ Log.Info(LogTag2, "[EventDisabled] ApplicationDisabled");\r
+ Log.Info(LogTag2, "[EventDisabled] ApplicationId: " + args.ApplicationId);\r
+ Log.Info(LogTag2, "[EventDisabled] EventState: " + args.EventState.ToString());\r
+ Log.Info(LogTag2, "====================================================");\r
+ }\r
+\r
+ protected override void OnPreCreate()\r
+ {\r
+ base.OnPreCreate();\r
+ Log.Info(LogTag, "OnPreCreate()");\r
+\r
+ ApplicationManager.ApplicationEnabled += EventEnabled;\r
+ ApplicationManager.ApplicationDisabled += EventDisabled;\r
+\r
+ app_ = new App()\r
+ {\r
+ AppEvent = this\r
+ };\r
+ }\r
+\r
+ protected override void OnCreate()\r
+ {\r
+ base.OnCreate();\r
+ LoadApplication(app_);\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
+ }\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, "OnTerminate()");\r
+ ApplicationManager.ApplicationEnabled -= EventEnabled;\r
+ ApplicationManager.ApplicationDisabled -= EventDisabled;\r
+ }\r
+\r
+ static void Main(string[] args)\r
+ {\r
+ var app = new Program();\r
+ global::Xamarin.Forms.Platform.Tizen.Forms.Init(app);\r
+ app.Run(args);\r
+ }\r
+ }\r
+}\r
--- /dev/null
+<Project Sdk="Microsoft.NET.Sdk">\r
+\r
+ <!-- Property Group for Tizen40 Project -->\r
+ <PropertyGroup>\r
+ <OutputType>Exe</OutputType>\r
+ <TargetFramework>tizen40</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
+ \r
+ <!-- If solution already has PCL project, will reference -->\r
+ <ItemGroup>\r
+ <ProjectReference Include="..\EventListener\EventListener.csproj" />\r
+ </ItemGroup>\r
+ \r
+\r
+ <!-- Include Nuget Package for Tizen Project building -->\r
+ <ItemGroup>\r
+ <PackageReference Include="Tizen.NET" Version="4.0.0" >\r
+ <ExcludeAssets>Runtime</ExcludeAssets>\r
+ </PackageReference>\r
+ <PackageReference Include="Tizen.NET.Sdk" Version="1.0.1-pre1" />\r
+ <PackageReference Include="Xamarin.Forms.Platform.Tizen" Version="2.5.0.77107" />\r
+ </ItemGroup>\r
+</Project>\r
<?xml version="1.0" encoding="utf-8"?>\r
-<manifest xmlns="http://tizen.org/ns/packages" api-version="3.0" package="EventListener.Tizen" version="1.0.0">\r
+<manifest xmlns="http://tizen.org/ns/packages" api-version="4" package="org.tizen.example.EventListener.Tizen" version="1.0.0">\r
<profile name="common" />\r
<ui-application appid="org.tizen.example.EventListener.Tizen"\r
- exec="EventListener.Tizen.exe"\r
+ exec="EventListener.Tizen.dll"\r
type="dotnet"\r
multiple="false"\r
taskmanage="true"\r
launch_mode="single">\r
<label>EventListener.Tizen</label>\r
<icon>EventListener.Tizen.png</icon>\r
+ <metadata key="http://tizen.org/metadata/prefer_dotnet_aot" value="true" />\r
</ui-application>\r
</manifest>\r
{\r
public class App : Application\r
{\r
+ public interface IAppEvent\r
+ {\r
+ void OnButtonPressed();\r
+ }\r
+ public IAppEvent AppEvent { get; set; }\r
+\r
+\r
public App()\r
{\r
+ Button eButton = new Button\r
+ {\r
+ HorizontalOptions = LayoutOptions.Center,\r
+ Text = "EXIT",\r
+ FontSize = 15,\r
+ WidthRequest = 330,\r
+ HeightRequest = 80\r
+ };\r
+\r
+ eButton.Clicked += (sender, e) =>\r
+ {\r
+ AppEvent?.OnButtonPressed();\r
+ };\r
+\r
// The root page of your application\r
MainPage = new ContentPage\r
{\r
Children = {\r
new Label {\r
HorizontalTextAlignment = TextAlignment.Center,\r
- Text = "Welcome to Xamarin Forms!"\r
- }\r
+ Text = "org.tizen.example.EventListener.Tizen"\r
+ },\r
+ eButton\r
}\r
}\r
};\r
--- /dev/null
+<Project Sdk="Microsoft.NET.Sdk">\r
+\r
+ <PropertyGroup>\r
+ <TargetFramework>netstandard2.0</TargetFramework>\r
+ </PropertyGroup>\r
+\r
+ <!-- Include Nuget Package for Xamarin building -->\r
+ <ItemGroup>\r
+ <PackageReference Include="Xamarin.Forms" Version="2.5.0.77107" />\r
+ </ItemGroup>\r
+\r
+</Project>\r
+++ /dev/null
-using System.Reflection;\r
-using System.Runtime.CompilerServices;\r
-using System.Runtime.InteropServices;\r
-\r
-// General Information about an assembly is controlled through the following\r
-// set of attributes. Change these attribute values to modify the information\r
-// associated with an assembly.\r
-[assembly: AssemblyTitle("ServiceApplicationManual.Tizen")]\r
-[assembly: AssemblyDescription("")]\r
-[assembly: AssemblyConfiguration("")]\r
-[assembly: AssemblyCompany("")]\r
-[assembly: AssemblyProduct("ServiceApplicationManual.Tizen")]\r
-[assembly: AssemblyCopyright("Copyright © 2017")]\r
-[assembly: AssemblyTrademark("")]\r
-[assembly: AssemblyCulture("")]\r
-\r
-// Setting ComVisible to false makes the types in this assembly not visible\r
-// to COM components. If you need to access a type in this assembly from\r
-// COM, set the ComVisible attribute to true on that type.\r
-[assembly: ComVisible(false)]\r
-\r
-// The following GUID is for the ID of the typelib if this project is exposed to COM\r
-[assembly: Guid("f63e274a-f69e-4146-b4ef-74b61731e550")]\r
-\r
-// Version information for an assembly consists of the following four values:\r
-//\r
-// Major Version\r
-// Minor Version\r
-// Build Number\r
-// Revision\r
-//\r
-// You can specify all the values or you can default the Build and Revision Numbers\r
-// by using the '*' as shown below:\r
-// [assembly: AssemblyVersion("1.0.*")]\r
-[assembly: AssemblyVersion("1.0.0.0")]\r
-[assembly: AssemblyFileVersion("1.0.0.0")]\r
+++ /dev/null
-using System;\r
-using System.Threading;\r
-using Tizen;\r
-\r
-namespace org.tizen.ServiceApplicationManual.Tizen\r
-{\r
- class Program : global::Tizen.Applications.ServiceApplication\r
- {\r
- protected override void OnCreate()\r
- {\r
- base.OnCreate();\r
-\r
- Thread.Sleep(5000);\r
- Exit();\r
- }\r
-\r
- public override void Exit()\r
- {\r
- Log.Debug("TCT", "[TestCase][Exit][ServiceApplication] Pass");\r
- base.Exit();\r
- }\r
-\r
- public override void Run(string[] args)\r
- {\r
- Log.Debug("TCT", "[TestCase][Run][ServiceApplication] Pass");\r
- base.Run(args);\r
- }\r
-\r
- static void Main(string[] args)\r
- {\r
- var app = new Program();\r
- app.Run(args);\r
- }\r
- }\r
-}\r
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>\r
-<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">\r
- <PropertyGroup>\r
- <MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>\r
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>\r
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>\r
- <ProductVersion>8.0.30703</ProductVersion>\r
- <SchemaVersion>2.0</SchemaVersion>\r
- <ProjectTypeGuids>{2F98DAC9-6F16-457B-AED7-D43CAC379341};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>\r
- <ProjectGuid>{F63E274A-F69E-4146-B4EF-74B61731E550}</ProjectGuid>\r
- <OutputType>Exe</OutputType>\r
- <AppDesignerFolder>Properties</AppDesignerFolder>\r
- <RootNamespace>ServiceApplicationManual.Tizen</RootNamespace>\r
- <AssemblyName>ServiceApplicationManual.Tizen</AssemblyName>\r
- <FileAlignment>512</FileAlignment>\r
- <DefaultLanguage>en-US</DefaultLanguage>\r
- </PropertyGroup>\r
- <PropertyGroup>\r
- <TargetFrameworkIdentifier>.NETCoreApp</TargetFrameworkIdentifier>\r
- <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>\r
- <AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>\r
- <NuGetTargetMoniker>.NETCoreApp,Version=v2.0</NuGetTargetMoniker>\r
- <BaseNuGetRuntimeIdentifier>tizen.4.0.0-armel</BaseNuGetRuntimeIdentifier>\r
- <NoStdLib>true</NoStdLib>\r
- <NoWarn>$(NoWarn);1701</NoWarn>\r
- <UseVSHostingProcess>false</UseVSHostingProcess>\r
- </PropertyGroup>\r
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">\r
- <DebugSymbols>true</DebugSymbols>\r
- <DebugType>portable</DebugType>\r
- <Optimize>false</Optimize>\r
- <OutputPath>bin\Debug\</OutputPath>\r
- <DefineConstants>DEBUG;TRACE</DefineConstants>\r
- <ErrorReport>prompt</ErrorReport>\r
- <WarningLevel>4</WarningLevel>\r
- </PropertyGroup>\r
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">\r
- <DebugSymbols>true</DebugSymbols>\r
- <DebugType>portable</DebugType>\r
- <Optimize>true</Optimize>\r
- <OutputPath>bin\Release\</OutputPath>\r
- <DefineConstants>TRACE</DefineConstants>\r
- <ErrorReport>prompt</ErrorReport>\r
- <WarningLevel>4</WarningLevel>\r
- </PropertyGroup>\r
- <ItemGroup>\r
- <None Include="ServiceApplicationManual.Tizen.project.json" />\r
- <None Include="tizen-manifest.xml" />\r
- <None Include="shared\res\ServiceApplicationManual.Tizen.png" />\r
- </ItemGroup>\r
- <ItemGroup>\r
- <Compile Include="ServiceApplicationManual.Tizen.cs" />\r
- <Compile Include="Properties\AssemblyInfo.cs" />\r
- </ItemGroup>\r
- <ItemGroup>\r
- <Folder Include="lib\" />\r
- <Folder Include="res\" />\r
- </ItemGroup>\r
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />\r
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.\r
- Other similar extension points exist, see Microsoft.Common.targets.\r
- <Target Name="BeforeBuild">\r
- </Target>\r
- <Target Name="AfterBuild">\r
- </Target>\r
- -->\r
- <PropertyGroup>\r
- <!-- https://github.com/dotnet/corefxlab/tree/master/samples/NetCoreSample and\r
- https://docs.microsoft.com/en-us/dotnet/articles/core/tutorials/target-dotnetcore-with-msbuild\r
- -->\r
- <!-- We don't use any of MSBuild's resolution logic for resolving the framework, so just set these two\r
- properties to any folder that exists to skip the GetReferenceAssemblyPaths task (not target) and\r
- to prevent it from outputting a warning (MSB3644).\r
- -->\r
- <_TargetFrameworkDirectories>$(MSBuildThisFileDirectory)</_TargetFrameworkDirectories>\r
- <_FullFrameworkReferenceAssemblyPaths>$(MSBuildThisFileDirectory)</_FullFrameworkReferenceAssemblyPaths>\r
- <AutoUnifyAssemblyReferences>true</AutoUnifyAssemblyReferences>\r
- </PropertyGroup>\r
- <ProjectExtensions>\r
- <VisualStudio>\r
- <FlavorProperties GUID="{2F98DAC9-6F16-457B-AED7-D43CAC379341}" Configuration="Debug|Any CPU">\r
- <ProjectCommonFlavorCfg />\r
- </FlavorProperties>\r
- <FlavorProperties GUID="{2F98DAC9-6F16-457B-AED7-D43CAC379341}" Configuration="Release|Any CPU">\r
- <ProjectCommonFlavorCfg />\r
- </FlavorProperties>\r
- </VisualStudio>\r
- </ProjectExtensions>\r
-</Project>
\ No newline at end of file
+++ /dev/null
-{\r
- "buildOptions": {\r
- "emitEntryPoint": true,\r
- "debugType": "portable",\r
- "platform": "AnyCPU",\r
- "preserveCompilationContext": true\r
- },\r
- "dependencies": {\r
- "Microsoft.NETCore.App": {\r
- "version": "2.0.0-preview1-002111-00"\r
- },\r
- "Tizen.Applications.Common": "1.5.11",\r
- "Tizen.Applications.Service": "1.5.8"\r
- },\r
- "runtimes": {\r
- "tizen.4.0.0-armel": {}\r
- },\r
- "frameworks": {\r
- "netcoreapp2.0": {\r
- "imports": [\r
- "portable-net45+wp80+win81+wpa81",\r
- "netstandard1.6"\r
- ]\r
- }\r
- }\r
-}
\ No newline at end of file
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>\r
-<manifest xmlns="http://tizen.org/ns/packages" api-version="3.0" package="ServiceApplicationManual.Tizen" version="1.0.0">\r
- <profile name="common" />\r
- <service-application appid="org.tizen.ServiceApplicationManual.Tizen"\r
- exec="ServiceApplicationManual.Tizen.exe"\r
- type="dotnet"\r
- multiple="false"\r
- taskmanage="true"\r
- nodisplay="false"\r
- launch_mode="single">\r
- <label>ServiceApplicationManual.Tizen</label>\r
- <icon>ServiceApplicationManual.Tizen.png</icon>\r
- <metadata key="http://tizen.org/metadata/allowedappid" value="Tizen.Applications.Manual.Tests"/>\r
- </service-application>\r
-</manifest>\r
\r
Microsoft Visual Studio Solution File, Format Version 12.00\r
# Visual Studio 15\r
-VisualStudioVersion = 15.0.26403.7\r
+VisualStudioVersion = 15.0.27004.2002\r
MinimumVisualStudioVersion = 10.0.40219.1\r
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ServiceApplicationManual.Tizen", "ServiceApplicationManual.Tizen.csproj", "{F63E274A-F69E-4146-B4EF-74B61731E550}"\r
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ServiceApplicationManual", "ServiceApplicationManual\ServiceApplicationManual.csproj", "{531F0CC2-E402-4C5B-9D69-7F5012169477}"\r
EndProject\r
Global\r
GlobalSection(SolutionConfigurationPlatforms) = preSolution\r
Release|Any CPU = Release|Any CPU\r
EndGlobalSection\r
GlobalSection(ProjectConfigurationPlatforms) = postSolution\r
- {F63E274A-F69E-4146-B4EF-74B61731E550}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\r
- {F63E274A-F69E-4146-B4EF-74B61731E550}.Debug|Any CPU.Build.0 = Debug|Any CPU\r
- {F63E274A-F69E-4146-B4EF-74B61731E550}.Release|Any CPU.ActiveCfg = Release|Any CPU\r
- {F63E274A-F69E-4146-B4EF-74B61731E550}.Release|Any CPU.Build.0 = Release|Any CPU\r
+ {531F0CC2-E402-4C5B-9D69-7F5012169477}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\r
+ {531F0CC2-E402-4C5B-9D69-7F5012169477}.Debug|Any CPU.Build.0 = Debug|Any CPU\r
+ {531F0CC2-E402-4C5B-9D69-7F5012169477}.Release|Any CPU.ActiveCfg = Release|Any CPU\r
+ {531F0CC2-E402-4C5B-9D69-7F5012169477}.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 = {D1DE5E85-D84E-4234-BDF9-342668A096C9}\r
+ EndGlobalSection\r
EndGlobal\r
--- /dev/null
+<Project>\r
+ <Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />\r
+\r
+ <!-- Setting Tizen Extension Path -->\r
+ <PropertyGroup Label="Globals">\r
+ <TizenProjectExtensionsPath>$(MSBuildExtensionsPath)\Tizen\VisualStudio\</TizenProjectExtensionsPath>\r
+ </PropertyGroup>\r
+\r
+ <!-- Import Tizen property in Tizen.NET SDK -->\r
+ <Import Project="$(TizenProjectExtensionsPath)Tizen.NET.ProjectType.props" Condition="Exists('$(TizenProjectExtensionsPath)Tizen.NET.ProjectType.props')" />\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="4.0.0" >\r
+ <ExcludeAssets>Runtime</ExcludeAssets>\r
+ </PackageReference>\r
+ <PackageReference Include="Tizen.NET.Sdk" Version="1.0.1-pre1" />\r
+ </ItemGroup>\r
+\r
+ <Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />\r
+ <Import Project="$(TizenProjectExtensionsPath)Tizen.NET.ProjectType.targets" Condition="Exists('$(TizenProjectExtensionsPath)Tizen.NET.ProjectType.targets')" />\r
+\r
+ <!-- Install Check 'Visual Studio for Tizen' for developing on Visual Studio -->\r
+ <Target Name="TizenVsixInstallCheck" BeforeTargets="CompileDesignTime">\r
+ <Warning Condition="!Exists('$(TizenProjectExtensionsPath)Tizen.NET.ProjectType.props')" Text="$(TizenProjectExtensionsPath)Tizen.NET.ProjectType.props is not exist.
 you need to check if 'Visual Studio for Tizen' is installed" />\r
+ <Warning Condition="!Exists('$(TizenProjectExtensionsPath)Tizen.NET.ProjectType.targets')" Text="$(TizenProjectExtensionsPath)Tizen.NET.ProjectType.targets is not exist.\
 you need to check if 'Visual Studio for Tizen' is installed" />\r
+ </Target>\r
+</Project>\r
--- /dev/null
+using System.Threading;\r
+using Tizen;\r
+using Tizen.Applications;\r
+\r
+namespace ServiceApplicationManual\r
+{\r
+ class App : ServiceApplication\r
+ {\r
+ protected override void OnCreate()\r
+ {\r
+ base.OnCreate();\r
+ Thread.Sleep(5000);\r
+ Exit();\r
+ }\r
+\r
+ protected override void OnAppControlReceived(AppControlReceivedEventArgs e)\r
+ {\r
+ base.OnAppControlReceived(e);\r
+ }\r
+\r
+ protected override void OnDeviceOrientationChanged(DeviceOrientationEventArgs e)\r
+ {\r
+ base.OnDeviceOrientationChanged(e);\r
+ }\r
+\r
+ protected override void OnLocaleChanged(LocaleChangedEventArgs e)\r
+ {\r
+ base.OnLocaleChanged(e);\r
+ }\r
+\r
+ protected override void OnLowBattery(LowBatteryEventArgs e)\r
+ {\r
+ base.OnLowBattery(e);\r
+ }\r
+\r
+ protected override void OnLowMemory(LowMemoryEventArgs e)\r
+ {\r
+ base.OnLowMemory(e);\r
+ }\r
+\r
+ protected override void OnRegionFormatChanged(RegionFormatChangedEventArgs e)\r
+ {\r
+ base.OnRegionFormatChanged(e);\r
+ }\r
+\r
+ protected override void OnTerminate()\r
+ {\r
+ base.OnTerminate();\r
+ }\r
+\r
+ public override void Exit()\r
+ {\r
+ Log.Info("TCT", "[TestCase][Exit][ServiceApplication] Pass");\r
+ base.Exit();\r
+ }\r
+\r
+ public override void Run(string[] args)\r
+ {\r
+ Log.Info("TCT", "[TestCase][Run][ServiceApplication] Pass");\r
+ base.Run(args);\r
+ }\r
+\r
+ static void Main(string[] args)\r
+ {\r
+ App app = new App();\r
+ app.Run(args);\r
+ }\r
+ }\r
+}\r
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>\r
+<manifest package="org.tizen.ServiceApplicationManual.Tizen" version="1.0.0" api-version="4" xmlns="http://tizen.org/ns/packages">\r
+ <profile name="common" />\r
+ <service-application appid="org.tizen.ServiceApplicationManual.Tizen" exec="ServiceApplicationManual.dll" multiple="false" nodisplay="true" taskmanage="false" splash-screen-display="true" type="dotnet">\r
+ <label>ServiceApplicationManual</label>\r
+ <icon>ServiceApplicationManual.png</icon>\r
+ <metadata key="http://tizen.org/metadata/allowedappid" value="Tizen.Applications.Manual.Tests" />\r
+ </service-application>\r
+ <provides-appdefined-privileges />\r
+</manifest>\r
+++ /dev/null
-using System.Reflection;\r
-using System.Runtime.CompilerServices;\r
-using System.Runtime.InteropServices;\r
-\r
-// General Information about an assembly is controlled through the following\r
-// set of attributes. Change these attribute values to modify the information\r
-// associated with an assembly.\r
-[assembly: AssemblyTitle("org.tizen.ApplicationManual.Tizen")]\r
-[assembly: AssemblyDescription("")]\r
-[assembly: AssemblyConfiguration("")]\r
-[assembly: AssemblyCompany("")]\r
-[assembly: AssemblyProduct("org.tizen.ApplicationManual.Tizen")]\r
-[assembly: AssemblyCopyright("Copyright © 2017")]\r
-[assembly: AssemblyTrademark("")]\r
-[assembly: AssemblyCulture("")]\r
-\r
-// Setting ComVisible to false makes the types in this assembly not visible\r
-// to COM components. If you need to access a type in this assembly from\r
-// COM, set the ComVisible attribute to true on that type.\r
-[assembly: ComVisible(false)]\r
-\r
-// The following GUID is for the ID of the typelib if this project is exposed to COM\r
-[assembly: Guid("341e5235-6060-4179-906d-0b3f264b9f5a")]\r
-\r
-// Version information for an assembly consists of the following four values:\r
-//\r
-// Major Version\r
-// Minor Version\r
-// Build Number\r
-// Revision\r
-//\r
-// You can specify all the values or you can default the Build and Revision Numbers\r
-// by using the '*' as shown below:\r
-// [assembly: AssemblyVersion("1.0.*")]\r
-[assembly: AssemblyVersion("1.0.0.0")]\r
-[assembly: AssemblyFileVersion("1.0.0.0")]\r
+++ /dev/null
-using System;\r
-using Tizen;\r
-using Tizen.Applications;\r
-using System.Threading;\r
-\r
-namespace org.tizen.ApplicationManual.Tizen\r
-{\r
- class Program : global::Xamarin.Forms.Platform.Tizen.FormsApplication\r
- {\r
- protected override void OnPreCreate()\r
- {\r
- Log.Debug("TCT", "[TestCase][OnPreCreate][Application] Pass");\r
- base.OnPreCreate();\r
- }\r
- protected override void OnCreate()\r
- {\r
- base.OnCreate();\r
-\r
- Log.Debug("TCT", "[TestCase][OnCreate][Application] Pass");\r
-\r
- LoadApplication(new App());\r
- }\r
-\r
- protected override void OnResume()\r
- {\r
- Log.Debug("TCT", "[TestCase][OnResume][Application] Pass");\r
- base.OnResume();\r
- }\r
-\r
- protected override void OnPause()\r
- {\r
- Log.Debug("TCT", "[TestCase][OnPause][Application] Pass");\r
- base.OnPause();\r
- }\r
-\r
- protected override void OnTerminate()\r
- {\r
- Log.Debug("TCT", "Application::OnTerminate()");\r
- Log.Debug("TCT", "[TestCase][OnTerminate][Application] Pass");\r
- base.OnTerminate();\r
- }\r
-\r
- protected override void OnAppControlReceived(AppControlReceivedEventArgs e)\r
- {\r
- Log.Debug("TCT", "Application::OnAppControlReceived()");\r
- if (e.ReceivedAppControl != null)\r
- {\r
- Log.Debug("TCT", "[TestCase][Test_Properties] ReceivedAppControl properties is not null");\r
- Log.Debug("TCT", "[TestCase][Test_Properties] ReceivedAppControl Type: " + e.ReceivedAppControl.GetType());\r
- }\r
- //logBuilder.AppendLine("TCT [TestCase][OnAppControlReceived] Pass");\r
- Log.Debug("TCT", "[TestCase][OnAppControlReceived][Application] Pass");\r
-\r
- base.OnAppControlReceived(e);\r
- ShowPropertiesInfo();\r
- }\r
-\r
- protected override void OnLocaleChanged(LocaleChangedEventArgs e)\r
- {\r
- Log.Debug("TCT", "Application::OnLocaleChanged()");\r
- if (e.Locale != null)\r
- {\r
- Log.Debug("TCT", "[Test_Properties] Locale properties is not null");\r
- Log.Debug("TCT", "[Test_Properties] Current value of Locale : " + e.Locale);\r
- Log.Debug("TCT", "[Test_Properties] Locale type: " + e.Locale.GetType());\r
- }\r
- \r
- Log.Debug("TCT", "[TestCase][OnLocaleChanged][Application] Pass");\r
- base.OnLocaleChanged(e);\r
- }\r
-\r
- protected override void OnRegionFormatChanged(RegionFormatChangedEventArgs e)\r
- {\r
- Log.Debug("TCT", "Application::OnRegionFormatChanged()");\r
- if (e != null)\r
- {\r
- Log.Debug("TCT", "[Test_Properties] Region properties is not null");\r
- Log.Debug("TCT", "[Test_Properties] Current value of Region : " + e.Region);\r
- Log.Debug("TCT", "[Test_Properties] Region type: " + e.Region.GetType());\r
- }\r
-\r
- Log.Debug("TCT", "[TestCase][OnRegionFormatChanged][Application] Pass");\r
- base.OnRegionFormatChanged(e);\r
- }\r
-\r
- protected override void OnDeviceOrientationChanged(DeviceOrientationEventArgs e)\r
- {\r
- Log.Debug("TCT", "Application::OnDeviceOrientationChanged()");\r
- if (e != null)\r
- {\r
- Log.Debug("TCT", "[Test_Properties] DeviceOrientation properties is not null");\r
- Log.Debug("TCT", "[Test_Properties] Current value of DeviceOrientation : " + e.DeviceOrientation);\r
- Log.Debug("TCT", "[Test_Properties] DeviceOrientation type: " + e.DeviceOrientation.GetType());\r
- }\r
-\r
- Log.Debug("TCT", "[TestCase][OnDeviceOrientationChanged][Application] Pass");\r
- base.OnDeviceOrientationChanged(e);\r
- }\r
-\r
- protected override void OnLowMemory(LowMemoryEventArgs e)\r
- {\r
- Log.Debug("TCT", "Application::OnLowMemory()");\r
- if (e.LowMemoryStatus != LowMemoryStatus.None)\r
- {\r
- Log.Debug("TCT", "[Test_Properties] LowMemoryStatus properties is not null");\r
- Log.Debug("TCT", "[Test_Properties] Current value of LowMemoryStatus : " + e.LowMemoryStatus.ToString());\r
- Log.Debug("TCT", "[Test_Properties] LowMemoryStatus type: " + e.LowMemoryStatus.GetType());\r
- }\r
- //logBuilder.AppendLine("TCT [TestCase][OnLowMemory] Pass");\r
- Log.Debug("TCT", "[TestCase][OnLowMemory][Application] Pass");\r
-\r
- base.OnLowMemory(e);\r
- }\r
-\r
- protected override void OnLowBattery(LowBatteryEventArgs e)\r
- {\r
- Log.Debug("TCT", "Application::OnLowBattery()");\r
- if (e.LowBatteryStatus != LowBatteryStatus.None)\r
- {\r
- Log.Debug("TCT", "[Test_Properties] LowBatteryStatus properties is not null");\r
- Log.Debug("TCT", "[Test_Properties] Current value of LowBatteryStatus : " + e.LowBatteryStatus.ToString());\r
- Log.Debug("TCT", "[Test_Properties] LowBatteryStatus type: " + e.LowBatteryStatus.GetType());\r
- }\r
-\r
- Log.Debug("TCT", "[TestCase][OnLowBattery][Application] Pass");\r
-\r
- base.OnLowBattery(e);\r
- }\r
-\r
- public override void Run(string[] args)\r
- {\r
- Created += Created_Event_Test;\r
- AppControlReceived += AppControlReceived_Event_Test;\r
- LocaleChanged += LocaleChanged_Event_Test;\r
- LowMemory += LowMemory_Event_Test;\r
- LowBattery += LowBattery_Event_Test;\r
- Terminated += Terminated_Event_Test;\r
- Paused += EventHandlerPaused;\r
- Resumed += EventHandlerResumed;\r
- DeviceOrientationChanged += DeviceOrientationCHanged_Event_Test;\r
- RegionFormatChanged += RegionFormatChanged_Event_Test;\r
-\r
- Log.Debug("TCT", "[TestCase][Run][Application] Pass");\r
-\r
- base.Run(args);\r
- }\r
-\r
- private void Terminated_Event_Test(object sender, EventArgs e)\r
- {\r
- /* \r
- * SCENARIO:\r
- * Launch app\r
- * -> If log show "Application::Terminated_Event_Test()" -> PASS\r
- */\r
- Log.Debug("TCT", "Application::Terminated_Event_Test");\r
- //logBuilder.AppendLine("TCT [TestCase][Terminated_Event_Test] Pass");\r
- Log.Debug("TCT", "[TestCase][Terminated_Event_Test][Application] Pass");\r
- }\r
-\r
- private void LocaleChanged_Event_Test(object sender, LocaleChangedEventArgs e)\r
- {\r
- /* \r
- * SCENARIO:\r
- * Launch app\r
- * -> If log show "Application::LocaleChanged_Event_Test()" -> PASS\r
- */\r
- Log.Debug("TCT", "Application::LocaleChanged_Event_Test");\r
- Log.Debug("TCT", "Application::LocaleChanged_Event_Test: new located - " + e.Locale);\r
- //logBuilder.AppendLine("TCT [TestCase][LocaleChanged_Event_Test] Pass");\r
- Log.Debug("TCT", "[TestCase][LocaleChanged_Event_Test][Application] Pass");\r
- }\r
-\r
- private void RegionFormatChanged_Event_Test(object sender, RegionFormatChangedEventArgs e)\r
- {\r
- Log.Debug("TCT", "Application::RegionFormatChanged_Event_Test");\r
- Log.Debug("TCT", "Application::RegionFormatChanged_Event_Test: new region - " + e.Region);\r
- //logBuilder.AppendLine("TCT [TestCase][LocaleChanged_Event_Test] Pass");\r
- Log.Debug("TCT", "[TestCase][RegionFormatChanged_Event_Test][Application] Pass");\r
- }\r
-\r
- private void DeviceOrientationCHanged_Event_Test(object sender, DeviceOrientationEventArgs e)\r
- { \r
- Log.Debug("TCT", "Application::DeviceOrientationCHanged_Event_Test");\r
- Log.Debug("TCT", "Application::DeviceOrientationCHanged_Event_Test: new located - " + e.DeviceOrientation);\r
- Log.Debug("TCT", "[TestCase][DeviceOrientationCHanged_Event_Test][Application] Pass");\r
- }\r
-\r
- private void LowMemory_Event_Test(object sender, LowMemoryEventArgs e)\r
- {\r
- /* \r
- * SCENARIO:\r
- * Launch app\r
- * -> If log show "Application::LowMemory_Event_Test()" -> PASS\r
- */\r
- Log.Debug("TCT", "Application::LowMemory_Event_Test");\r
- if (e.LowMemoryStatus == LowMemoryStatus.None)\r
- {\r
- Log.Debug("TCT", "Application::LowMemory_Event_Test: LowMemoryStatus.None");\r
- }\r
- else if (e.LowMemoryStatus == LowMemoryStatus.Normal)\r
- {\r
- Log.Debug("TCT", "Application::LowMemory_Event_Test: LowMemoryStatus.Normal");\r
- }\r
- else if (e.LowMemoryStatus == LowMemoryStatus.SoftWarning)\r
- {\r
- Log.Debug("TCT", "Application::LowMemory_Event_Test: LowMemoryStatus.SoftWarning");\r
- }\r
- else if (e.LowMemoryStatus == LowMemoryStatus.HardWarning)\r
- {\r
- Log.Debug("TCT", "Application::LowMemory_Event_Test: LowMemoryStatus.HardWarning");\r
- }\r
- //logBuilder.AppendLine("TCT [TestCase][LowMemory_Event_Test] Pass");\r
- Log.Debug("TCT", "[TestCase][LowMemory_Event_Test][Application] Pass");\r
- }\r
-\r
- private void LowBattery_Event_Test(object sender, LowBatteryEventArgs e)\r
- {\r
- Log.Debug("TCT", "Application::LowBattery_Event_Test");\r
-\r
- if (e.LowBatteryStatus == LowBatteryStatus.CriticalLow)\r
- {\r
- Log.Debug("TCT", "Application::LowBattery_Event_Test: LowMemoryStatus.CriticalLow");\r
- }\r
- Log.Debug("TCT", "[TestCase][LowBattery_Event_Test][Application] Pass");\r
- }\r
-\r
- private void AppControlReceived_Event_Test(object sender, AppControlReceivedEventArgs e)\r
- {\r
- /* \r
- * SCENARIO:\r
- * Launch app\r
- * -> If log show "Application::AppControlReceived_Event_Test()" -> PASS\r
- */\r
- Log.Debug("TCT", "Application::AppControlReceived_Event_Test");\r
- //logBuilder.AppendLine("TCT [TestCase][AppControlReceived_Event_Test] Pass");\r
- Log.Debug("TCT", "[TestCase][AppControlReceived_Event_Test][Application] Pass");\r
- }\r
-\r
- private void Created_Event_Test(object sender, EventArgs e)\r
- {\r
- /* \r
- * SCENARIO:\r
- * Launch app\r
- * -> If log show "Application::Created_Event_Test()" -> PASS\r
- */\r
- Log.Debug("TCT", "Application::Created_Event_Test");\r
- //logBuilder.AppendLine("TCT [TestCase][Created_Event_Test] Pass");\r
- Log.Debug("TCT", "[TestCase][Created_Event_Test][Application] Pass");\r
- }\r
- public void EventHandlerPaused(object sender, EventArgs e)\r
- {\r
- /* \r
- * PRECONDITION\r
- * 1. Open Application app.\r
- * 2. Open other app.\r
- */ \r
- Log.Debug("TCT", "[TestCase][EventHandlerPaused][Application] Pass");\r
- }\r
- public void EventHandlerResumed(object sender, EventArgs e)\r
- {\r
- /* \r
- * PRECONDITION\r
- * 1. Open Application app.\r
- * 2. Open other app.\r
- * 3. Long press HOME button and tap to Applicaton shortcut.\r
- */\r
- Log.Debug("TCT", "Application Resumed event occur!");\r
- Log.Debug("TCT", "[TestCase][EventHandlerResumed][Application] Pass");\r
- }\r
-\r
- public override void Exit()\r
- {\r
- Log.Debug("TCT", "[TestCase][Exit][Application] Pass");\r
- base.Exit();\r
- }\r
- void ShowPropertiesInfo()\r
- {\r
- if (base.ApplicationInfo != null)\r
- {\r
- Log.Debug("TCT", "[Info] ApplicationInfo is not null");\r
- Log.Debug("TCT", "[Info] ApplicationInfo.ApplicationId = " + base.ApplicationInfo.ApplicationId);\r
- Log.Debug("TCT", "[Info] ApplicationInfo.ApplicationType = " + base.ApplicationInfo.ApplicationType);\r
- Log.Debug("TCT", "[Info] ApplicationInfo.ExecutablePath = " + base.ApplicationInfo.ExecutablePath);\r
- Log.Debug("TCT", "[Info] ApplicationInfo.ExternalSharedDataPath = " + base.ApplicationInfo.ExternalSharedDataPath);\r
- Log.Debug("TCT", "[Info] ApplicationInfo.IconPath = " + base.ApplicationInfo.IconPath);\r
- Log.Debug("TCT", "[Info] ApplicationInfo.IsNoDisplay = " + base.ApplicationInfo.IsNoDisplay);\r
- Log.Debug("TCT", "[Info] ApplicationInfo.IsOnBoot = " + base.ApplicationInfo.IsOnBoot);\r
- Log.Debug("TCT", "[Info] ApplicationInfo.IsPreload = " + base.ApplicationInfo.IsPreload);\r
- Log.Debug("TCT", "[Info] ApplicationInfo.Label = " + base.ApplicationInfo.Label);\r
- Log.Debug("TCT", "[Info] ApplicationInfo.Metadata Count = " + base.ApplicationInfo.Metadata.Count);\r
- foreach (var item in base.ApplicationInfo.Metadata)\r
- {\r
- Log.Debug("TCT", "[Info] ApplicationInfo.Metadata, Key: " + item.Key + " Value: " + item.Value);\r
- }\r
- Log.Debug("TCT", "[Info] ApplicationInfo.PackageId = " + base.ApplicationInfo.PackageId);\r
- Log.Debug("TCT", "[Info] ApplicationInfo.SharedDataPath = " + base.ApplicationInfo.SharedDataPath);\r
- Log.Debug("TCT", "[Info] ApplicationInfo.SharedResourcePath = " + base.ApplicationInfo.SharedResourcePath);\r
- Log.Debug("TCT", "[Info] ApplicationInfo.SharedTrustedPath = " + base.ApplicationInfo.SharedTrustedPath);\r
- }\r
- if (base.DirectoryInfo != null)\r
- {\r
- Log.Debug("TCT", "[Info] DirectoryInfo is not null");\r
- Log.Debug("TCT", "[Info] DirectoryInfo.Cache = " + base.DirectoryInfo.Cache);\r
- Log.Debug("TCT", "[Info] DirectoryInfo.Data = " + base.DirectoryInfo.Data);\r
- Log.Debug("TCT", "[Info] DirectoryInfo.ExpansionPackageResource = " + base.DirectoryInfo.ExpansionPackageResource);\r
- Log.Debug("TCT", "[Info] DirectoryInfo.ExternalCache = " + base.DirectoryInfo.ExternalCache);\r
- Log.Debug("TCT", "[Info] DirectoryInfo.ExternalData = " + base.DirectoryInfo.ExternalData);\r
- Log.Debug("TCT", "[Info] DirectoryInfo.ExternalSharedData = " + base.DirectoryInfo.ExternalSharedData);\r
- Log.Debug("TCT", "[Info] DirectoryInfo.Resource = " + base.DirectoryInfo.Resource);\r
- Log.Debug("TCT", "[Info] DirectoryInfo.SharedData = " + base.DirectoryInfo.SharedData);\r
- Log.Debug("TCT", "[Info] DirectoryInfo.SharedResource = " + base.DirectoryInfo.SharedResource);\r
- Log.Debug("TCT", "[Info] DirectoryInfo.SharedTrusted = " + base.DirectoryInfo.SharedTrusted);\r
- }\r
-\r
- Log.Debug("TCT", "[Info] Current == this : " + (Current == this));\r
- Log.Debug("TCT", "[Info] Current.ApplicationInfo.ApplicationId = " + Current.ApplicationInfo.ApplicationId);\r
- }\r
-\r
- static void Main(string[] args)\r
- {\r
- var app = new Program();\r
- global::Xamarin.Forms.Platform.Tizen.Forms.Init(app);\r
- app.Run(args);\r
- }\r
- }\r
-}\r
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>\r
-<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">\r
- <PropertyGroup>\r
- <MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>\r
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>\r
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>\r
- <ProductVersion>8.0.30703</ProductVersion>\r
- <SchemaVersion>2.0</SchemaVersion>\r
- <ProjectTypeGuids>{2F98DAC9-6F16-457B-AED7-D43CAC379341};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>\r
- <ProjectGuid>{341E5235-6060-4179-906D-0B3F264B9F5A}</ProjectGuid>\r
- <OutputType>Exe</OutputType>\r
- <AppDesignerFolder>Properties</AppDesignerFolder>\r
- <RootNamespace>org.tizen.ApplicationManual.Tizen</RootNamespace>\r
- <AssemblyName>org.tizen.ApplicationManual.Tizen</AssemblyName>\r
- <FileAlignment>512</FileAlignment>\r
- <DefaultLanguage>en-US</DefaultLanguage>\r
- </PropertyGroup>\r
- <PropertyGroup>\r
- <TargetFrameworkIdentifier>.NETCoreApp</TargetFrameworkIdentifier>\r
- <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>\r
- <AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>\r
- <NuGetTargetMoniker>.NETCoreApp,Version=v2.0</NuGetTargetMoniker>\r
- <BaseNuGetRuntimeIdentifier>tizen.4.0.0-armel</BaseNuGetRuntimeIdentifier>\r
- <NoStdLib>true</NoStdLib>\r
- <NoWarn>$(NoWarn);1701</NoWarn>\r
- <UseVSHostingProcess>false</UseVSHostingProcess>\r
- </PropertyGroup>\r
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">\r
- <DebugSymbols>true</DebugSymbols>\r
- <DebugType>portable</DebugType>\r
- <Optimize>false</Optimize>\r
- <OutputPath>bin\Debug\</OutputPath>\r
- <DefineConstants>DEBUG;TRACE</DefineConstants>\r
- <ErrorReport>prompt</ErrorReport>\r
- <WarningLevel>4</WarningLevel>\r
- </PropertyGroup>\r
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">\r
- <DebugType>portable</DebugType>\r
- <Optimize>true</Optimize>\r
- <OutputPath>bin\Release\</OutputPath>\r
- <DefineConstants>TRACE</DefineConstants>\r
- <ErrorReport>prompt</ErrorReport>\r
- <WarningLevel>4</WarningLevel>\r
- </PropertyGroup>\r
- <ItemGroup>\r
- <None Include="org.tizen.ApplicationManual.Tizen.project.json" />\r
- <None Include="tizen-manifest.xml">\r
- <SubType>Designer</SubType>\r
- </None>\r
- <None Include="shared\res\org.tizen.ApplicationManual.Tizen.png" />\r
- </ItemGroup>\r
- <ItemGroup>\r
- <Compile Include="org.tizen.ApplicationManual.cs" />\r
- <Compile Include="org.tizen.ApplicationManual.Tizen.cs" />\r
- <Compile Include="Properties\AssemblyInfo.cs" />\r
- </ItemGroup>\r
- <ItemGroup>\r
- <Folder Include="lib\" />\r
- <Folder Include="res\" />\r
- </ItemGroup>\r
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />\r
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- -->\r
- <PropertyGroup>\r
- <!-- https://github.com/dotnet/corefxlab/tree/master/samples/NetCoreSample and
- https://docs.microsoft.com/en-us/dotnet/articles/core/tutorials/target-dotnetcore-with-msbuild
- -->\r
- <!-- We don't use any of MSBuild's resolution logic for resolving the framework, so just set these two
- properties to any folder that exists to skip the GetReferenceAssemblyPaths task (not target) and
- to prevent it from outputting a warning (MSB3644).
- -->\r
- <_TargetFrameworkDirectories>$(MSBuildThisFileDirectory)</_TargetFrameworkDirectories>\r
- <_FullFrameworkReferenceAssemblyPaths>$(MSBuildThisFileDirectory)</_FullFrameworkReferenceAssemblyPaths>\r
- <AutoUnifyAssemblyReferences>true</AutoUnifyAssemblyReferences>\r
- </PropertyGroup>\r
- <ProjectExtensions>\r
- <VisualStudio>\r
- <FlavorProperties GUID="{2F98DAC9-6F16-457B-AED7-D43CAC379341}" Configuration="Debug|Any CPU">\r
- <ProjectCommonFlavorCfg>\r
- <excludeXamarinForms>True</excludeXamarinForms>\r
- </ProjectCommonFlavorCfg>\r
- </FlavorProperties>\r
- <FlavorProperties GUID="{2F98DAC9-6F16-457B-AED7-D43CAC379341}" Configuration="Release|Any CPU">\r
- <ProjectCommonFlavorCfg />\r
- </FlavorProperties>\r
- </VisualStudio>\r
- </ProjectExtensions>\r
-</Project>
\ No newline at end of file
+++ /dev/null
-{\r
- "buildOptions": {\r
- "emitEntryPoint": true,\r
- "debugType": "portable",\r
- "platform": "AnyCPU",\r
- "preserveCompilationContext": true\r
- },\r
- "dependencies": {\r
- "Microsoft.NETCore.App": "2.0.0-preview1-002111-00",\r
- "Tizen": "1.0.5",\r
- "Tizen.Applications.Common": "1.5.8",\r
- "Tizen.Applications.UI": "1.5.8",\r
- "Xamarin.Forms": "2.3.5.256-pre6",\r
- "Xamarin.Forms.Platform.Tizen": "2.3.5-r256-001"\r
- },\r
- "runtimes": {\r
- "tizen.4.0.0-armel": {}\r
- },\r
- "frameworks": {\r
- "netcoreapp2.0": {\r
- "imports": [\r
- "portable-net45+wp80+win81+wpa81",\r
- "netstandard1.6"\r
- ]\r
- }\r
- }\r
-}
\ No newline at end of file
+++ /dev/null
-\r
-Microsoft Visual Studio Solution File, Format Version 12.00\r
-# Visual Studio 15\r
-VisualStudioVersion = 15.0.26403.7\r
-MinimumVisualStudioVersion = 10.0.40219.1\r
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "org.tizen.ApplicationManual.Tizen", "org.tizen.ApplicationManual.Tizen.csproj", "{341E5235-6060-4179-906D-0B3F264B9F5A}"\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
- {341E5235-6060-4179-906D-0B3F264B9F5A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\r
- {341E5235-6060-4179-906D-0B3F264B9F5A}.Debug|Any CPU.Build.0 = Debug|Any CPU\r
- {341E5235-6060-4179-906D-0B3F264B9F5A}.Release|Any CPU.ActiveCfg = Release|Any CPU\r
- {341E5235-6060-4179-906D-0B3F264B9F5A}.Release|Any CPU.Build.0 = Release|Any CPU\r
- EndGlobalSection\r
- GlobalSection(SolutionProperties) = preSolution\r
- HideSolutionNode = FALSE\r
- EndGlobalSection\r
-EndGlobal\r
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns="http://tizen.org/ns/packages" api-version="3.0" package="org.tizen.ApplicationManual.Tizen" version="1.0.0">
- <profile name="common" />
- <ui-application appid="org.tizen.ApplicationManual.Tizen"
- exec="org.tizen.ApplicationManual.Tizen.exe"
- type="dotnet"
- multiple="false"
- taskmanage="true"
- launch_mode="single">
- <icon>org.tizen.ApplicationManual.Tizen.png</icon>
- <label>org.tizen.ApplicationManual.Tizen</label>
- </ui-application>
-</manifest>