cc702027b0
Install @capacitor/haptics and add a centralized haptics utility (src/lib/haptics.ts) that uses the native taptic engine on iOS/Android and falls back to navigator.vibrate() on web. Haptics added to: - Switch component (covers 36+ toggle switches app-wide) - PullToRefresh threshold (covers 15+ pages) - MobileBottomNav tab taps - ReactionButton (like/unlike, double-click heart) - RepostMenu (repost/undo repost) - ZapDialog button press + payment success (NWC and WebLN) - FollowButton and ProfilePage follow toggle - ComposeBox (post, voice message, and poll publish success) - NoteMoreMenu (bookmark, pin, mute) - VinesFeedPage reaction and repost buttons - ProfileReactionButton and ExternalReactionButton - NoteCard share button - BlobbiRoomShell swipe navigation Replaces raw navigator.vibrate() calls in GameControls and SendAnimation with the new cross-platform haptics utility, fixing haptic feedback on iOS where the Vibration API is not available.
42 lines
2.2 KiB
Swift
42 lines
2.2 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: "CapacitorHaptics", path: "../../../node_modules/@capacitor/haptics"),
|
|
.package(name: "CapacitorKeyboard", path: "../../../node_modules/@capacitor/keyboard"),
|
|
.package(name: "CapacitorLocalNotifications", path: "../../../node_modules/@capacitor/local-notifications"),
|
|
.package(name: "CapacitorShare", path: "../../../node_modules/@capacitor/share"),
|
|
.package(name: "CapgoCapacitorAutofillSavePassword", path: "../../../node_modules/@capgo/capacitor-autofill-save-password"),
|
|
.package(name: "CapacitorSecureStoragePlugin", path: "../../../node_modules/capacitor-secure-storage-plugin")
|
|
],
|
|
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: "CapacitorHaptics", package: "CapacitorHaptics"),
|
|
.product(name: "CapacitorKeyboard", package: "CapacitorKeyboard"),
|
|
.product(name: "CapacitorLocalNotifications", package: "CapacitorLocalNotifications"),
|
|
.product(name: "CapacitorShare", package: "CapacitorShare"),
|
|
.product(name: "CapgoCapacitorAutofillSavePassword", package: "CapgoCapacitorAutofillSavePassword"),
|
|
.product(name: "CapacitorSecureStoragePlugin", package: "CapacitorSecureStoragePlugin")
|
|
]
|
|
)
|
|
]
|
|
)
|