Keep the iOS status bar outside the Capacitor web view and replace startup geolocation watching with silent permission checks plus an explicit location action. Verified by full unit, App Store readiness, Qodana, production build, Capacitor sync, and Playwright mobile suites.
30 lines
1.0 KiB
Swift
30 lines
1.0 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.4.1"),
|
|
.package(name: "CapacitorGeolocation", path: "../../../node_modules/@capacitor/geolocation"),
|
|
.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: "CapacitorGeolocation", package: "CapacitorGeolocation"),
|
|
.product(name: "CapacitorStatusBar", package: "CapacitorStatusBar")
|
|
]
|
|
)
|
|
]
|
|
)
|