Enable exact correct03 dialogue dance and add standalone camera diagnostics
This commit is contained in:
+5
-1
@@ -18,6 +18,7 @@ def avatarNatural = providers.gradleProperty('avatarNatural').orNull == 'true'
|
||||
def avatarUiCandidate = providers.gradleProperty('avatarUiCandidate').orNull == 'true'
|
||||
def avatarMouthCandidate = providers.gradleProperty('avatarMouthCandidate').orNull == 'true'
|
||||
def avatarActionCandidate = providers.gradleProperty('avatarActionCandidate').orNull == 'true'
|
||||
def avatarUserNetworkActions = providers.gradleProperty('avatarUserNetworkActions').orNull == 'true'
|
||||
def avatarUserAssetCandidate = providers.gradleProperty('avatarUserAssetCandidate').orNull == 'true'
|
||||
def avatarStartupFix = providers.gradleProperty('avatarStartupFix').orNull == 'true'
|
||||
def cameraCompatibilityFix = providers.gradleProperty('cameraCompatibilityFix').orNull == 'true'
|
||||
@@ -52,6 +53,7 @@ if (cameraPreviewStream && (!cameraDirectYuv || actionVersionCode < 27)) throw n
|
||||
if (faceDiagnosticsFix && (!presenceCandidate || actionVersionCode < 24)) throw new GradleException('Face diagnostics fix requires presence and fresh code >=24')
|
||||
if (presenceCandidate && (!avatarStartupFix || actionVersionCode < 23)) throw new GradleException('Presence candidate requires startup fix and fresh code >=23')
|
||||
if (avatarStartupFix && (!avatarPlaybackClockFix || actionVersionCode < 22)) throw new GradleException('Startup fix requires repaired playback and fresh code >=22')
|
||||
if (avatarUserNetworkActions && (!avatarUserAssetCandidate || actionVersionCode < 32)) throw new GradleException('User network dance requires authorized exact asset mode and fresh code >=32')
|
||||
if (avatarUserAssetCandidate && (!avatarStartupFix || !cameraProbeDiagnostic || actionVersionCode < 30 || emotionManifestSha != '208f703ed92bf795bfeb78a1cef89b67bed2e45da80038a56157fd1ecd4cfa93')) throw new GradleException('User asset debug candidate requires exact authorized correct03, startup and current diagnostics, fresh code >=30')
|
||||
if (!avatarUserAssetCandidate && avatarPlaybackClockFix && (!avatarFullActionCandidate || actionVersionCode < 21 || emotionManifestSha != '987e125a7d7a2cde99121b5f5246c82f4dbe36c4899d3d49eaffd1a68bafb887')) throw new GradleException('Playback clock fix requires frozen full graph and fresh code >=21')
|
||||
if (avatarPlaybackDiagnostic && (!avatarFullActionCandidate || actionVersionCode < 20 || emotionManifestSha != '987e125a7d7a2cde99121b5f5246c82f4dbe36c4899d3d49eaffd1a68bafb887')) throw new GradleException('Playback diagnostic requires frozen full graph and fresh code >=20')
|
||||
@@ -107,7 +109,7 @@ android {
|
||||
targetSdk 34
|
||||
testInstrumentationRunner 'com.gorios.lanvoice.AvatarCleanUiInstrumentation'
|
||||
versionCode avatarActionCandidate ? actionVersionCode : (avatarMouthCandidate ? 15 : (avatarUiCandidate ? 14 : (avatarNatural ? 13 : 12)))
|
||||
versionName = avatarUserAssetCandidate ? '0.7.12' : cameraProbeDiagnostic ? '0.7.11' : cameraPreviewStream ? '0.7.9' : cameraDirectYuv ? '0.7.8' : cameraCompatibilityFix ? '0.7.7' : faceDiagnosticsFix ? '0.7.6' : presenceCandidate ? '0.7.5' : avatarStartupFix ? '0.7.4' : avatarPlaybackClockFix ? '0.7.3' : avatarPlaybackDiagnostic ? '0.7.2' : avatarRuntimeFix ? '0.7.1' : (avatarActionCandidate ? '0.7.0' : ((avatarUiCandidate || avatarMouthCandidate) ? '0.6.2' : '0.6.1'))
|
||||
versionName = avatarUserNetworkActions ? '0.7.13' : avatarUserAssetCandidate ? '0.7.12' : cameraProbeDiagnostic ? '0.7.11' : cameraPreviewStream ? '0.7.9' : cameraDirectYuv ? '0.7.8' : cameraCompatibilityFix ? '0.7.7' : faceDiagnosticsFix ? '0.7.6' : presenceCandidate ? '0.7.5' : avatarStartupFix ? '0.7.4' : avatarPlaybackClockFix ? '0.7.3' : avatarPlaybackDiagnostic ? '0.7.2' : avatarRuntimeFix ? '0.7.1' : (avatarActionCandidate ? '0.7.0' : ((avatarUiCandidate || avatarMouthCandidate) ? '0.6.2' : '0.6.1'))
|
||||
ndk { abiFilters 'arm64-v8a' }
|
||||
}
|
||||
compileOptions { sourceCompatibility JavaVersion.VERSION_17; targetCompatibility JavaVersion.VERSION_17 }
|
||||
@@ -122,6 +124,7 @@ android {
|
||||
else if (avatarUiCandidate) versionNameSuffix '-ui-dev'
|
||||
else if (avatarNatural) versionNameSuffix '-natural-dev'
|
||||
else if (avatarEngineering) versionNameSuffix '-dev'
|
||||
buildConfigField 'boolean', 'AVATAR_NETWORK_ACTIONS_ALLOWED', (!avatarUserAssetCandidate || avatarUserNetworkActions) ? 'true' : 'false'
|
||||
buildConfigField 'boolean', 'AVATAR_USER_ASSET_CANDIDATE', avatarUserAssetCandidate ? 'true' : 'false'
|
||||
buildConfigField 'String', 'EMOTION_ASSET_ROOT', '"' + (avatarUserAssetCandidate ? 'avatar/a01-black-tulle-roomy720-correct03/' : 'avatar/a01-expression-action-v1/') + '"'
|
||||
buildConfigField 'String', 'STARTUP_ASSET_ROOT', '"' + (avatarUserAssetCandidate ? 'avatar/startup-black-tulle-correct03/' : 'avatar/startup-white-01/') + '"'
|
||||
@@ -135,6 +138,7 @@ android {
|
||||
buildConfigField 'String', 'EMOTION_MANIFEST_SHA', '"' + emotionManifestSha + '"'
|
||||
}
|
||||
release {
|
||||
buildConfigField 'boolean', 'AVATAR_NETWORK_ACTIONS_ALLOWED', 'false'
|
||||
buildConfigField 'boolean', 'AVATAR_USER_ASSET_CANDIDATE', 'false'
|
||||
buildConfigField 'String', 'EMOTION_ASSET_ROOT', '"avatar/a01-expression-action-v1/"'
|
||||
buildConfigField 'String', 'STARTUP_ASSET_ROOT', '"avatar/startup-white-01/"'
|
||||
|
||||
@@ -232,8 +232,8 @@ class MainActivity : ComponentActivity() {
|
||||
onConnectionLog = { connectionLogs = (connectionLogs + it).takeLast(10) },
|
||||
onPreparePlayback = audioOutput::prepare,
|
||||
onVoiceStopped = audioOutput::release,
|
||||
reviewedActionPack = avatarPack?.emotionAction?.actionPack?.takeIf { !BuildConfig.AVATAR_USER_ASSET_CANDIDATE && (!BuildConfig.AVATAR_STARTUP_FIX || mediaReady) },
|
||||
pendingActionPackSha = { if(BuildConfig.AVATAR_STARTUP_FIX && !BuildConfig.AVATAR_USER_ASSET_CANDIDATE) BuildConfig.EMOTION_MANIFEST_SHA else null },
|
||||
reviewedActionPack = avatarPack?.emotionAction?.actionPack?.takeIf { BuildConfig.AVATAR_NETWORK_ACTIONS_ALLOWED && (!BuildConfig.AVATAR_STARTUP_FIX || mediaReady) },
|
||||
pendingActionPackSha = { if(BuildConfig.AVATAR_STARTUP_FIX && BuildConfig.AVATAR_NETWORK_ACTIONS_ALLOWED) BuildConfig.EMOTION_MANIFEST_SHA else null },
|
||||
actionPlayer = avatarMedia,
|
||||
onPrepareExpression = avatarMedia::prepare,
|
||||
)
|
||||
@@ -251,7 +251,7 @@ class MainActivity : ComponentActivity() {
|
||||
presenceEnabled=preferences().getBoolean("presenceEnabled",false)
|
||||
session.setPresence(presenceEnabled,false)
|
||||
if(inForeground) session.foreground(connectAutomatically=false)
|
||||
if(mediaReady && !BuildConfig.AVATAR_USER_ASSET_CANDIDATE) avatarPack?.emotionAction?.actionPack?.let(session::installReviewedActions)
|
||||
if(mediaReady && BuildConfig.AVATAR_NETWORK_ACTIONS_ALLOWED) avatarPack?.emotionAction?.actionPack?.let(session::installReviewedActions)
|
||||
scheduleEntry()
|
||||
}
|
||||
private fun startShell() {
|
||||
@@ -282,7 +282,7 @@ class MainActivity : ComponentActivity() {
|
||||
}
|
||||
private fun startupVisible() {
|
||||
mediaReady=true;startupStage="ready"
|
||||
if(!offlineAvatarPreview && ::session.isInitialized && !BuildConfig.AVATAR_USER_ASSET_CANDIDATE)
|
||||
if(!offlineAvatarPreview && ::session.isInitialized && BuildConfig.AVATAR_NETWORK_ACTIONS_ALLOWED)
|
||||
avatarPack?.emotionAction?.actionPack?.let(session::installReviewedActions)
|
||||
}
|
||||
|
||||
|
||||
@@ -168,7 +168,7 @@ fun CallScreen(state: VoiceUiState,entry: EntryPhase,permissionMessage: String?,
|
||||
Text("当前画面:${visualEmotion?.label ?: if(pack?.emotionAction!=null) "过渡或未呈现" else "中立"} · ${video.actual}",fontSize=12.sp)
|
||||
Text("视觉选择:${mediaBinding?.selection?.let { "${it.visualEmotion.wire}/${it.visualIntensity}" } ?: "未选择"} · ${mediaBinding?.visualStatus ?: "旧中立素材"}",fontSize=12.sp)
|
||||
if(pack?.emotionAction!=null) Text("整合候选 · 动态自然度、音乐听审及真机未测;表达可能等待 2–4 秒出口和约 1 秒过渡",fontSize=12.sp)
|
||||
if(BuildConfig.AVATAR_USER_ASSET_CANDIDATE) Text("用户授权素材调试候选 · 联网舞蹈未开放 · 音乐听审与真机自然度待验",fontSize=12.sp)
|
||||
if(BuildConfig.AVATAR_USER_ASSET_CANDIDATE) Text(if(BuildConfig.AVATAR_NETWORK_ACTIONS_ALLOWED) "用户授权会话测试候选 · 联网舞蹈已开放 · 音乐听审与真机自然度待验" else "用户授权素材调试候选 · 联网舞蹈未开放 · 音乐听审与真机自然度待验",fontSize=12.sp)
|
||||
Text("版本 ${com.gorios.lanvoice.BuildConfig.VERSION_NAME} · code ${com.gorios.lanvoice.BuildConfig.VERSION_CODE} · pin ${com.gorios.lanvoice.BuildConfig.EMOTION_MANIFEST_SHA.take(12)}",fontSize=12.sp)
|
||||
if(BuildConfig.VERSION_NAME=="0.7.2") Text("播放诊断版:未确认手机根因;可离线检查两段原舞蹈并发送状态报告",fontSize=12.sp)
|
||||
Text("素材准入:${pack?.emotionAdmission ?: "unavailable"} · ${mediaBinding?.diagnosticState ?: "legacy_neutral"}",fontSize=11.sp)
|
||||
|
||||
Reference in New Issue
Block a user