Skip to content

Commit

Permalink
Replace NSubstitute.dll contained within SDK to Unity3D-NSubstitute.g…
Browse files Browse the repository at this point in the history
…it unity package dependency + setup AssemblyInfo
  • Loading branch information
sierpinskid committed Jan 9, 2024
1 parent 4fca3bf commit d91c8e3
Show file tree
Hide file tree
Showing 15 changed files with 32 additions and 220 deletions.
14 changes: 14 additions & 0 deletions Packages/StreamVideo/Runtime/Core/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#if UNITY_EDITOR || STREAM_TESTS_ENABLED
using System.Runtime.CompilerServices;
#endif

#if UNITY_EDITOR
[assembly: InternalsVisibleTo("StreamVideo.EditorTools")]
[assembly: InternalsVisibleTo("StreamVideo.Tests.Editor")]
#endif

#if STREAM_TESTS_ENABLED || UNITY_EDITOR
[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")]
[assembly: InternalsVisibleTo("StreamVideo.Tests.Runtime")]
[assembly: InternalsVisibleTo("StreamVideo.Tests.Shared")]
#endif
3 changes: 3 additions & 0 deletions Packages/StreamVideo/Runtime/Core/AssemblyInfo.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,6 @@
using StreamVideo.Libs.Utils;
using StreamVideo.Libs.Websockets;

#if UNITY_EDITOR || STREAM_TESTS_ENABLED
using System.Runtime.CompilerServices;
#endif

#if UNITY_EDITOR
[assembly: InternalsVisibleTo("StreamVideo.EditorTools")]
#endif

#if STREAM_TESTS_ENABLED || UNITY_EDITOR
[assembly: InternalsVisibleTo("StreamVideo.Tests.Editor")]
[assembly: InternalsVisibleTo("StreamVideo.Tests.Runtime")]
[assembly: InternalsVisibleTo("StreamVideo.Tests.Shared")]
#endif

namespace StreamVideo.Core.LowLevelClient
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,5 @@ internal CacheRepository(ConstructorHandler constructor, ICache cache)

private readonly ConstructorHandler _constructor;
private readonly ICache _cache;
private readonly IStatefulModelsFactory _statefulModelsFactory;
}
}
13 changes: 0 additions & 13 deletions Packages/StreamVideo/Runtime/Core/State/Caches/ICacheRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,4 @@ TType CreateOrUpdate<TType, TDto>(TDto dto, out bool wasCreated)

bool TryRemove(string uniqueId);
}

internal interface IStatefulModelsFactory
{
// StreamChannel CreateStreamChannel(string uniqueId);
//
// StreamChannelMember CreateStreamChannelMember(string uniqueId);
//
// StreamLocalUserData CreateStreamLocalUser(string uniqueId);
//
// StreamMessage CreateStreamMessage(string uniqueId);
//
// StreamUser CreateStreamUser(string uniqueId);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using StreamVideo.Core.LowLevelClient;
using StreamVideo.Core.State.Caches;
using StreamVideo.Core.State.Caches;
using StreamVideo.Libs.Logs;
using StreamVideo.Libs.Serialization;

Expand Down
8 changes: 0 additions & 8 deletions Packages/StreamVideo/Runtime/Libs/NSubstitute.meta

This file was deleted.

Binary file not shown.
89 changes: 0 additions & 89 deletions Packages/StreamVideo/Runtime/Libs/NSubstitute/Castle.Core.dll.meta

This file was deleted.

Binary file not shown.
89 changes: 0 additions & 89 deletions Packages/StreamVideo/Runtime/Libs/NSubstitute/NSubstitute.dll.meta

This file was deleted.

3 changes: 2 additions & 1 deletion Packages/StreamVideo/Tests/Editor/StreamVideo.Tests.asmdef
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"references": [
"StreamVideo.Core",
"StreamVideo.Libs",
"StreamVideo.Tests.Shared"
"StreamVideo.Tests.Shared",
"TNRD.NSubstitute"
],
"includePlatforms": [
"Editor"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"rootNamespace": "",
"references": [
"StreamVideo.Core",
"StreamVideo.Libs"
"StreamVideo.Libs",
"TNRD.NSubstitute"
],
"includePlatforms": [
"Editor"
Expand Down
3 changes: 2 additions & 1 deletion Packages/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"com.unity.ai.navigation": "1.1.4",
"com.unity.collab-proxy": "2.0.5",
"com.unity.feature.development": "1.0.1",
"com.unity.ide.rider": "3.0.25",
"com.unity.ide.rider": "3.0.27",
"com.unity.ide.visualstudio": "2.0.18",
"com.unity.ide.vscode": "1.2.5",
"com.unity.nuget.newtonsoft-json": "3.2.1",
Expand All @@ -13,6 +13,7 @@
"com.unity.ugui": "1.0.0",
"com.unity.visualscripting": "1.8.0",
"com.unity.webrtc": "3.0.0-pre.6",
"net.tnrd.nsubstitute": "https://github.com/Thundernerd/Unity3D-NSubstitute.git",
"com.unity.modules.ai": "1.0.0",
"com.unity.modules.androidjni": "1.0.0",
"com.unity.modules.animation": "1.0.0",
Expand Down
9 changes: 8 additions & 1 deletion Packages/packages-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
}
},
"com.unity.ide.rider": {
"version": "3.0.25",
"version": "3.0.27",
"depth": 0,
"source": "registry",
"dependencies": {
Expand Down Expand Up @@ -171,6 +171,13 @@
"com.unity.nuget.newtonsoft-json": "3.2.0"
}
},
"net.tnrd.nsubstitute": {
"version": "https://github.com/Thundernerd/Unity3D-NSubstitute.git",
"depth": 0,
"source": "git",
"dependencies": {},
"hash": "449712b25ae237eb5da2d958dd72a5432051e192"
},
"com.unity.modules.ai": {
"version": "1.0.0",
"depth": 0,
Expand Down

0 comments on commit d91c8e3

Please sign in to comment.