EnergySuite
EnergySuite copied to clipboard
Android Release Error
Hi, this is a great package, thanks for publishing. I wanted to share the solution of a problem I had. There is no problem in debug mode but when trying to compile for Android release mode, an IL2CPP error occurs. The error will be resolved if you update "iOSBridge" like that:
using System.Runtime.InteropServices;
namespace EnergySuite
{
public class iOSBridge
{
#region Public Methods
#if UNITY_IOS
[DllImport("__Internal")]
#else
[DllImport("PluginName")]
#endif
public static extern void _GetCurrentMediaTime();
public static void GetCurrentMediaTime()
{
_GetCurrentMediaTime();
}
#endregion
}
}