scottkawai / sendgrid-swift

A library that allows you to quickly and easily send emails through SendGrid using Swift.
MIT License
56 stars 23 forks source link

Linux Ubuntu 16 Compile Error #14

Closed traic closed 6 years ago

traic commented 6 years ago

Got an error compiling on official swift docker container via Ubuntu 16 and Swift 4.0.3:

Compile Swift Module 'SendGrid' (81 sources) /root/DavisRealEstate/.build/checkouts/sendgrid-swift.git--6696960893670408330/Sources/SendGrid/Structs/EncodingStrategy.swift:47:36: error: type 'JSONEncoder.DataEncodingStrategy' has no member 'base64Encode' public static let base64 = JSONEncoder.DataEncodingStrategy.base64Encode ^~~~~~~~ ~~~~ /root/DavisRealEstate/.build/checkouts/sendgrid-swift.git--6696960893670408330/Sources/SendGrid/Structs/DecodingStrategy.swift:48:36: error: type 'JSONDecoder.DataDecodingStrategy' has no member 'base64Decode' public static let base64 = JSONDecoder.DataDecodingStrategy.base64Decode

Maybe related to this issue: https://github.com/swagger-api/swagger-codegen/issues/6483

scottkawai commented 6 years ago

Version 1.0.1 resolves this.

traic commented 6 years ago

@scottkawai you are the man, super fast quick response, less than a day. testing now...