Skip to content

Upm#22

Merged
oliexe merged 5 commits intomainfrom
upm
Mar 16, 2026
Merged

Upm#22
oliexe merged 5 commits intomainfrom
upm

Conversation

@oliexe
Copy link
Copy Markdown
Member

@oliexe oliexe commented Mar 16, 2026

Note

Medium Risk
Medium risk because it restructures the Unity package into a UPM layout (new asmdefs, embedded dependency, moved/removed assets) and changes the release workflow to auto-commit version bumps before tagging, which can affect consumers and release automation if paths/assembly names are wrong.

Overview
Adds full UPM packaging for the Unity SDK. Introduces Packages/gg.stash.unity/package.json (v2.0.0), new Runtime/ and Editor/ assembly definitions, package changelog/license, and updates Unity project manifest.json/packages-lock.json to include gg.stash.unity as an embedded package.

Cleans up legacy Assets-based layout and docs. Removes old Assets/Resources and various Assets/Stash.Native metadata, updates StashNative to resolve the editor window type from the new Stash.Unity.Editor assembly, and revises README.md to document UPM installation/sample import and updated iOS plugin paths.

Adjusts release automation. The release.yml workflow now rewrites Packages/gg.stash.unity/package.json version to match the release input, commits/pushes that change when needed, then creates and pushes the vX.Y.Z tag.

Written by Cursor Bugbot for commit e5637d2. This will update automatically on new commits. Configure here.

@oliexe oliexe merged commit d69efef into main Mar 16, 2026
2 of 3 checks passed
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Orphaned meta files for non-existent nested directories

Low Severity

Editor/Editor.meta and Runtime/Runtime.meta are folderAsset meta files for Editor/Editor/ and Runtime/Runtime/ subdirectories that don't exist. These appear to have been accidentally committed during the restructuring. Unity will log warnings about orphaned meta files, and auto-cleanup may cause unexpected git diffs for developers.

Additional Locations (1)
Fix in Cursor Fix in Web

*.bak
*.orig
*.swp
*~
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gitignore *~ pattern silently ignores Samples~ directory

High Severity

The newly added *~ pattern in .gitignore matches any file or directory whose name ends with ~, which includes the Samples~ directory also introduced in this PR. While currently committed files are unaffected, any new untracked files added to Samples~/ in the future will be silently git-ignored. Developers won't see them in git status and git add will refuse them without -f. This directly undermines the UPM samples workflow this PR sets up. A negation rule like !Samples~ is needed.

Additional Locations (1)
Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant