Skip to content

Commit

Permalink
fix: set correct target paths for SPM support (#407)
Browse files Browse the repository at this point in the history
  • Loading branch information
robingenz authored Feb 1, 2025
1 parent 04026df commit 1dc1fe3
Show file tree
Hide file tree
Showing 16 changed files with 49 additions and 30 deletions.
19 changes: 19 additions & 0 deletions .changeset/short-fishes-knock.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
'@capawesome/capacitor-managed-configurations': patch
'@capawesome/capacitor-screen-orientation': patch
'@capawesome/capacitor-background-task': patch
'@capawesome-team/capacitor-datetime-picker': patch
'@capawesome/capacitor-app-shortcuts': patch
'@capawesome/capacitor-photo-editor': patch
'@capawesome-team/capacitor-file-opener': patch
'@capawesome/capacitor-file-picker': patch
'@capawesome/capacitor-app-review': patch
'@capawesome/capacitor-app-update': patch
'@capawesome/capacitor-cloudinary': patch
'@capawesome/capacitor-screenshot': patch
'@capawesome/capacitor-posthog': patch
'@capawesome/capacitor-badge': patch
'@capawesome/capacitor-torch': patch
---

fix: set correct target paths for SPM support
4 changes: 2 additions & 2 deletions packages/app-review/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ let package = Package(
.product(name: "Capacitor", package: "capacitor-swift-pm"),
.product(name: "Cordova", package: "capacitor-swift-pm")
],
path: "ios/Sources/AppReviewPlugin"),
path: "ios/Plugin"),
.testTarget(
name: "AppReviewPluginTests",
dependencies: ["AppReviewPlugin"],
path: "ios/Tests/AppReviewPluginTests")
path: "ios/PluginTests")
]
)
4 changes: 2 additions & 2 deletions packages/app-shortcuts/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ let package = Package(
.product(name: "Capacitor", package: "capacitor-swift-pm"),
.product(name: "Cordova", package: "capacitor-swift-pm")
],
path: "ios/Sources/AppShortcutsPlugin"),
path: "ios/Plugin"),
.testTarget(
name: "AppShortcutsPluginTests",
dependencies: ["AppShortcutsPlugin"],
path: "ios/Tests/AppShortcutsPluginTests")
path: "ios/PluginTests")
]
)
4 changes: 2 additions & 2 deletions packages/app-update/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ let package = Package(
.product(name: "Capacitor", package: "capacitor-swift-pm"),
.product(name: "Cordova", package: "capacitor-swift-pm")
],
path: "ios/Sources/AppUpdatePlugin"),
path: "ios/Plugin"),
.testTarget(
name: "AppUpdatePluginTests",
dependencies: ["AppUpdatePlugin"],
path: "ios/Tests/AppUpdatePluginTests")
path: "ios/PluginTests")
]
)
4 changes: 2 additions & 2 deletions packages/background-task/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ let package = Package(
.product(name: "Capacitor", package: "capacitor-swift-pm"),
.product(name: "Cordova", package: "capacitor-swift-pm")
],
path: "ios/Sources/BackgroundTaskPlugin"),
path: "ios/Plugin"),
.testTarget(
name: "BackgroundTaskPluginTests",
dependencies: ["BackgroundTaskPlugin"],
path: "ios/Tests/BackgroundTaskPluginTests")
path: "ios/PluginTests")
]
)
4 changes: 2 additions & 2 deletions packages/badge/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ let package = Package(
.product(name: "Capacitor", package: "capacitor-swift-pm"),
.product(name: "Cordova", package: "capacitor-swift-pm")
],
path: "ios/Sources/BadgePlugin"),
path: "ios/Plugin"),
.testTarget(
name: "BadgePluginTests",
dependencies: ["BadgePlugin"],
path: "ios/Tests/BadgePluginTests")
path: "ios/PluginTests")
]
)
4 changes: 2 additions & 2 deletions packages/cloudinary/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ let package = Package(
.product(name: "Cordova", package: "capacitor-swift-pm"),
.product(name: "Cloudinary", package: "cloudinary_ios")
],
path: "ios/Sources/CloudinaryPlugin"),
path: "ios/Plugin"),
.testTarget(
name: "CloudinaryPluginTests",
dependencies: ["CloudinaryPlugin"],
path: "ios/Tests/CloudinaryPluginTests")
path: "ios/PluginTests")
]
)
4 changes: 2 additions & 2 deletions packages/datetime-picker/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ let package = Package(
.product(name: "Capacitor", package: "capacitor-swift-pm"),
.product(name: "Cordova", package: "capacitor-swift-pm")
],
path: "ios/Sources/DatetimePickerPlugin"),
path: "ios/Plugin"),
.testTarget(
name: "DatetimePickerPluginTests",
dependencies: ["DatetimePickerPlugin"],
path: "ios/Tests/DatetimePickerPluginTests")
path: "ios/PluginTests")
]
)
4 changes: 2 additions & 2 deletions packages/file-opener/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ let package = Package(
.product(name: "Capacitor", package: "capacitor-swift-pm"),
.product(name: "Cordova", package: "capacitor-swift-pm")
],
path: "ios/Sources/FileOpenerPlugin"),
path: "ios/Plugin"),
.testTarget(
name: "FileOpenerPluginTests",
dependencies: ["FileOpenerPlugin"],
path: "ios/Tests/FileOpenerPluginTests")
path: "ios/PluginTests")
]
)
4 changes: 2 additions & 2 deletions packages/file-picker/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ let package = Package(
.product(name: "Capacitor", package: "capacitor-swift-pm"),
.product(name: "Cordova", package: "capacitor-swift-pm")
],
path: "ios/Sources/FilePickerPlugin"),
path: "ios/Plugin"),
.testTarget(
name: "FilePickerPluginTests",
dependencies: ["FilePickerPlugin"],
path: "ios/Tests/FilePickerPluginTests")
path: "ios/PluginTests")
]
)
4 changes: 2 additions & 2 deletions packages/managed-configurations/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ let package = Package(
.product(name: "Capacitor", package: "capacitor-swift-pm"),
.product(name: "Cordova", package: "capacitor-swift-pm")
],
path: "ios/Sources/ManagedConfigurationsPlugin"),
path: "ios/Plugin"),
.testTarget(
name: "ManagedConfigurationsPluginTests",
dependencies: ["ManagedConfigurationsPlugin"],
path: "ios/Tests/ManagedConfigurationsPluginTests")
path: "ios/PluginTests")
]
)
4 changes: 2 additions & 2 deletions packages/photo-editor/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ let package = Package(
.product(name: "Capacitor", package: "capacitor-swift-pm"),
.product(name: "Cordova", package: "capacitor-swift-pm")
],
path: "ios/Sources/PhotoEditorPlugin"),
path: "ios/Plugin"),
.testTarget(
name: "PhotoEditorPluginTests",
dependencies: ["PhotoEditorPlugin"],
path: "ios/Tests/PhotoEditorPluginTests")
path: "ios/PluginTests")
]
)
4 changes: 2 additions & 2 deletions packages/posthog/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ let package = Package(
.product(name: "Cordova", package: "capacitor-swift-pm"),
.product(name: "PostHog", package: "posthog-ios")
],
path: "ios/Sources/PosthogPlugin"),
path: "ios/Plugin"),
.testTarget(
name: "PosthogPluginTests",
dependencies: ["PosthogPlugin"],
path: "ios/Tests/PosthogPluginTests")
path: "ios/PluginTests")
]
)
4 changes: 2 additions & 2 deletions packages/screen-orientation/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ let package = Package(
.product(name: "Capacitor", package: "capacitor-swift-pm"),
.product(name: "Cordova", package: "capacitor-swift-pm")
],
path: "ios/Sources/ScreenOrientationPlugin"),
path: "ios/Plugin"),
.testTarget(
name: "ScreenOrientationPluginTests",
dependencies: ["ScreenOrientationPlugin"],
path: "ios/Tests/ScreenOrientationPluginTests")
path: "ios/PluginTests")
]
)
4 changes: 2 additions & 2 deletions packages/screenshot/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ let package = Package(
.product(name: "Capacitor", package: "capacitor-swift-pm"),
.product(name: "Cordova", package: "capacitor-swift-pm")
],
path: "ios/Sources/ScreenshotPlugin"),
path: "ios/Plugin"),
.testTarget(
name: "ScreenshotPluginTests",
dependencies: ["ScreenshotPlugin"],
path: "ios/Tests/ScreenshotPluginTests")
path: "ios/PluginTests")
]
)
4 changes: 2 additions & 2 deletions packages/torch/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ let package = Package(
.product(name: "Capacitor", package: "capacitor-swift-pm"),
.product(name: "Cordova", package: "capacitor-swift-pm")
],
path: "ios/Sources/TorchPlugin"),
path: "ios/Plugin"),
.testTarget(
name: "TorchPluginTests",
dependencies: ["TorchPlugin"],
path: "ios/Tests/TorchPluginTests")
path: "ios/PluginTests")
]
)

0 comments on commit 1dc1fe3

Please sign in to comment.