-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #115 from PepperDash/IMatrixRouting-implementation
4-Series/Essentials 2.0.0 updates
- Loading branch information
Showing
54 changed files
with
1,647 additions
and
149 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Build Essentials Plugin | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
|
||
jobs: | ||
getVersion: | ||
uses: PepperDash/workflow-templates/.github/workflows/essentialsplugins-getversion.yml@main | ||
secrets: inherit | ||
build-3Series: | ||
uses: PepperDash/workflow-templates/.github/workflows/essentialsplugins-3Series-builds.yml@main | ||
secrets: inherit | ||
needs: getVersion | ||
if: needs.getVersion.outputs.newVersion == 'true' | ||
with: | ||
newVersion: ${{ needs.getVersion.outputs.newVersion }} | ||
version: ${{ needs.getVersion.outputs.version }} | ||
tag: ${{ needs.getVersion.outputs.tag }} | ||
channel: ${{ needs.getVersion.outputs.channel }} | ||
build-4Series: | ||
uses: PepperDash/workflow-templates/.github/workflows/essentialsplugins-4Series-builds.yml@main | ||
secrets: inherit | ||
needs: getVersion | ||
if: needs.getVersion.outputs.newVersion == 'true' | ||
with: | ||
newVersion: ${{ needs.getVersion.outputs.newVersion }} | ||
version: ${{ needs.getVersion.outputs.version }} | ||
tag: ${{ needs.getVersion.outputs.tag }} | ||
channel: ${{ needs.getVersion.outputs.channel }} |
This file was deleted.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
.github/workflows/essentialsplugins-releasebuilds-caller.yml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,7 @@ bld/ | |
[Oo]bj/ | ||
[Ll]og/ | ||
[Ll]ogs/ | ||
[Oo]utput/ | ||
|
||
# Visual Studio 2015/2017 cache/options directory | ||
.vs/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"plugins": [ | ||
[ | ||
"@semantic-release/commit-analyzer", | ||
{ | ||
"releaseRules": [ | ||
{ "scope": "force-patch", "release": "patch" }, | ||
{ "scope": "no-release", "release": false } | ||
] | ||
} | ||
], | ||
"@semantic-release/release-notes-generator", | ||
["@semantic-release/changelog", | ||
{ | ||
"changelogFile": "CHANGELOG.md" | ||
} | ||
], | ||
[ | ||
"@semantic-release/exec", | ||
{ | ||
"verifyReleaseCmd": "echo \"newVersion=true\" >> $GITHUB_OUTPUT", | ||
"publishCmd": "echo \"version=${nextRelease.version}\" >> $GITHUB_OUTPUT && echo \"tag=${nextRelease.gitTag}\" >> $GITHUB_OUTPUT && echo \"type=${nextRelease.type}\" >> $GITHUB_OUTPUT && echo \"channel=${nextRelease.channel}\" >> $GITHUB_OUTPUT" | ||
} | ||
] | ||
], | ||
"branches": [ | ||
"main", | ||
{ | ||
"name": "replace-me-feature-branch", | ||
"prerelease": "replace-me-prerelease", | ||
"channel": "replace-me-prerelease" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Copyright (c) <2020> PepperDash Technology Corporation | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 17 | ||
VisualStudioVersion = 17.8.34601.278 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NvxEpi.4Series", "src\NvxEpi\NvxEpi.4Series.csproj", "{A24B641A-8D55-412B-8522-C2F825B17BF9}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{A24B641A-8D55-412B-8522-C2F825B17BF9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{A24B641A-8D55-412B-8522-C2F825B17BF9}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{A24B641A-8D55-412B-8522-C2F825B17BF9}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{A24B641A-8D55-412B-8522-C2F825B17BF9}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {DA074D94-0A55-463E-8A97-3E45A81AD79A} | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<Version>1.0.0-local</Version> | ||
<InformationalVersion>$(Version)</InformationalVersion> | ||
<Authors>PepperDash Technologies</Authors> | ||
<Company>PepperDash Technologies</Company> | ||
<Product>PepperDash Crestron NVX</Product> | ||
<Copyright>Copyright © 2023</Copyright> | ||
<RepositoryUrl>https://github.com/PepperDash/epi-mobile-control</RepositoryUrl> | ||
<RepositoryType>git</RepositoryType> | ||
<PackageTags>Crestron; 4series</PackageTags> | ||
<PackageOutputPath>../../output</PackageOutputPath> | ||
<GeneratePackageOnBuild>True</GeneratePackageOnBuild> | ||
<PackageLicenseFile>LICENSE.md</PackageLicenseFile> | ||
<PackageReadmeFile>README.md</PackageReadmeFile> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<None Include="..\..\LICENSE.md" Pack="true" PackagePath=""/> | ||
<None Include="..\..\README.md" Pack="true" PackagePath=""/> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<Project> | ||
<ItemGroup> | ||
<None Include="$(TargetDir)\$(TargetName).$(Version).cpz" Condition="$(ProjectType) == 'Program'"> | ||
<Pack>true</Pack> | ||
<PackagePath>content;</PackagePath> | ||
</None> | ||
<None Include="$(PackageOutputPath)\$(TargetName).$(Version).cplz" Condition="$(ProjectType) == 'ProgramLibrary'"> | ||
<Pack>true</Pack> | ||
<PackagePath>content;</PackagePath> | ||
</None> | ||
</ItemGroup> | ||
<Target Name="Create CPLZ" AfterTargets="Build; Rebuild" Condition="$(ProjectType) == 'ProgramLibrary'"> | ||
<Message Text="Creating CPLZ"></Message> | ||
<MakeDir Directories="$(PackageOutputPath)" Condition="!Exists($(PackageOutputPath))"></MakeDir> | ||
<ZipDirectory SourceDirectory="$(TargetDir)" DestinationFile="$(PackageOutputPath)\$(TargetName).$(Version).cplz" Overwrite="true"/> | ||
</Target> | ||
<Target Name="Clean CPLZ" AfterTargets="AfterClean" Condition="$(ProjectType) == 'ProgramLibrary'"> | ||
<Delete Files="$(PackageOutputPath)\$(TargetName).$(Version).cplz"/> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using Crestron.SimplSharp; | ||
|
||
using PepperDash.Core; | ||
using PepperDash.Essentials.Core; | ||
using PepperDash.Essentials.Core.Config; | ||
using PepperDash.Essentials.Core.Routing; | ||
|
||
namespace PepperDash.Essentials | ||
{ | ||
public class Amplifier : EssentialsDevice, IRoutingSink | ||
{ | ||
public event SourceInfoChangeHandler CurrentSourceChange; | ||
|
||
public string CurrentSourceInfoKey { get; set; } | ||
public SourceListItem CurrentSourceInfo | ||
{ | ||
get | ||
{ | ||
return _CurrentSourceInfo; | ||
} | ||
set | ||
{ | ||
if (value == _CurrentSourceInfo) return; | ||
|
||
var handler = CurrentSourceChange; | ||
|
||
if (handler != null) | ||
handler(_CurrentSourceInfo, ChangeType.WillChange); | ||
|
||
_CurrentSourceInfo = value; | ||
|
||
if (handler != null) | ||
handler(_CurrentSourceInfo, ChangeType.DidChange); | ||
} | ||
} | ||
SourceListItem _CurrentSourceInfo; | ||
|
||
public RoutingInputPort AudioIn { get; private set; } | ||
|
||
public Amplifier(string key, string name) | ||
: base(key, name) | ||
{ | ||
AudioIn = new RoutingInputPort(RoutingPortNames.AnyAudioIn, eRoutingSignalType.Audio, | ||
eRoutingPortConnectionType.None, null, this); | ||
InputPorts = new RoutingPortCollection<RoutingInputPort> { AudioIn }; | ||
} | ||
|
||
#region IRoutingInputs Members | ||
|
||
public RoutingPortCollection<RoutingInputPort> InputPorts { get; private set; } | ||
|
||
#endregion | ||
} | ||
|
||
public class AmplifierFactory : EssentialsDeviceFactory<Amplifier> | ||
{ | ||
public AmplifierFactory() | ||
{ | ||
TypeNames = new List<string>() { "amplifier" }; | ||
} | ||
|
||
public override EssentialsDevice BuildDevice(DeviceConfig dc) | ||
{ | ||
Debug.Console(1, "Factory Attempting to create new Amplifier Device"); | ||
return new Amplifier(dc.Key, dc.Name); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.