Renamed import swift-openfoodfacts-sdk => OpenFoodFacts

This commit is contained in:
cdricms
2023-12-14 20:43:23 +01:00
parent 287561e2e6
commit 99460739b3
16 changed files with 8 additions and 25 deletions

View File

@@ -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
}

View File

@@ -11,24 +11,21 @@ let package = Package(
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
name: "swift-openfoodfacts-sdk",
targets: ["swift-openfoodfacts-sdk"]
name: "OpenFoodFacts",
targets: ["OpenFoodFacts"]
),
.executable(name: "exe", targets: ["exe"]),
],
dependencies: [
.package(url: "https://github.com/Flight-School/AnyCodable.git", from: "0.6.0"),
],
targets: [
// 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.
.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(
name: "swift-openfoodfacts-sdkTests",
dependencies: ["swift-openfoodfacts-sdk"]
name: "OpenFoodFactsTests",
dependencies: ["OpenFoodFacts"]
),
]
)

View File

@@ -1,5 +1,5 @@
import Foundation
import swift_openfoodfacts_sdk
import OpenFoodFacts
let off = OpenFoodFactsClient()
print("Hello world")

View File

@@ -1,5 +1,5 @@
import XCTest
@testable import swift_openfoodfacts_sdk
import XCTest
final class swift_openfoodfacts_sdkTests: XCTestCase {
func testExample() throws {