Enable reviewed Liam dances and add playback-driven voice status

This commit is contained in:
zenord
2026-10-14 21:35:51 +08:00
parent 5c4ea077ee
commit 376e4a347e
14 changed files with 278 additions and 16 deletions
+6
View File
@@ -41,6 +41,10 @@ assert text(home).count('IconButton(')==1
assert 'Alignment.BottomEnd' in text(home) and 'size(48.dp)' in text(home)
assert 'WindowInsets.safeDrawing' in text(home)
assert 'settingsOpen=true' in text(home)
assert text(home).index('avatar()') < text(home).index('VoiceStatusView(it)')
assert 'Alignment.TopEnd' in text(home) and '.padding(12.dp).size(36.dp)' in text(home)
assert 'update={it.state=voiceStatus}' in text(home)
assert 'voiceStatus: com.gorios.lanvoice.VoiceStatusView.State=com.gorios.lanvoice.VoiceStatusView.State.IDLE' in source
no_calls(home,['Text','TextButton','Button','OutlinedButton','AvatarDiagnostics','ExpressionControls','settings'])
assert 'rememberSaveable { mutableStateOf(false) }' in text(scaffold)
assert text(sheet).count('settings()')==1 and text(sheet).count('settingsOpen=false')==2
@@ -91,6 +95,8 @@ status=text(block('fun StartupStatus'))
assert 'if(stage!="preparing" && !connecting) return' in status
assert 'if(stage=="preparing")' in status and 'if(connecting)' in status
assert 'end=88.dp' in text(home) and 'StartupStatus(' in text(home)
assert 'VoiceStatusView.State.valueOf(state.voiceIndicator.name)' in text(block('fun CallScreen'))
assert 'voiceStatus=' not in text(block('fun EngineeringPreviewScreen'))
assert 'remember(mediaBinding) { StartupAvatarView' in source
assert 'LaunchedEffect(resumed,restart,override,danceActive,pack)' in source
assert 'if(!BuildConfig.AVATAR_STARTUP_FIX) avatarPack = AvatarPack.load(this)' in activity