--- /dev/null
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 14
+VisualStudioVersion = 14.0.25420.1
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tizen.Applications.Common", "Tizen.Applications.Common\Tizen.Applications.Common.csproj", "{663C5A3D-E631-4987-AEE7-F498C56A40FC}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tizen.Applications.MessagePort", "Tizen.Applications.MessagePort\Tizen.Applications.MessagePort.csproj", "{00522E33-D1F2-4656-8621-5510EC0139FE}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tizen.Applications.Common.Net45", "Tizen.Applications.Common\Tizen.Applications.Common.Net45.csproj", "{9ACB2B86-BBEA-4FAA-880A-1977AB461C51}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tizen.Applications.MessagePort.Net45", "Tizen.Applications.MessagePort\Tizen.Applications.MessagePort.Net45.csproj", "{3B03557D-FCA4-464B-9686-424A96ADC875}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tizen.Applications.Service.Net45", "Tizen.Applications.Service\Tizen.Applications.Service.Net45.csproj", "{A399ED54-EB41-4773-9A29-772640C093EC}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tizen.Applications.Service", "Tizen.Applications.Service\Tizen.Applications.Service.csproj", "{FF139F0E-DB10-4074-AFA1-229A7CAB54A3}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tizen.Applications.Alarm", "Tizen.Applications.Alarm\Tizen.Applications.Alarm.csproj", "{28347C57-6413-46C6-9548-75FDA519E07C}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tizen.Applications.Alarm.Net45", "Tizen.Applications.Alarm\Tizen.Applications.Alarm.Net45.csproj", "{98B68263-8F05-486B-A670-3F5DA1352424}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tizen.Applications.Notification", "Tizen.Applications.Notification\Tizen.Applications.Notification.csproj", "{36C346B4-5ABC-45C7-808B-04178B76FA0D}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tizen.Applications.Notification.Net45", "Tizen.Applications.Notification\Tizen.Applications.Notification.Net45.csproj", "{DCBA342F-12D2-4AB3-8616-210DA585A11A}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tizen.Applications.PackageManager", "Tizen.Applications.PackageManager\Tizen.Applications.PackageManager.csproj", "{A83A9A54-9985-45BE-95DA-C768A93CF455}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tizen.Applications.PackageManager.Net45", "Tizen.Applications.PackageManager\Tizen.Applications.PackageManager.Net45.csproj", "{806338B7-D321-4AB6-8FC0-58A22B289A28}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tizen.Applications.Preference", "Tizen.Applications.Preference\Tizen.Applications.Preference.csproj", "{4A11B4AF-8C6F-4262-B19F-23EDCBA7521B}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tizen.Applications.Preference.Net45", "Tizen.Applications.Preference\Tizen.Applications.Preference.Net45.csproj", "{E129083E-B2D4-4330-A433-C50F040B001C}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tizen.Applications.UI", "Tizen.Applications.UI\Tizen.Applications.UI.csproj", "{9AFFA998-5065-487E-BEDB-8B290AD2138F}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tizen.Applications.UI.Net45", "Tizen.Applications.UI\Tizen.Applications.UI.Net45.csproj", "{9D0FA46A-BF8B-46AF-9DD9-02A72C8997AD}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tizen.Applications.Net45", "Tizen.Applications\Tizen.Applications.Net45.csproj", "{4847B13C-1A03-4347-83CD-EA4B5C9655A4}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tizen.Applications", "Tizen.Applications\Tizen.Applications.csproj", "{6209641F-4B03-4DAD-84D8-4775AD72AD75}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {663C5A3D-E631-4987-AEE7-F498C56A40FC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {663C5A3D-E631-4987-AEE7-F498C56A40FC}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {663C5A3D-E631-4987-AEE7-F498C56A40FC}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {663C5A3D-E631-4987-AEE7-F498C56A40FC}.Release|Any CPU.Build.0 = Release|Any CPU
+ {00522E33-D1F2-4656-8621-5510EC0139FE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {00522E33-D1F2-4656-8621-5510EC0139FE}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {00522E33-D1F2-4656-8621-5510EC0139FE}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {00522E33-D1F2-4656-8621-5510EC0139FE}.Release|Any CPU.Build.0 = Release|Any CPU
+ {9ACB2B86-BBEA-4FAA-880A-1977AB461C51}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {9ACB2B86-BBEA-4FAA-880A-1977AB461C51}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {9ACB2B86-BBEA-4FAA-880A-1977AB461C51}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {9ACB2B86-BBEA-4FAA-880A-1977AB461C51}.Release|Any CPU.Build.0 = Release|Any CPU
+ {3B03557D-FCA4-464B-9686-424A96ADC875}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {3B03557D-FCA4-464B-9686-424A96ADC875}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {3B03557D-FCA4-464B-9686-424A96ADC875}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {3B03557D-FCA4-464B-9686-424A96ADC875}.Release|Any CPU.Build.0 = Release|Any CPU
+ {A399ED54-EB41-4773-9A29-772640C093EC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A399ED54-EB41-4773-9A29-772640C093EC}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A399ED54-EB41-4773-9A29-772640C093EC}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A399ED54-EB41-4773-9A29-772640C093EC}.Release|Any CPU.Build.0 = Release|Any CPU
+ {FF139F0E-DB10-4074-AFA1-229A7CAB54A3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {FF139F0E-DB10-4074-AFA1-229A7CAB54A3}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {FF139F0E-DB10-4074-AFA1-229A7CAB54A3}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {FF139F0E-DB10-4074-AFA1-229A7CAB54A3}.Release|Any CPU.Build.0 = Release|Any CPU
+ {28347C57-6413-46C6-9548-75FDA519E07C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {28347C57-6413-46C6-9548-75FDA519E07C}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {28347C57-6413-46C6-9548-75FDA519E07C}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {28347C57-6413-46C6-9548-75FDA519E07C}.Release|Any CPU.Build.0 = Release|Any CPU
+ {98B68263-8F05-486B-A670-3F5DA1352424}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {98B68263-8F05-486B-A670-3F5DA1352424}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {98B68263-8F05-486B-A670-3F5DA1352424}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {98B68263-8F05-486B-A670-3F5DA1352424}.Release|Any CPU.Build.0 = Release|Any CPU
+ {36C346B4-5ABC-45C7-808B-04178B76FA0D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {36C346B4-5ABC-45C7-808B-04178B76FA0D}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {36C346B4-5ABC-45C7-808B-04178B76FA0D}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {36C346B4-5ABC-45C7-808B-04178B76FA0D}.Release|Any CPU.Build.0 = Release|Any CPU
+ {DCBA342F-12D2-4AB3-8616-210DA585A11A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {DCBA342F-12D2-4AB3-8616-210DA585A11A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {DCBA342F-12D2-4AB3-8616-210DA585A11A}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {DCBA342F-12D2-4AB3-8616-210DA585A11A}.Release|Any CPU.Build.0 = Release|Any CPU
+ {A83A9A54-9985-45BE-95DA-C768A93CF455}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A83A9A54-9985-45BE-95DA-C768A93CF455}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A83A9A54-9985-45BE-95DA-C768A93CF455}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A83A9A54-9985-45BE-95DA-C768A93CF455}.Release|Any CPU.Build.0 = Release|Any CPU
+ {806338B7-D321-4AB6-8FC0-58A22B289A28}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {806338B7-D321-4AB6-8FC0-58A22B289A28}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {806338B7-D321-4AB6-8FC0-58A22B289A28}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {806338B7-D321-4AB6-8FC0-58A22B289A28}.Release|Any CPU.Build.0 = Release|Any CPU
+ {4A11B4AF-8C6F-4262-B19F-23EDCBA7521B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {4A11B4AF-8C6F-4262-B19F-23EDCBA7521B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {4A11B4AF-8C6F-4262-B19F-23EDCBA7521B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {4A11B4AF-8C6F-4262-B19F-23EDCBA7521B}.Release|Any CPU.Build.0 = Release|Any CPU
+ {E129083E-B2D4-4330-A433-C50F040B001C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E129083E-B2D4-4330-A433-C50F040B001C}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {E129083E-B2D4-4330-A433-C50F040B001C}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {E129083E-B2D4-4330-A433-C50F040B001C}.Release|Any CPU.Build.0 = Release|Any CPU
+ {9AFFA998-5065-487E-BEDB-8B290AD2138F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {9AFFA998-5065-487E-BEDB-8B290AD2138F}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {9AFFA998-5065-487E-BEDB-8B290AD2138F}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {9AFFA998-5065-487E-BEDB-8B290AD2138F}.Release|Any CPU.Build.0 = Release|Any CPU
+ {9D0FA46A-BF8B-46AF-9DD9-02A72C8997AD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {9D0FA46A-BF8B-46AF-9DD9-02A72C8997AD}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {9D0FA46A-BF8B-46AF-9DD9-02A72C8997AD}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {9D0FA46A-BF8B-46AF-9DD9-02A72C8997AD}.Release|Any CPU.Build.0 = Release|Any CPU
+ {4847B13C-1A03-4347-83CD-EA4B5C9655A4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {4847B13C-1A03-4347-83CD-EA4B5C9655A4}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {4847B13C-1A03-4347-83CD-EA4B5C9655A4}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {4847B13C-1A03-4347-83CD-EA4B5C9655A4}.Release|Any CPU.Build.0 = Release|Any CPU
+ {6209641F-4B03-4DAD-84D8-4775AD72AD75}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {6209641F-4B03-4DAD-84D8-4775AD72AD75}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {6209641F-4B03-4DAD-84D8-4775AD72AD75}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {6209641F-4B03-4DAD-84D8-4775AD72AD75}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
+++ /dev/null
-/*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the License);
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an AS IS BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-using System;
-using System.Collections.Generic;
-
-using Tizen.Internals.Errors;
-
-namespace Tizen.Applications.CoreBackend
-{
- internal abstract class DefaultCoreBackend : ICoreBackend
- {
- protected static readonly string LogTag = typeof(DefaultCoreBackend).Namespace;
-
- protected Dictionary<EventType, object> _handlers = new Dictionary<EventType, object>();
-
- private bool _disposedValue = false;
-
- private Interop.AppCommon.AppEventCallback _lowMemoryCallback;
- private Interop.AppCommon.AppEventCallback _lowBatteryCallback;
- private Interop.AppCommon.AppEventCallback _localeChangedCallback;
- private Interop.AppCommon.AppEventCallback _regionChangedCallback;
-
- private IntPtr _lowMemoryEventHandle = IntPtr.Zero;
- private IntPtr _lowBatteryEventHandle = IntPtr.Zero;
- private IntPtr _localeChangedEventHandle = IntPtr.Zero;
- private IntPtr _regionChangedEventHandle = IntPtr.Zero;
-
- public DefaultCoreBackend()
- {
- _lowMemoryCallback = new Interop.AppCommon.AppEventCallback(OnLowMemoryNative);
- _lowBatteryCallback = new Interop.AppCommon.AppEventCallback(OnLowBatteryNative);
- _localeChangedCallback = new Interop.AppCommon.AppEventCallback(OnLocaleChangedNative);
- _regionChangedCallback = new Interop.AppCommon.AppEventCallback(OnRegionChangedNative);
- }
-
- ~DefaultCoreBackend()
- {
- Dispose(false);
- }
-
- public void AddEventHandler(EventType evType, Action handler)
- {
- _handlers.Add(evType, handler);
- }
-
- public void AddEventHandler<TEventArgs>(EventType evType, Action<TEventArgs> handler) where TEventArgs : EventArgs
- {
- _handlers.Add(evType, handler);
- }
-
- public virtual void Run(string[] args)
- {
- TizenSynchronizationContext.Initialize();
-
- ErrorCode err = ErrorCode.None;
- err = AddAppEventCallback(out _lowMemoryEventHandle, Interop.AppCommon.AppEventType.LowMemory, _lowMemoryCallback);
- if (err != ErrorCode.None)
- {
- Log.Error(LogTag, "Failed to add event handler for LowMemory event. Err = " + err);
- }
- err = AddAppEventCallback(out _lowBatteryEventHandle, Interop.AppCommon.AppEventType.LowBattery, _lowBatteryCallback);
- if (err != ErrorCode.None)
- {
- Log.Error(LogTag, "Failed to add event handler for LowBattery event. Err = " + err);
- }
-
- err = AddAppEventCallback(out _localeChangedEventHandle, Interop.AppCommon.AppEventType.LanguageChanged, _localeChangedCallback);
- if (err != ErrorCode.None)
- {
- Log.Error(LogTag, "Failed to add event handler for LocaleChanged event. Err = " + err);
- }
-
- err = AddAppEventCallback(out _regionChangedEventHandle, Interop.AppCommon.AppEventType.RegionFormatChanged, _regionChangedCallback);
- if (err != ErrorCode.None)
- {
- Log.Error(LogTag, "Failed to add event handler for RegionFormatChanged event. Err = " + err);
- }
- }
-
- public abstract void Exit();
-
- public void Dispose()
- {
- Dispose(true);
- GC.SuppressFinalize(this);
- }
-
- protected virtual void Dispose(bool disposing)
- {
- if (!_disposedValue)
- {
- if (disposing)
- {
- // Release disposable objects
- }
-
- if (_lowMemoryEventHandle != IntPtr.Zero)
- {
- RemoveAppEventCallback(_lowMemoryEventHandle);
- }
- if (_lowBatteryEventHandle != IntPtr.Zero)
- {
- RemoveAppEventCallback(_lowBatteryEventHandle);
- }
- if (_localeChangedEventHandle != IntPtr.Zero)
- {
- RemoveAppEventCallback(_localeChangedEventHandle);
- }
- if (_regionChangedEventHandle != IntPtr.Zero)
- {
- RemoveAppEventCallback(_regionChangedEventHandle);
- }
-
- _disposedValue = true;
- }
- }
-
- internal abstract ErrorCode AddAppEventCallback(out IntPtr handle, Interop.AppCommon.AppEventType type, Interop.AppCommon.AppEventCallback callback);
-
- internal abstract void RemoveAppEventCallback(IntPtr handle);
-
- private void OnLowMemoryNative(IntPtr infoHandle, IntPtr data)
- {
- LowMemoryStatus status = LowMemoryStatus.None;
- ErrorCode err = Interop.AppCommon.AppEventGetLowMemoryStatus(infoHandle, out status);
- if (err != ErrorCode.None)
- {
- Log.Error(LogTag, "Failed to get memory status. Err = " + err);
- }
- if (_handlers.ContainsKey(EventType.LowMemory))
- {
- var handler = _handlers[EventType.LowMemory] as Action<LowMemoryEventArgs>;
- handler?.Invoke(new LowMemoryEventArgs(status));
- }
- }
-
- private void OnLowBatteryNative(IntPtr infoHandle, IntPtr data)
- {
- LowBatteryStatus status = LowBatteryStatus.None;
- ErrorCode err = Interop.AppCommon.AppEventGetLowBatteryStatus(infoHandle, out status);
- if (err != ErrorCode.None)
- {
- Log.Error(LogTag, "Failed to get battery status. Err = " + err);
- }
- if (_handlers.ContainsKey(EventType.LowBattery))
- {
- var handler = _handlers[EventType.LowBattery] as Action<LowBatteryEventArgs>;
- handler?.Invoke(new LowBatteryEventArgs(status));
- }
- }
-
- private void OnLocaleChangedNative(IntPtr infoHandle, IntPtr data)
- {
- string lang;
- ErrorCode err = Interop.AppCommon.AppEventGetLanguage(infoHandle, out lang);
- if (err != ErrorCode.None)
- {
- Log.Error(LogTag, "Failed to get changed language. Err = " + err);
- }
- if (_handlers.ContainsKey(EventType.LocaleChanged))
- {
- var handler = _handlers[EventType.LocaleChanged] as Action<LocaleChangedEventArgs>;
- handler?.Invoke(new LocaleChangedEventArgs(lang));
- }
- }
-
- private void OnRegionChangedNative(IntPtr infoHandle, IntPtr data)
- {
- string region;
- ErrorCode err = Interop.AppCommon.AppEventGetRegionFormat(infoHandle, out region);
- if (err != ErrorCode.None)
- {
- Log.Error(LogTag, "Failed to get changed region format. Err = " + err);
- }
- if (_handlers.ContainsKey(EventType.RegionFormatChanged))
- {
- var handler = _handlers[EventType.RegionFormatChanged] as Action<RegionFormatChangedEventArgs>;
- handler?.Invoke(new RegionFormatChangedEventArgs(region));
- }
- }
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the License);
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an AS IS BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-using System;
-
-using Tizen.Internals.Errors;
-
-namespace Tizen.Applications.CoreBackend
-{
- internal class ServiceCoreBackend : DefaultCoreBackend
- {
- private Interop.Service.ServiceAppLifecycleCallbacks _callbacks;
-
- public ServiceCoreBackend()
- {
- _callbacks.OnCreate = new Interop.Service.ServiceAppCreateCallback(OnCreateNative);
- _callbacks.OnTerminate = new Interop.Service.ServiceAppTerminateCallback(OnTerminateNative);
- _callbacks.OnAppControl = new Interop.Service.ServiceAppControlCallback(OnAppControlNative);
- }
-
- public override void Exit()
- {
- Interop.Service.Exit();
- }
-
- public override void Run(string[] args)
- {
- base.Run(args);
-
- ErrorCode err = Interop.Service.Main(args.Length, args, ref _callbacks, IntPtr.Zero);
- if (err != ErrorCode.None)
- {
- Log.Error(LogTag, "Failed to run the application. Err = " + err);
- }
- }
-
- private bool OnCreateNative(IntPtr data)
- {
- if (_handlers.ContainsKey(EventType.Created))
- {
- var handler = _handlers[EventType.Created] as Action;
- handler?.Invoke();
- }
- return true;
- }
-
- private void OnTerminateNative(IntPtr data)
- {
- if (_handlers.ContainsKey(EventType.Terminated))
- {
- var handler = _handlers[EventType.Terminated] as Action;
- handler?.Invoke();
- }
- }
-
- private void OnAppControlNative(IntPtr appControlHandle, IntPtr data)
- {
- if (_handlers.ContainsKey(EventType.AppControlReceived))
- {
- // Create a SafeAppControlHandle but the ownsHandle is false,
- // because the appControlHandle will be closed by native appfw after this method automatically.
- SafeAppControlHandle safeHandle = new SafeAppControlHandle(appControlHandle, false);
-
- var handler = _handlers[EventType.AppControlReceived] as Action<AppControlReceivedEventArgs>;
- handler?.Invoke(new AppControlReceivedEventArgs(new ReceivedAppControl(safeHandle)));
- }
- }
-
- internal override ErrorCode AddAppEventCallback(out IntPtr handle, Interop.AppCommon.AppEventType type, Interop.AppCommon.AppEventCallback callback)
- {
- return Interop.Service.AddEventHandler(out handle, type, callback, IntPtr.Zero);
- }
-
- internal override void RemoveAppEventCallback(IntPtr handle)
- {
- Interop.Service.RemoveEventHandler(handle);
- }
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the License);
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an AS IS BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-using System;
-
-using Tizen.Internals.Errors;
-
-namespace Tizen.Applications.CoreBackend
-{
- internal class UICoreBackend : DefaultCoreBackend
- {
- private Interop.Application.UIAppLifecycleCallbacks _callbacks;
-
- public UICoreBackend()
- {
- _callbacks.OnCreate = new Interop.Application.AppCreateCallback(OnCreateNative);
- _callbacks.OnTerminate = new Interop.Application.AppTerminateCallback(OnTerminateNative);
- _callbacks.OnAppControl = new Interop.Application.AppControlCallback(OnAppControlNative);
- _callbacks.OnResume = new Interop.Application.AppResumeCallback(OnResumeNative);
- _callbacks.OnPause = new Interop.Application.AppPauseCallback(OnPauseNative);
- }
-
- public override void Exit()
- {
- Interop.Application.Exit();
- }
-
- public override void Run(string[] args)
- {
- base.Run(args);
-
- ErrorCode err = Interop.Application.Main(args.Length, args, ref _callbacks, IntPtr.Zero);
- if (err != ErrorCode.None)
- {
- Log.Error(LogTag, "Failed to run the application. Err = " + err);
- }
- }
-
- private bool OnCreateNative(IntPtr data)
- {
- if (_handlers.ContainsKey(EventType.PreCreated))
- {
- var handler = _handlers[EventType.PreCreated] as Action;
- handler?.Invoke();
- }
-
- if (_handlers.ContainsKey(EventType.Created))
- {
- var handler = _handlers[EventType.Created] as Action;
- handler?.Invoke();
- }
- return true;
- }
-
- private void OnTerminateNative(IntPtr data)
- {
- if (_handlers.ContainsKey(EventType.Terminated))
- {
- var handler = _handlers[EventType.Terminated] as Action;
- handler?.Invoke();
- }
- }
-
- private void OnAppControlNative(IntPtr appControlHandle, IntPtr data)
- {
- if (_handlers.ContainsKey(EventType.AppControlReceived))
- {
- // Create a SafeAppControlHandle but the ownsHandle is false,
- // because the appControlHandle will be closed by native appfw after this method automatically.
- SafeAppControlHandle safeHandle = new SafeAppControlHandle(appControlHandle, false);
-
- var handler = _handlers[EventType.AppControlReceived] as Action<AppControlReceivedEventArgs>;
- handler?.Invoke(new AppControlReceivedEventArgs(new ReceivedAppControl(safeHandle)));
- }
- }
-
- private void OnResumeNative(IntPtr data)
- {
- if (_handlers.ContainsKey(EventType.Resumed))
- {
- var handler = _handlers[EventType.Resumed] as Action;
- handler?.Invoke();
- }
- }
-
- private void OnPauseNative(IntPtr data)
- {
- if (_handlers.ContainsKey(EventType.Paused))
- {
- var handler = _handlers[EventType.Paused] as Action;
- handler?.Invoke();
- }
- }
-
- internal override ErrorCode AddAppEventCallback(out IntPtr handle, Interop.AppCommon.AppEventType type, Interop.AppCommon.AppEventCallback callback)
- {
- return Interop.Application.AddEventHandler(out handle, type, callback, IntPtr.Zero);
- }
-
- internal override void RemoveAppEventCallback(IntPtr handle)
- {
- Interop.Application.RemoveEventHandler(handle);
- }
- }
-}
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProjectGuid>{9ACB2B86-BBEA-4FAA-880A-1977AB461C51}</ProjectGuid>
+ <ProjectGuid>{4847B13C-1A03-4347-83CD-EA4B5C9655A4}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
- <Compile Include="Interop\Interop.AppCommon.cs" />
- <Compile Include="Interop\Interop.AppControl.cs" />
- <Compile Include="Interop\Interop.Application.cs" />
- <Compile Include="Interop\Interop.ApplicationManager.cs" />
- <Compile Include="Interop\Interop.Bundle.cs" />
- <Compile Include="Interop\Interop.Glib.cs" />
- <Compile Include="Interop\Interop.Libc.cs" />
- <Compile Include="Interop\Interop.Libraries.cs" />
- <Compile Include="Interop\Interop.MessagePort.cs" />
- <Compile Include="Interop\Interop.Notification.cs" />
- <Compile Include="Interop\Interop.Package.cs" />
- <Compile Include="Interop\Interop.PackageManager.cs" />
- <Compile Include="Interop\Interop.Preference.cs" />
- <Compile Include="Interop\Interop.Service.cs" />
- <Compile Include="Interop\Interop.Alarm.cs" />
- <Compile Include="Properties\AssemblyInfo.cs" />
- <Compile Include="Tizen.Applications.CoreBackend\EventType.cs" />
- <Compile Include="Tizen.Applications.CoreBackend\DefaultCoreBackend.cs" />
- <Compile Include="Tizen.Applications.CoreBackend\ICoreBackend.cs" />
- <Compile Include="Tizen.Applications.CoreBackend\ServiceCoreBackend.cs" />
- <Compile Include="Tizen.Applications.CoreBackend\UICoreBackend.cs" />
- <Compile Include="Tizen.Applications\ApplicationInfoMetadataFilter.cs" />
- <Compile Include="Tizen.Applications.Messages\MessagePort.cs" />
- <Compile Include="Tizen.Applications.Messages\MessagePortErrorFactory.cs" />
- <Compile Include="Tizen.Applications.Messages\MessageReceivedEventArgs.cs" />
- <Compile Include="Tizen.Applications.Messages\RemoteValues.cs" />
- <Compile Include="Tizen.Applications\AppControlReceivedEventArgs.cs" />
- <Compile Include="Tizen.Applications\AppControlReplyCallback.cs" />
- <Compile Include="Tizen.Applications\ApplicationTerminatedEventArgs.cs" />
- <Compile Include="Tizen.Applications\ApplicationType.cs" />
- <Compile Include="Tizen.Applications\CertificateType.cs" />
- <Compile Include="Tizen.Applications\CoreApplication.cs" />
- <Compile Include="Tizen.Applications\CoreUIApplication.cs" />
- <Compile Include="Tizen.Applications\DirectoryInfo.cs" />
- <Compile Include="Tizen.Applications\PackageEventState.cs" />
- <Compile Include="Tizen.Applications\LocaleChangedEventArgs.cs" />
- <Compile Include="Tizen.Applications\LowBatteryEventArgs.cs" />
- <Compile Include="Tizen.Applications\LowBatteryStatus.cs" />
- <Compile Include="Tizen.Applications\LowMemoryEventArgs.cs" />
- <Compile Include="Tizen.Applications\LowMemoryStatus.cs" />
- <Compile Include="Tizen.Applications\Package.cs" />
- <Compile Include="Tizen.Applications\PackageCertificate.cs" />
- <Compile Include="Tizen.Applications\PackageFilter.cs" />
- <Compile Include="Tizen.Applications\PackageManager.cs" />
- <Compile Include="Tizen.Applications\PackageManagerEventArgs.cs" />
- <Compile Include="Tizen.Applications\PackageSizeInformation.cs" />
- <Compile Include="Tizen.Applications\PackageType.cs" />
- <Compile Include="Tizen.Applications\Preference.cs" />
- <Compile Include="Tizen.Applications\PreferenceChangedEventArgs.cs" />
- <Compile Include="Tizen.Applications\ReceivedAppControl.cs" />
- <Compile Include="Tizen.Applications\RegionFormatChangedEventArgs.cs" />
- <Compile Include="Tizen.Applications\SafeAppControlHandle.cs" />
- <Compile Include="Tizen.Applications\SafeBundleHandle.cs" />
- <Compile Include="Tizen.Applications\SafePackageManagerHandle.cs" />
- <Compile Include="Tizen.Applications\ServiceApplication.cs" />
- <Compile Include="Tizen.Applications\StorageType.cs" />
- <Compile Include="Tizen.Applications\ApplicationLaunchedEventArgs.cs" />
- <Compile Include="Tizen.Applications\ApplicationManager.cs" />
- <Compile Include="Tizen.Applications\ApplicationInfoFilter.cs" />
- <Compile Include="Tizen.Applications\ApplicationInfo.cs" />
- <Compile Include="Tizen.Applications\AppControl.cs" />
- <Compile Include="Tizen.Applications\AppControlLaunchMode.cs" />
- <Compile Include="Tizen.Applications\AppControlReplyResult.cs" />
- <Compile Include="Tizen.Applications\AppControlOperations.cs" />
- <Compile Include="Tizen.Applications\Application.cs" />
- <Compile Include="Tizen.Applications\Bundle.cs" />
- <Compile Include="Tizen.Applications\EventNotification.cs" />
- <Compile Include="Tizen.Applications\Notification.cs" />
- <Compile Include="Tizen.Applications\NotificationEnumerations.cs" />
- <Compile Include="Tizen.Applications\NotificationErrorFactory.cs" />
- <Compile Include="Tizen.Applications\NotificationManager.cs" />
- <Compile Include="Tizen.Applications\ProgressNotification.cs" />
- <Compile Include="Tizen.Applications\TizenSynchronizationContext.cs" />
- <Compile Include="Tizen.Applications\Alarm.cs" />
- <Compile Include="Tizen.Applications\AlarmErrorFactory.cs" />
- <Compile Include="Tizen.Applications\AlarmManager.cs" />
+ <Compile Include="../Tizen.Applications.Alarm/Tizen.Applications/Alarm.cs" />
+ <Compile Include="../Tizen.Applications.Alarm/Tizen.Applications/AlarmErrorFactory.cs" />
+ <Compile Include="../Tizen.Applications.Alarm/Tizen.Applications/AlarmManager.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/AppControl.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/AppControlData.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/AppControlLaunchMode.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/AppControlOperations.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/AppControlReceivedEventArgs.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/AppControlReplyCallback.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/AppControlReplyResult.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/Application.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/ApplicationInfo.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/ApplicationInfoFilter.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/ApplicationInfoMetadataFilter.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/ApplicationLaunchedEventArgs.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/ApplicationManager.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/ApplicationTerminatedEventArgs.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/ApplicationType.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/Bundle.cs" />
+ <Compile Include="../Tizen.Applications.PackageManager/Tizen.Applications/CertificateType.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/CoreApplication.cs" />
+ <Compile Include="../Tizen.Applications.UI/Tizen.Applications/CoreUIApplication.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications.CoreBackend/DefaultCoreBackend.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/DirectoryInfo.cs" />
+ <Compile Include="../Tizen.Applications.Notification/Tizen.Applications/EventNotification.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications.CoreBackend/EventType.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications.CoreBackend/ICoreBackend.cs" />
+ <Compile Include="../Tizen.Applications.Alarm/Interop/Interop.Alarm.cs" />
+ <Compile Include="../Tizen.Applications.Common/Interop/Interop.AppCommon.cs" />
+ <Compile Include="../Tizen.Applications.Common/Interop/Interop.AppControl.cs" />
+ <Compile Include="../Tizen.Applications.UI/Interop/Interop.Application.cs" />
+ <Compile Include="../Tizen.Applications.Common/Interop/Interop.ApplicationManager.cs" />
+ <Compile Include="../Tizen.Applications.Common/Interop/Interop.Bundle.cs" />
+ <Compile Include="../Tizen.Applications.Common/Interop/Interop.Glib.cs" />
+ <Compile Include="../Tizen.Applications.Common/Interop/Interop.Libc.cs" />
+ <Compile Include="./Interop/Interop.Libraries.cs" />
+ <Compile Include="../Tizen.Applications.MessagePort/Interop/Interop.MessagePort.cs" />
+ <Compile Include="../Tizen.Applications.Notification/Interop/Interop.Notification.cs" />
+ <Compile Include="../Tizen.Applications.PackageManager/Interop/Interop.Package.cs" />
+ <Compile Include="../Tizen.Applications.PackageManager/Interop/Interop.PackageManager.cs" />
+ <Compile Include="../Tizen.Applications.Preference/Interop/Interop.Preference.cs" />
+ <Compile Include="../Tizen.Applications.Service/Interop/Interop.Service.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/LocaleChangedEventArgs.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/LowBatteryEventArgs.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/LowBatteryStatus.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/LowMemoryEventArgs.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/LowMemoryStatus.cs" />
+ <Compile Include="../Tizen.Applications.MessagePort/Tizen.Applications.Messages/MessagePort.cs" />
+ <Compile Include="../Tizen.Applications.MessagePort/Tizen.Applications.Messages/MessagePortErrorFactory.cs" />
+ <Compile Include="../Tizen.Applications.MessagePort/Tizen.Applications.Messages/MessageReceivedEventArgs.cs" />
+ <Compile Include="../Tizen.Applications.Notification/Tizen.Applications/Notification.cs" />
+ <Compile Include="../Tizen.Applications.Notification/Tizen.Applications/NotificationEnumerations.cs" />
+ <Compile Include="../Tizen.Applications.Notification/Tizen.Applications/NotificationErrorFactory.cs" />
+ <Compile Include="../Tizen.Applications.Notification/Tizen.Applications/NotificationManager.cs" />
+ <Compile Include="../Tizen.Applications.PackageManager/Tizen.Applications/Package.cs" />
+ <Compile Include="../Tizen.Applications.PackageManager/Tizen.Applications/PackageCertificate.cs" />
+ <Compile Include="../Tizen.Applications.PackageManager/Tizen.Applications/PackageEventState.cs" />
+ <Compile Include="../Tizen.Applications.PackageManager/Tizen.Applications/PackageFilter.cs" />
+ <Compile Include="../Tizen.Applications.PackageManager/Tizen.Applications/PackageManager.cs" />
+ <Compile Include="../Tizen.Applications.PackageManager/Tizen.Applications/PackageManagerEventArgs.cs" />
+ <Compile Include="../Tizen.Applications.PackageManager/Tizen.Applications/PackageSizeInformation.cs" />
+ <Compile Include="../Tizen.Applications.PackageManager/Tizen.Applications/PackageType.cs" />
+ <Compile Include="../Tizen.Applications.Preference/Tizen.Applications/Preference.cs" />
+ <Compile Include="../Tizen.Applications.Preference/Tizen.Applications/PreferenceChangedEventArgs.cs" />
+ <Compile Include="../Tizen.Applications.Notification/Tizen.Applications/ProgressNotification.cs" />
+ <Compile Include="./Properties\AssemblyInfo.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/ReceivedAppControl.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/RegionFormatChangedEventArgs.cs" />
+ <Compile Include="../Tizen.Applications.MessagePort/Tizen.Applications.Messages/RemoteValues.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/SafeAppControlHandle.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/SafeBundleHandle.cs" />
+ <Compile Include="../Tizen.Applications.PackageManager/Tizen.Applications/SafePackageManagerHandle.cs" />
+ <Compile Include="../Tizen.Applications.Service/Tizen.Applications/ServiceApplication.cs" />
+ <Compile Include="../Tizen.Applications.Service/Tizen.Applications.CoreBackend/ServiceCoreBackend.cs" />
+ <Compile Include="../Tizen.Applications.PackageManager/Tizen.Applications/StorageType.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/TizenSynchronizationContext.cs" />
+ <Compile Include="../Tizen.Applications.UI/Tizen.Applications.CoreBackend/UICoreBackend.cs" />
</ItemGroup>
<ItemGroup>
<None Include="Tizen.Applications.Net45.project.json" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProjectGuid>{663C5A3D-E631-4987-AEE7-F498C56A40FC}</ProjectGuid>
+ <ProjectGuid>{6209641F-4B03-4DAD-84D8-4775AD72AD75}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>
<AssemblyOriginatorKeyFile>Tizen.Applications.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
- <Compile Include="Interop\Interop.AppCommon.cs" />
- <Compile Include="Interop\Interop.AppControl.cs" />
- <Compile Include="Interop\Interop.Application.cs" />
- <Compile Include="Interop\Interop.ApplicationManager.cs" />
- <Compile Include="Interop\Interop.Bundle.cs" />
- <Compile Include="Interop\Interop.Glib.cs" />
- <Compile Include="Interop\Interop.Libc.cs" />
- <Compile Include="Interop\Interop.Libraries.cs" />
- <Compile Include="Interop\Interop.MessagePort.cs" />
- <Compile Include="Interop\Interop.Notification.cs" />
- <Compile Include="Interop\Interop.Package.cs" />
- <Compile Include="Interop\Interop.PackageManager.cs" />
- <Compile Include="Interop\Interop.Preference.cs" />
- <Compile Include="Interop\Interop.Service.cs" />
- <Compile Include="Interop\Interop.Alarm.cs" />
- <Compile Include="Properties\AssemblyInfo.cs" />
- <Compile Include="Tizen.Applications.CoreBackend\EventType.cs" />
- <Compile Include="Tizen.Applications.CoreBackend\DefaultCoreBackend.cs" />
- <Compile Include="Tizen.Applications.CoreBackend\ICoreBackend.cs" />
- <Compile Include="Tizen.Applications.CoreBackend\ServiceCoreBackend.cs" />
- <Compile Include="Tizen.Applications.CoreBackend\UICoreBackend.cs" />
- <Compile Include="Tizen.Applications\ApplicationInfoMetadataFilter.cs" />
- <Compile Include="Tizen.Applications.Messages\MessagePort.cs" />
- <Compile Include="Tizen.Applications.Messages\MessagePortErrorFactory.cs" />
- <Compile Include="Tizen.Applications.Messages\MessageReceivedEventArgs.cs" />
- <Compile Include="Tizen.Applications.Messages\RemoteValues.cs" />
- <Compile Include="Tizen.Applications\AppControlReceivedEventArgs.cs" />
- <Compile Include="Tizen.Applications\AppControlReplyCallback.cs" />
- <Compile Include="Tizen.Applications\ApplicationTerminatedEventArgs.cs" />
- <Compile Include="Tizen.Applications\ApplicationType.cs" />
- <Compile Include="Tizen.Applications\CertificateType.cs" />
- <Compile Include="Tizen.Applications\CoreApplication.cs" />
- <Compile Include="Tizen.Applications\CoreUIApplication.cs" />
- <Compile Include="Tizen.Applications\DirectoryInfo.cs" />
- <Compile Include="Tizen.Applications\PackageEventState.cs" />
- <Compile Include="Tizen.Applications\LocaleChangedEventArgs.cs" />
- <Compile Include="Tizen.Applications\LowBatteryEventArgs.cs" />
- <Compile Include="Tizen.Applications\LowBatteryStatus.cs" />
- <Compile Include="Tizen.Applications\LowMemoryEventArgs.cs" />
- <Compile Include="Tizen.Applications\LowMemoryStatus.cs" />
- <Compile Include="Tizen.Applications\Package.cs" />
- <Compile Include="Tizen.Applications\PackageCertificate.cs" />
- <Compile Include="Tizen.Applications\PackageFilter.cs" />
- <Compile Include="Tizen.Applications\PackageManager.cs" />
- <Compile Include="Tizen.Applications\PackageManagerEventArgs.cs" />
- <Compile Include="Tizen.Applications\PackageSizeInformation.cs" />
- <Compile Include="Tizen.Applications\PackageType.cs" />
- <Compile Include="Tizen.Applications\PreferenceChangedEventArgs.cs" />
- <Compile Include="Tizen.Applications\Preference.cs" />
- <Compile Include="Tizen.Applications\ReceivedAppControl.cs" />
- <Compile Include="Tizen.Applications\RegionFormatChangedEventArgs.cs" />
- <Compile Include="Tizen.Applications\SafeAppControlHandle.cs" />
- <Compile Include="Tizen.Applications\SafeBundleHandle.cs" />
- <Compile Include="Tizen.Applications\SafePackageManagerHandle.cs" />
- <Compile Include="Tizen.Applications\ServiceApplication.cs" />
- <Compile Include="Tizen.Applications\StorageType.cs" />
- <Compile Include="Tizen.Applications\ApplicationLaunchedEventArgs.cs" />
- <Compile Include="Tizen.Applications\ApplicationManager.cs" />
- <Compile Include="Tizen.Applications\ApplicationInfoFilter.cs" />
- <Compile Include="Tizen.Applications\ApplicationInfo.cs" />
- <Compile Include="Tizen.Applications\AppControl.cs" />
- <Compile Include="Tizen.Applications\AppControlLaunchMode.cs" />
- <Compile Include="Tizen.Applications\AppControlReplyResult.cs" />
- <Compile Include="Tizen.Applications\AppControlOperations.cs" />
- <Compile Include="Tizen.Applications\Application.cs" />
- <Compile Include="Tizen.Applications\Bundle.cs" />
- <Compile Include="Tizen.Applications\EventNotification.cs" />
- <Compile Include="Tizen.Applications\Notification.cs" />
- <Compile Include="Tizen.Applications\NotificationEnumerations.cs" />
- <Compile Include="Tizen.Applications\NotificationErrorFactory.cs" />
- <Compile Include="Tizen.Applications\NotificationManager.cs" />
- <Compile Include="Tizen.Applications\ProgressNotification.cs" />
- <Compile Include="Tizen.Applications\TizenSynchronizationContext.cs" />
- <Compile Include="Tizen.Applications\Alarm.cs" />
- <Compile Include="Tizen.Applications\AlarmErrorFactory.cs" />
- <Compile Include="Tizen.Applications\AlarmManager.cs" />
+ <Compile Include="../Tizen.Applications.Alarm/Tizen.Applications/Alarm.cs" />
+ <Compile Include="../Tizen.Applications.Alarm/Tizen.Applications/AlarmErrorFactory.cs" />
+ <Compile Include="../Tizen.Applications.Alarm/Tizen.Applications/AlarmManager.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/AppControl.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/AppControlData.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/AppControlLaunchMode.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/AppControlOperations.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/AppControlReceivedEventArgs.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/AppControlReplyCallback.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/AppControlReplyResult.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/Application.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/ApplicationInfo.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/ApplicationInfoFilter.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/ApplicationInfoMetadataFilter.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/ApplicationLaunchedEventArgs.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/ApplicationManager.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/ApplicationTerminatedEventArgs.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/ApplicationType.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/Bundle.cs" />
+ <Compile Include="../Tizen.Applications.PackageManager/Tizen.Applications/CertificateType.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/CoreApplication.cs" />
+ <Compile Include="../Tizen.Applications.UI/Tizen.Applications/CoreUIApplication.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications.CoreBackend/DefaultCoreBackend.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/DirectoryInfo.cs" />
+ <Compile Include="../Tizen.Applications.Notification/Tizen.Applications/EventNotification.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications.CoreBackend/EventType.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications.CoreBackend/ICoreBackend.cs" />
+ <Compile Include="../Tizen.Applications.Alarm/Interop/Interop.Alarm.cs" />
+ <Compile Include="../Tizen.Applications.Common/Interop/Interop.AppCommon.cs" />
+ <Compile Include="../Tizen.Applications.Common/Interop/Interop.AppControl.cs" />
+ <Compile Include="../Tizen.Applications.UI/Interop/Interop.Application.cs" />
+ <Compile Include="../Tizen.Applications.Common/Interop/Interop.ApplicationManager.cs" />
+ <Compile Include="../Tizen.Applications.Common/Interop/Interop.Bundle.cs" />
+ <Compile Include="../Tizen.Applications.Common/Interop/Interop.Glib.cs" />
+ <Compile Include="../Tizen.Applications.Common/Interop/Interop.Libc.cs" />
+ <Compile Include="./Interop/Interop.Libraries.cs" />
+ <Compile Include="../Tizen.Applications.MessagePort/Interop/Interop.MessagePort.cs" />
+ <Compile Include="../Tizen.Applications.Notification/Interop/Interop.Notification.cs" />
+ <Compile Include="../Tizen.Applications.PackageManager/Interop/Interop.Package.cs" />
+ <Compile Include="../Tizen.Applications.PackageManager/Interop/Interop.PackageManager.cs" />
+ <Compile Include="../Tizen.Applications.Preference/Interop/Interop.Preference.cs" />
+ <Compile Include="../Tizen.Applications.Service/Interop/Interop.Service.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/LocaleChangedEventArgs.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/LowBatteryEventArgs.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/LowBatteryStatus.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/LowMemoryEventArgs.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/LowMemoryStatus.cs" />
+ <Compile Include="../Tizen.Applications.MessagePort/Tizen.Applications.Messages/MessagePort.cs" />
+ <Compile Include="../Tizen.Applications.MessagePort/Tizen.Applications.Messages/MessagePortErrorFactory.cs" />
+ <Compile Include="../Tizen.Applications.MessagePort/Tizen.Applications.Messages/MessageReceivedEventArgs.cs" />
+ <Compile Include="../Tizen.Applications.Notification/Tizen.Applications/Notification.cs" />
+ <Compile Include="../Tizen.Applications.Notification/Tizen.Applications/NotificationEnumerations.cs" />
+ <Compile Include="../Tizen.Applications.Notification/Tizen.Applications/NotificationErrorFactory.cs" />
+ <Compile Include="../Tizen.Applications.Notification/Tizen.Applications/NotificationManager.cs" />
+ <Compile Include="../Tizen.Applications.PackageManager/Tizen.Applications/Package.cs" />
+ <Compile Include="../Tizen.Applications.PackageManager/Tizen.Applications/PackageCertificate.cs" />
+ <Compile Include="../Tizen.Applications.PackageManager/Tizen.Applications/PackageEventState.cs" />
+ <Compile Include="../Tizen.Applications.PackageManager/Tizen.Applications/PackageFilter.cs" />
+ <Compile Include="../Tizen.Applications.PackageManager/Tizen.Applications/PackageManager.cs" />
+ <Compile Include="../Tizen.Applications.PackageManager/Tizen.Applications/PackageManagerEventArgs.cs" />
+ <Compile Include="../Tizen.Applications.PackageManager/Tizen.Applications/PackageSizeInformation.cs" />
+ <Compile Include="../Tizen.Applications.PackageManager/Tizen.Applications/PackageType.cs" />
+ <Compile Include="../Tizen.Applications.Preference/Tizen.Applications/Preference.cs" />
+ <Compile Include="../Tizen.Applications.Preference/Tizen.Applications/PreferenceChangedEventArgs.cs" />
+ <Compile Include="../Tizen.Applications.Notification/Tizen.Applications/ProgressNotification.cs" />
+ <Compile Include="./Properties\AssemblyInfo.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/ReceivedAppControl.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/RegionFormatChangedEventArgs.cs" />
+ <Compile Include="../Tizen.Applications.MessagePort/Tizen.Applications.Messages/RemoteValues.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/SafeAppControlHandle.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/SafeBundleHandle.cs" />
+ <Compile Include="../Tizen.Applications.PackageManager/Tizen.Applications/SafePackageManagerHandle.cs" />
+ <Compile Include="../Tizen.Applications.Service/Tizen.Applications/ServiceApplication.cs" />
+ <Compile Include="../Tizen.Applications.Service/Tizen.Applications.CoreBackend/ServiceCoreBackend.cs" />
+ <Compile Include="../Tizen.Applications.PackageManager/Tizen.Applications/StorageType.cs" />
+ <Compile Include="../Tizen.Applications.Common/Tizen.Applications/TizenSynchronizationContext.cs" />
+ <Compile Include="../Tizen.Applications.UI/Tizen.Applications.CoreBackend/UICoreBackend.cs" />
</ItemGroup>
<ItemGroup>
<None Include="Tizen.Applications.project.json" />
Name: csapi-application
Summary: Tizen Application API for C#
-Version: 1.1.0
+Version: 1.2.0
Release: 1
Group: Development/Libraries
License: Apache-2.0
# C# API Requires
BuildRequires: csapi-tizen-nuget
-%define Assemblies Tizen.Applications
+%define Assemblies Tizen.Applications.Common Tizen.Applications.MessagePort Tizen.Applications.Service Tizen.Applications.PackageManager Tizen.Applications.Notification Tizen.Applications.Preference Tizen.Applications.Alarm Tizen.Applications.UI Tizen.Applications
%description
%{summary}
%dotnet_import_sub_packages
+%package -n csapi-application-common
+Summary: An Application Common library in Tizen C# API
+Group: Development/Libraries
+AutoReqProv: no
+ExcludeArch: aarch64
+
+%description -n csapi-application-common
+An Application Common library in Tizen C# API package.
+
+%package -n csapi-application-common-nuget
+Summary: An Application Common library in Tizen C# API
+Group: Development/Libraries
+
+%description -n csapi-application-common-nuget
+An Application Common library in Tizen C# API package.
+
+%package -n csapi-application-message-port
+Summary: An Application IPC library in Tizen C# API
+Group: Development/Libraries
+AutoReqProv: no
+ExcludeArch: aarch64
+
+%description -n csapi-application-message-port
+An Application IPC library in Tizen C# API package.
+
+%package -n csapi-application-message-port-nuget
+Summary: An Application IPC library in Tizen C# API
+Group: Development/Libraries
+
+%description -n csapi-application-message-port-nuget
+An Application IPC library in Tizen C# API package.
+
+%package -n csapi-application-package-manager
+Summary: A package library in Tizen C# API
+Group: Development/Libraries
+AutoReqProv: no
+ExcludeArch: aarch64
+
+%description -n csapi-application-package-manager
+A package library in Tizen C# API package.
+
+%package -n csapi-application-package-manager-nuget
+Summary: A package library in Tizen C# API
+Group: Development/Libraries
+
+%description -n csapi-application-package-manager-nuget
+A package library in Tizen C# API package.
+
+%package -n csapi-application-notification
+Summary: A notification library in Tizen C# API
+Group: Development/Libraries
+AutoReqProv: no
+ExcludeArch: aarch64
+
+%description -n csapi-application-notification
+A notification library in Tizen C# API package.
+
+%package -n csapi-application-notification-nuget
+Summary: A notification library in Tizen C# API
+Group: Development/Libraries
+
+%description -n csapi-application-notification-nuget
+A notification library in Tizen C# API package.
+
+%package -n csapi-application-preference
+Summary: A preference library in Tizen C# API
+Group: Development/Libraries
+AutoReqProv: no
+ExcludeArch: aarch64
+
+%description -n csapi-application-preference
+A preference library in Tizen C# API package.
+
+%package -n csapi-application-preference-nuget
+Summary: A preference library in Tizen C# API
+Group: Development/Libraries
+
+%description -n csapi-application-preference-nuget
+A preference library in Tizen C# API package.
+
+%package -n csapi-application-alarm
+Summary: An alarm library in Tizen C# API
+Group: Development/Libraries
+AutoReqProv: no
+ExcludeArch: aarch64
+
+%description -n csapi-application-alarm
+An alarm library in Tizen C# API package.
+
+%package -n csapi-application-alarm-nuget
+Summary: An alarm library in Tizen C# API
+Group: Development/Libraries
+
+%description -n csapi-application-alarm-nuget
+An alarm library in Tizen C# API package.
+
+%package -n csapi-application-service
+Summary: A service application library in Tizen C# API
+Group: Development/Libraries
+AutoReqProv: no
+ExcludeArch: aarch64
+
+%description -n csapi-application-service
+A service application library in Tizen C# API package.
+
+%package -n csapi-application-service-nuget
+Summary: A service application library in Tizen C# API
+Group: Development/Libraries
+
+%description -n csapi-application-service-nuget
+A service application library in Tizen C# API package.
+
+%package -n csapi-application-ui
+Summary: An ui application library in Tizen C# API
+Group: Development/Libraries
+AutoReqProv: no
+ExcludeArch: aarch64
+
+%description -n csapi-application-ui
+An ui application library in Tizen C# API package.
+
+%package -n csapi-application-ui-nuget
+Summary: An ui application library in Tizen C# API
+Group: Development/Libraries
+
+%description -n csapi-application-ui-nuget
+An ui application library in Tizen C# API package.
+
%prep
%setup -q
cp %{SOURCE1} .
%build
+SOURCES="/nuget;$(readlink -f .nuget)"
+
+for ASM in %{Assemblies}; do
+%dotnet_restore $ASM "-Source $SOURCES"
+done
+
+%dotnet_build Tizen.Applications.sln
+
for ASM in %{Assemblies}; do
-%dotnet_build $ASM
%dotnet_pack $ASM/$ASM.nuspec %{version}
done
%dotnet_install $ASM
done
+%files -n csapi-application-common
+%manifest %{name}.manifest
+%license LICENSE
+%attr(644,root,root) %{_dotnet_assembly_path}/Tizen.Applications.Common.dll
+
+%files -n csapi-application-common-nuget
+/nuget/Tizen.Applications.Common*.nupkg
+
+%files -n csapi-application-message-port
+%manifest %{name}.manifest
+%license LICENSE
+%attr(644,root,root) %{_dotnet_assembly_path}/Tizen.Applications.MessagePort.dll
+
+%files -n csapi-application-message-port-nuget
+/nuget/Tizen.Applications.MessagePort*.nupkg
+
+%files -n csapi-application-package-manager
+%manifest %{name}.manifest
+%license LICENSE
+%attr(644,root,root) %{_dotnet_assembly_path}/Tizen.Applications.PackageManager.dll
+
+%files -n csapi-application-package-manager-nuget
+/nuget/Tizen.Applications.PackageManager*.nupkg
+
+%files -n csapi-application-notification
+%manifest %{name}.manifest
+%license LICENSE
+%attr(644,root,root) %{_dotnet_assembly_path}/Tizen.Applications.Notification.dll
+
+%files -n csapi-application-notification-nuget
+/nuget/Tizen.Applications.Notification*.nupkg
+
+%files -n csapi-application-preference
+%manifest %{name}.manifest
+%license LICENSE
+%attr(644,root,root) %{_dotnet_assembly_path}/Tizen.Applications.Preference.dll
+
+%files -n csapi-application-preference-nuget
+/nuget/Tizen.Applications.Preference*.nupkg
+
+%files -n csapi-application-alarm
+%manifest %{name}.manifest
+%license LICENSE
+%attr(644,root,root) %{_dotnet_assembly_path}/Tizen.Applications.Alarm.dll
+
+%files -n csapi-application-alarm-nuget
+/nuget/Tizen.Applications.Alarm*.nupkg
+
+%files -n csapi-application-service
+%manifest %{name}.manifest
+%license LICENSE
+%attr(644,root,root) %{_dotnet_assembly_path}/Tizen.Applications.Service.dll
+
+%files -n csapi-application-service-nuget
+/nuget/Tizen.Applications.Service*.nupkg
+
+%files -n csapi-application-ui
+%manifest %{name}.manifest
+%license LICENSE
+%attr(644,root,root) %{_dotnet_assembly_path}/Tizen.Applications.UI.dll
+
+%files -n csapi-application-ui-nuget
+/nuget/Tizen.Applications.UI*.nupkg
+
%files
%manifest %{name}.manifest
%license LICENSE
-%attr(644,root,root) %{dotnet_assembly_files}
+%attr(644,root,root) %{_dotnet_assembly_path}/Tizen.Applications.dll
+
+
--- /dev/null
+/*
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+internal static partial class Interop
+{
+ internal static partial class Libraries
+ {
+ public const string Alarm = "libcapi-appfw-alarm.so.0";
+ }
+}
--- /dev/null
+using System;
+using System.Reflection;
+using System.Runtime.InteropServices;
+
+[assembly: AssemblyTitle("Tizen.Applications.Alarm")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Samsung Electronics")]
+[assembly: AssemblyProduct("Tizen.Applications")]
+[assembly: AssemblyCopyright("Copyright (c) 2015 Samsung Electronics Co., Ltd")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+[assembly: ComVisible(false)]
+[assembly: CLSCompliant(true)]
+
+[assembly: Guid("d2d1a3ce-000e-4ab3-81c4-a8a44a008989")]
+
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProjectGuid>{98B68263-8F05-486B-A670-3F5DA1352424}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>
+ </RootNamespace>
+ <AssemblyName>Tizen.Applications.Alarm</AssemblyName>
+ <FileAlignment>512</FileAlignment>
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Debug\Net45\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\Net45\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ </PropertyGroup>
+ <PropertyGroup>
+ <SignAssembly>true</SignAssembly>
+ </PropertyGroup>
+ <PropertyGroup>
+ <AssemblyOriginatorKeyFile>Tizen.Applications.Alarm.snk</AssemblyOriginatorKeyFile>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Net.Http" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Interop\Interop.Libraries.cs" />
+ <Compile Include="Interop\Interop.Alarm.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="Tizen.Applications\Alarm.cs" />
+ <Compile Include="Tizen.Applications\AlarmErrorFactory.cs" />
+ <Compile Include="Tizen.Applications\AlarmManager.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="Tizen.Applications.Alarm.Net45.project.json" />
+ <None Include="Tizen.Applications.Alarm.snk" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\Tizen.Applications.Common\Tizen.Applications.Common.Net45.csproj">
+ <Project>{9acb2b86-bbea-4faa-880a-1977ab461c51}</Project>
+ <Name>Tizen.Applications.Common.Net45</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- 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>
+ -->
+</Project>
\ No newline at end of file
--- /dev/null
+{
+ "dependencies": {
+ "Tizen": "1.0.2"
+ },
+ "frameworks": {
+ "net45": {}
+ },
+ "runtimes": {
+ "win": {}
+ }
+}
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProjectGuid>{28347C57-6413-46C6-9548-75FDA519E07C}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>
+ </RootNamespace>
+ <AssemblyName>Tizen.Applications.Alarm</AssemblyName>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup>
+ <TargetFrameworkIdentifier>.NETStandard</TargetFrameworkIdentifier>
+ <TargetFrameworkVersion>v1.3</TargetFrameworkVersion>
+ <NuGetTargetMoniker>.NETStandard,Version=v1.3</NuGetTargetMoniker>
+ <AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
+ <NoStdLib>true</NoStdLib>
+ <NoWarn>$(NoWarn);1701;1702</NoWarn>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ </PropertyGroup>
+ <PropertyGroup>
+ <SignAssembly>true</SignAssembly>
+ </PropertyGroup>
+ <PropertyGroup>
+ <AssemblyOriginatorKeyFile>Tizen.Applications.Alarm.snk</AssemblyOriginatorKeyFile>
+ </PropertyGroup>
+ <ItemGroup>
+ <Compile Include="Interop\Interop.Libraries.cs" />
+ <Compile Include="Interop\Interop.Alarm.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="Tizen.Applications\Alarm.cs" />
+ <Compile Include="Tizen.Applications\AlarmErrorFactory.cs" />
+ <Compile Include="Tizen.Applications\AlarmManager.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="Tizen.Applications.Alarm.project.json" />
+ <None Include="Tizen.Applications.Alarm.snk" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\Tizen.Applications.Common\Tizen.Applications.Common.csproj">
+ <Project>{663c5a3d-e631-4987-aee7-f498c56a40fc}</Project>
+ <Name>Tizen.Applications.Common</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- 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>
+ -->
+ <PropertyGroup>
+ <!-- https://github.com/dotnet/corefxlab/tree/master/samples/NetCoreSample and
+ https://docs.microsoft.com/en-us/dotnet/articles/core/tutorials/target-dotnetcore-with-msbuild
+ -->
+ <!-- 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).
+ -->
+ <_TargetFrameworkDirectories>$(MSBuildThisFileDirectory)</_TargetFrameworkDirectories>
+ <_FullFrameworkReferenceAssemblyPaths>$(MSBuildThisFileDirectory)</_FullFrameworkReferenceAssemblyPaths>
+ <AutoUnifyAssemblyReferences>true</AutoUnifyAssemblyReferences>
+ </PropertyGroup>
+</Project>
\ No newline at end of file
--- /dev/null
+<?xml version="1.0"?>
+<package>
+ <metadata>
+ <id>Tizen.Applications.Alarm</id>
+ <version>$version$</version>
+ <authors>Samsung Electronics</authors>
+ <requireLicenseAcceptance>false</requireLicenseAcceptance>
+ <licenseUrl>https://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
+ <projectUrl>https://www.tizen.org/</projectUrl>
+ <iconUrl>https://developer.tizen.org/sites/default/files/images/tizen-pinwheel-on-light-rgb_64_64.png</iconUrl>
+ <copyright>© Samsung Electronics Co., Ltd All Rights Reserved</copyright>
+ <description>Provides the Application Frameworks API for Tizen.Net</description>
+ <dependencies>
+ <dependency id="Tizen" version="1.0.2" />
+ <dependency id="Tizen.Applications.Common" version="1.2.0" />
+ </dependencies>
+ </metadata>
+ <files>
+ <file src="bin/$Configuration$/Tizen.Applications.Alarm.dll" target="lib/netstandard1.3" />
+ <file src="bin/$Configuration$/Net45/Tizen.Applications.Alarm.dll" target="lib/net45" />
+ </files>
+</package>
--- /dev/null
+{
+ "dependencies": {
+ "NETStandard.Library": "1.6.0",
+ "Tizen": "1.0.2"
+ },
+ "frameworks": {
+ "netstandard1.3": {}
+ }
+}
{
internal static partial class AppCommon
{
- internal enum AppEventType
- {
- LowMemory = 0,
- LowBattery,
- LanguageChanged,
- DeviceOrientationChanged,
- RegionFormatChanged,
- SuspendedStateChanged
- }
-
- internal delegate void AppEventCallback(IntPtr handle, IntPtr data);
-
[DllImport(Libraries.AppCommon, EntryPoint = "app_get_id")]
internal static extern ErrorCode AppGetId(out string appId);
[DllImport(Libraries.AppControl, EntryPoint = "app_control_send_launch_request")]
internal static extern ErrorCode SendLaunchRequest(SafeAppControlHandle handle, ReplyCallback callback, IntPtr userData);
- [DllImport(Libraries.Application, EntryPoint = "app_control_send_terminate_request")]
+ [DllImport(Libraries.AppControl, EntryPoint = "app_control_send_terminate_request")]
internal static extern ErrorCode SendTerminateRequest(SafeAppControlHandle handle);
- [DllImport(Libraries.Application, EntryPoint = "app_control_reply_to_launch_request")]
+ [DllImport(Libraries.AppControl, EntryPoint = "app_control_reply_to_launch_request")]
internal static extern ErrorCode ReplyToLaunchRequest(SafeAppControlHandle reply, SafeAppControlHandle request, int result);
- [DllImport(Libraries.Application, EntryPoint = "app_control_enable_app_started_result_event")]
+ [DllImport(Libraries.AppControl, EntryPoint = "app_control_enable_app_started_result_event")]
internal static extern ErrorCode EnableAppStartedResultEvent(SafeAppControlHandle handle);
}
}
--- /dev/null
+/*
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+internal static partial class Interop
+{
+ internal static partial class Libraries
+ {
+ public const string AppCommon = "libcapi-appfw-app-common.so.0";
+ public const string AppControl = "libcapi-appfw-app-control.so.0";
+ public const string AppEvent = "libcapi-appfw-event.so.0";
+ public const string AppManager = "libcapi-appfw-app-manager.so.0";
+ public const string Bundle = "libbundle.so.0";
+ public const string Glib = "libglib-2.0.so.0";
+ public const string Libc = "libc.so.6";
+ }
+}
--- /dev/null
+using System;
+using System.Reflection;
+using System.Runtime.InteropServices;
+
+[assembly: AssemblyTitle("Tizen.Applications.Common")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Samsung Electronics")]
+[assembly: AssemblyProduct("Tizen.Applications")]
+[assembly: AssemblyCopyright("Copyright (c) 2015 Samsung Electronics Co., Ltd")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+[assembly: ComVisible(false)]
+[assembly: CLSCompliant(true)]
+
+[assembly: Guid("d2d1a3ce-000e-4ab3-81c4-a8a44a008989")]
+
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProjectGuid>{9ACB2B86-BBEA-4FAA-880A-1977AB461C51}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>
+ </RootNamespace>
+ <AssemblyName>Tizen.Applications.Common</AssemblyName>
+ <FileAlignment>512</FileAlignment>
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Debug\Net45\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\Net45\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ </PropertyGroup>
+ <PropertyGroup>
+ <SignAssembly>true</SignAssembly>
+ </PropertyGroup>
+ <PropertyGroup>
+ <AssemblyOriginatorKeyFile>Tizen.Applications.Common.snk</AssemblyOriginatorKeyFile>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Net.Http" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Interop\Interop.AppCommon.cs" />
+ <Compile Include="Interop\Interop.AppControl.cs" />
+ <Compile Include="Interop\Interop.Bundle.cs" />
+ <Compile Include="Interop\Interop.Glib.cs" />
+ <Compile Include="Interop\Interop.Libc.cs" />
+ <Compile Include="Interop\Interop.Libraries.cs" />
+ <Compile Include="Interop\Interop.ApplicationManager.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="Tizen.Applications.CoreBackend\EventType.cs" />
+ <Compile Include="Tizen.Applications.CoreBackend\DefaultCoreBackend.cs" />
+ <Compile Include="Tizen.Applications.CoreBackend\ICoreBackend.cs" />
+ <Compile Include="Tizen.Applications\ApplicationInfo.cs" />
+ <Compile Include="Tizen.Applications\ApplicationManager.cs" />
+ <Compile Include="Tizen.Applications\ApplicationInfoFilter.cs" />
+ <Compile Include="Tizen.Applications\ApplicationInfoMetadataFilter.cs" />
+ <Compile Include="Tizen.Applications\ApplicationTerminatedEventArgs.cs" />
+ <Compile Include="Tizen.Applications\Application.cs" />
+ <Compile Include="Tizen.Applications\AppControlReceivedEventArgs.cs" />
+ <Compile Include="Tizen.Applications\AppControlReplyCallback.cs" />
+ <Compile Include="Tizen.Applications\ApplicationType.cs" />
+ <Compile Include="Tizen.Applications\CoreApplication.cs" />
+ <Compile Include="Tizen.Applications\DirectoryInfo.cs" />
+ <Compile Include="Tizen.Applications\LocaleChangedEventArgs.cs" />
+ <Compile Include="Tizen.Applications\LowBatteryEventArgs.cs" />
+ <Compile Include="Tizen.Applications\LowBatteryStatus.cs" />
+ <Compile Include="Tizen.Applications\LowMemoryEventArgs.cs" />
+ <Compile Include="Tizen.Applications\LowMemoryStatus.cs" />
+ <Compile Include="Tizen.Applications\ReceivedAppControl.cs" />
+ <Compile Include="Tizen.Applications\RegionFormatChangedEventArgs.cs" />
+ <Compile Include="Tizen.Applications\SafeAppControlHandle.cs" />
+ <Compile Include="Tizen.Applications\SafeBundleHandle.cs" />
+ <Compile Include="Tizen.Applications\ApplicationLaunchedEventArgs.cs" />
+ <Compile Include="Tizen.Applications\AppControl.cs" />
+ <Compile Include="Tizen.Applications\AppControlLaunchMode.cs" />
+ <Compile Include="Tizen.Applications\AppControlReplyResult.cs" />
+ <Compile Include="Tizen.Applications\AppControlOperations.cs" />
+ <Compile Include="Tizen.Applications\Bundle.cs" />
+ <Compile Include="Tizen.Applications\TizenSynchronizationContext.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="Tizen.Applications.Common.Net45.project.json" />
+ <None Include="Tizen.Applications.Common.snk" />
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- 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>
+ -->
+</Project>
--- /dev/null
+{
+ "dependencies": {
+ "Tizen": "1.0.2"
+ },
+ "frameworks": {
+ "net45": {}
+ },
+ "runtimes": {
+ "win": {}
+ }
+}
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProjectGuid>{663C5A3D-E631-4987-AEE7-F498C56A40FC}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>
+ </RootNamespace>
+ <AssemblyName>Tizen.Applications.Common</AssemblyName>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup>
+ <TargetFrameworkIdentifier>.NETStandard</TargetFrameworkIdentifier>
+ <TargetFrameworkVersion>v1.3</TargetFrameworkVersion>
+ <NuGetTargetMoniker>.NETStandard,Version=v1.3</NuGetTargetMoniker>
+ <AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
+ <NoStdLib>true</NoStdLib>
+ <NoWarn>$(NoWarn);1701;1702</NoWarn>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ </PropertyGroup>
+ <PropertyGroup>
+ <SignAssembly>true</SignAssembly>
+ </PropertyGroup>
+ <PropertyGroup>
+ <AssemblyOriginatorKeyFile>Tizen.Applications.Common.snk</AssemblyOriginatorKeyFile>
+ </PropertyGroup>
+ <ItemGroup>
+ <Compile Include="Interop\Interop.AppCommon.cs" />
+ <Compile Include="Interop\Interop.AppControl.cs" />
+ <Compile Include="Interop\Interop.Bundle.cs" />
+ <Compile Include="Interop\Interop.Glib.cs" />
+ <Compile Include="Interop\Interop.Libc.cs" />
+ <Compile Include="Interop\Interop.Libraries.cs" />
+ <Compile Include="Interop\Interop.ApplicationManager.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="Tizen.Applications.CoreBackend\EventType.cs" />
+ <Compile Include="Tizen.Applications.CoreBackend\DefaultCoreBackend.cs" />
+ <Compile Include="Tizen.Applications.CoreBackend\ICoreBackend.cs" />
+ <Compile Include="Tizen.Applications\ApplicationInfo.cs" />
+ <Compile Include="Tizen.Applications\ApplicationManager.cs" />
+ <Compile Include="Tizen.Applications\ApplicationInfoFilter.cs" />
+ <Compile Include="Tizen.Applications\ApplicationInfoMetadataFilter.cs" />
+ <Compile Include="Tizen.Applications\ApplicationTerminatedEventArgs.cs" />
+ <Compile Include="Tizen.Applications\Application.cs" />
+ <Compile Include="Tizen.Applications\AppControlReceivedEventArgs.cs" />
+ <Compile Include="Tizen.Applications\AppControlReplyCallback.cs" />
+ <Compile Include="Tizen.Applications\ApplicationType.cs" />
+ <Compile Include="Tizen.Applications\CoreApplication.cs" />
+ <Compile Include="Tizen.Applications\DirectoryInfo.cs" />
+ <Compile Include="Tizen.Applications\LocaleChangedEventArgs.cs" />
+ <Compile Include="Tizen.Applications\LowBatteryEventArgs.cs" />
+ <Compile Include="Tizen.Applications\LowBatteryStatus.cs" />
+ <Compile Include="Tizen.Applications\LowMemoryEventArgs.cs" />
+ <Compile Include="Tizen.Applications\LowMemoryStatus.cs" />
+ <Compile Include="Tizen.Applications\ReceivedAppControl.cs" />
+ <Compile Include="Tizen.Applications\RegionFormatChangedEventArgs.cs" />
+ <Compile Include="Tizen.Applications\SafeAppControlHandle.cs" />
+ <Compile Include="Tizen.Applications\SafeBundleHandle.cs" />
+ <Compile Include="Tizen.Applications\ApplicationLaunchedEventArgs.cs" />
+ <Compile Include="Tizen.Applications\AppControl.cs" />
+ <Compile Include="Tizen.Applications\AppControlLaunchMode.cs" />
+ <Compile Include="Tizen.Applications\AppControlReplyResult.cs" />
+ <Compile Include="Tizen.Applications\AppControlOperations.cs" />
+ <Compile Include="Tizen.Applications\Bundle.cs" />
+ <Compile Include="Tizen.Applications\TizenSynchronizationContext.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="Tizen.Applications.Common.project.json" />
+ <None Include="Tizen.Applications.Common.snk" />
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- 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>
+ -->
+ <PropertyGroup>
+ <!-- https://github.com/dotnet/corefxlab/tree/master/samples/NetCoreSample and
+ https://docs.microsoft.com/en-us/dotnet/articles/core/tutorials/target-dotnetcore-with-msbuild
+ -->
+ <!-- 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).
+ -->
+ <_TargetFrameworkDirectories>$(MSBuildThisFileDirectory)</_TargetFrameworkDirectories>
+ <_FullFrameworkReferenceAssemblyPaths>$(MSBuildThisFileDirectory)</_FullFrameworkReferenceAssemblyPaths>
+ <AutoUnifyAssemblyReferences>true</AutoUnifyAssemblyReferences>
+ </PropertyGroup>
+</Project>
--- /dev/null
+<?xml version="1.0"?>
+<package>
+ <metadata>
+ <id>Tizen.Applications.Common</id>
+ <version>$version$</version>
+ <authors>Samsung Electronics</authors>
+ <requireLicenseAcceptance>false</requireLicenseAcceptance>
+ <licenseUrl>https://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
+ <projectUrl>https://www.tizen.org/</projectUrl>
+ <iconUrl>https://developer.tizen.org/sites/default/files/images/tizen-pinwheel-on-light-rgb_64_64.png</iconUrl>
+ <copyright>© Samsung Electronics Co., Ltd All Rights Reserved</copyright>
+ <description>Provides the Application Frameworks API for Tizen.Net</description>
+ <dependencies>
+ <dependency id="Tizen" version="1.0.2" />
+ </dependencies>
+ </metadata>
+ <files>
+ <file src="bin/$Configuration$/Tizen.Applications.Common.dll" target="lib/netstandard1.3" />
+ <file src="bin/$Configuration$/Net45/Tizen.Applications.Common.dll" target="lib/net45" />
+ </files>
+</package>
--- /dev/null
+{
+ "dependencies": {
+ "NETStandard.Library": "1.6.0",
+ "Tizen": "1.0.2"
+ },
+ "frameworks": {
+ "netstandard1.3": {}
+ }
+}
--- /dev/null
+/*
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+using System;
+using System.Collections.Generic;
+
+using Tizen.Internals.Errors;
+
+namespace Tizen.Applications.CoreBackend
+{
+ /// <summary>
+ /// Abstract class to provide default event handlers for apps.
+ /// </summary>
+ public abstract class DefaultCoreBackend : ICoreBackend
+ {
+ /// <summary>
+ /// Low level event types
+ /// </summary>
+ public enum AppEventType
+ {
+ LowMemory = 0,
+ LowBattery,
+ LanguageChanged,
+ DeviceOrientationChanged,
+ RegionFormatChanged,
+ SuspendedStateChanged
+ }
+
+ protected static readonly string LogTag = typeof(DefaultCoreBackend).Namespace;
+
+ protected IDictionary<EventType, object> Handlers = new Dictionary<EventType, object>();
+
+ public DefaultCoreBackend()
+ {
+ }
+
+ ~DefaultCoreBackend()
+ {
+ Dispose(false);
+ }
+
+ public void AddEventHandler(EventType evType, Action handler)
+ {
+ Handlers.Add(evType, handler);
+ }
+
+ public void AddEventHandler<TEventArgs>(EventType evType, Action<TEventArgs> handler) where TEventArgs : EventArgs
+ {
+ Handlers.Add(evType, handler);
+ }
+
+ public virtual void Run(string[] args)
+ {
+ TizenSynchronizationContext.Initialize();
+ }
+
+ public abstract void Exit();
+
+ public void Dispose()
+ {
+ Dispose(true);
+ GC.SuppressFinalize(this);
+ }
+
+ protected abstract void Dispose(bool disposing);
+
+ protected virtual void OnLowMemoryNative(IntPtr infoHandle, IntPtr data)
+ {
+ LowMemoryStatus status = LowMemoryStatus.None;
+ ErrorCode err = Interop.AppCommon.AppEventGetLowMemoryStatus(infoHandle, out status);
+ if (err != ErrorCode.None)
+ {
+ Log.Error(LogTag, "Failed to get memory status. Err = " + err);
+ }
+ if (Handlers.ContainsKey(EventType.LowMemory))
+ {
+ var handler = Handlers[EventType.LowMemory] as Action<LowMemoryEventArgs>;
+ handler?.Invoke(new LowMemoryEventArgs(status));
+ }
+ }
+
+ protected virtual void OnLowBatteryNative(IntPtr infoHandle, IntPtr data)
+ {
+ LowBatteryStatus status = LowBatteryStatus.None;
+ ErrorCode err = Interop.AppCommon.AppEventGetLowBatteryStatus(infoHandle, out status);
+ if (err != ErrorCode.None)
+ {
+ Log.Error(LogTag, "Failed to get battery status. Err = " + err);
+ }
+ if (Handlers.ContainsKey(EventType.LowBattery))
+ {
+ var handler = Handlers[EventType.LowBattery] as Action<LowBatteryEventArgs>;
+ handler?.Invoke(new LowBatteryEventArgs(status));
+ }
+ }
+
+ protected virtual void OnLocaleChangedNative(IntPtr infoHandle, IntPtr data)
+ {
+ string lang;
+ ErrorCode err = Interop.AppCommon.AppEventGetLanguage(infoHandle, out lang);
+ if (err != ErrorCode.None)
+ {
+ Log.Error(LogTag, "Failed to get changed language. Err = " + err);
+ }
+ if (Handlers.ContainsKey(EventType.LocaleChanged))
+ {
+ var handler = Handlers[EventType.LocaleChanged] as Action<LocaleChangedEventArgs>;
+ handler?.Invoke(new LocaleChangedEventArgs(lang));
+ }
+ }
+
+ protected virtual void OnRegionChangedNative(IntPtr infoHandle, IntPtr data)
+ {
+ string region;
+ ErrorCode err = Interop.AppCommon.AppEventGetRegionFormat(infoHandle, out region);
+ if (err != ErrorCode.None)
+ {
+ Log.Error(LogTag, "Failed to get changed region format. Err = " + err);
+ }
+ if (Handlers.ContainsKey(EventType.RegionFormatChanged))
+ {
+ var handler = Handlers[EventType.RegionFormatChanged] as Action<RegionFormatChangedEventArgs>;
+ handler?.Invoke(new RegionFormatChangedEventArgs(region));
+ }
+ }
+ }
+}
/// <summary>
/// All applications.
/// </summary>
- All = Interop.Package.AppType.All,
+ All = 0,
/// <summary>
/// UI applications.
/// </summary>
- Ui = Interop.Package.AppType.Ui,
+ Ui = 1,
/// <summary>
/// Service applications.
/// </summary>
- Service = Interop.Package.AppType.Service
+ Service = 2
}
-}
\ No newline at end of file
+}
--- /dev/null
+/*
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+internal static partial class Interop
+{
+ internal static partial class Libraries
+ {
+ public const string MessagePort = "libmessage-port.so.1";
+ }
+}
--- /dev/null
+using System;
+using System.Reflection;
+using System.Runtime.InteropServices;
+
+[assembly: AssemblyTitle("Tizen.Applications.MessagePort")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Samsung Electronics")]
+[assembly: AssemblyProduct("Tizen.Applications")]
+[assembly: AssemblyCopyright("Copyright (c) 2015 Samsung Electronics Co., Ltd")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+[assembly: ComVisible(false)]
+[assembly: CLSCompliant(true)]
+
+[assembly: Guid("d2d1a3ce-000e-4ab3-81c4-a8a44a008989")]
+
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProjectGuid>{3B03557D-FCA4-464B-9686-424A96ADC875}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>
+ </RootNamespace>
+ <AssemblyName>Tizen.Applications.MessagePort</AssemblyName>
+ <FileAlignment>512</FileAlignment>
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Debug\Net45\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\Net45\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ </PropertyGroup>
+ <PropertyGroup>
+ <SignAssembly>true</SignAssembly>
+ </PropertyGroup>
+ <PropertyGroup>
+ <AssemblyOriginatorKeyFile>Tizen.Applications.MessagePort.snk</AssemblyOriginatorKeyFile>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Net.Http" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Interop\Interop.MessagePort.cs" />
+ <Compile Include="Interop\Interop.Libraries.cs" />
+ <Compile Include="Tizen.Applications.Messages\MessagePort.cs" />
+ <Compile Include="Tizen.Applications.Messages\MessagePortErrorFactory.cs" />
+ <Compile Include="Tizen.Applications.Messages\MessageReceivedEventArgs.cs" />
+ <Compile Include="Tizen.Applications.Messages\RemoteValues.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="Tizen.Applications.MessagePort.Net45.project.json" />
+ <None Include="Tizen.Applications.MessagePort.snk" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\Tizen.Applications.Common\Tizen.Applications.Common.Net45.csproj">
+ <Project>{9acb2b86-bbea-4faa-880a-1977ab461c51}</Project>
+ <Name>Tizen.Applications.Common.Net45</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- 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>
+ -->
+</Project>
\ No newline at end of file
--- /dev/null
+{
+ "dependencies": {
+ "Tizen": "1.0.2"
+ },
+ "frameworks": {
+ "net45": {}
+ },
+ "runtimes": {
+ "win": {}
+ }
+}
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProjectGuid>{00522E33-D1F2-4656-8621-5510EC0139FE}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>
+ </RootNamespace>
+ <AssemblyName>Tizen.Applications.MessagePort</AssemblyName>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup>
+ <TargetFrameworkIdentifier>.NETStandard</TargetFrameworkIdentifier>
+ <TargetFrameworkVersion>v1.3</TargetFrameworkVersion>
+ <NuGetTargetMoniker>.NETStandard,Version=v1.3</NuGetTargetMoniker>
+ <AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
+ <NoStdLib>true</NoStdLib>
+ <NoWarn>$(NoWarn);1701;1702</NoWarn>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ </PropertyGroup>
+ <PropertyGroup>
+ <SignAssembly>true</SignAssembly>
+ </PropertyGroup>
+ <PropertyGroup>
+ <AssemblyOriginatorKeyFile>Tizen.Applications.MessagePort.snk</AssemblyOriginatorKeyFile>
+ </PropertyGroup>
+ <ItemGroup>
+ <Compile Include="Interop\Interop.MessagePort.cs" />
+ <Compile Include="Interop\Interop.Libraries.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="Tizen.Applications.Messages\MessagePort.cs" />
+ <Compile Include="Tizen.Applications.Messages\MessagePortErrorFactory.cs" />
+ <Compile Include="Tizen.Applications.Messages\MessageReceivedEventArgs.cs" />
+ <Compile Include="Tizen.Applications.Messages\RemoteValues.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="Tizen.Applications.MessagePort.project.json" />
+ <None Include="Tizen.Applications.MessagePort.snk" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\Tizen.Applications.Common\Tizen.Applications.Common.csproj">
+ <Project>{663c5a3d-e631-4987-aee7-f498c56a40fc}</Project>
+ <Name>Tizen.Applications.Common</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- 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>
+ -->
+ <PropertyGroup>
+ <!-- https://github.com/dotnet/corefxlab/tree/master/samples/NetCoreSample and
+ https://docs.microsoft.com/en-us/dotnet/articles/core/tutorials/target-dotnetcore-with-msbuild
+ -->
+ <!-- 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).
+ -->
+ <_TargetFrameworkDirectories>$(MSBuildThisFileDirectory)</_TargetFrameworkDirectories>
+ <_FullFrameworkReferenceAssemblyPaths>$(MSBuildThisFileDirectory)</_FullFrameworkReferenceAssemblyPaths>
+ <AutoUnifyAssemblyReferences>true</AutoUnifyAssemblyReferences>
+ </PropertyGroup>
+</Project>
\ No newline at end of file
--- /dev/null
+<?xml version="1.0"?>
+<package>
+ <metadata>
+ <id>Tizen.Applications.MessagePort</id>
+ <version>$version$</version>
+ <authors>Samsung Electronics</authors>
+ <requireLicenseAcceptance>false</requireLicenseAcceptance>
+ <licenseUrl>https://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
+ <projectUrl>https://www.tizen.org/</projectUrl>
+ <iconUrl>https://developer.tizen.org/sites/default/files/images/tizen-pinwheel-on-light-rgb_64_64.png</iconUrl>
+ <copyright>© Samsung Electronics Co., Ltd All Rights Reserved</copyright>
+ <description>Provides the Application Frameworks API for Tizen.Net</description>
+ <dependencies>
+ <dependency id="Tizen" version="1.0.2" />
+ <dependency id="Tizen.Applications.Common" version="1.2.0" />
+ </dependencies>
+ </metadata>
+ <files>
+ <file src="bin/$Configuration$/Tizen.Applications.MessagePort.dll" target="lib/netstandard1.3" />
+ <file src="bin/$Configuration$/Net45/Tizen.Applications.MessagePort.dll" target="lib/net45" />
+ </files>
+</package>
--- /dev/null
+{
+ "dependencies": {
+ "NETStandard.Library": "1.6.0",
+ "Tizen": "1.0.2"
+ },
+ "frameworks": {
+ "netstandard1.3": {}
+ }
+}
\ No newline at end of file
using System;
using System.Collections.Generic;
+using Tizen.Applications;
namespace Tizen.Applications.Messages
{
--- /dev/null
+/*
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+internal static partial class Interop
+{
+ internal static partial class Libraries
+ {
+ public const string Notification = "libnotification.so.0";
+ }
+}
--- /dev/null
+using System;
+using System.Reflection;
+using System.Runtime.InteropServices;
+
+[assembly: AssemblyTitle("Tizen.Applications.Notification")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Samsung Electronics")]
+[assembly: AssemblyProduct("Tizen.Applications")]
+[assembly: AssemblyCopyright("Copyright (c) 2015 Samsung Electronics Co., Ltd")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+[assembly: ComVisible(false)]
+[assembly: CLSCompliant(true)]
+
+[assembly: Guid("d2d1a3ce-000e-4ab3-81c4-a8a44a008989")]
+
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProjectGuid>{DCBA342F-12D2-4AB3-8616-210DA585A11A}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>
+ </RootNamespace>
+ <AssemblyName>Tizen.Applications.Notification</AssemblyName>
+ <FileAlignment>512</FileAlignment>
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Debug\Net45\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\Net45\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ </PropertyGroup>
+ <PropertyGroup>
+ <SignAssembly>true</SignAssembly>
+ </PropertyGroup>
+ <PropertyGroup>
+ <AssemblyOriginatorKeyFile>Tizen.Applications.Notification.snk</AssemblyOriginatorKeyFile>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Net.Http" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Interop\Interop.Libraries.cs" />
+ <Compile Include="Interop\Interop.Notification.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="Tizen.Applications\EventNotification.cs" />
+ <Compile Include="Tizen.Applications\Notification.cs" />
+ <Compile Include="Tizen.Applications\NotificationEnumerations.cs" />
+ <Compile Include="Tizen.Applications\NotificationErrorFactory.cs" />
+ <Compile Include="Tizen.Applications\NotificationManager.cs" />
+ <Compile Include="Tizen.Applications\ProgressNotification.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="Tizen.Applications.Notification.Net45.project.json" />
+ <None Include="Tizen.Applications.Notification.snk" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\Tizen.Applications.Common\Tizen.Applications.Common.Net45.csproj">
+ <Project>{9acb2b86-bbea-4faa-880a-1977ab461c51}</Project>
+ <Name>Tizen.Applications.Common.Net45</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- 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>
+ -->
+</Project>
\ No newline at end of file
--- /dev/null
+{
+ "dependencies": {
+ "Tizen": "1.0.2"
+ },
+ "frameworks": {
+ "net45": {}
+ },
+ "runtimes": {
+ "win": {}
+ }
+}
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProjectGuid>{36C346B4-5ABC-45C7-808B-04178B76FA0D}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>
+ </RootNamespace>
+ <AssemblyName>Tizen.Applications.Notification</AssemblyName>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup>
+ <TargetFrameworkIdentifier>.NETStandard</TargetFrameworkIdentifier>
+ <TargetFrameworkVersion>v1.3</TargetFrameworkVersion>
+ <NuGetTargetMoniker>.NETStandard,Version=v1.3</NuGetTargetMoniker>
+ <AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
+ <NoStdLib>true</NoStdLib>
+ <NoWarn>$(NoWarn);1701;1702</NoWarn>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ </PropertyGroup>
+ <PropertyGroup>
+ <SignAssembly>true</SignAssembly>
+ </PropertyGroup>
+ <PropertyGroup>
+ <AssemblyOriginatorKeyFile>Tizen.Applications.Notification.snk</AssemblyOriginatorKeyFile>
+ </PropertyGroup>
+ <ItemGroup>
+ <Compile Include="Interop\Interop.Libraries.cs" />
+ <Compile Include="Interop\Interop.Notification.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="Tizen.Applications\EventNotification.cs" />
+ <Compile Include="Tizen.Applications\Notification.cs" />
+ <Compile Include="Tizen.Applications\NotificationEnumerations.cs" />
+ <Compile Include="Tizen.Applications\NotificationErrorFactory.cs" />
+ <Compile Include="Tizen.Applications\NotificationManager.cs" />
+ <Compile Include="Tizen.Applications\ProgressNotification.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="Tizen.Applications.Notification.project.json" />
+ <None Include="Tizen.Applications.Notification.snk" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\Tizen.Applications.Common\Tizen.Applications.Common.csproj">
+ <Project>{663c5a3d-e631-4987-aee7-f498c56a40fc}</Project>
+ <Name>Tizen.Applications.Common</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- 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>
+ -->
+ <PropertyGroup>
+ <!-- https://github.com/dotnet/corefxlab/tree/master/samples/NetCoreSample and
+ https://docs.microsoft.com/en-us/dotnet/articles/core/tutorials/target-dotnetcore-with-msbuild
+ -->
+ <!-- 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).
+ -->
+ <_TargetFrameworkDirectories>$(MSBuildThisFileDirectory)</_TargetFrameworkDirectories>
+ <_FullFrameworkReferenceAssemblyPaths>$(MSBuildThisFileDirectory)</_FullFrameworkReferenceAssemblyPaths>
+ <AutoUnifyAssemblyReferences>true</AutoUnifyAssemblyReferences>
+ </PropertyGroup>
+</Project>
\ No newline at end of file
--- /dev/null
+<?xml version="1.0"?>
+<package>
+ <metadata>
+ <id>Tizen.Applications.Notification</id>
+ <version>$version$</version>
+ <authors>Samsung Electronics</authors>
+ <requireLicenseAcceptance>false</requireLicenseAcceptance>
+ <licenseUrl>https://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
+ <projectUrl>https://www.tizen.org/</projectUrl>
+ <iconUrl>https://developer.tizen.org/sites/default/files/images/tizen-pinwheel-on-light-rgb_64_64.png</iconUrl>
+ <copyright>© Samsung Electronics Co., Ltd All Rights Reserved</copyright>
+ <description>Provides the Application Frameworks API for Tizen.Net</description>
+ <dependencies>
+ <dependency id="Tizen" version="1.0.2" />
+ <dependency id="Tizen.Applications.Common" version="1.2.0" />
+ </dependencies>
+ </metadata>
+ <files>
+ <file src="bin/$Configuration$/Tizen.Applications.Notification.dll" target="lib/netstandard1.3" />
+ <file src="bin/$Configuration$/Net45/Tizen.Applications.Notification.dll" target="lib/net45" />
+ </files>
+</package>
--- /dev/null
+{
+ "dependencies": {
+ "NETStandard.Library": "1.6.0",
+ "Tizen": "1.0.2"
+ },
+ "frameworks": {
+ "netstandard1.3": {}
+ }
+}
--- /dev/null
+/*
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+internal static partial class Interop
+{
+ internal static partial class Libraries
+ {
+ public const string PackageManager = "libcapi-appfw-package-manager.so.0";
+ }
+}
--- /dev/null
+using System;
+using System.Reflection;
+using System.Runtime.InteropServices;
+
+[assembly: AssemblyTitle("Tizen.Applications.PackageManager")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Samsung Electronics")]
+[assembly: AssemblyProduct("Tizen.Applications")]
+[assembly: AssemblyCopyright("Copyright (c) 2015 Samsung Electronics Co., Ltd")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+[assembly: ComVisible(false)]
+[assembly: CLSCompliant(true)]
+
+[assembly: Guid("d2d1a3ce-000e-4ab3-81c4-a8a44a008989")]
+
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProjectGuid>{806338B7-D321-4AB6-8FC0-58A22B289A28}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>
+ </RootNamespace>
+ <AssemblyName>Tizen.Applications.PackageManager</AssemblyName>
+ <FileAlignment>512</FileAlignment>
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Debug\Net45\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\Net45\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ </PropertyGroup>
+ <PropertyGroup>
+ <SignAssembly>true</SignAssembly>
+ </PropertyGroup>
+ <PropertyGroup>
+ <AssemblyOriginatorKeyFile>Tizen.Applications.PackageManager.snk</AssemblyOriginatorKeyFile>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Net.Http" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Interop\Interop.Package.cs" />
+ <Compile Include="Interop\Interop.PackageManager.cs" />
+ <Compile Include="Interop\Interop.Libraries.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="Tizen.Applications\CertificateType.cs" />
+ <Compile Include="Tizen.Applications\PackageEventState.cs" />
+ <Compile Include="Tizen.Applications\Package.cs" />
+ <Compile Include="Tizen.Applications\PackageCertificate.cs" />
+ <Compile Include="Tizen.Applications\PackageFilter.cs" />
+ <Compile Include="Tizen.Applications\PackageManager.cs" />
+ <Compile Include="Tizen.Applications\PackageManagerEventArgs.cs" />
+ <Compile Include="Tizen.Applications\PackageSizeInformation.cs" />
+ <Compile Include="Tizen.Applications\PackageType.cs" />
+ <Compile Include="Tizen.Applications\SafePackageManagerHandle.cs" />
+ <Compile Include="Tizen.Applications\StorageType.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="Tizen.Applications.PackageManager.Net45.project.json" />
+ <None Include="Tizen.Applications.PackageManager.snk" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\Tizen.Applications.Common\Tizen.Applications.Common.Net45.csproj">
+ <Project>{9acb2b86-bbea-4faa-880a-1977ab461c51}</Project>
+ <Name>Tizen.Applications.Common.Net45</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- 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>
+ -->
+</Project>
\ No newline at end of file
--- /dev/null
+{
+ "dependencies": {
+ "Tizen": "1.0.2"
+ },
+ "frameworks": {
+ "net45": {}
+ },
+ "runtimes": {
+ "win": {}
+ }
+}
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProjectGuid>{A83A9A54-9985-45BE-95DA-C768A93CF455}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>
+ </RootNamespace>
+ <AssemblyName>Tizen.Applications.PackageManager</AssemblyName>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup>
+ <TargetFrameworkIdentifier>.NETStandard</TargetFrameworkIdentifier>
+ <TargetFrameworkVersion>v1.3</TargetFrameworkVersion>
+ <NuGetTargetMoniker>.NETStandard,Version=v1.3</NuGetTargetMoniker>
+ <AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
+ <NoStdLib>true</NoStdLib>
+ <NoWarn>$(NoWarn);1701;1702</NoWarn>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ </PropertyGroup>
+ <PropertyGroup>
+ <SignAssembly>true</SignAssembly>
+ </PropertyGroup>
+ <PropertyGroup>
+ <AssemblyOriginatorKeyFile>Tizen.Applications.PackageManager.snk</AssemblyOriginatorKeyFile>
+ </PropertyGroup>
+ <ItemGroup>
+ <Compile Include="Interop\Interop.Package.cs" />
+ <Compile Include="Interop\Interop.PackageManager.cs" />
+ <Compile Include="Interop\Interop.Libraries.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="Tizen.Applications\CertificateType.cs" />
+ <Compile Include="Tizen.Applications\PackageEventState.cs" />
+ <Compile Include="Tizen.Applications\Package.cs" />
+ <Compile Include="Tizen.Applications\PackageCertificate.cs" />
+ <Compile Include="Tizen.Applications\PackageFilter.cs" />
+ <Compile Include="Tizen.Applications\PackageManager.cs" />
+ <Compile Include="Tizen.Applications\PackageManagerEventArgs.cs" />
+ <Compile Include="Tizen.Applications\PackageSizeInformation.cs" />
+ <Compile Include="Tizen.Applications\PackageType.cs" />
+ <Compile Include="Tizen.Applications\SafePackageManagerHandle.cs" />
+ <Compile Include="Tizen.Applications\StorageType.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="Tizen.Applications.PackageManager.project.json" />
+ <None Include="Tizen.Applications.PackageManager.snk" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\Tizen.Applications.Common\Tizen.Applications.Common.csproj">
+ <Project>{663c5a3d-e631-4987-aee7-f498c56a40fc}</Project>
+ <Name>Tizen.Applications.Common</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- 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>
+ -->
+ <PropertyGroup>
+ <!-- https://github.com/dotnet/corefxlab/tree/master/samples/NetCoreSample and
+ https://docs.microsoft.com/en-us/dotnet/articles/core/tutorials/target-dotnetcore-with-msbuild
+ -->
+ <!-- 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).
+ -->
+ <_TargetFrameworkDirectories>$(MSBuildThisFileDirectory)</_TargetFrameworkDirectories>
+ <_FullFrameworkReferenceAssemblyPaths>$(MSBuildThisFileDirectory)</_FullFrameworkReferenceAssemblyPaths>
+ <AutoUnifyAssemblyReferences>true</AutoUnifyAssemblyReferences>
+ </PropertyGroup>
+</Project>
\ No newline at end of file
--- /dev/null
+<?xml version="1.0"?>
+<package>
+ <metadata>
+ <id>Tizen.Applications.PackageManager</id>
+ <version>$version$</version>
+ <authors>Samsung Electronics</authors>
+ <requireLicenseAcceptance>false</requireLicenseAcceptance>
+ <licenseUrl>https://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
+ <projectUrl>https://www.tizen.org/</projectUrl>
+ <iconUrl>https://developer.tizen.org/sites/default/files/images/tizen-pinwheel-on-light-rgb_64_64.png</iconUrl>
+ <copyright>© Samsung Electronics Co., Ltd All Rights Reserved</copyright>
+ <description>Provides the Application Frameworks API for Tizen.Net</description>
+ <dependencies>
+ <dependency id="Tizen" version="1.0.2" />
+ <dependency id="Tizen.Applications.Common" version="1.2.0" />
+ </dependencies>
+ </metadata>
+ <files>
+ <file src="bin/$Configuration$/Tizen.Applications.PackageManager.dll" target="lib/netstandard1.3" />
+ <file src="bin/$Configuration$/Net45/Tizen.Applications.PackageManager.dll" target="lib/net45" />
+ </files>
+</package>
--- /dev/null
+{
+ "dependencies": {
+ "NETStandard.Library": "1.6.0",
+ "Tizen": "1.0.2"
+ },
+ "frameworks": {
+ "netstandard1.3": {}
+ }
+}
--- /dev/null
+/*
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+internal static partial class Interop
+{
+ internal static partial class Libraries
+ {
+ public const string Preference = "libcapi-appfw-preference.so.0";
+ }
+}
--- /dev/null
+using System;
+using System.Reflection;
+using System.Runtime.InteropServices;
+
+[assembly: AssemblyTitle("Tizen.Applications.Preference")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Samsung Electronics")]
+[assembly: AssemblyProduct("Tizen.Applications")]
+[assembly: AssemblyCopyright("Copyright (c) 2015 Samsung Electronics Co., Ltd")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+[assembly: ComVisible(false)]
+[assembly: CLSCompliant(true)]
+
+[assembly: Guid("d2d1a3ce-000e-4ab3-81c4-a8a44a008989")]
+
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProjectGuid>{E129083E-B2D4-4330-A433-C50F040B001C}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>
+ </RootNamespace>
+ <AssemblyName>Tizen.Applications.Preference</AssemblyName>
+ <FileAlignment>512</FileAlignment>
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Debug\Net45\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\Net45\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ </PropertyGroup>
+ <PropertyGroup>
+ <SignAssembly>true</SignAssembly>
+ </PropertyGroup>
+ <PropertyGroup>
+ <AssemblyOriginatorKeyFile>Tizen.Applications.Preference.snk</AssemblyOriginatorKeyFile>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Net.Http" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Interop\Interop.Libraries.cs" />
+ <Compile Include="Interop\Interop.Preference.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="Tizen.Applications\PreferenceChangedEventArgs.cs" />
+ <Compile Include="Tizen.Applications\Preference.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="Tizen.Applications.Preference.Net45.project.json" />
+ <None Include="Tizen.Applications.Preference.snk" />
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- 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>
+ -->
+</Project>
\ No newline at end of file
--- /dev/null
+{
+ "dependencies": {
+ "Tizen": "1.0.2"
+ },
+ "frameworks": {
+ "net45": {}
+ },
+ "runtimes": {
+ "win": {}
+ }
+}
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProjectGuid>{4A11B4AF-8C6F-4262-B19F-23EDCBA7521B}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>
+ </RootNamespace>
+ <AssemblyName>Tizen.Applications.Preference</AssemblyName>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup>
+ <TargetFrameworkIdentifier>.NETStandard</TargetFrameworkIdentifier>
+ <TargetFrameworkVersion>v1.3</TargetFrameworkVersion>
+ <NuGetTargetMoniker>.NETStandard,Version=v1.3</NuGetTargetMoniker>
+ <AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
+ <NoStdLib>true</NoStdLib>
+ <NoWarn>$(NoWarn);1701;1702</NoWarn>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ </PropertyGroup>
+ <PropertyGroup>
+ <SignAssembly>true</SignAssembly>
+ </PropertyGroup>
+ <PropertyGroup>
+ <AssemblyOriginatorKeyFile>Tizen.Applications.Preference.snk</AssemblyOriginatorKeyFile>
+ </PropertyGroup>
+ <ItemGroup>
+ <Compile Include="Interop\Interop.Libraries.cs" />
+ <Compile Include="Interop\Interop.Preference.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="Tizen.Applications\PreferenceChangedEventArgs.cs" />
+ <Compile Include="Tizen.Applications\Preference.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="Tizen.Applications.Preference.project.json" />
+ <None Include="Tizen.Applications.Preference.snk" />
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- 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>
+ -->
+ <PropertyGroup>
+ <!-- https://github.com/dotnet/corefxlab/tree/master/samples/NetCoreSample and
+ https://docs.microsoft.com/en-us/dotnet/articles/core/tutorials/target-dotnetcore-with-msbuild
+ -->
+ <!-- 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).
+ -->
+ <_TargetFrameworkDirectories>$(MSBuildThisFileDirectory)</_TargetFrameworkDirectories>
+ <_FullFrameworkReferenceAssemblyPaths>$(MSBuildThisFileDirectory)</_FullFrameworkReferenceAssemblyPaths>
+ <AutoUnifyAssemblyReferences>true</AutoUnifyAssemblyReferences>
+ </PropertyGroup>
+</Project>
\ No newline at end of file
--- /dev/null
+<?xml version="1.0"?>
+<package>
+ <metadata>
+ <id>Tizen.Applications.Preference</id>
+ <version>$version$</version>
+ <authors>Samsung Electronics</authors>
+ <requireLicenseAcceptance>false</requireLicenseAcceptance>
+ <licenseUrl>https://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
+ <projectUrl>https://www.tizen.org/</projectUrl>
+ <iconUrl>https://developer.tizen.org/sites/default/files/images/tizen-pinwheel-on-light-rgb_64_64.png</iconUrl>
+ <copyright>© Samsung Electronics Co., Ltd All Rights Reserved</copyright>
+ <description>Provides the Application Frameworks API for Tizen.Net</description>
+ <dependencies>
+ <dependency id="Tizen" version="1.0.2" />
+ </dependencies>
+ </metadata>
+ <files>
+ <file src="bin/$Configuration$/Tizen.Applications.Preference.dll" target="lib/netstandard1.3" />
+ <file src="bin/$Configuration$/Net45/Tizen.Applications.Preference.dll" target="lib/net45" />
+ </files>
+</package>
--- /dev/null
+{
+ "dependencies": {
+ "NETStandard.Library": "1.6.0",
+ "Tizen": "1.0.2"
+ },
+ "frameworks": {
+ "netstandard1.3": {}
+ }
+}
--- /dev/null
+/*
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+internal static partial class Interop
+{
+ internal static partial class Libraries
+ {
+ public const string AppcoreAgent = "libappcore-agent.so.1";
+ }
+}
using System;
using System.Runtime.InteropServices;
-
+using Tizen.Applications.CoreBackend;
using Tizen.Internals.Errors;
internal static partial class Interop
{
internal static partial class Service
{
+ internal delegate void AppEventCallback(IntPtr handle, IntPtr data);
+
internal delegate bool ServiceAppCreateCallback(IntPtr userData);
internal delegate void ServiceAppTerminateCallback(IntPtr userData);
internal static extern void Exit();
[DllImport(Libraries.AppcoreAgent, EntryPoint = "service_app_add_event_handler")]
- internal static extern ErrorCode AddEventHandler(out IntPtr handle, AppCommon.AppEventType eventType, AppCommon.AppEventCallback callback, IntPtr data);
+ internal static extern ErrorCode AddEventHandler(out IntPtr handle, DefaultCoreBackend.AppEventType eventType, AppEventCallback callback, IntPtr data);
[DllImport(Libraries.AppcoreAgent, EntryPoint = "service_app_remove_event_handler")]
internal static extern ErrorCode RemoveEventHandler(IntPtr handle);
--- /dev/null
+using System;
+using System.Reflection;
+using System.Runtime.InteropServices;
+
+[assembly: AssemblyTitle("Tizen.Applications.Service")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Samsung Electronics")]
+[assembly: AssemblyProduct("Tizen.Applications")]
+[assembly: AssemblyCopyright("Copyright (c) 2015 Samsung Electronics Co., Ltd")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+[assembly: ComVisible(false)]
+[assembly: CLSCompliant(true)]
+
+[assembly: Guid("d2d1a3ce-000e-4ab3-81c4-a8a44a008989")]
+
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
--- /dev/null
+/*
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+using System;
+
+using Tizen.Internals.Errors;
+
+namespace Tizen.Applications.CoreBackend
+{
+ internal class ServiceCoreBackend : DefaultCoreBackend
+ {
+ private Interop.Service.ServiceAppLifecycleCallbacks _callbacks;
+ private IntPtr _lowMemoryEventHandle = IntPtr.Zero;
+ private IntPtr _lowBatteryEventHandle = IntPtr.Zero;
+ private IntPtr _localeChangedEventHandle = IntPtr.Zero;
+ private IntPtr _regionChangedEventHandle = IntPtr.Zero;
+ private bool _disposedValue = false;
+
+ public ServiceCoreBackend()
+ {
+ _callbacks.OnCreate = new Interop.Service.ServiceAppCreateCallback(OnCreateNative);
+ _callbacks.OnTerminate = new Interop.Service.ServiceAppTerminateCallback(OnTerminateNative);
+ _callbacks.OnAppControl = new Interop.Service.ServiceAppControlCallback(OnAppControlNative);
+ }
+
+ public override void Exit()
+ {
+ Interop.Service.Exit();
+ }
+
+ public override void Run(string[] args)
+ {
+ base.Run(args);
+
+ ErrorCode err = ErrorCode.None;
+ err = Interop.Service.AddEventHandler(out _lowMemoryEventHandle, AppEventType.LowMemory, OnLowMemoryNative, IntPtr.Zero);
+ if (err != ErrorCode.None)
+ {
+ Log.Error(LogTag, "Failed to add event handler for LowMemory event. Err = " + err);
+ }
+ err = Interop.Service.AddEventHandler(out _lowBatteryEventHandle, AppEventType.LowBattery, OnLowBatteryNative, IntPtr.Zero);
+ if (err != ErrorCode.None)
+ {
+ Log.Error(LogTag, "Failed to add event handler for LowBattery event. Err = " + err);
+ }
+
+ err = Interop.Service.AddEventHandler(out _localeChangedEventHandle, AppEventType.LanguageChanged, OnLocaleChangedNative, IntPtr.Zero);
+ if (err != ErrorCode.None)
+ {
+ Log.Error(LogTag, "Failed to add event handler for LocaleChanged event. Err = " + err);
+ }
+
+ err = Interop.Service.AddEventHandler(out _regionChangedEventHandle, AppEventType.RegionFormatChanged, OnRegionChangedNative, IntPtr.Zero);
+ if (err != ErrorCode.None)
+ {
+ Log.Error(LogTag, "Failed to add event handler for RegionFormatChanged event. Err = " + err);
+ }
+
+ err = Interop.Service.Main(args.Length, args, ref _callbacks, IntPtr.Zero);
+ if (err != ErrorCode.None)
+ {
+ Log.Error(LogTag, "Failed to run the application. Err = " + err);
+ }
+ }
+
+ protected override void Dispose(bool disposing)
+ {
+ if (!_disposedValue)
+ {
+ if (disposing)
+ {
+ // Release disposable objects
+ }
+
+ if (_lowMemoryEventHandle != IntPtr.Zero)
+ {
+ Interop.Service.RemoveEventHandler(_lowMemoryEventHandle);
+ }
+ if (_lowBatteryEventHandle != IntPtr.Zero)
+ {
+ Interop.Service.RemoveEventHandler(_lowBatteryEventHandle);
+ }
+ if (_localeChangedEventHandle != IntPtr.Zero)
+ {
+ Interop.Service.RemoveEventHandler(_localeChangedEventHandle);
+ }
+ if (_regionChangedEventHandle != IntPtr.Zero)
+ {
+ Interop.Service.RemoveEventHandler(_regionChangedEventHandle);
+ }
+
+ _disposedValue = true;
+ }
+ }
+
+ private bool OnCreateNative(IntPtr data)
+ {
+ if (Handlers.ContainsKey(EventType.Created))
+ {
+ var handler = Handlers[EventType.Created] as Action;
+ handler?.Invoke();
+ }
+ return true;
+ }
+
+ private void OnTerminateNative(IntPtr data)
+ {
+ if (Handlers.ContainsKey(EventType.Terminated))
+ {
+ var handler = Handlers[EventType.Terminated] as Action;
+ handler?.Invoke();
+ }
+ }
+
+ private void OnAppControlNative(IntPtr appControlHandle, IntPtr data)
+ {
+ if (Handlers.ContainsKey(EventType.AppControlReceived))
+ {
+ // Create a SafeAppControlHandle but the ownsHandle is false,
+ // because the appControlHandle will be closed by native appfw after this method automatically.
+ SafeAppControlHandle safeHandle = new SafeAppControlHandle(appControlHandle, false);
+
+ var handler = Handlers[EventType.AppControlReceived] as Action<AppControlReceivedEventArgs>;
+ handler?.Invoke(new AppControlReceivedEventArgs(new ReceivedAppControl(safeHandle)));
+ }
+ }
+
+ protected override void OnLowMemoryNative(IntPtr infoHandle, IntPtr data)
+ {
+ base.OnLowBatteryNative(infoHandle, data);
+ }
+
+ protected override void OnLowBatteryNative(IntPtr infoHandle, IntPtr data)
+ {
+ base.OnLowBatteryNative(infoHandle, data);
+ }
+
+ protected override void OnLocaleChangedNative(IntPtr infoHandle, IntPtr data)
+ {
+ base.OnLocaleChangedNative(infoHandle, data);
+ }
+
+ protected override void OnRegionChangedNative(IntPtr infoHandle, IntPtr data)
+ {
+ base.OnRegionChangedNative(infoHandle, data);
+ }
+
+ }
+}
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProjectGuid>{A399ED54-EB41-4773-9A29-772640C093EC}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>
+ </RootNamespace>
+ <AssemblyName>Tizen.Applications.Service</AssemblyName>
+ <FileAlignment>512</FileAlignment>
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Debug\Net45\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\Net45\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ </PropertyGroup>
+ <PropertyGroup>
+ <SignAssembly>true</SignAssembly>
+ </PropertyGroup>
+ <PropertyGroup>
+ <AssemblyOriginatorKeyFile>Tizen.Applications.Service.snk</AssemblyOriginatorKeyFile>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Net.Http" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Interop\Interop.Libraries.cs" />
+ <Compile Include="Interop\Interop.Service.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="Tizen.Applications.CoreBackend\ServiceCoreBackend.cs" />
+ <Compile Include="Tizen.Applications\ServiceApplication.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="Tizen.Applications.Service.Net45.project.json" />
+ <None Include="Tizen.Applications.Service.snk" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\Tizen.Applications.Common\Tizen.Applications.Common.Net45.csproj">
+ <Project>{9acb2b86-bbea-4faa-880a-1977ab461c51}</Project>
+ <Name>Tizen.Applications.Common.Net45</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- 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>
+ -->
+</Project>
\ No newline at end of file
--- /dev/null
+{
+ "dependencies": {
+ "Tizen": "1.0.2"
+ },
+ "frameworks": {
+ "net45": {}
+ },
+ "runtimes": {
+ "win": {}
+ }
+}
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProjectGuid>{FF139F0E-DB10-4074-AFA1-229A7CAB54A3}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>
+ </RootNamespace>
+ <AssemblyName>Tizen.Applications.Service</AssemblyName>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup>
+ <TargetFrameworkIdentifier>.NETStandard</TargetFrameworkIdentifier>
+ <TargetFrameworkVersion>v1.3</TargetFrameworkVersion>
+ <NuGetTargetMoniker>.NETStandard,Version=v1.3</NuGetTargetMoniker>
+ <AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
+ <NoStdLib>true</NoStdLib>
+ <NoWarn>$(NoWarn);1701;1702</NoWarn>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ </PropertyGroup>
+ <PropertyGroup>
+ <SignAssembly>true</SignAssembly>
+ </PropertyGroup>
+ <PropertyGroup>
+ <AssemblyOriginatorKeyFile>Tizen.Applications.Service.snk</AssemblyOriginatorKeyFile>
+ </PropertyGroup>
+ <ItemGroup>
+ <Compile Include="Interop\Interop.Libraries.cs" />
+ <Compile Include="Interop\Interop.Service.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="Tizen.Applications.CoreBackend\ServiceCoreBackend.cs" />
+ <Compile Include="Tizen.Applications\ServiceApplication.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="Tizen.Applications.Service.project.json" />
+ <None Include="Tizen.Applications.Service.snk" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\Tizen.Applications.Common\Tizen.Applications.Common.csproj">
+ <Project>{663c5a3d-e631-4987-aee7-f498c56a40fc}</Project>
+ <Name>Tizen.Applications.Common</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- 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>
+ -->
+ <PropertyGroup>
+ <!-- https://github.com/dotnet/corefxlab/tree/master/samples/NetCoreSample and
+ https://docs.microsoft.com/en-us/dotnet/articles/core/tutorials/target-dotnetcore-with-msbuild
+ -->
+ <!-- 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).
+ -->
+ <_TargetFrameworkDirectories>$(MSBuildThisFileDirectory)</_TargetFrameworkDirectories>
+ <_FullFrameworkReferenceAssemblyPaths>$(MSBuildThisFileDirectory)</_FullFrameworkReferenceAssemblyPaths>
+ <AutoUnifyAssemblyReferences>true</AutoUnifyAssemblyReferences>
+ </PropertyGroup>
+</Project>
\ No newline at end of file
--- /dev/null
+<?xml version="1.0"?>
+<package>
+ <metadata>
+ <id>Tizen.Applications.Service</id>
+ <version>$version$</version>
+ <authors>Samsung Electronics</authors>
+ <requireLicenseAcceptance>false</requireLicenseAcceptance>
+ <licenseUrl>https://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
+ <projectUrl>https://www.tizen.org/</projectUrl>
+ <iconUrl>https://developer.tizen.org/sites/default/files/images/tizen-pinwheel-on-light-rgb_64_64.png</iconUrl>
+ <copyright>© Samsung Electronics Co., Ltd All Rights Reserved</copyright>
+ <description>Provides the Application Frameworks API for Tizen.Net</description>
+ <dependencies>
+ <dependency id="Tizen" version="1.0.2" />
+ <dependency id="Tizen.Applications.Common" version="1.2.0" />
+ </dependencies>
+ </metadata>
+ <files>
+ <file src="bin/$Configuration$/Tizen.Applications.Service.dll" target="lib/netstandard1.3" />
+ <file src="bin/$Configuration$/Net45/Tizen.Applications.Service.dll" target="lib/net45" />
+ </files>
+</package>
--- /dev/null
+{
+ "dependencies": {
+ "NETStandard.Library": "1.6.0",
+ "Tizen": "1.0.2"
+ },
+ "frameworks": {
+ "netstandard1.3": {}
+ }
+}
using System;
using System.Runtime.InteropServices;
-
+using Tizen.Applications.CoreBackend;
using Tizen.Internals.Errors;
internal static partial class Interop
{
internal static partial class Application
{
+ internal delegate void AppEventCallback(IntPtr handle, IntPtr data);
+
internal delegate bool AppCreateCallback(IntPtr userData);
internal delegate void AppPauseCallback(IntPtr userData);
internal static extern void Exit();
[DllImport(Libraries.Application, EntryPoint = "ui_app_add_event_handler")]
- internal static extern ErrorCode AddEventHandler(out IntPtr handle, AppCommon.AppEventType eventType, AppCommon.AppEventCallback callback, IntPtr data);
+ internal static extern ErrorCode AddEventHandler(out IntPtr handle, DefaultCoreBackend.AppEventType eventType, AppEventCallback callback, IntPtr data);
[DllImport(Libraries.Application, EntryPoint = "ui_app_remove_event_handler")]
internal static extern ErrorCode RemoveEventHandler(IntPtr handle);
--- /dev/null
+/*
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+internal static partial class Interop
+{
+ internal static partial class Libraries
+ {
+ public const string Application = "libcapi-appfw-application.so.0";
+ }
+}
--- /dev/null
+using System;
+using System.Reflection;
+using System.Runtime.InteropServices;
+
+[assembly: AssemblyTitle("Tizen.Applications.UI")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Samsung Electronics")]
+[assembly: AssemblyProduct("Tizen.Applications")]
+[assembly: AssemblyCopyright("Copyright (c) 2015 Samsung Electronics Co., Ltd")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+[assembly: ComVisible(false)]
+[assembly: CLSCompliant(true)]
+
+[assembly: Guid("d2d1a3ce-000e-4ab3-81c4-a8a44a008989")]
+
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
--- /dev/null
+/*
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+using System;
+
+using Tizen.Internals.Errors;
+
+namespace Tizen.Applications.CoreBackend
+{
+ internal class UICoreBackend : DefaultCoreBackend
+ {
+ private Interop.Application.UIAppLifecycleCallbacks _callbacks;
+ private IntPtr _lowMemoryEventHandle = IntPtr.Zero;
+ private IntPtr _lowBatteryEventHandle = IntPtr.Zero;
+ private IntPtr _localeChangedEventHandle = IntPtr.Zero;
+ private IntPtr _regionChangedEventHandle = IntPtr.Zero;
+ private bool _disposedValue = false;
+
+ public UICoreBackend()
+ {
+ _callbacks.OnCreate = new Interop.Application.AppCreateCallback(OnCreateNative);
+ _callbacks.OnTerminate = new Interop.Application.AppTerminateCallback(OnTerminateNative);
+ _callbacks.OnAppControl = new Interop.Application.AppControlCallback(OnAppControlNative);
+ _callbacks.OnResume = new Interop.Application.AppResumeCallback(OnResumeNative);
+ _callbacks.OnPause = new Interop.Application.AppPauseCallback(OnPauseNative);
+ }
+
+ public override void Exit()
+ {
+ Interop.Application.Exit();
+ }
+
+ public override void Run(string[] args)
+ {
+ base.Run(args);
+
+ ErrorCode err = ErrorCode.None;
+ err = Interop.Application.AddEventHandler(out _lowMemoryEventHandle, AppEventType.LowMemory, OnLowMemoryNative, IntPtr.Zero);
+ if (err != ErrorCode.None)
+ {
+ Log.Error(LogTag, "Failed to add event handler for LowMemory event. Err = " + err);
+ }
+ err = Interop.Application.AddEventHandler(out _lowBatteryEventHandle, AppEventType.LowBattery, OnLowBatteryNative, IntPtr.Zero);
+ if (err != ErrorCode.None)
+ {
+ Log.Error(LogTag, "Failed to add event handler for LowBattery event. Err = " + err);
+ }
+
+ err = Interop.Application.AddEventHandler(out _localeChangedEventHandle, AppEventType.LanguageChanged, OnLocaleChangedNative, IntPtr.Zero);
+ if (err != ErrorCode.None)
+ {
+ Log.Error(LogTag, "Failed to add event handler for LocaleChanged event. Err = " + err);
+ }
+
+ err = Interop.Application.AddEventHandler(out _regionChangedEventHandle, AppEventType.RegionFormatChanged, OnRegionChangedNative, IntPtr.Zero);
+ if (err != ErrorCode.None)
+ {
+ Log.Error(LogTag, "Failed to add event handler for RegionFormatChanged event. Err = " + err);
+ }
+
+ err = Interop.Application.Main(args.Length, args, ref _callbacks, IntPtr.Zero);
+ if (err != ErrorCode.None)
+ {
+ Log.Error(LogTag, "Failed to run the application. Err = " + err);
+ }
+ }
+
+ protected override void Dispose(bool disposing)
+ {
+ if (!_disposedValue)
+ {
+ if (disposing)
+ {
+ // Release disposable objects
+ }
+
+ if (_lowMemoryEventHandle != IntPtr.Zero)
+ {
+ Interop.Application.RemoveEventHandler(_lowMemoryEventHandle);
+ }
+ if (_lowBatteryEventHandle != IntPtr.Zero)
+ {
+ Interop.Application.RemoveEventHandler(_lowBatteryEventHandle);
+ }
+ if (_localeChangedEventHandle != IntPtr.Zero)
+ {
+ Interop.Application.RemoveEventHandler(_localeChangedEventHandle);
+ }
+ if (_regionChangedEventHandle != IntPtr.Zero)
+ {
+ Interop.Application.RemoveEventHandler(_regionChangedEventHandle);
+ }
+
+ _disposedValue = true;
+ }
+ }
+
+ private bool OnCreateNative(IntPtr data)
+ {
+ if (Handlers.ContainsKey(EventType.PreCreated))
+ {
+ var handler = Handlers[EventType.PreCreated] as Action;
+ handler?.Invoke();
+ }
+
+ if (Handlers.ContainsKey(EventType.Created))
+ {
+ var handler = Handlers[EventType.Created] as Action;
+ handler?.Invoke();
+ }
+ return true;
+ }
+
+ private void OnTerminateNative(IntPtr data)
+ {
+ if (Handlers.ContainsKey(EventType.Terminated))
+ {
+ var handler = Handlers[EventType.Terminated] as Action;
+ handler?.Invoke();
+ }
+ }
+
+ private void OnAppControlNative(IntPtr appControlHandle, IntPtr data)
+ {
+ if (Handlers.ContainsKey(EventType.AppControlReceived))
+ {
+ // Create a SafeAppControlHandle but the ownsHandle is false,
+ // because the appControlHandle will be closed by native appfw after this method automatically.
+ SafeAppControlHandle safeHandle = new SafeAppControlHandle(appControlHandle, false);
+
+ var handler = Handlers[EventType.AppControlReceived] as Action<AppControlReceivedEventArgs>;
+ handler?.Invoke(new AppControlReceivedEventArgs(new ReceivedAppControl(safeHandle)));
+ }
+ }
+
+ private void OnResumeNative(IntPtr data)
+ {
+ if (Handlers.ContainsKey(EventType.Resumed))
+ {
+ var handler = Handlers[EventType.Resumed] as Action;
+ handler?.Invoke();
+ }
+ }
+
+ private void OnPauseNative(IntPtr data)
+ {
+ if (Handlers.ContainsKey(EventType.Paused))
+ {
+ var handler = Handlers[EventType.Paused] as Action;
+ handler?.Invoke();
+ }
+ }
+
+ protected override void OnLowMemoryNative(IntPtr infoHandle, IntPtr data)
+ {
+ base.OnLowBatteryNative(infoHandle, data);
+ }
+
+ protected override void OnLowBatteryNative(IntPtr infoHandle, IntPtr data)
+ {
+ base.OnLowBatteryNative(infoHandle, data);
+ }
+
+ protected override void OnLocaleChangedNative(IntPtr infoHandle, IntPtr data)
+ {
+ base.OnLocaleChangedNative(infoHandle, data);
+ }
+
+ protected override void OnRegionChangedNative(IntPtr infoHandle, IntPtr data)
+ {
+ base.OnRegionChangedNative(infoHandle, data);
+ }
+ }
+}
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProjectGuid>{9D0FA46A-BF8B-46AF-9DD9-02A72C8997AD}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>
+ </RootNamespace>
+ <AssemblyName>Tizen.Applications.UI</AssemblyName>
+ <FileAlignment>512</FileAlignment>
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Debug\Net45\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\Net45\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ </PropertyGroup>
+ <PropertyGroup>
+ <SignAssembly>true</SignAssembly>
+ </PropertyGroup>
+ <PropertyGroup>
+ <AssemblyOriginatorKeyFile>Tizen.Applications.UI.snk</AssemblyOriginatorKeyFile>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Net.Http" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Interop\Interop.Application.cs" />
+ <Compile Include="Interop\Interop.Libraries.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="Tizen.Applications.CoreBackend\UICoreBackend.cs" />
+ <Compile Include="Tizen.Applications\CoreUIApplication.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="Tizen.Applications.UI.Net45.project.json" />
+ <None Include="Tizen.Applications.UI.snk" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\Tizen.Applications.Common\Tizen.Applications.Common.Net45.csproj">
+ <Project>{9acb2b86-bbea-4faa-880a-1977ab461c51}</Project>
+ <Name>Tizen.Applications.Common.Net45</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- 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>
+ -->
+</Project>
\ No newline at end of file
--- /dev/null
+{
+ "dependencies": {
+ "Tizen": "1.0.2"
+ },
+ "frameworks": {
+ "net45": {}
+ },
+ "runtimes": {
+ "win": {}
+ }
+}
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProjectGuid>{9AFFA998-5065-487E-BEDB-8B290AD2138F}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>
+ </RootNamespace>
+ <AssemblyName>Tizen.Applications.UI</AssemblyName>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup>
+ <TargetFrameworkIdentifier>.NETStandard</TargetFrameworkIdentifier>
+ <TargetFrameworkVersion>v1.3</TargetFrameworkVersion>
+ <NuGetTargetMoniker>.NETStandard,Version=v1.3</NuGetTargetMoniker>
+ <AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
+ <NoStdLib>true</NoStdLib>
+ <NoWarn>$(NoWarn);1701;1702</NoWarn>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ </PropertyGroup>
+ <PropertyGroup>
+ <SignAssembly>true</SignAssembly>
+ </PropertyGroup>
+ <PropertyGroup>
+ <AssemblyOriginatorKeyFile>Tizen.Applications.UI.snk</AssemblyOriginatorKeyFile>
+ </PropertyGroup>
+ <ItemGroup>
+ <Compile Include="Interop\Interop.Application.cs" />
+ <Compile Include="Interop\Interop.Libraries.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="Tizen.Applications.CoreBackend\UICoreBackend.cs" />
+ <Compile Include="Tizen.Applications\CoreUIApplication.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="Tizen.Applications.UI.project.json" />
+ <None Include="Tizen.Applications.UI.snk" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\Tizen.Applications.Common\Tizen.Applications.Common.csproj">
+ <Project>{663c5a3d-e631-4987-aee7-f498c56a40fc}</Project>
+ <Name>Tizen.Applications.Common</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- 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>
+ -->
+ <PropertyGroup>
+ <!-- https://github.com/dotnet/corefxlab/tree/master/samples/NetCoreSample and
+ https://docs.microsoft.com/en-us/dotnet/articles/core/tutorials/target-dotnetcore-with-msbuild
+ -->
+ <!-- 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).
+ -->
+ <_TargetFrameworkDirectories>$(MSBuildThisFileDirectory)</_TargetFrameworkDirectories>
+ <_FullFrameworkReferenceAssemblyPaths>$(MSBuildThisFileDirectory)</_FullFrameworkReferenceAssemblyPaths>
+ <AutoUnifyAssemblyReferences>true</AutoUnifyAssemblyReferences>
+ </PropertyGroup>
+</Project>
\ No newline at end of file
--- /dev/null
+<?xml version="1.0"?>
+<package>
+ <metadata>
+ <id>Tizen.Applications.UI</id>
+ <version>$version$</version>
+ <authors>Samsung Electronics</authors>
+ <requireLicenseAcceptance>false</requireLicenseAcceptance>
+ <licenseUrl>https://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
+ <projectUrl>https://www.tizen.org/</projectUrl>
+ <iconUrl>https://developer.tizen.org/sites/default/files/images/tizen-pinwheel-on-light-rgb_64_64.png</iconUrl>
+ <copyright>© Samsung Electronics Co., Ltd All Rights Reserved</copyright>
+ <description>Provides the Application Frameworks API for Tizen.Net</description>
+ <dependencies>
+ <dependency id="Tizen" version="1.0.2" />
+ <dependency id="Tizen.Applications.Common" version="1.2.0" />
+ </dependencies>
+ </metadata>
+ <files>
+ <file src="bin/$Configuration$/Tizen.Applications.UI.dll" target="lib/netstandard1.3" />
+ <file src="bin/$Configuration$/Net45/Tizen.Applications.UI.dll" target="lib/net45" />
+ </files>
+</package>
--- /dev/null
+{
+ "dependencies": {
+ "NETStandard.Library": "1.6.0",
+ "Tizen": "1.0.2"
+ },
+ "frameworks": {
+ "netstandard1.3": {}
+ }
+}