This would be ideal in my opinion. There are already some unresolved differences in behavior between the old driver and new swift driver, and Swift Build is likely to introduce new ones. My preference would be that the Swift Android SDK contains only the Swift modules and necessary dependencies (curl, xml2, etc) that aren't already part of the NDK, and defer to a local NDK installation for the rest. This is possible to achieve today but requires passing some extra flags when calling swift build
, and I know there has been some discussion/debate about fixing the new driver to not require those flags but it doesn't appear fully resolved yet.
2 Likes