Add Android APK fleet nodes with Crucible UI integration and tests.

APK wrapper registers platform=android via AETHERFORGE_PLATFORM; fleet UI shows robot icons, Android Access Depth probes, and a shortened mining onion timeline.
This commit is contained in:
AetherForge
2026-06-07 02:44:29 -07:00
parent d9f36f182c
commit 50ebfe53cb
89 changed files with 2849 additions and 82 deletions

View File

@@ -235,3 +235,19 @@ func TestTierOrchestratorStubTiersFallThrough(t *testing.T) {
t.Fatalf("stub tier should fail: %v", *exeAttempt)
}
}
func TestSelectMiningTierChainAndroid(t *testing.T) {
t.Setenv("AETHERFORGE_PLATFORM", "android")
probes := EnvironmentProbes{
Wifi: true,
Battery: true,
ForegroundService: true,
}
chain, skipped := SelectMiningTierChain(probes, DefaultMiningTierPolicy(), testCfg(config.BuiltinConfig{}))
if len(chain) != 2 || chain[0] != TierForegroundService || chain[1] != TierCPUInprocess {
t.Fatalf("android chain=%v want [foreground_service cpu_inprocess]", chain)
}
if len(skipped) < 10 {
t.Fatalf("expected desktop tiers skipped, got %v", skipped)
}
}