Skip to content

Commit

Permalink
Merge pull request #19 from domoticz/beta-development
Browse files Browse the repository at this point in the history
Beta development (v0.1.2)
  • Loading branch information
galadril authored Apr 6, 2020
2 parents 228cfd5 + cdd8c1d commit b0a2d6f
Show file tree
Hide file tree
Showing 911 changed files with 63,081 additions and 17,662 deletions.
173 changes: 136 additions & 37 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,36 +1,39 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore

# User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates
*.userprefs

# ignore Xamarin.Android Resource.Designer.cs files
**/*.Droid/**/[Rr]esource.[Dd]esigner.cs
**/*.Android/**/[Rr]esource.[Dd]esigner.cs
**/Android/**/[Rr]esource.[Dd]esigner.cs
**/Droid/**/[Rr]esource.[Dd]esigner.cs

# Xamarin Components
Components/
# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs

# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
build/
x86/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/

# Visual Studio 2015 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/

# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*

#NUNIT
# NUNIT
*.VisualState.xml
TestResult.xml

Expand All @@ -39,6 +42,12 @@ TestResult.xml
[Rr]eleasePS/
dlldata.c

# .NET Core
project.lock.json
project.fragment.lock.json
artifacts/
**/Properties/launchSettings.json

*_i.c
*_p.c
*_i.h
Expand Down Expand Up @@ -71,14 +80,18 @@ _Chutzpah*
ipch/
*.aps
*.ncb
*.opendb
*.opensdf
*.sdf
*.cachefile
*.VC.db
*.VC.VC.opendb

# Visual Studio profiler
*.psess
*.vsp
*.vspx
*.sap

# TFS 2012 Local Workspace
$tf/
Expand All @@ -91,7 +104,7 @@ _ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user

# JustCode is a .NET coding addin-in
# JustCode is a .NET coding add-in
.JustCode

# TeamCity is a build add-in
Expand All @@ -100,10 +113,14 @@ _TeamCity*
# DotCover is a Code Coverage Tool
*.dotCover

# Visual Studio code coverage results
*.coverage
*.coveragexml

# NCrunch
*.ncrunch*
_NCrunch_*
.*crunch*.local.xml
nCrunchTemp_*

# MightyMoose
*.mm.*
Expand Down Expand Up @@ -131,47 +148,69 @@ publish/
# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml

# NuGet Packages Directory
packages/
*.nuget.targets
*.lock.json
# TODO: Comment the next line if you want to checkin your web deploy settings
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj

# Microsoft Azure Web App publish settings. Comment the next line if you want to
# checkin your Azure Web App publish settings, but sensitive information contained
# in these scripts will be unencrypted
PublishScripts/

# NuGet Packages
*.nupkg
# The packages folder can be ignored because of Package Restore
**/packages/*
# except build/, which is used as an MSBuild target.
!**/packages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/packages/repositories.config
# NuGet v3's project.json files produces more ignorable files
*.nuget.props
*.nuget.targets

## TODO: If the tool you use requires repositories.config uncomment the next line
#!packages/repositories.config

# Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets
# This line needs to be after the ignore of the build folder (and the packages folder if the line above has been uncommented)
!packages/build/

# Windows Azure Build Output
# Microsoft Azure Build Output
csx/
*.build.csdef

# Windows Store app package directory
# Microsoft Azure Emulator
ecf/
rcf/

# Windows Store app package directories and files
AppPackages/
BundleArtifacts/
Package.StoreAssociation.xml
_pkginfo.txt

# Visual Studio cache files
# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!*.[Cc]ache/

# Others
sql/
*.Cache
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.jfm
*.pfx
*.publishsettings
node_modules/
.DS_Store
*.bak
orleans.codegen.cs

# Since there are multiple workflows, uncomment next line to ignore bower_components
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
#bower_components/

# RIA/Silverlight projects
Generated_Code/

# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)
# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
Expand All @@ -180,6 +219,7 @@ UpgradeLog*.htm
# SQL Server files
*.mdf
*.ldf
*.ndf

# Business Intelligence projects
*.rdl.data
Expand All @@ -189,6 +229,65 @@ UpgradeLog*.htm
# Microsoft Fakes
FakesAssemblies/

.vs/NL.HNOGames.Domoticz/v15/**
*.ide
# GhostDoc plugin setting file
*.GhostDoc.xml

# Node.js Tools for Visual Studio
.ntvs_analysis.dat
node_modules/

# Typescript v1 declaration files
typings/

# Visual Studio 6 build log
*.plg

# Visual Studio 6 workspace options file
*.opt

# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
*.vbw

# Visual Studio LightSwitch build output
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
**/*.DesktopClient/ModelManifest.xml
**/*.Server/GeneratedArtifacts
**/*.Server/ModelManifest.xml
_Pvt_Extensions

# Paket dependency manager
.paket/paket.exe
paket-files/

# FAKE - F# Make
.fake/

# JetBrains Rider
.idea/
*.sln.iml

# CodeRush
.cr/

# Python Tools for Visual Studio (PTVS)
__pycache__/
*.pyc

# Cake - Uncomment if you are using it
# tools/**
# !tools/packages.config

# Telerik's JustMock configuration file
*.jmconfig

# BizTalk build output
*.btp.cs
*.btm.cs
*.odx.cs
*.xsd.cs
*.apk
.vs/NL.HNOGames.Domoticz/DesignTimeBuild/.dtbcache
*.ide-shm
*.ide-wal
.vs/NL.HNOGames.Domoticz/DesignTimeBuild/.dtbcache
Binary file removed .vs/NL.HNOGames.Domoticz/DesignTimeBuild/.dtbcache
Binary file not shown.
Binary file removed .vs/NL.HNOGames.Domoticz/v15/sqlite3/storage.ide
Binary file not shown.
29 changes: 3 additions & 26 deletions NL.HNOGames.Domoticz.sln
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26228.10
# Visual Studio Version 16
VisualStudioVersion = 16.0.29920.165
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NL.HNOGames.Domoticz", "NL.HNOGames.Domoticz\NL.HNOGames.Domoticz\NL.HNOGames.Domoticz.csproj", "{C13C8119-A8A5-4DC5-A7DD-A0C9733BDCEB}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NL.HNOGames.Domoticz.Android", "NL.HNOGames.Domoticz\NL.HNOGames.Domoticz.Android\NL.HNOGames.Domoticz.Android.csproj", "{4E9FEEC9-BFE0-46C3-8620-19B107761BBE}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NL.HNOGames.Domoticz.iOS", "NL.HNOGames.Domoticz\NL.HNOGames.Domoticz.iOS\NL.HNOGames.Domoticz.iOS.csproj", "{1406A3F3-481E-45B3-AA2B-70F664F145F8}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NL.HNOGames.OOTT.iOS", "NL.HNOGames.Domoticz\NL.HNOGames.OOTT.iOS\NL.HNOGames.OOTT.iOS.csproj", "{F7207160-EA66-4B72-9F6A-46FAED160C4F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -128,6 +126,7 @@ Global
{1406A3F3-481E-45B3-AA2B-70F664F145F8}.Debug|ARM.ActiveCfg = Debug|iPhone
{1406A3F3-481E-45B3-AA2B-70F664F145F8}.Debug|iPhone.ActiveCfg = Debug|iPhone
{1406A3F3-481E-45B3-AA2B-70F664F145F8}.Debug|iPhone.Build.0 = Debug|iPhone
{1406A3F3-481E-45B3-AA2B-70F664F145F8}.Debug|iPhone.Deploy.0 = Debug|iPhone
{1406A3F3-481E-45B3-AA2B-70F664F145F8}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
{1406A3F3-481E-45B3-AA2B-70F664F145F8}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
{1406A3F3-481E-45B3-AA2B-70F664F145F8}.Debug|x64.ActiveCfg = Debug|iPhone
Expand All @@ -147,28 +146,6 @@ Global
{1406A3F3-481E-45B3-AA2B-70F664F145F8}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
{1406A3F3-481E-45B3-AA2B-70F664F145F8}.Release|x64.ActiveCfg = Release|iPhone
{1406A3F3-481E-45B3-AA2B-70F664F145F8}.Release|x86.ActiveCfg = Release|iPhone
{F7207160-EA66-4B72-9F6A-46FAED160C4F}.Debug|Any CPU.ActiveCfg = Debug|iPhone
{F7207160-EA66-4B72-9F6A-46FAED160C4F}.Debug|Any CPU.Build.0 = Debug|iPhone
{F7207160-EA66-4B72-9F6A-46FAED160C4F}.Debug|ARM.ActiveCfg = Debug|iPhone
{F7207160-EA66-4B72-9F6A-46FAED160C4F}.Debug|iPhone.ActiveCfg = Debug|iPhone
{F7207160-EA66-4B72-9F6A-46FAED160C4F}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
{F7207160-EA66-4B72-9F6A-46FAED160C4F}.Debug|x64.ActiveCfg = Debug|iPhone
{F7207160-EA66-4B72-9F6A-46FAED160C4F}.Debug|x86.ActiveCfg = Debug|iPhone
{F7207160-EA66-4B72-9F6A-46FAED160C4F}.OOTT|Any CPU.ActiveCfg = OOTT|iPhone
{F7207160-EA66-4B72-9F6A-46FAED160C4F}.OOTT|ARM.ActiveCfg = OOTT|iPhone
{F7207160-EA66-4B72-9F6A-46FAED160C4F}.OOTT|iPhone.ActiveCfg = OOTT|iPhone
{F7207160-EA66-4B72-9F6A-46FAED160C4F}.OOTT|iPhone.Build.0 = OOTT|iPhone
{F7207160-EA66-4B72-9F6A-46FAED160C4F}.OOTT|iPhoneSimulator.ActiveCfg = OOTT|iPhoneSimulator
{F7207160-EA66-4B72-9F6A-46FAED160C4F}.OOTT|iPhoneSimulator.Build.0 = OOTT|iPhoneSimulator
{F7207160-EA66-4B72-9F6A-46FAED160C4F}.OOTT|x64.ActiveCfg = OOTT|iPhone
{F7207160-EA66-4B72-9F6A-46FAED160C4F}.OOTT|x86.ActiveCfg = OOTT|iPhone
{F7207160-EA66-4B72-9F6A-46FAED160C4F}.Release|Any CPU.ActiveCfg = Release|iPhone
{F7207160-EA66-4B72-9F6A-46FAED160C4F}.Release|Any CPU.Build.0 = Release|iPhone
{F7207160-EA66-4B72-9F6A-46FAED160C4F}.Release|ARM.ActiveCfg = Release|iPhone
{F7207160-EA66-4B72-9F6A-46FAED160C4F}.Release|iPhone.ActiveCfg = Release|iPhone
{F7207160-EA66-4B72-9F6A-46FAED160C4F}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
{F7207160-EA66-4B72-9F6A-46FAED160C4F}.Release|x64.ActiveCfg = Release|iPhone
{F7207160-EA66-4B72-9F6A-46FAED160C4F}.Release|x86.ActiveCfg = Release|iPhone
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
using NL.HNOGames.Domoticz.Droid.Helpers;
using NL.HNOGames.Domoticz.Helpers;


[assembly: Xamarin.Forms.Dependency(typeof(CloseApplication))]
namespace NL.HNOGames.Domoticz.Droid.Helpers
{
public class CloseApplication : ICloseApplication
{
/// <summary>
/// Close application
/// </summary>
public void Close()
{
Android.OS.Process.KillProcess(Android.OS.Process.MyPid());
}
}
}
/// <summary>
/// Defines the <see cref="CloseApplication" />
/// </summary>
public class CloseApplication : ICloseApplication
{
#region Public

/// <summary>
/// Close application
/// </summary>
public void Close()
{
Android.OS.Process.KillProcess(Android.OS.Process.MyPid());
}

#endregion
}
}
Loading

0 comments on commit b0a2d6f

Please sign in to comment.