Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit f9b1488

Browse files
committed
Cleaning up file tree
1 parent 38ca462 commit f9b1488

27 files changed

+65
-40
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#pragma warning disable 436
2+
namespace GitHub.Unity
3+
{
4+
static partial class ApplicationInfo
5+
{
6+
private const string myClientId = "YOUR CLIENT ID HERE";
7+
private const string myClientSecret = "YOUR CLIENT SECRET HERE";
8+
9+
static partial void SetClientData()
10+
{
11+
ClientId = myClientId;
12+
ClientSecret = myClientSecret;
13+
}
14+
}
15+
}

script

src/GitHub.Api/Api/ApplicationInfo.cs renamed to src/GitHub.Api/Application/ApplicationInfo.cs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma warning disable 436
22
namespace GitHub.Unity
33
{
4-
public static class ApplicationInfo
4+
static partial class ApplicationInfo
55
{
66
#if DEBUG
77
public const string ApplicationName = "GitHubUnityDebug";
@@ -13,9 +13,16 @@ public static class ApplicationInfo
1313
public const string ApplicationSafeName = "unity-internal-test";
1414
public const string ApplicationDescription = "GitHub for Unity";
1515

16-
internal const string ClientId = "";
17-
internal const string ClientSecret = "";
16+
internal static string ClientId { get; private set; } = "";
17+
internal static string ClientSecret { get; private set; } = "";
1818

1919
public static string Version { get { return System.AssemblyVersionInformation.Version; } }
20+
21+
static partial void SetClientData();
22+
23+
static ApplicationInfo()
24+
{
25+
SetClientData();
26+
}
2027
}
2128
}
File renamed without changes.

0 commit comments

Comments
 (0)