From acb6de59eb4338458a3a6272194782fbfeac7330 Mon Sep 17 00:00:00 2001 From: Brandon Toms Date: Wed, 14 Sep 2022 13:13:27 -0700 Subject: [PATCH 1/2] Added minimum iOS target --- Package.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index 2892940..19f368c 100644 --- a/Package.swift +++ b/Package.swift @@ -6,7 +6,8 @@ import PackageDescription let package = Package( name: "swift-cid", platforms: [ - .macOS(.v10_12) + .macOS(.v10_12), + .iOS(.v10) ], products: [ // Products define the executables and libraries a package produces, and make them visible to other packages. From 588b33fc512fb3aba4f76060174264feeb1ddd5b Mon Sep 17 00:00:00 2001 From: Brandon Toms Date: Thu, 3 Nov 2022 21:47:17 -0700 Subject: [PATCH 2/2] Removed the ipfs p2p overload. --- Tests/CIDTests/CIDTests.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/CIDTests/CIDTests.swift b/Tests/CIDTests/CIDTests.swift index d8d923f..09a22c0 100644 --- a/Tests/CIDTests/CIDTests.swift +++ b/Tests/CIDTests/CIDTests.swift @@ -255,9 +255,9 @@ final class CIDTests: XCTestCase { XCTAssertEqual(cid1.multihash, cid2.multihash) XCTAssertEqual(cid1.multibase, cid2.multibase) - /// P2P and IPFS Interop (Name is different, code is the same (should result in the same hash)) + /// P2P =/= IPFS Interop (Name is different, code is different) XCTAssertNotEqual(cid1.codec, cid3.codec) // .ipfs != .p2p - XCTAssertEqual(cid1.code, cid3.code) // 0x01a5 == 0x01a5 + XCTAssertNotEqual(cid1.code, cid3.code) // 0x01a5 == 0x01a5 XCTAssertEqual(cid1.version, cid3.version) XCTAssertEqual(cid1.multihash, cid3.multihash) XCTAssertEqual(cid1.multibase, cid3.multibase)