Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Assets/AirConsole/ProjectCodeUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ private static void ExecuteCodePackageImport() {
AssetDatabase.DeleteAsset("Assets/AirConsole/unity-webview");
}

// Up to 2.6.3, the code package also installed the plugin tests. They compile against internal plugin members, and
// ImportPackage never deletes files, so a stale copy would break compilation after a later release changes those members.
if (File.Exists(Path.Combine(Application.dataPath, "AirConsole", "scripts", "Tests", "EditMode",
"AirConsole.EditMode.Tests.asmdef"))) {
AssetDatabase.DeleteAsset("Assets/AirConsole/scripts/Tests");
}

ClearConsole();
SessionState.SetBool(IMPORT_PENDING_KEY, true);
#if UNITY_6000_6_OR_NEWER
Expand Down
16 changes: 11 additions & 5 deletions Assets/Packager/Editor/Packager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,17 +148,23 @@ private static void CollectWebGlTemplateFiles(string path, ref IEnumerable<strin
private static string PackageCode() {
string unityPackagePath = ProjectCodeUpdater.CodePackagePath;

// The plugin tests stay in this repository. They change PlayerSettings, so they must not run in game projects.
string[] codePaths = Directory.GetDirectories(Path.Combine(Application.dataPath, "AirConsole", "scripts"))
.Select(Path.GetFileName)
.Where(it => it != "Tests")
.Select(it => $"Assets/AirConsole/scripts/{it}")
.Append("Assets/AirConsole/unity-webview")
.Append("Assets/AirConsole/examples")
.ToArray();

#if UNITY_6000_6_OR_NEWER
UnityEditor.AssetPackage.Package.Export(new UnityEditor.AssetPackage.ExportPackageParameters(
new[] { "Assets/AirConsole/scripts", "Assets/AirConsole/unity-webview", "Assets/AirConsole/examples" },
codePaths,
unityPackagePath,
"",
ExportPackageOptions.Recurse));
#else
AssetDatabase.ExportPackage(
new[] { "Assets/AirConsole/scripts", "Assets/AirConsole/unity-webview", "Assets/AirConsole/examples" },
unityPackagePath,
ExportPackageOptions.Recurse);
AssetDatabase.ExportPackage(codePaths, unityPackagePath, ExportPackageOptions.Recurse);
#endif
return unityPackagePath.Replace(Application.dataPath, "Assets");
}
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ Release notes follow the [keep a changelog](https://keepachangelog.com/en/1.1.0/

- **Unity API:** `RequestPhotonEngineAuth` and the `OnPhotonEngineAuth` event provide a ticket for Photon Custom Authentication. Requires airconsole-api 1.12.0.

### Changed

- **Package:** The plugin package no longer contains the plugin tests (`Assets/AirConsole/scripts/Tests`), so they do not run in game projects. The upgrade deletes `Assets/AirConsole/scripts/Tests` that an earlier version installed.

## [2.6.3] - 2026-10-03

### Fixed
Expand Down
Loading