Skip to content
This repository was archived by the owner on Aug 15, 2019. It is now read-only.

Commit 30677df

Browse files
committed
Undo removal of CommonCrypto; will try to find compatible solution between Swift 4.0 and 4.2
1 parent 312dce7 commit 30677df

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

CommonCrypto/module.modulemap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module CommonCrypto [system] {
2+
header "shim.h"
3+
export *
4+
}

CommonCrypto/shim.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include <CommonCrypto/CommonCrypto.h>

Package.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ import PackageDescription
44

55

66
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
7-
let dependencies: [Package.Dependency] = []
7+
let dependencies = [
8+
Package.Dependency.package(url: "https://github.com/kylef-archive/CommonCrypto.git", from: "1.0.0"),
9+
]
810
let excludes = ["HMAC/HMACCryptoSwift.swift"]
911
let targetDependencies: [Target.Dependency] = []
1012
#else

0 commit comments

Comments
 (0)