Skip to content

Commit 85d2e4e

Browse files
committed
fix: update template repo
1. update workflow files 2. Add 3-series SLN and csproj files - Remove from project when using the template if not needed 3. Update 4-series SLN and csproj files 4. Moved SLN's to root of project 5. Rename *.cs files to identify naming convention of 'MakeModel' 6. Upate packages.config to reference latest Essentials v1 release
1 parent 7c3c0be commit 85d2e4e

14 files changed

Lines changed: 579 additions & 573 deletions

.github/workflows/EssentialsPlugins-builds-caller.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
getVersion:
1010
uses: PepperDash/workflow-templates/.github/workflows/essentialsplugins-getversion.yml@main
1111
secrets: inherit
12+
1213
build-3Series:
1314
uses: PepperDash/workflow-templates/.github/workflows/essentialsplugins-3Series-builds.yml@main
1415
secrets: inherit
@@ -19,6 +20,7 @@ jobs:
1920
version: ${{ needs.getVersion.outputs.version }}
2021
tag: ${{ needs.getVersion.outputs.tag }}
2122
channel: ${{ needs.getVersion.outputs.channel }}
23+
2224
build-4Series:
2325
uses: PepperDash/workflow-templates/.github/workflows/essentialsplugins-4Series-builds.yml@main
2426
secrets: inherit

epi-make-model.3Series.sln

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 10.00
3+
# Visual Studio 2008
4+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "epi-make-model.3Series", "src\epi-make-model.3Series.csproj", "{9D249E47-8F95-4437-A6BB-563510287AD1}"
5+
EndProject
6+
Global
7+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
8+
Debug|Any CPU = Debug|Any CPU
9+
Release|Any CPU = Release|Any CPU
10+
EndGlobalSection
11+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
12+
{9D249E47-8F95-4437-A6BB-563510287AD1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
13+
{9D249E47-8F95-4437-A6BB-563510287AD1}.Debug|Any CPU.Build.0 = Debug|Any CPU
14+
{9D249E47-8F95-4437-A6BB-563510287AD1}.Release|Any CPU.ActiveCfg = Release|Any CPU
15+
{9D249E47-8F95-4437-A6BB-563510287AD1}.Release|Any CPU.Build.0 = Release|Any CPU
16+
EndGlobalSection
17+
GlobalSection(SolutionProperties) = preSolution
18+
HideSolutionNode = FALSE
19+
EndGlobalSection
20+
EndGlobal

PDT.EssentialsPluginTemplate.EPI.4Series.sln renamed to epi-make-model.4Series.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
44
VisualStudioVersion = 17.11.35327.3
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PDT.EssentialsPluginTemplate.EPI.4Series.", "src\PDT.EssentialsPluginTemplate.EPI.4Series..csproj", "{52E6E0A0-A710-4B5F-AF52-08816F5C99BB}"
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "epi-make-model.4Series", "src\epi-make-model.4Series.csproj", "{52E6E0A0-A710-4B5F-AF52-08816F5C99BB}"
77
EndProject
88
Global
99
GlobalSection(SolutionConfigurationPlatforms) = preSolution

packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<packages>
2-
<package id="PepperDashEssentials" version="1.10.2" targetFramework="net35" allowedVersions="[1.0,2.0)"/>
2+
<package id="PepperDashEssentials" version="1.16.1" targetFramework="net35" allowedVersions="[1.0,2.0)"/>
33
</packages>

src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<Authors>PepperDash Technologies</Authors>
66
<Company>PepperDash Technologies</Company>
77
<Product>PepperDash Essentials Plugin Template</Product>
8-
<Copyright>Copyright © 2024</Copyright>
8+
<Copyright>Copyright © 2025</Copyright>
99
<RepositoryUrl>https://github.com/PepperDash/EssentialsPluginTemplate.git</RepositoryUrl>
1010
<RepositoryType>git</RepositoryType>
1111
<PackageTags>Crestron; 4series</PackageTags>
Lines changed: 100 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -1,101 +1,101 @@
1-
using PepperDash.Essentials.Core;
2-
3-
namespace EssentialsPluginTemplate
4-
{
5-
/// <summary>
6-
/// Plugin device Bridge Join Map
7-
/// </summary>
8-
/// <remarks>
9-
/// Rename the class to match the device plugin being developed. Reference Essentials JoinMaps, if one exists for the device plugin being developed
10-
/// </remarks>
11-
/// <see cref="PepperDash.Essentials.Core.Bridges"/>
12-
/// <example>
13-
/// "EssentialsPluginBridgeJoinMapTemplate" renamed to "SamsungMdcBridgeJoinMap"
14-
/// </example>
15-
public class EssentialsPluginTemplateBridgeJoinMap : JoinMapBaseAdvanced
16-
{
17-
#region Digital
18-
19-
// TODO [ ] Add digital joins below plugin being developed
20-
21-
[JoinName("IsOnline")]
22-
public JoinDataComplete IsOnline = new JoinDataComplete(
23-
new JoinData
24-
{
25-
JoinNumber = 1,
26-
JoinSpan = 1
27-
},
28-
new JoinMetadata
29-
{
30-
Description = "Is Online",
31-
JoinCapabilities = eJoinCapabilities.ToSIMPL,
32-
JoinType = eJoinType.Digital
33-
});
34-
35-
[JoinName("Connect")]
36-
public JoinDataComplete Connect = new JoinDataComplete(
37-
new JoinData
38-
{
39-
JoinNumber = 2,
40-
JoinSpan = 1
41-
},
42-
new JoinMetadata
43-
{
44-
Description = "Connect (Held)/Disconnect (Release) & corresponding feedback",
45-
JoinCapabilities = eJoinCapabilities.ToFromSIMPL,
46-
JoinType = eJoinType.Digital
47-
});
48-
49-
#endregion
50-
51-
52-
#region Analog
53-
54-
// TODO [ ] Add analog joins below plugin being developed
55-
56-
[JoinName("Status")]
57-
public JoinDataComplete Status = new JoinDataComplete(
58-
new JoinData
59-
{
60-
JoinNumber = 1,
61-
JoinSpan = 1
62-
},
63-
new JoinMetadata
64-
{
65-
Description = "Socket Status",
66-
JoinCapabilities = eJoinCapabilities.ToSIMPL,
67-
JoinType = eJoinType.Analog
68-
});
69-
70-
#endregion
71-
72-
73-
#region Serial
74-
75-
// TODO [ ] Add serial joins below plugin being developed
76-
77-
public JoinDataComplete DeviceName = new JoinDataComplete(
78-
new JoinData
79-
{
80-
JoinNumber = 1,
81-
JoinSpan = 1
82-
},
83-
new JoinMetadata
84-
{
85-
Description = "Device Name",
86-
JoinCapabilities = eJoinCapabilities.ToSIMPL,
87-
JoinType = eJoinType.Serial
88-
});
89-
90-
#endregion
91-
92-
/// <summary>
93-
/// Plugin device BridgeJoinMap constructor
94-
/// </summary>
95-
/// <param name="joinStart">This will be the join it starts on the EISC bridge</param>
96-
public EssentialsPluginTemplateBridgeJoinMap(uint joinStart)
97-
: base(joinStart, typeof(EssentialsPluginTemplateBridgeJoinMap))
98-
{
99-
}
100-
}
1+
using PepperDash.Essentials.Core;
2+
3+
namespace PepperDash.Essentials.Plugin
4+
{
5+
/// <summary>
6+
/// Plugin device Bridge Join Map
7+
/// </summary>
8+
/// <remarks>
9+
/// Rename the class to match the device plugin being developed. Reference Essentials JoinMaps, if one exists for the device plugin being developed
10+
/// </remarks>
11+
/// <see cref="PepperDash.Essentials.Core.Bridges"/>
12+
/// <example>
13+
/// "EssentialsPluginBridgeJoinMapTemplate" renamed to "SamsungMdcBridgeJoinMap"
14+
/// </example>
15+
public class EssentialsPluginTemplateBridgeJoinMap : JoinMapBaseAdvanced
16+
{
17+
#region Digital
18+
19+
// TODO [ ] Add digital joins below plugin being developed
20+
21+
[JoinName("IsOnline")]
22+
public JoinDataComplete IsOnline = new JoinDataComplete(
23+
new JoinData
24+
{
25+
JoinNumber = 1,
26+
JoinSpan = 1
27+
},
28+
new JoinMetadata
29+
{
30+
Description = "Is Online",
31+
JoinCapabilities = eJoinCapabilities.ToSIMPL,
32+
JoinType = eJoinType.Digital
33+
});
34+
35+
[JoinName("Connect")]
36+
public JoinDataComplete Connect = new JoinDataComplete(
37+
new JoinData
38+
{
39+
JoinNumber = 2,
40+
JoinSpan = 1
41+
},
42+
new JoinMetadata
43+
{
44+
Description = "Connect (Held)/Disconnect (Release) & corresponding feedback",
45+
JoinCapabilities = eJoinCapabilities.ToFromSIMPL,
46+
JoinType = eJoinType.Digital
47+
});
48+
49+
#endregion
50+
51+
52+
#region Analog
53+
54+
// TODO [ ] Add analog joins below plugin being developed
55+
56+
[JoinName("Status")]
57+
public JoinDataComplete Status = new JoinDataComplete(
58+
new JoinData
59+
{
60+
JoinNumber = 1,
61+
JoinSpan = 1
62+
},
63+
new JoinMetadata
64+
{
65+
Description = "Socket Status",
66+
JoinCapabilities = eJoinCapabilities.ToSIMPL,
67+
JoinType = eJoinType.Analog
68+
});
69+
70+
#endregion
71+
72+
73+
#region Serial
74+
75+
// TODO [ ] Add serial joins below plugin being developed
76+
77+
public JoinDataComplete DeviceName = new JoinDataComplete(
78+
new JoinData
79+
{
80+
JoinNumber = 1,
81+
JoinSpan = 1
82+
},
83+
new JoinMetadata
84+
{
85+
Description = "Device Name",
86+
JoinCapabilities = eJoinCapabilities.ToSIMPL,
87+
JoinType = eJoinType.Serial
88+
});
89+
90+
#endregion
91+
92+
/// <summary>
93+
/// Plugin device BridgeJoinMap constructor
94+
/// </summary>
95+
/// <param name="joinStart">This will be the join it starts on the EISC bridge</param>
96+
public EssentialsPluginTemplateBridgeJoinMap(uint joinStart)
97+
: base(joinStart, typeof(EssentialsPluginTemplateBridgeJoinMap))
98+
{
99+
}
100+
}
101101
}

src/EssentialsPluginTemplateConfigObject.cs renamed to src/MakeModelConfigObject.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
using System.Collections.Generic;
2-
using Newtonsoft.Json;
3-
using PepperDash.Essentials.Core;
4-
5-
namespace EssentialsPluginTemplate
1+
using System.Collections.Generic;
2+
using Newtonsoft.Json;
3+
using PepperDash.Essentials.Core;
4+
5+
namespace PepperDash.Essentials.Plugin
66
{
77
/// <summary>
88
/// Plugin device configuration object

src/EssentialsPluginTemplateCrestronDevice.cs renamed to src/MakeModelCrestronDevice.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// For Basic SIMPL# Classes
2-
// For Basic SIMPL#Pro classes
3-
4-
using Crestron.SimplSharpPro.DeviceSupport;
5-
using Crestron.SimplSharpPro;
6-
using PepperDash.Core;
7-
using PepperDash.Essentials.Core;
8-
using PepperDash.Essentials.Core.Bridges;
9-
10-
namespace EssentialsPluginTemplate
2+
// For Basic SIMPL#Pro classes
3+
4+
using Crestron.SimplSharpPro;
5+
using Crestron.SimplSharpPro.DeviceSupport;
6+
using PepperDash.Core;
7+
using PepperDash.Essentials.Core;
8+
using PepperDash.Essentials.Core.Bridges;
9+
10+
namespace PepperDash.Essentials.Plugin
1111
{
1212
/// <summary>
1313
/// Plugin device

0 commit comments

Comments
 (0)