com.beamable 5.0.0-PREVIEW.RC7 → 5.0.0-PREVIEW.RC8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.attestation.p7m
CHANGED
|
Binary file
|
|
@@ -12,6 +12,7 @@ using System.Threading.Tasks;
|
|
|
12
12
|
using Beamable.Api;
|
|
13
13
|
using Beamable.Common.Api.Realms;
|
|
14
14
|
using Beamable.Editor.Modules.Account;
|
|
15
|
+
using Beamable.Serialization.SmallerJSON;
|
|
15
16
|
using Beamable.Server.Editor.Usam;
|
|
16
17
|
using UnityEditor;
|
|
17
18
|
using UnityEngine;
|
|
@@ -106,13 +107,29 @@ namespace Beamable.Editor.BeamCli
|
|
|
106
107
|
public async Promise Refresh()
|
|
107
108
|
{
|
|
108
109
|
_addPathsInvoke?.Cancel();
|
|
109
|
-
|
|
110
|
+
var configPath = Path.Combine(latestConfig?.configPath ?? ".beamable", "config.beam.json");
|
|
111
|
+
BeamConfigFile file = new BeamConfigFile();
|
|
112
|
+
if (File.Exists(configPath))
|
|
113
|
+
{
|
|
114
|
+
var configJson = File.ReadAllText(configPath);
|
|
115
|
+
file = JsonUtility.FromJson<BeamConfigFile>(configJson);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
var args = new ProjectAddPathsArgs
|
|
110
120
|
{
|
|
111
121
|
pathsToIgnore = BeamablePackages.CliPathsToIgnore.ToArray(),
|
|
112
122
|
saveExtraPaths = BeamablePackages.GetManifestFileReferences().ToArray()
|
|
113
|
-
}
|
|
114
|
-
var
|
|
115
|
-
|
|
123
|
+
};
|
|
124
|
+
var pathsToIgnoreMatch =
|
|
125
|
+
new HashSet<string>(args.pathsToIgnore).IsSubsetOf(new HashSet<string>(file.ignoredProjectPaths));
|
|
126
|
+
var pathsToAddMatch =
|
|
127
|
+
new HashSet<string>(args.saveExtraPaths).IsSubsetOf(new HashSet<string>(file.additionalProjectPaths));
|
|
128
|
+
if (!pathsToAddMatch || !pathsToIgnoreMatch)
|
|
129
|
+
{
|
|
130
|
+
_addPathsInvoke = Command.ProjectAddPaths(args);
|
|
131
|
+
await _addPathsInvoke.Run();
|
|
132
|
+
}
|
|
116
133
|
var regeneratePromise = Command.ProjectOpen(new ProjectOpenArgs
|
|
117
134
|
{
|
|
118
135
|
onlyGenerate = true,
|
|
@@ -172,7 +189,6 @@ namespace Beamable.Editor.BeamCli
|
|
|
172
189
|
await mePromise;
|
|
173
190
|
await routePromise;
|
|
174
191
|
await linkPromise;
|
|
175
|
-
await addPathsPromise;
|
|
176
192
|
await regeneratePromise;
|
|
177
193
|
|
|
178
194
|
|
|
@@ -415,5 +431,19 @@ namespace Beamable.Editor.BeamCli
|
|
|
415
431
|
|
|
416
432
|
string IBeamDeveloperAuthProvider.AccessToken => latestToken.Token;
|
|
417
433
|
string IBeamDeveloperAuthProvider.RefreshToken => latestToken.RefreshToken;
|
|
434
|
+
|
|
435
|
+
[Serializable]
|
|
436
|
+
public class BeamConfigFile
|
|
437
|
+
{
|
|
438
|
+
public List<string> additionalProjectPaths = new List<string>();
|
|
439
|
+
|
|
440
|
+
public List<string> ignoredProjectPaths = new List<string>();
|
|
441
|
+
// "additionalProjectPaths": [],
|
|
442
|
+
// "ignoredProjectPaths": [
|
|
443
|
+
// "Packages/com.beamable",
|
|
444
|
+
// "Library/PackageCache/com.beamable",
|
|
445
|
+
// "Library/PackageCache/com.beamable.server"
|
|
446
|
+
// ],
|
|
447
|
+
}
|
|
418
448
|
}
|
|
419
449
|
}
|