Skip to content

Commit

Permalink
update packages
Browse files Browse the repository at this point in the history
  • Loading branch information
diogotr7 committed Mar 1, 2024
1 parent 4917f0f commit b85f692
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 32 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0-windows</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Platforms>x64</Platforms>
<EnableDynamicLoading>true</EnableDynamicLoading>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="ArtemisRGB.UI.Shared" IncludeAssets="compile;build;buildTransitive" Version="1.2024.223.16" />
<PackageReference Include="RazerSdkReader" Version="1.8.0" />
<PackageReference Include="ArtemisRGB.UI.Shared" IncludeAssets="compile;build;buildTransitive" Version="1.2024.228.5" />
<PackageReference Include="RazerSdkReader" Version="1.10.0" />
</ItemGroup>

<ItemGroup>
Expand Down
36 changes: 18 additions & 18 deletions src/Artemis.Plugins.LayerBrushes.Chroma/DefaultChromaLedMap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Artemis.Plugins.LayerBrushes.Chroma;
public static class DefaultChromaLedMap
{
private static readonly LedId[] Keyboard =
{
[
LedId.Invalid,
LedId.Keyboard_Escape,
LedId.Invalid,
Expand Down Expand Up @@ -141,11 +141,11 @@ public static class DefaultChromaLedMap
LedId.Invalid,
LedId.Keyboard_Num0,
LedId.Keyboard_NumPeriodAndDelete,
LedId.Invalid,
};
LedId.Invalid
];

private static readonly LedId[] Mouse =
{
[
LedId.Invalid,
LedId.Invalid,
LedId.Invalid,
Expand Down Expand Up @@ -208,11 +208,11 @@ public static class DefaultChromaLedMap
LedId.Mouse20,
LedId.Mouse21,
LedId.Mouse22,
LedId.Invalid,
};
LedId.Invalid
];

private static readonly LedId[] Mousepad =
{
[
LedId.Mousepad20,
LedId.Mousepad19,
LedId.Mousepad18,
Expand All @@ -232,20 +232,20 @@ public static class DefaultChromaLedMap
LedId.Mousepad4,
LedId.Mousepad3,
LedId.Mousepad2,
LedId.Mousepad1,
};
LedId.Mousepad1
];

private static readonly LedId[] Headset =
{
[
LedId.Headset1,
LedId.Headset2,
LedId.Headset3,
LedId.Headset4,
LedId.Headset5,
};
LedId.Headset5
];

private static readonly LedId[] Keypad =
{
[
LedId.Keypad1,
LedId.Keypad2,
LedId.Keypad3,
Expand All @@ -265,17 +265,17 @@ public static class DefaultChromaLedMap
LedId.Keypad17,
LedId.Keypad18,
LedId.Keypad19,
LedId.Keypad20,
};
LedId.Keypad20
];

private static readonly LedId[] ChromaLink =
{
[
LedId.LedStripe1,
LedId.LedStripe2,
LedId.LedStripe3,
LedId.LedStripe4,
LedId.LedStripe5,
};
LedId.LedStripe5
];

public static LedId[] GetDeviceMap(RzDeviceType r) => r switch
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using System.IO;
using System.Net.Http;
using System.Text;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
using System.Xml;
using Artemis.Core;
using Newtonsoft.Json;

namespace Artemis.Plugins.LayerBrushes.Chroma.Prerequisites;

Expand Down Expand Up @@ -43,7 +42,7 @@ private async Task<string> GetDownloadUrlAsync(HttpClient httpClient)
//a bunch of nullable overrides here but i don't care
const string ENDPOINT = "prod";
var endpointsJson = await httpClient.GetStringAsync("https://discovery.razerapi.com/user/endpoints");
var endpoints = JsonConvert.DeserializeObject<RazerRoot>(endpointsJson);
var endpoints = JsonSerializer.Deserialize<RazerRoot>(endpointsJson);
var prodEndpoint = endpoints!.Endpoints.Find(ep => ep.Name == ENDPOINT);

const string PLATFORM_DATA = """
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="ArtemisRGB.UI.Shared" IncludeAssets="compile;build;buildTransitive" Version="1.2024.223.16" />
<PackageReference Include="ArtemisRGB.UI.Shared" IncludeAssets="compile;build;buildTransitive" Version="1.2024.228.5" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="ArtemisRGB.UI.Shared" IncludeAssets="compile;build;buildTransitive" Version="1.2024.223.16" />
<PackageReference Include="ArtemisRGB.UI.Shared" IncludeAssets="compile;build;buildTransitive" Version="1.2024.228.5" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="ArtemisRGB.UI.Shared" IncludeAssets="compile;build;buildTransitive" Version="1.2024.223.16" />
<PackageReference Include="ArtemisRGB.UI.Shared" IncludeAssets="compile;build;buildTransitive" Version="1.2024.228.5" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="ArtemisRGB.UI.Shared" IncludeAssets="compile;build;buildTransitive" Version="1.2024.223.16" />
<PackageReference Include="ArtemisRGB.UI.Shared" IncludeAssets="compile;build;buildTransitive" Version="1.2024.228.5" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="ArtemisRGB.UI.Shared" IncludeAssets="compile;build;buildTransitive" Version="1.2024.223.16" />
<PackageReference Include="ArtemisRGB.UI.Shared" IncludeAssets="compile;build;buildTransitive" Version="1.2024.228.5" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="ArtemisRGB.UI.Shared" IncludeAssets="compile;build;buildTransitive" Version="1.2024.223.16" />
<PackageReference Include="ArtemisRGB.UI.Shared" IncludeAssets="compile;build;buildTransitive" Version="1.2024.228.5" />
</ItemGroup>

<!-- <ItemGroup>-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="ArtemisRGB.UI.Shared" IncludeAssets="compile;build;buildTransitive" Version="1.2024.223.16" />
<PackageReference Include="ArtemisRGB.UI.Shared" IncludeAssets="compile;build;buildTransitive" Version="1.2024.228.5" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit b85f692

Please sign in to comment.