Skip to content

Commit aa028d8

Browse files
committed
Add crypto impl for iOS
1 parent 0671943 commit aa028d8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ios/Runner/AppDelegate.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ private enum AESConfig {
4545
}
4646

4747
private func complete(result: @escaping FlutterResult, with error: Error) {
48-
debugPrint("[NODE_AUTH] Error: ", error)
48+
NSLog("\n[NODE_AUTH] Error: \(error)")
4949

5050
executeOnMain {
5151
result(
@@ -76,7 +76,7 @@ private func useAES(
7676
block: @escaping (AES, [UInt8]) throws -> [UInt8]
7777
) {
7878
guard let inputBytes = inputToBytes(input) else {
79-
print("[NODE_AUTH] Error: inputToBytes returns nil")
79+
NSLog("\n[NODE_AUTH] Error: inputToBytes returns nil")
8080

8181
executeOnMain {
8282
result(
@@ -102,7 +102,7 @@ private func useAES(
102102

103103
let outputBytes = try block(aes, inputBytes)
104104
guard let stringResult = bytesToString(outputBytes) else {
105-
print("[NODE_AUTH] Error: bytesToString returns nil")
105+
NSLog("\n[NODE_AUTH] Error: bytesToString returns nil")
106106

107107
executeOnMain {
108108
result(
@@ -119,7 +119,7 @@ private func useAES(
119119
let end = DispatchTime.now()
120120
let nanoTime = end.uptimeNanoseconds - start.uptimeNanoseconds
121121
let millisTime = Double(nanoTime) / 1_000_000
122-
print("[NODE_AUTH] Time: \(millisTime) ms")
122+
NSLog("\n[NODE_AUTH] Time: \(millisTime) ms")
123123

124124
executeOnMain { result(stringResult) }
125125
} catch {

0 commit comments

Comments
 (0)