Skip to content

Commit

Permalink
Clean up warnings to get pod to validate.
Browse files Browse the repository at this point in the history
  • Loading branch information
iosdevzone committed Aug 19, 2023
1 parent 65ddb38 commit 47f9747
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion IDZSwiftCommonCrypto.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "IDZSwiftCommonCrypto"
s.version = "0.16.0"
s.version = "0.16.1"
s.summary = "A wrapper for Apple's Common Crypto library written in Swift."

s.homepage = "https://github.com/iosdevzone/IDZSwiftCommonCrypto"
Expand Down
4 changes: 2 additions & 2 deletions IDZSwiftCommonCrypto/Utilities.swift
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public func arrayFrom(string : String) -> [UInt8]
public func dataFrom(hexString: String) -> Data
{
let a = arrayFrom(hexString: hexString)
return Data(bytes: UnsafePointer<UInt8>(a), count:a.count)
return Data(a)
}

///
Expand All @@ -105,7 +105,7 @@ public func dataFrom(hexString: String) -> Data
///
public func dataFrom(byteArray : [UInt8]) -> Data
{
return Data(bytes: UnsafePointer<UInt8>(byteArray), count:byteArray.count)
return Data(byteArray)
}

///
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ clean:
push_tags:
git push origin --tags

# Lint the pod locally
lint_lib:
pod lib lint --verbose ${NAME}.podspec --sources=https://github.com/iosdevzone/IDZPodspecs.git

# Lint the podspec
lint_pod:
pod spec lint --verbose ${NAME}.podspec --sources=https://github.com/iosdevzone/IDZPodspecs.git
Expand Down

0 comments on commit 47f9747

Please sign in to comment.