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
2 changes: 1 addition & 1 deletion .github/workflows/gua-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
test-project: tests/GuaUiLab.Unity.Tests.csproj
artifact-key: unity-sample
unity-version: auto
gua-tag: gua-v1.18.0
gua-tag: gua-v0.18.0
artifact-path: artifacts/gua
secrets:
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
Expand Down
2 changes: 1 addition & 1 deletion Packages/com.link1345.gua/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.link1345.gua",
"version": "1.18.0",
"version": "0.18.0",
Comment thread
link1345 marked this conversation as resolved.
"displayName": "Gua Runtime UI Automation",
"description": "Managed Unity adapter for the Gua runtime UI automation protocol.",
"unity": "6000.0",
Expand Down
6 changes: 3 additions & 3 deletions README-ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@

ウィンドウはリサイズ可能です。541×857のデザイン比率を維持して一様に拡大・縮小し、画面比率から余る領域は黒いレターボックスとして表示します。

UI自動化にはGua v1.18.0のUnity UPMパッケージを使用しています。実行中は既定で `ws://127.0.0.1:8765` にGua bridgeを開き、標準uGUIツリーを自動的に公開します。ポートは環境変数 `GUA_BRIDGE_PORT` で変更できます。
UI自動化にはGua v0.18.0のUnity UPMパッケージを使用しています。実行中は既定で `ws://127.0.0.1:8765` にGua bridgeを開き、標準uGUIツリーを自動的に公開します。ポートは環境変数 `GUA_BRIDGE_PORT` で変更できます。

## 実行

1. Unity Hubでこのディレクトリを開きます。
2. Unity `6000.5.3f1`で `Assets/Scenes/Main.unity` を開きます。
3. Playを押します。

Guaの管理DLLとWindows x64ネイティブDLLを含む公式UPMパッケージ v1.18.0は `Packages/com.link1345.gua` に固定しています。そのため、隣接するGuaソースリポジトリへの参照や別途のパッケージダウンロードは不要です。
Guaの管理DLLとWindows x64ネイティブDLLを含む公式UPMパッケージ v0.18.0は `Packages/com.link1345.gua` に固定しています。そのため、隣接するGuaソースリポジトリへの参照や別途のパッケージダウンロードは不要です。

## UIテスト

Expand Down Expand Up @@ -82,4 +82,4 @@ pull requestでVisual比較が失敗すると、`visual-report@v2.2`が`comparis
| `cancel_exit` | button | 終了確認 |
| `confirm_exit` | button | 終了確認 |

Gua v1.18.0で検証するUnity構成に合わせ、Windows x64・Monoを対象にしています。IL2CPPとWindows以外のPlayerはこのサンプルの検証対象外です。
Gua v0.18.0で検証するUnity構成に合わせ、Windows x64・Monoを対象にしています。IL2CPPとWindows以外のPlayerはこのサンプルの検証対象外です。
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ This is a Unity sample project for [Gua](https://github.com/link1345/gua). It re

The window is resizable. The UI scales uniformly while preserving its 541×857 design aspect ratio, and any space outside that ratio is rendered as black letterboxing.

UI automation uses the Gua v1.18.0 Unity UPM package. At runtime, it opens a Gua bridge at `ws://127.0.0.1:8765` by default and automatically exposes the standard uGUI tree. Set the `GUA_BRIDGE_PORT` environment variable to use a different port.
UI automation uses the Gua v0.18.0 Unity UPM package. At runtime, it opens a Gua bridge at `ws://127.0.0.1:8765` by default and automatically exposes the standard uGUI tree. Set the `GUA_BRIDGE_PORT` environment variable to use a different port.

## Run the sample

1. Open this directory in Unity Hub.
2. Open `Assets/Scenes/Main.unity` with Unity `6000.5.3f1`.
3. Enter Play Mode.

The official UPM package v1.18.0, including the managed assemblies and Windows x64 native libraries, is pinned in `Packages/com.link1345.gua`. No adjacent Gua source repository or separate package download is required.
The official UPM package v0.18.0, including the managed assemblies and Windows x64 native libraries, is pinned in `Packages/com.link1345.gua`. No adjacent Gua source repository or separate package download is required.

## UI tests

Expand Down Expand Up @@ -81,4 +81,4 @@ Enable `visual-report-demo` in a manual run to reuse the Unity Player from the n
| `cancel_exit` | button | Exit confirmation |
| `confirm_exit` | button | Exit confirmation |

This sample targets Windows x64 and Mono, matching the validated Unity configuration in Gua v1.18.0. IL2CPP and non-Windows Players are outside the sample's validated scope.
This sample targets Windows x64 and Mono, matching the validated Unity configuration in Gua v0.18.0. IL2CPP and non-Windows Players are outside the sample's validated scope.
10 changes: 5 additions & 5 deletions tests/GuaUiLab.Unity.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Gua.Core" Version="1.18.0" />
<PackageReference Include="Gua.Testing" Version="1.18.0" />
<PackageReference Include="Gua.Testing.Recording" Version="1.18.0" />
<PackageReference Include="Gua.Testing.Unity" Version="1.18.0" />
<PackageReference Include="Gua.Testing.Visual" Version="1.18.0" />
<PackageReference Include="Gua.Core" Version="0.18.0" />
<PackageReference Include="Gua.Testing" Version="0.18.0" />
<PackageReference Include="Gua.Testing.Recording" Version="0.18.0" />
<PackageReference Include="Gua.Testing.Unity" Version="0.18.0" />
<PackageReference Include="Gua.Testing.Visual" Version="0.18.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.7.0" />
<PackageReference Include="NUnit" Version="4.6.1" />
<PackageReference Include="NUnit3TestAdapter" Version="6.2.0" />
Expand Down
Loading