Compare commits
5
Commits
e8d3a62031
..
v0.1.3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
52bda43e3c | ||
|
|
d89ea4899b | ||
|
|
041194af20 | ||
|
|
fedc20c1b9 | ||
|
|
d53b1b7997 |
@@ -31,12 +31,12 @@ jobs:
|
||||
cat "$machine_id_file" > /etc/machine-id
|
||||
echo "Unity machine identity restored"
|
||||
fi
|
||||
git config --global url."https://ghfast.top/https://github.com/".insteadOf "https://github.com/"
|
||||
unity_bin="$(command -v unity-editor || command -v unity || command -v Unity || true)"
|
||||
test -n "$unity_bin"
|
||||
"$unity_bin" \
|
||||
-batchmode \
|
||||
-nographics \
|
||||
-quit \
|
||||
-projectPath "$PWD/Development~/UnityProject" \
|
||||
-runTests \
|
||||
-testPlatform EditMode \
|
||||
|
||||
@@ -11,6 +11,15 @@
|
||||
"dependencies": {
|
||||
"com.unity.test-framework": "1.1.33",
|
||||
"com.cneicy.shrink-context-app-adapter": "file:../../..",
|
||||
"com.cneicy.shrink-app-starter-basic": "0.2.0",
|
||||
"com.cneicy.shrink-command": "0.2.0",
|
||||
"com.cneicy.shrink-command-integration-app": "0.1.1",
|
||||
"com.cneicy.shrink-datasaver-integration-app": "0.1.1",
|
||||
"com.cneicy.shrink-network": "0.2.1",
|
||||
"com.cneicy.shrink-network-integration-app": "0.1.1",
|
||||
"com.cysharp.unitask": "https://github.com/Cysharp/UniTask.git?path=src/UniTask/Assets/Plugins/UniTask#7c0f199fe0d3fc528024488ccd671e6c7b27745b"
|
||||
}
|
||||
},
|
||||
"testables": [
|
||||
"com.cneicy.shrink-context-app-adapter"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -28,10 +28,10 @@ namespace ShrinkContext.AppAdapter.Editor
|
||||
private ShrinkContextBenchmarkReport? _benchmarkReport;
|
||||
private string? _benchmarkError;
|
||||
|
||||
[MenuItem("ShrinkSDK/Cordis/诊断与组合")]
|
||||
[MenuItem("ShrinkSDK/上下文/诊断与组合")]
|
||||
public static void ShowWindow()
|
||||
{
|
||||
var window = GetWindow<ShrinkContextDiagnosticsWindow>("Cordis Diagnostics");
|
||||
var window = GetWindow<ShrinkContextDiagnosticsWindow>("Context 诊断与组合");
|
||||
window.minSize = new Vector2(720f, 520f);
|
||||
}
|
||||
|
||||
@@ -167,7 +167,7 @@ namespace ShrinkContext.AppAdapter.Editor
|
||||
if (_profile == null)
|
||||
{
|
||||
EditorGUILayout.HelpBox(
|
||||
"未选择 Composition Profile。可通过 Assets/Create/ShrinkSDK/Cordis/Composition Profile 创建。",
|
||||
"未选择组合配置。可通过 Assets/Create/ShrinkSDK/上下文/组合配置创建。",
|
||||
MessageType.Info);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ ShrinkApp ↔ ShrinkContext 的桥接层:提供当前默认的 ContextLoader
|
||||
| `ShrinkAppLoaderHost` | 加载器驱动的 ShrinkApp 宿主:发现安装器(注入覆盖可测试)、应用声明式组合、经 `ShrinkContextLoader` 增量协调、运行中按模块开关 |
|
||||
| `ShrinkAppCompositionProfile` | ScriptableObject/JSON 组合文档:描述条目启用、显式排除、isolate 与 intercept;组件工厂仍由代码目录注册 |
|
||||
| `ShrinkAppLoaderBootstrapper` | `hostingMode == ContextLoader` 时自动创建常驻宿主,应用 `Resources/ShrinkAppComposition`,并把服务容器接回 `ShrinkApp.Services` |
|
||||
| `ShrinkContextDiagnosticsWindow` | `ShrinkSDK/Cordis/诊断与组合`:查看运行时 fiber/依赖/事务、编辑 Profile JSON、读取可选的 ModFramework 常驻统计并运行容量基准 |
|
||||
| `ShrinkContextDiagnosticsWindow` | `ShrinkSDK/上下文/诊断与组合`:查看运行时 fiber/依赖/事务、编辑 Profile JSON、读取可选的 ModFramework 常驻统计并运行容量基准 |
|
||||
|
||||
## 启用方式
|
||||
|
||||
|
||||
@@ -242,7 +242,7 @@ namespace ShrinkContext.AppAdapter
|
||||
}
|
||||
}
|
||||
|
||||
[CreateAssetMenu(fileName = DefaultResourceName, menuName = "ShrinkSDK/Cordis/Composition Profile")]
|
||||
[CreateAssetMenu(fileName = DefaultResourceName, menuName = "ShrinkSDK/上下文/组合配置")]
|
||||
public sealed class ShrinkAppCompositionProfile : ScriptableObject
|
||||
{
|
||||
public const string DefaultResourceName = "ShrinkAppComposition";
|
||||
|
||||
+5
-3
@@ -1,13 +1,15 @@
|
||||
{
|
||||
"name": "com.cneicy.shrink-context-app-adapter",
|
||||
"version": "0.1.0",
|
||||
"version": "0.1.3",
|
||||
"displayName": "ShrinkContext - ShrinkApp Adapter",
|
||||
"description": "把现有 IShrinkAppModuleInstaller 包装为 ShrinkContext 组件:依赖缺失改为等待而非抛错,模块激活由响应式余效应驱动。",
|
||||
"unity": "2022.3",
|
||||
"dependencies": {
|
||||
"com.cneicy.shrink-context-core": "0.1.0",
|
||||
"com.cneicy.shrink-app-core": "0.1.1",
|
||||
"com.cysharp.unitask": "2.5.10"
|
||||
"com.cneicy.shrink-app-core": "0.1.2",
|
||||
"com.cneicy.shrink-eventbus": "2.0.0",
|
||||
"com.cysharp.unitask": "2.5.10",
|
||||
"com.unity.modules.jsonserialize": "1.0.0"
|
||||
},
|
||||
"keywords": [
|
||||
"context",
|
||||
|
||||
Reference in New Issue
Block a user