From ad387bdc486b350843f82da942f4d27967ed6e29 Mon Sep 17 00:00:00 2001 From: Ivan Murzak Date: Mon, 29 Nov 2021 04:22:44 +0200 Subject: [PATCH] Fixed compilation error on non Android or iOS platform --- .gitignore | 5 ++++- .../Scripts/Config/AppodealSimplifierConfig.cs | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 9f46ff4..d901409 100644 --- a/.gitignore +++ b/.gitignore @@ -46,6 +46,7 @@ ExportedObj/ *.mdb *.opendb *.VC.db +*.DS_Store # Unity3D generated meta files *.pidb.meta @@ -70,6 +71,7 @@ crashlytics-build.properties # ODIN Ignore the auto-generated AOT compatibility dll. /Assets/Plugins/Sirenix/Assemblies/AOT/* +/Assets/Plugins/Sirenix/Assemblies/AOT** # ODIN Ignore all unpacked demos. /Assets/Plugins/Sirenix/Demos/* @@ -79,4 +81,5 @@ crashlytics-build.properties /Assets/Plugins/Sirenix** # Appodeal -/Assets/Appodeal/** \ No newline at end of file +/Assets/Appodeal/** +/Assets/Appodeal.meta \ No newline at end of file diff --git a/Assets/Appodeal-Simplifier/Scripts/Config/AppodealSimplifierConfig.cs b/Assets/Appodeal-Simplifier/Scripts/Config/AppodealSimplifierConfig.cs index 8fb14fc..e88b675 100644 --- a/Assets/Appodeal-Simplifier/Scripts/Config/AppodealSimplifierConfig.cs +++ b/Assets/Appodeal-Simplifier/Scripts/Config/AppodealSimplifierConfig.cs @@ -76,6 +76,8 @@ public sealed partial class AppodealSimplifierConfig : SerializedScriptableObjec public string AppodealAPIKey => appodealApiKeyAndroid; #elif UNITY_IOS public string AppodealAPIKey => appodealApiKeyIOS; +#else + public string AppodealAPIKey => "not_supported_platform"; #endif } #pragma warning restore CA2235 // Mark all non-serializable fields