Skip to content

Commit

Permalink
chore: final SPM fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
markemer committed Dec 6, 2023
1 parent d4fff6d commit 135dc67
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 22 deletions.
14 changes: 14 additions & 0 deletions network/Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"pins" : [
{
"identity" : "capacitor6-spm-test",
"kind" : "remoteSourceControl",
"location" : "https://github.com/ionic-team/capacitor6-spm-test.git",
"state" : {
"branch" : "main",
"revision" : "cf4ff2bc1dffb14adc27b1e5a09ac37e85424b99"
}
}
],
"version" : 2
}
6 changes: 3 additions & 3 deletions network/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: "capacitor6-spm-test"),
.product(name: "Cordova", package: "capacitor6-spm-test")
],
path: "ios/Sources/CAPNetworkPlugin"),
path: "ios/Sources/NetworkPlugin"),
.testTarget(
name: "CAPNetworkPluginTests",
dependencies: ["CAPNetworkPlugin"],
path: "ios/Tests/CAPNetworkPluginTests")
path: "ios/Tests/NetworkPluginTests")
]
)
)
16 changes: 0 additions & 16 deletions network/ios/Podfile

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import XCTest
@testable import Plugin
@testable import CAPNetworkPlugin

class NetworkTests: XCTestCase {

Expand Down
6 changes: 4 additions & 2 deletions network/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
"android/src/main/",
"android/build.gradle",
"dist/",
"ios/Plugin/",
"ios/Sources/",
"ios/Tests",
"Package.swift",
"CapacitorNetwork.podspec"
],
"author": "Ionic <[email protected]>",
Expand All @@ -29,7 +31,7 @@
],
"scripts": {
"verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
"verify:ios": "cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..",
"verify:ios": "xcodebuild build -scheme CapacitorNetwork -sdk iphonesimulator17.0 -destination 'OS=17.0,name=iPhone 15'",
"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 Down

0 comments on commit 135dc67

Please sign in to comment.