diff --git a/MoyaSugar.podspec b/MoyaSugar.podspec index ff83560..5f97409 100644 --- a/MoyaSugar.podspec +++ b/MoyaSugar.podspec @@ -27,7 +27,7 @@ Pod::Spec.new do |s| s.subspec 'RxSwift' do |ss| ss.source_files = 'Sources/RxSwift/*.swift' ss.dependency 'MoyaSugar/Core' - ss.dependency 'Moya/RxSwift', '>= 8.0.0-beta.4' + ss.dependency 'Moya/RxSwift', '>= 8.0.0-beta.5' ss.dependency 'RxSwift', '>= 3.0.0' end end diff --git a/Sources/MoyaSugarProvider.swift b/Sources/MoyaSugarProvider.swift index dae06b6..a93ee7c 100644 --- a/Sources/MoyaSugarProvider.swift +++ b/Sources/MoyaSugarProvider.swift @@ -24,7 +24,7 @@ open class MoyaSugarProvider: MoyaProvider { func sugarEndpointClosure(target: Target) -> Endpoint { let endpoint = endpointClosure(target) return Endpoint( - URL: target.url.absoluteString, + url: target.url.absoluteString, sampleResponseClosure: endpoint.sampleResponseClosure, method: endpoint.method, parameters: endpoint.parameters, diff --git a/Sources/RxSwift/RxMoyaSugarProvider.swift b/Sources/RxSwift/RxMoyaSugarProvider.swift index fa90049..0ed4507 100644 --- a/Sources/RxSwift/RxMoyaSugarProvider.swift +++ b/Sources/RxSwift/RxMoyaSugarProvider.swift @@ -25,7 +25,7 @@ open class RxMoyaSugarProvider: RxMoyaProvider func sugarEndpointClosure(target: Target) -> Endpoint { let endpoint = endpointClosure(target) return Endpoint( - URL: target.url.absoluteString, + url: target.url.absoluteString, sampleResponseClosure: endpoint.sampleResponseClosure, method: endpoint.method, parameters: endpoint.parameters,