Add uniform Yangmi framing candidate for code37
This commit is contained in:
@@ -57,6 +57,12 @@ def characterMedia = characterCatalog.mediaBundles[characterMediaId]
|
||||
def allowedMedia = characterProfile.mediaSelection == 'existing-build-flags' ? ['black-correct03','white-full04'] : [characterProfile.mediaSelection] + (characterProfile.additionalMediaSelections ?: [])
|
||||
if (!characterMedia || !(characterMediaId in allowedMedia)) throw new GradleException('Profile/media selection is not authorized')
|
||||
if (avatarUserNetworkActions && characterMedia.networkActionsAllowed != true) throw new GradleException('Network dance requires separate reviewed media registration')
|
||||
def avatarFrameZoom = (providers.gradleProperty('avatarFrameZoom').orNull ?: '1.0').toFloat()
|
||||
def avatarFrameCenterY = (providers.gradleProperty('avatarFrameCenterY').orNull ?: '0.5').toFloat()
|
||||
if (!Float.isFinite(avatarFrameZoom) || avatarFrameZoom < 1f || avatarFrameZoom > 2f ||
|
||||
!Float.isFinite(avatarFrameCenterY) || avatarFrameCenterY < 0.4f || avatarFrameCenterY > 0.6f) throw new GradleException('Invalid avatar framing')
|
||||
if ((avatarFrameZoom != 1f || avatarFrameCenterY != 0.5f) &&
|
||||
(!avatarUserAssetCandidate || characterMediaId != 'black-correct03')) throw new GradleException('Framing candidate requires exact black media')
|
||||
if (emotionManifestSha && !(emotionManifestSha ==~ /[0-9a-f]{64}/)) throw new GradleException('Emotion graph requires exact external manifest SHA')
|
||||
if (emotionManifestSha && (!avatarActionCandidate || !avatarMouthCandidate || !avatarNatural || actionVersionCode < 17)) throw new GradleException('Emotion candidate requires own-mouth runtime and a fresh code >=17')
|
||||
if (avatarFullActionCandidate && (!emotionManifestSha || !avatarActionCandidate || actionVersionCode < 18)) throw new GradleException('Full candidate requires pinned emotion/action graph and fresh code >=18')
|
||||
@@ -158,6 +164,8 @@ android {
|
||||
buildConfigField 'String', 'STARTUP_ASSET_ROOT', groovy.json.JsonOutput.toJson(characterMedia.bootstrapRoot)
|
||||
buildConfigField 'String', 'STARTUP_MANIFEST_SHA', groovy.json.JsonOutput.toJson(characterMedia.bootstrapSha256)
|
||||
buildConfigField 'int', 'STARTUP_POSTER_RES_ID', 'com.gorios.lanvoice.R.drawable.' + characterMedia.posterResource
|
||||
buildConfigField 'float', 'AVATAR_FRAME_ZOOM', avatarFrameZoom.toString() + 'f'
|
||||
buildConfigField 'float', 'AVATAR_FRAME_CENTER_Y', avatarFrameCenterY.toString() + 'f'
|
||||
buildConfigField 'boolean', 'CAMERA_PROBE_DIAGNOSTIC', cameraProbeDiagnostic ? 'true' : 'false'
|
||||
buildConfigField 'boolean', 'AVATAR_STARTUP_FIX', avatarStartupFix ? 'true' : 'false'
|
||||
buildConfigField 'boolean', 'AVATAR_ENGINEERING', (avatarEngineering || avatarNatural) ? 'true' : 'false'
|
||||
@@ -173,6 +181,8 @@ android {
|
||||
buildConfigField 'String', 'STARTUP_ASSET_ROOT', '"avatar/startup-white-01/"'
|
||||
buildConfigField 'String', 'STARTUP_MANIFEST_SHA', '"461f5cfc10036de5f10ca3ce765fb8d9998697d3fd035aa9b1862d2ccfc3eaa2"'
|
||||
buildConfigField 'int', 'STARTUP_POSTER_RES_ID', 'com.gorios.lanvoice.R.drawable.startup_poster'
|
||||
buildConfigField 'float', 'AVATAR_FRAME_ZOOM', '1.0f'
|
||||
buildConfigField 'float', 'AVATAR_FRAME_CENTER_Y', '0.5f'
|
||||
buildConfigField 'boolean', 'CAMERA_PROBE_DIAGNOSTIC', 'false'
|
||||
buildConfigField 'boolean', 'AVATAR_STARTUP_FIX', 'false'
|
||||
buildConfigField 'boolean', 'AVATAR_ENGINEERING', 'false'
|
||||
|
||||
Reference in New Issue
Block a user