Skip to content

Commit

Permalink
Revert "Fix"
Browse files Browse the repository at this point in the history
This reverts commit 1bad130.
  • Loading branch information
MaKrotos committed Oct 8, 2024
1 parent 8a389c7 commit b8c30c7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 22 deletions.
6 changes: 0 additions & 6 deletions VK UI3 (Package)/.csproj

This file was deleted.

17 changes: 2 additions & 15 deletions VK UI3/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
using VkNet.AudioBypassService.Extensions;
using VkNet.AudioBypassService.Models.Auth;
using VkNet.Extensions.DependencyInjection;
using Windows.ApplicationModel;
using Windows.Win32;

// To learn more about WinUI, the WinUI project structure,
Expand Down Expand Up @@ -167,39 +166,27 @@ private async Task statSlyRun()

var setting = DB.SettingsTable.GetSetting("UserUniqID");
string UserUniqID;

string appVersion = string.Format("{0}.{1}.{2}.{3}",
Package.Current.Id.Version.Major,
Package.Current.Id.Version.Minor,
Package.Current.Id.Version.Build,
Package.Current.Id.Version.Revision);

EventParams eventParamsVersion = new EventParams("versionApp", appVersion);
if (setting == null)
{
UserUniqID = Helpers.SmallHelpers.GenerateRandomString(100);
DB.SettingsTable.SetSetting("UserUniqID", UserUniqID);

EventParams eventParams = new EventParams("userID", UserUniqID);



Event @event = new Event("First Run", DateTime.Now, eventParams: new List<EventParams>() { eventParams, eventParamsVersion });
Event @event = new Event("First Run", DateTime.Now, eventParams: new List<EventParams>() { eventParams });

_ = StatSlyLib.StatSLY.SendEvent(@event);
}
else
{

UserUniqID = setting.settingValue;
}

{
EventParams eventParams = new EventParams("userID", UserUniqID);

Event @event = new Event("Run App", DateTime.Now, eventParams: new List<EventParams>() { eventParams, eventParamsVersion });
Event @event = new Event("Run App", DateTime.Now, eventParams: new List<EventParams>() { eventParams });


_ = StatSlyLib.StatSLY.SendEvent(@event);
}
}
Expand Down
2 changes: 1 addition & 1 deletion VK UI3/StaticParams.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ namespace VK_UI3
internal class StaticParams
{

string tokenStatSly = Environment.GetEnvironmentVariable("TOKEN_STAT_SLY");
public static readonly string tokenStatSly = Environment.GetEnvironmentVariable("TOKEN_STAT_SLY");

Check failure on line 8 in VK UI3/StaticParams.cs

View workflow job for this annotation

GitHub Actions / build (Release, x64)

Invalid expression term ';'
}
}

0 comments on commit b8c30c7

Please sign in to comment.