Skip to content

Commit 640089e

Browse files
committed
Dev: replace NSLog with JNI.errorLog
1 parent 51d1f2f commit 640089e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Diff for: Package.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ let package = Package(
1111
)
1212
],
1313
dependencies: [
14-
.package(url: "https://github.com/readdle/java_swift.git", .exact("2.1.2")),
14+
.package(url: "https://github.com/readdle/java_swift.git", .exact("2.1.3")),
1515
.package(url: "https://github.com/readdle/swift-anycodable.git", .exact("1.0.0")),
1616
],
1717
targets: [

Diff for: Sources/JavaDecoder.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ fileprivate class JavaObjectContainer<K : CodingKey> : KeyedDecodingContainerPro
120120
}
121121
catch {
122122
if self.decoder.missingFieldsStrategy == .ignore {
123-
NSLog("Ignore error: \(error)")
123+
JNI.errorLogger("Ignore error: \(error)")
124124
return defaultValue
125125
}
126126
else {

Diff for: Sources/JavaEncoder.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ fileprivate class JavaObjectContainer<K : CodingKey> : KeyedEncodingContainerPro
197197
}
198198
catch {
199199
if self.encoder.missingFieldsStrategy == .ignore {
200-
NSLog("Ignore error: \(error)")
200+
JNI.errorLogger("Ignore error: \(error)")
201201
}
202202
else {
203203
throw error
@@ -472,7 +472,7 @@ fileprivate class JavaAnyCodableContainer<K : CodingKey> : KeyedEncodingContaine
472472
}
473473
catch {
474474
if self.encoder.missingFieldsStrategy == .ignore {
475-
NSLog("Ignore error: \(error)")
475+
JNI.errorLogger("Ignore error: \(error)")
476476
}
477477
else {
478478
throw error

0 commit comments

Comments
 (0)