fix(build): 修复安卓构建依赖并整理服务器配置

This commit is contained in:
Liubing\LB
2026-10-14 21:05:41 +08:00
parent 73ac2bf6f8
commit 8e848b63d8
11 changed files with 33 additions and 8 deletions

View File

@@ -9,6 +9,17 @@ plugins {
**BUILD_SCRIPT_DEPS**
}
// DataStore 1.1.7 在当前 AGP 下会选中 JVM 制品,显式使用包含 Android 类的同版本制品。
allprojects {
configurations.configureEach {
resolutionStrategy.dependencySubstitution {
['datastore', 'datastore-core', 'datastore-preferences', 'datastore-preferences-core'].each { artifact ->
substitute module("androidx.datastore:${artifact}") using module("androidx.datastore:${artifact}-android:1.1.7")
}
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}

View File

@@ -244,6 +244,8 @@ half WCE_calcShadowIntensity(WCE_Lit lit, half dotLN, WCE_CommonData dt) {
uint WCE_getMeshRendLayer() {
#if defined(SHADERGRAPH_PREVIEW) || !defined(_LIGHT_LAYERS)
return 255;
#elif UNITY_VERSION >= 202220
return GetMeshRenderingLayer();
#else
return GetMeshRenderingLightLayer();
#endif