Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

Commit

Permalink
Add new menu item to open inspector v2 (#1407)
Browse files Browse the repository at this point in the history
* Add new menu item, open inspector v2

* Add entry to CHANGELOG

* Update android SDK versions in init.ps1 script
  • Loading branch information
Sean Parker authored Jun 25, 2020
1 parent b18085d commit bce8a43
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Added

- Added `map<k,v>` support to the Worker Inspector window. [#1403](https://github.com/spatialos/gdk-for-unity/pull/1403)
- Added `Open inspector V2` menu item that opens the new inspector in the browser. [#1407](https://github.com/spatialos/gdk-for-unity/pull/1407)

### Fixed

Expand Down
4 changes: 2 additions & 2 deletions init.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ UpdateSpot spot-macos "$SdkPath/.spot/spot"
UpdatePackage worker_sdk c-static-arm-clang-ios "$SdkMobilePath/Plugins/Improbable/Core/iOS/arm"
UpdatePackage worker_sdk c-static-x86_64-clang-ios "$SdkMobilePath/Plugins/Improbable/Core/iOS/x86_64"

UpdatePackage worker_sdk c-dynamic-arm64v8a-clang_ndk16b-android "$SdkMobilePath/Plugins/Improbable/Core/Android/arm64"
UpdatePackage worker_sdk c-dynamic-armv7a-clang_ndk16b-android "$SdkMobilePath/Plugins/Improbable/Core/Android/armv7"
UpdatePackage worker_sdk c-dynamic-arm64v8a-clang_ndk21-android "$SdkMobilePath/Plugins/Improbable/Core/Android/arm64"
UpdatePackage worker_sdk c-dynamic-armv7a-clang_ndk21-android "$SdkMobilePath/Plugins/Improbable/Core/Android/armv7"

UpdatePackage worker_sdk csharp_cinterop_static "$SdkMobilePath/Plugins/Improbable/Sdk/iOS"
7 changes: 7 additions & 0 deletions workers/unity/Packages/io.improbable.gdk.tools/LocalLaunch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ namespace Improbable.Gdk.Tools
public static class LocalLaunch
{
private const string InspectorUrl = "http://localhost:21000/inspector";
private const string InspectorV2Url = "http://localhost:21000/inspector-v2";

private static readonly string DefaultLogFileName
= Path.GetFullPath(Path.Combine(Common.SpatialProjectRootDir, "logs", "*unityclient.log"));
Expand Down Expand Up @@ -61,6 +62,12 @@ private static void OpenInspector()
Application.OpenURL(InspectorUrl);
}

[MenuItem("SpatialOS/Open inspector V2 (Beta)", false, MenuPriorities.OpenInspectorV2)]
private static void OpenInspectorV2()
{
Application.OpenURL(InspectorV2Url);
}

public static void BuildConfig()
{
using (new ShowProgressBarScope("Building worker configs..."))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ internal static class MenuPriorities
internal const int LocalLaunch = 71;
internal const int LaunchStandaloneClient = 72;
internal const int OpenInspector = 74;
internal const int PortForwarding = 75;
internal const int OpenInspectorV2 = 75;
internal const int PortForwarding = 76;

internal const int GdkToolsConfiguration = 201;
internal const int GenerateDevAuthToken = 202;
Expand Down

0 comments on commit bce8a43

Please sign in to comment.