// tools/create-spec-hu/swift-android-hu-adapter.ts — SPEC-013 TD-P14-03
// Adds a notice when a Swift project targets Android (experimental, WWDC 2025).
/**
 * Build the Swift-on-Android experimental notice for HU.md.
 * Emits a notice criterion when the project language is Swift
 * and the spec target is android.
 */
export function buildSwiftAndroidHuSection(spec, knowledge) {
    if (spec.target !== 'android') {
        return [];
    }
    if (!knowledge) {
        return [];
    }
    // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
    const lang = (knowledge.language ?? '').toLowerCase();
    if (lang !== 'swift') {
        return [];
    }
    return [
        '',
        '## Swift on Android — Notice',
        '',
        '> **Swift on Android (experimental, WWDC 2025):** ' +
            'Gradle plugin available in Android Studio, build step available — ' +
            '**NOT production-ready**. Evaluate stability requirements before committing.',
        '',
        '> **Nota (WWDC 2025)**: Swift para Android es experimental. ' +
            'Verificar soporte oficial antes de producción.',
        '',
        '- [ ] Equipo ha evaluado la estabilidad de Swift on Android para este caso de uso',
        '- [ ] Plan de contingencia definido si el soporte experimental introduce regresiones',
        '- [ ] CI/CD configurado con el Gradle plugin de Swift para Android',
        '',
    ];
}
//# sourceMappingURL=swift-android-hu-adapter.js.map