feat: deliver clean avatar home in 0.6.2 UI debug candidate

Keep the avatar mounted while all connection, permission, privacy and diagnostic controls live in a settings sheet. Save the tested continuous-body renderer, safe transition driver and foreground HELLO/permission workflow from this session. Pin runtime03 for the code14 UI-only candidate; mouth deformation remains unresolved. Add source UI contracts, an optional sensor-free device probe, exact asset import and candidate packaging checks. Portrait binaries and diagnostics remain private and untracked.
This commit is contained in:
zenord
2026-10-12 22:19:56 +08:00
parent fdd91234b5
commit 9ea5eb31c1
57 changed files with 4303 additions and 376 deletions
+42 -4
View File
@@ -13,6 +13,16 @@ if (!expressionVersionFile.isFile()) {
expressionVersionFile.withInputStream { expressionVersions.load(it) }
def cameraVersion = expressionVersions.getProperty('camerax.version')
def mediaPipeVersion = expressionVersions.getProperty('mediapipe.version')
def avatarEngineering = providers.gradleProperty('avatarEngineering').orNull == 'true'
def avatarNatural = providers.gradleProperty('avatarNatural').orNull == 'true'
def avatarUiCandidate = providers.gradleProperty('avatarUiCandidate').orNull == 'true'
if (avatarUiCandidate && !avatarNatural) {
throw new GradleException('UI candidate requires the pinned natural debug runtime')
}
def naturalManifestSha = providers.gradleProperty('naturalManifestSha').orNull ?: ''
if (avatarNatural && !(naturalManifestSha ==~ /[0-9a-f]{64}/)) {
throw new GradleException('Natural debug candidate requires exact runtime manifest SHA')
}
if (!cameraVersion || !mediaPipeVersion) {
throw new GradleException('Incomplete gradle/expression-versions.properties; run scripts/prepare-expression.sh')
}
@@ -38,6 +48,15 @@ def generateNetworkSecurityConfig = tasks.register('generateNetworkSecurityConfi
}
}
// AndroidSourceDirectorySet excludes do not reliably filter mergeAssets. A Sync
// staging directory applies actual file exclusions without touching archived imports.
def packagedAssets = layout.buildDirectory.dir('generated/packagedAssets')
def stagePackagedAssets = tasks.register('stagePackagedAssets', Sync) {
from('src/main/assets')
exclude 'avatar/a01-v1/**', 'avatar/a01-standing-v2/**'
into(packagedAssets)
}
android {
namespace 'com.gorios.lanvoice'
compileSdk 34
@@ -45,17 +64,36 @@ android {
applicationId 'com.gorios.lanvoice'
minSdk 26
targetSdk 34
versionCode 11
versionName '0.6.0'
testInstrumentationRunner 'com.gorios.lanvoice.AvatarCleanUiInstrumentation'
versionCode avatarUiCandidate ? 14 : (avatarNatural ? 13 : 12)
versionName avatarUiCandidate ? '0.6.2' : '0.6.1'
ndk { abiFilters 'arm64-v8a' }
}
compileOptions { sourceCompatibility JavaVersion.VERSION_17; targetCompatibility JavaVersion.VERSION_17 }
kotlinOptions { jvmTarget = '17' }
buildFeatures { compose true }
buildFeatures { compose true; buildConfig true }
buildTypes {
debug {
if (avatarUiCandidate) versionNameSuffix '-ui-dev'
else if (avatarNatural) versionNameSuffix '-natural-dev'
else if (avatarEngineering) versionNameSuffix '-dev'
buildConfigField 'boolean', 'AVATAR_ENGINEERING', (avatarEngineering || avatarNatural) ? 'true' : 'false'
buildConfigField 'boolean', 'AVATAR_NATURAL', avatarNatural ? 'true' : 'false'
buildConfigField 'String', 'NATURAL_MANIFEST_SHA', '"' + (avatarNatural ? naturalManifestSha : '') + '"'
}
release {
buildConfigField 'boolean', 'AVATAR_ENGINEERING', 'false'
buildConfigField 'boolean', 'AVATAR_NATURAL', 'false'
buildConfigField 'String', 'NATURAL_MANIFEST_SHA', '""'
}
}
androidResources { noCompress += ['task', 'mp4'] }
sourceSets.main.res.srcDir(networkSecurityResources)
// Retain private archived imports on disk, but never put old seated/arms-down
// animation packs into the new graph APK.
sourceSets.main.assets.setSrcDirs([packagedAssets])
}
tasks.named('preBuild').configure { dependsOn(generateNetworkSecurityConfig) }
tasks.named('preBuild').configure { dependsOn(generateNetworkSecurityConfig, stagePackagedAssets) }
dependencies {
implementation platform('androidx.compose:compose-bom:2024.09.03')
implementation 'androidx.compose.ui:ui'