docs: record approved app direction and Android setup scripts

This commit is contained in:
Codex
2026-10-12 22:30:13 +08:00
commit a223798c25
9 changed files with 273 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
# Dot-source this file before using Flutter: . ./scripts/android-env.ps1
$taskProjectRoot = Split-Path -Parent $PSScriptRoot
$taskToolRoot = Join-Path $taskProjectRoot '.tools'
$env:JAVA_HOME = Join-Path $taskToolRoot 'jdk-17'
$env:ANDROID_HOME = Join-Path $taskToolRoot 'android-sdk'
$env:ANDROID_SDK_ROOT = $env:ANDROID_HOME
$env:ANDROID_USER_HOME = Join-Path $taskToolRoot 'android-user'
$env:ANDROID_EMULATOR_HOME = Join-Path $taskToolRoot 'android-user'
$env:ANDROID_AVD_HOME = Join-Path $taskToolRoot 'avd'
$env:GRADLE_USER_HOME = Join-Path $taskToolRoot 'gradle-cache'
$env:PUB_CACHE = Join-Path $taskToolRoot 'pub-cache'
$env:FLUTTER_SUPPRESS_ANALYTICS = 'true'
$taskPathEntries = @(
(Join-Path $taskToolRoot 'flutter/bin'),
(Join-Path $env:JAVA_HOME 'bin'),
(Join-Path $env:ANDROID_HOME 'platform-tools'),
(Join-Path $env:ANDROID_HOME 'cmdline-tools/latest/bin'),
(Join-Path $env:ANDROID_HOME 'emulator')
)
$taskOldPath = @($env:PATH -split ';' | Where-Object { $_ -and $_ -notin $taskPathEntries })
$env:PATH = ($taskPathEntries + $taskOldPath) -join ';'