devxoul / MoyaSugar

🍯 Syntactic sugar for Moya
MIT License
192 stars 30 forks source link

Build errors with new release Moya 9.0.0 #19

Open hitman1711 opened 7 years ago

hitman1711 commented 7 years ago

Are there any plans to migrate to the latest Moya release according to this guide ? Otherwise you should fix podspec file by replacing Moya dependency version 'Moya', '>= 8.0.0' to 'Moya', '~> 8.0.0'

devxoul commented 7 years ago

Yeah, #18 is for Moya 9. Let's wait for him to fix CI errors :)

hitman1711 commented 7 years ago

Hi @devxoul. Because of this I manually included latest version of MoyaSugar 1.0 by using downloaded repo archive in pod file this way: pod 'MoyaSugar/RxSwift', :path => '../MoyaSugar'

Unfortunately, there were a bunch of build errors on using undeclared RxMoyaSugarProvider. I found that RxMoyaSugarProvider was removed in the latest commits.

Are rx bindings was deprecated or what ?

Update: I already explored new rx bindings which uses PrimitiveSequence<SingleTrait>

devxoul commented 7 years ago

Since Moya 9 every Observables are replaced with Singles. If you'd like to use MoyaSugar with RxSwift 4, you have to use Moya 10.0.0-dev. Check 1.0.0-beta.1 release note for details :)