-
-
Save cdhanna/140b6a98b9fe017c7942a4b6240f7908 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Beamable.Api.Auth; | |
using Beamable.Common; | |
using Beamable.Common.Dependencies; | |
using UnityEngine.Scripting; | |
[BeamContextSystem] | |
[Preserve] | |
public class Testing | |
{ | |
[RegisterBeamableDependencies] | |
public void Register(IDependencyBuilder builder) | |
{ | |
builder.RemoveIfExists<IDeviceIdResolver>(); | |
builder.AddSingleton<IDeviceIdResolver>(() => new CustomDeviceIdResolver()); | |
} | |
} | |
public class CustomDeviceIdResolver : IDeviceIdResolver | |
{ | |
public Promise<string> GetDeviceId() | |
{ | |
return Promise<string>.Successful("FAKE_DEVICE_ID"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment