Skip to content

Commit 47f9747

Browse files
committed
Clean up warnings to get pod to validate.
1 parent 65ddb38 commit 47f9747

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

IDZSwiftCommonCrypto.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = "IDZSwiftCommonCrypto"
4-
s.version = "0.16.0"
4+
s.version = "0.16.1"
55
s.summary = "A wrapper for Apple's Common Crypto library written in Swift."
66

77
s.homepage = "https://github.com/iosdevzone/IDZSwiftCommonCrypto"

IDZSwiftCommonCrypto/Utilities.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public func arrayFrom(string : String) -> [UInt8]
9494
public func dataFrom(hexString: String) -> Data
9595
{
9696
let a = arrayFrom(hexString: hexString)
97-
return Data(bytes: UnsafePointer<UInt8>(a), count:a.count)
97+
return Data(a)
9898
}
9999

100100
///
@@ -105,7 +105,7 @@ public func dataFrom(hexString: String) -> Data
105105
///
106106
public func dataFrom(byteArray : [UInt8]) -> Data
107107
{
108-
return Data(bytes: UnsafePointer<UInt8>(byteArray), count:byteArray.count)
108+
return Data(byteArray)
109109
}
110110

111111
///

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ clean:
3939
push_tags:
4040
git push origin --tags
4141

42+
# Lint the pod locally
43+
lint_lib:
44+
pod lib lint --verbose ${NAME}.podspec --sources=https://github.com/iosdevzone/IDZPodspecs.git
45+
4246
# Lint the podspec
4347
lint_pod:
4448
pod spec lint --verbose ${NAME}.podspec --sources=https://github.com/iosdevzone/IDZPodspecs.git

0 commit comments

Comments
 (0)