UNPKG

@capgo/cli

Version:
17 lines (16 loc) • 1.15 kB
/** * Which native dependency manager the Capacitor iOS project uses. * - `cocoapods`: `<ios>/App/Podfile` only * - `spm`: `<ios>/App/CapApp-SPM/Package.swift` only * - `mixed`: both files exist (half-migrated project) * - `none`: no iOS project, or neither file */ export type IosDependencyManager = 'cocoapods' | 'spm' | 'mixed' | 'none'; /** CocoaPods trunk stops accepting new podspecs on this date (blog.cocoapods.org/CocoaPods-Specs-Repo). */ export declare const COCOAPODS_READ_ONLY_DATE = "2026-12-02"; export declare const COCOAPODS_READ_ONLY_URL = "https://blog.cocoapods.org/CocoaPods-Specs-Repo/"; export declare const SPM_MIGRATION_DOCS_URL = "https://capgo.app/blog/how-to-migrate-your-capacitor-app-to-spm/"; export declare function detectIosDependencyManager(projectDir: string, capConfig?: unknown): IosDependencyManager; export declare function usesCocoaPods(manager: IosDependencyManager): boolean; /** Human-readable deprecation notice. Wording follows the current date so it stays true before and after the cutoff. */ export declare function formatCocoaPodsReadOnlyWarning(manager: IosDependencyManager, now?: Date): string;