da27054a9b
The <a download> and <a target="_blank"> patterns don't work in WKWebView. Add downloadTextFile() and openUrl() utilities in src/lib/downloadFile.ts that use @capacitor/filesystem and @capacitor/share on native platforms, falling back to standard browser behavior on web. Update all call sites: onboarding key download (InitialSyncGate, SignupDialog), image lightbox buttons (ImageGallery, ProfilePage). Document Capacitor compatibility constraints in AGENTS.md.
36 lines
1.6 KiB
Swift
36 lines
1.6 KiB
Swift
// swift-tools-version: 5.9
|
|
import PackageDescription
|
|
|
|
// DO NOT MODIFY THIS FILE - managed by Capacitor CLI commands
|
|
let package = Package(
|
|
name: "CapApp-SPM",
|
|
platforms: [.iOS(.v15)],
|
|
products: [
|
|
.library(
|
|
name: "CapApp-SPM",
|
|
targets: ["CapApp-SPM"])
|
|
],
|
|
dependencies: [
|
|
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", exact: "8.2.0"),
|
|
.package(name: "CapacitorApp", path: "../../../node_modules/@capacitor/app"),
|
|
.package(name: "CapacitorFilesystem", path: "../../../node_modules/@capacitor/filesystem"),
|
|
.package(name: "CapacitorLocalNotifications", path: "../../../node_modules/@capacitor/local-notifications"),
|
|
.package(name: "CapacitorShare", path: "../../../node_modules/@capacitor/share"),
|
|
.package(name: "CapacitorStatusBar", path: "../../../node_modules/@capacitor/status-bar")
|
|
],
|
|
targets: [
|
|
.target(
|
|
name: "CapApp-SPM",
|
|
dependencies: [
|
|
.product(name: "Capacitor", package: "capacitor-swift-pm"),
|
|
.product(name: "Cordova", package: "capacitor-swift-pm"),
|
|
.product(name: "CapacitorApp", package: "CapacitorApp"),
|
|
.product(name: "CapacitorFilesystem", package: "CapacitorFilesystem"),
|
|
.product(name: "CapacitorLocalNotifications", package: "CapacitorLocalNotifications"),
|
|
.product(name: "CapacitorShare", package: "CapacitorShare"),
|
|
.product(name: "CapacitorStatusBar", package: "CapacitorStatusBar")
|
|
]
|
|
)
|
|
]
|
|
)
|