apple / swift-nio-ssh

SwiftNIO SSH is a programmatic implementation of SSH using SwiftNIO
Apache License 2.0
406 stars 50 forks source link

Android: force unwrap address passed to fwrite() for NDK 26 #163

Closed finagolfin closed 12 months ago

finagolfin commented 1 year ago

Motivation:

Get this repo building with Android NDK 26, which added nullability annotations

Modifications:

Result:

This repo builds and passes its tests with the latest Android LTS NDK 26.

I made sure this pull doesn't break anything by testing it on linux x86_64 and with the previous NDK 25c too. I used this patch with others to build the Swift toolchain and this package for my Android CI, finagolfin/swift-android-sdk#122.

Lukasa commented 12 months ago

@swift-server-bot add to allowlist