Skip to content

Fix/base class injection bug - #95

Merged
alexanderlarsen merged 4 commits into
mainfrom
fix/base-class-injection-bug
Apr 27, 2026
Merged

Fix/base class injection bug#95
alexanderlarsen merged 4 commits into
mainfrom
fix/base-class-injection-bug

Conversation

@alexanderlarsen

Copy link
Copy Markdown
Owner

No description provided.

- Fixed skipped private base class injection sites by adjusting the inheritance traversal logic.
- Component traversal now processes each declaring type in the inheritance chain, ensuring private base class fields, methods, and properties are properly discovered.
- Added tests to verify injection coverage for public/private fields, methods, and properties in inherited classes.
- Bumped package version to 1.0.5.
- Introduced `VersionToolEditorWindow` for managing and exporting Unity package versions via an editor window.
- Added `VersionToolUtility` class to handle version retrieval, changelog validation, package.json updates, and sample folder adjustments for Unity package exports.
- Included menu item "Saneject Dev/Version Tool" to open the version management window.
- Implemented safe domain reload handling to resume export processes if interrupted.
- Added safeguards for changelog version checks, sample folder renaming, and package.json validation.
- Added a file picker for exporting Unity packages to a custom path in the `VersionToolEditorWindow`.
- Refactored package export logic into a dedicated `SetVersionAndExportUnityPackage` method.
- Removed hardcoded paths for changelog, package.json, and sample directories; replaced with dynamic path resolution based on repo structure.
- Updated SessionState logic for preserving crucial information (version, package path) during domain reload.
- Enhanced error handling around missing or invalid export paths.
@alexanderlarsen
alexanderlarsen merged commit dd35e42 into main Apr 27, 2026
22 checks passed
@alexanderlarsen
alexanderlarsen deleted the fix/base-class-injection-bug branch April 27, 2026 17:42
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