Exclude Discord Game SDK from Android builds.
This commit is contained in:
@@ -1,11 +1,17 @@
|
|||||||
|
#if UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN
|
||||||
|
#define COMPILE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if COMPILE
|
||||||
using Discord;
|
using Discord;
|
||||||
using System;
|
using System;
|
||||||
using UnityEngine;
|
|
||||||
using Logger = Cryville.Common.Logging.Logger;
|
using Logger = Cryville.Common.Logging.Logger;
|
||||||
|
#endif
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
namespace Cryville.Crtr {
|
namespace Cryville.Crtr {
|
||||||
internal class DiscordController : MonoBehaviour {
|
internal class DiscordController : MonoBehaviour {
|
||||||
#if UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN
|
#if COMPILE
|
||||||
public static DiscordController Instance;
|
public static DiscordController Instance;
|
||||||
|
|
||||||
const long CLIENT_ID = 1059021675578007622L;
|
const long CLIENT_ID = 1059021675578007622L;
|
||||||
|
|||||||
@@ -1,3 +1,18 @@
|
|||||||
{
|
{
|
||||||
"name": "DiscordGameSDK"
|
"name": "DiscordGameSDK",
|
||||||
}
|
"rootNamespace": "",
|
||||||
|
"references": [],
|
||||||
|
"includePlatforms": [
|
||||||
|
"Editor",
|
||||||
|
"WindowsStandalone32",
|
||||||
|
"WindowsStandalone64"
|
||||||
|
],
|
||||||
|
"excludePlatforms": [],
|
||||||
|
"allowUnsafeCode": false,
|
||||||
|
"overrideReferences": false,
|
||||||
|
"precompiledReferences": [],
|
||||||
|
"autoReferenced": true,
|
||||||
|
"defineConstraints": [],
|
||||||
|
"versionDefines": [],
|
||||||
|
"noEngineReferences": false
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user