Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# node files
node_modules

# iOS files
Package.resolved
.build
4 changes: 2 additions & 2 deletions packages/capacitor-plugin/Package.swift → 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: "IONGeolocationLib", package: "ion-ios-geolocation")
],
path: "ios/Sources/GeolocationPlugin"),
path: "packages/capacitor-plugin/ios/Sources/GeolocationPlugin"),
.testTarget(
name: "GeolocationPluginTests",
dependencies: ["GeolocationPlugin"],
path: "ios/Tests/GeolocationTests")
path: "packages/capacitor-plugin/ios/Tests/GeolocationTests")
]
)
6 changes: 4 additions & 2 deletions packages/capacitor-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
],
"scripts": {
"verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
"verify:ios": "xcodebuild -scheme CapacitorGeolocation -destination generic/platform=iOS",
"verify:ios": "cd ../.. && xcodebuild -scheme CapacitorGeolocation -destination generic/platform=iOS",
"verify:android": "cd android && ./gradlew clean build test && cd ..",
"verify:web": "npm run build",
"lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
Expand All @@ -44,7 +44,9 @@
"clean": "rimraf ./dist",
"watch": "tsc --watch",
"prepublishOnly": "npm run build",
"publish:cocoapod": "pod trunk push ./CapacitorGeolocation.podspec --allow-warnings"
"publish:cocoapod": "pod trunk push ./CapacitorGeolocation.podspec --allow-warnings",
"prepack": "cp ../../Package.swift Package.swift && node -e 'const fs=require(\"fs\");let s=fs.readFileSync(\"Package.swift\",\"utf8\").split(\"packages/capacitor-plugin/\").join(\"\");fs.writeFileSync(\"Package.swift\",s);'",
"postpack": "rm -f Package.swift"
},
"dependencies": {
"@capacitor/synapse": "^1.0.4"
Expand Down