From b649c353fb355f6c15d9cc7cd9328d50790dd977 Mon Sep 17 00:00:00 2001 From: Nathan Walker Date: Tue, 11 Feb 2025 08:21:51 -0800 Subject: [PATCH] feat(config): multi target support for swift packages (#10695) --- packages/core/config/config.interface.ts | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/packages/core/config/config.interface.ts b/packages/core/config/config.interface.ts index 6c2e0383e..f307698c2 100644 --- a/packages/core/config/config.interface.ts +++ b/packages/core/config/config.interface.ts @@ -12,16 +12,22 @@ interface IConfigPlatform { discardUncaughtJsExceptions?: boolean; } -export interface IOSRemoteSPMPackage { +interface IOSSPMPackageBase { name: string; libs: string[]; + /** + * Optional: If you have more targets (like widgets for example) + * you can list their names here to include the Swift Package with them + */ + targets?: string[]; +} + +export interface IOSRemoteSPMPackage extends IOSSPMPackageBase { repositoryURL: string; version: string; } -export interface IOSLocalSPMPackage { - name: string; - libs: string[]; +export interface IOSLocalSPMPackage extends IOSSPMPackageBase { path: string; }