chore: align SDK dependencies and document reusable capabilities

This commit is contained in:
2026-09-29 10:14:42 +08:00
parent 254625e791
commit b647583026
3 changed files with 16 additions and 6 deletions
@@ -5,14 +5,14 @@
<AssemblyName>ShrinkContext.EventBusAdapter.Runtime</AssemblyName> <AssemblyName>ShrinkContext.EventBusAdapter.Runtime</AssemblyName>
<RootNamespace>ShrinkContext.EventBusAdapter</RootNamespace> <RootNamespace>ShrinkContext.EventBusAdapter</RootNamespace>
<PackageId>ShrinkSDK.Context.EventBusAdapter</PackageId> <PackageId>ShrinkSDK.Context.EventBusAdapter</PackageId>
<Version>0.2.0</Version> <Version>0.2.4</Version>
<Description>ShrinkContext reversible EventBus subscription effects.</Description> <Description>ShrinkContext reversible EventBus subscription effects.</Description>
<ShrinkCodeGenEnabled>false</ShrinkCodeGenEnabled> <ShrinkCodeGenEnabled>false</ShrinkCodeGenEnabled>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Compile Include="..\Runtime\*.cs" /> <Compile Include="..\Runtime\*.cs" />
<PackageReference Include="UniTask" Version="2.5.10" /> <PackageReference Include="UniTask" Version="2.5.10" />
<PackageReference Include="ShrinkSDK.Context.Core" Version="0.2.0" /> <PackageReference Include="ShrinkSDK.Context.Core" Version="0.3.0" />
<PackageReference Include="ShrinkSDK.EventBus" Version="2.1.0" /> <PackageReference Include="ShrinkSDK.EventBus" Version="2.2.2" />
</ItemGroup> </ItemGroup>
</Project> </Project>
+10
View File
@@ -5,3 +5,13 @@
- Unity:通过 Package Manager 安装 `com.cneicy.shrink-context-eventbus-adapter`。 - Unity:通过 Package Manager 安装 `com.cneicy.shrink-context-eventbus-adapter`。
- Godot / .NET:安装 `ShrinkSDK.Context.EventBusAdapter`。 - Godot / .NET:安装 `ShrinkSDK.Context.EventBusAdapter`。
- NuGet 打包工程位于 `DotNet~/ShrinkSDK.Context.EventBusAdapter.csproj`。 - NuGet 打包工程位于 `DotNet~/ShrinkSDK.Context.EventBusAdapter.csproj`。
## 可复用能力
<!-- shrink:capabilities -->
Capability: 把事件订阅绑定到 Context 可逆生命周期
Aliases: 订阅撤回 组件事件 effect
Limits: 不撤回已经发生的业务事实;使用组件所属线程注册和撤回
Extension: ShrinkEventBusEffects 的生命周期扩展
Evidence: [ShrinkEventBusEffects](Runtime/ShrinkEventBusEffects.cs)
<!-- /shrink:capabilities -->
+3 -3
View File
@@ -1,12 +1,12 @@
{ {
"name": "com.cneicy.shrink-context-eventbus-adapter", "name": "com.cneicy.shrink-context-eventbus-adapter",
"version": "0.2.0", "version": "0.2.4",
"displayName": "ShrinkContext - EventBus Adapter", "displayName": "ShrinkContext - EventBus Adapter",
"description": "把 ShrinkEventBus 订阅/注册包装为 ShrinkContext 可逆效应:订阅即效应,停用自动退订。", "description": "把 ShrinkEventBus 订阅/注册包装为 ShrinkContext 可逆效应:订阅即效应,停用自动退订。",
"unity": "2022.3", "unity": "2022.3",
"dependencies": { "dependencies": {
"com.cneicy.shrink-context-core": "0.2.0", "com.cneicy.shrink-context-core": "0.3.0",
"com.cneicy.shrink-eventbus": "2.1.0", "com.cneicy.shrink-eventbus": "2.2.2",
"com.cysharp.unitask": "2.5.10" "com.cysharp.unitask": "2.5.10"
}, },
"keywords": [ "keywords": [