(values: readonly string[])
| 10 | ] as const; |
| 11 | |
| 12 | function uniqueNonEmpty(values: readonly string[]): string[] { |
| 13 | const seen = new Set<string>(); |
| 14 | const normalized: string[] = []; |
| 15 | for (const value of values) { |
| 16 | const trimmed = value.trim(); |
| 17 | if (!trimmed || seen.has(trimmed)) continue; |
| 18 | seen.add(trimmed); |
| 19 | normalized.push(trimmed); |
| 20 | } |
| 21 | return normalized; |
| 22 | } |
| 23 | |
| 24 | export function resolveAndroidSdkRoots(env: NodeJS.ProcessEnv = process.env): string[] { |
| 25 | const configuredRoot = env.ANDROID_SDK_ROOT?.trim(); |
no test coverage detected