Exclude Discord Game SDK from Android builds.

This commit is contained in:
2023-11-02 12:16:33 +08:00
parent bfa1423f64
commit c2c28518ba
2 changed files with 25 additions and 4 deletions

View File

@@ -1,11 +1,17 @@
#if UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN
#define COMPILE
#endif
#if COMPILE
using Discord;
using System;
using UnityEngine;
using Logger = Cryville.Common.Logging.Logger;
#endif
using UnityEngine;
namespace Cryville.Crtr {
internal class DiscordController : MonoBehaviour {
#if UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN
#if COMPILE
public static DiscordController Instance;
const long CLIENT_ID = 1059021675578007622L;

View File

@@ -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
}