-
Notifications
You must be signed in to change notification settings - Fork 317
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix after rebase + use .json for settings + more controll in settings
- Loading branch information
Showing
23 changed files
with
574 additions
and
417 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace UnityEditor | ||
{ | ||
internal enum BuildTarget | ||
{ | ||
StandaloneWindows64, | ||
|
||
StandaloneWindows, | ||
|
||
StandaloneLinux64, | ||
|
||
StandaloneOSX, | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace NugetForUnity.Ui | ||
{ | ||
internal static class NuGetForUnityUpdater | ||
{ | ||
public const string UpmPackageName = "com.github-glitchenzo.nugetforunity"; | ||
} | ||
} |
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
File renamed without changes.
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
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
60 changes: 60 additions & 0 deletions
60
...s/ProjectSettings/Packages/com.github-glitchenzo.nugetforunity/NativeRuntimeSettings.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"supportetPlatformTargets": ["StandaloneWindows64"], | ||
"cpuArchitecture": "x86_64", | ||
"runtime": "win10-x64", | ||
"editorCpuArchitecture": "x86_64", | ||
"editorOperatingSystem": "Windows" | ||
}, | ||
{ | ||
"supportetPlatformTargets": ["StandaloneWindows"], | ||
"cpuArchitecture": "AnyCPU", | ||
"runtime": "win10-x86", | ||
"editorCpuArchitecture": "AnyCPU", | ||
"editorOperatingSystem": "Windows" | ||
}, | ||
{ | ||
"supportetPlatformTargets": ["StandaloneWindows64"], | ||
"cpuArchitecture": "x86_64", | ||
"runtime": "win7-x64", | ||
"editorCpuArchitecture": "x86_64", | ||
"editorOperatingSystem": "Windows" | ||
}, | ||
{ | ||
"supportetPlatformTargets": ["StandaloneWindows"], | ||
"cpuArchitecture": "AnyCPU", | ||
"runtime": "win7-x86", | ||
"editorCpuArchitecture": "AnyCPU", | ||
"editorOperatingSystem": "Windows" | ||
}, | ||
{ | ||
"supportetPlatformTargets": ["StandaloneWindows64"], | ||
"cpuArchitecture": "x86_64", | ||
"runtime": "win-x64", | ||
"editorCpuArchitecture": "x86_64", | ||
"editorOperatingSystem": "Windows" | ||
}, | ||
{ | ||
"supportetPlatformTargets": ["StandaloneWindows"], | ||
"cpuArchitecture": "AnyCPU", | ||
"runtime": "win-x86", | ||
"editorCpuArchitecture": "AnyCPU", | ||
"editorOperatingSystem": "Windows" | ||
}, | ||
{ | ||
"supportetPlatformTargets": ["StandaloneLinux64"], | ||
"cpuArchitecture": "x86_64", | ||
"runtime": "linux-x64", | ||
"editorCpuArchitecture": "x86_64", | ||
"editorOperatingSystem": "Linux" | ||
}, | ||
{ | ||
"supportetPlatformTargets": ["StandaloneOSX"], | ||
"cpuArchitecture": "x86_64", | ||
"runtime": "osx-x64", | ||
"editorCpuArchitecture": "x86_64", | ||
"editorOperatingSystem": "OSX" | ||
} | ||
] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,11 @@ | |
using NugetForUnity.Models; | ||
using NugetForUnity.PackageSource; | ||
using NugetForUnity.PluginSupport; | ||
using NugetForUnity.Ui; | ||
using UnityEngine; | ||
|
||
[assembly: InternalsVisibleTo("NuGetForUnity.Editor.Tests")] | ||
[assembly: InternalsVisibleTo("NuGetForUnity.PlayTests")] | ||
|
||
namespace NugetForUnity.Configuration | ||
{ | ||
|
@@ -32,10 +34,22 @@ public static class ConfigurationManager | |
[CanBeNull] | ||
private static NugetConfigFile nugetConfigFile; | ||
|
||
[CanBeNull] | ||
private static NativeRuntimeSettings nativeRuntimeSettings; | ||
|
||
[NotNull] | ||
private static readonly string nativeRuntimeSettingsFilePath; | ||
Check warning on line 41 in src/NuGetForUnity/Editor/Configuration/ConfigurationManager.cs GitHub Actions / Pack .NET Core Global Tool (CLI) and PluginAPI
Check warning on line 41 in src/NuGetForUnity/Editor/Configuration/ConfigurationManager.cs GitHub Actions / Pack .NET Core Global Tool (CLI) and PluginAPI
|
||
|
||
static ConfigurationManager() | ||
{ | ||
NugetConfigFileDirectoryPath = UnityPathHelper.AbsoluteAssetsPath; | ||
NugetConfigFilePath = Path.Combine(NugetConfigFileDirectoryPath, NugetConfigFile.FileName); | ||
nativeRuntimeSettingsFilePath = Path.Combine( | ||
UnityPathHelper.AbsoluteProjectPath, | ||
"ProjectSettings", | ||
"Packages", | ||
NuGetForUnityUpdater.UpmPackageName, | ||
"NativeRuntimeSettings.json"); | ||
} | ||
|
||
/// <summary> | ||
|
@@ -65,6 +79,20 @@ public static NugetConfigFile NugetConfigFile | |
} | ||
} | ||
|
||
[NotNull] | ||
internal static NativeRuntimeSettings NativeRuntimeSettings | ||
{ | ||
get | ||
{ | ||
if (nativeRuntimeSettings is null) | ||
{ | ||
nativeRuntimeSettings = NativeRuntimeSettings.LoadOrCreateDefault(nativeRuntimeSettingsFilePath); | ||
} | ||
|
||
return nativeRuntimeSettings; | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// Gets the path to the directory containing the NuGet.config file. | ||
/// </summary> | ||
|
Oops, something went wrong.