Renamed import swift-openfoodfacts-sdk => OpenFoodFacts
This commit is contained in:
@@ -1,14 +0,0 @@
|
|||||||
{
|
|
||||||
"pins" : [
|
|
||||||
{
|
|
||||||
"identity" : "anycodable",
|
|
||||||
"kind" : "remoteSourceControl",
|
|
||||||
"location" : "https://github.com/Flight-School/AnyCodable.git",
|
|
||||||
"state" : {
|
|
||||||
"revision" : "862808b2070cd908cb04f9aafe7de83d35f81b05",
|
|
||||||
"version" : "0.6.7"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"version" : 2
|
|
||||||
}
|
|
||||||
@@ -11,24 +11,21 @@ let package = Package(
|
|||||||
products: [
|
products: [
|
||||||
// Products define the executables and libraries a package produces, making them visible to other packages.
|
// Products define the executables and libraries a package produces, making them visible to other packages.
|
||||||
.library(
|
.library(
|
||||||
name: "swift-openfoodfacts-sdk",
|
name: "OpenFoodFacts",
|
||||||
targets: ["swift-openfoodfacts-sdk"]
|
targets: ["OpenFoodFacts"]
|
||||||
),
|
),
|
||||||
.executable(name: "exe", targets: ["exe"]),
|
.executable(name: "exe", targets: ["exe"]),
|
||||||
],
|
],
|
||||||
dependencies: [
|
|
||||||
.package(url: "https://github.com/Flight-School/AnyCodable.git", from: "0.6.0"),
|
|
||||||
],
|
|
||||||
targets: [
|
targets: [
|
||||||
// Targets are the basic building blocks of a package, defining a module or a test suite.
|
// Targets are the basic building blocks of a package, defining a module or a test suite.
|
||||||
// Targets can depend on other targets in this package and products from dependencies.
|
// Targets can depend on other targets in this package and products from dependencies.
|
||||||
.target(
|
.target(
|
||||||
name: "swift-openfoodfacts-sdk", path: "Sources/swift-openfoodfacts-sdk"
|
name: "OpenFoodFacts", path: "Sources/OpenFoodFacts"
|
||||||
),
|
),
|
||||||
.executableTarget(name: "exe", dependencies: ["swift-openfoodfacts-sdk"]),
|
.executableTarget(name: "exe", dependencies: ["OpenFoodFacts"]),
|
||||||
.testTarget(
|
.testTarget(
|
||||||
name: "swift-openfoodfacts-sdkTests",
|
name: "OpenFoodFactsTests",
|
||||||
dependencies: ["swift-openfoodfacts-sdk"]
|
dependencies: ["OpenFoodFacts"]
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import Foundation
|
import Foundation
|
||||||
import swift_openfoodfacts_sdk
|
import OpenFoodFacts
|
||||||
|
|
||||||
let off = OpenFoodFactsClient()
|
let off = OpenFoodFactsClient()
|
||||||
print("Hello world")
|
print("Hello world")
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import XCTest
|
|
||||||
@testable import swift_openfoodfacts_sdk
|
@testable import swift_openfoodfacts_sdk
|
||||||
|
import XCTest
|
||||||
|
|
||||||
final class swift_openfoodfacts_sdkTests: XCTestCase {
|
final class swift_openfoodfacts_sdkTests: XCTestCase {
|
||||||
func testExample() throws {
|
func testExample() throws {
|
||||||
Reference in New Issue
Block a user