uber / rides-ios-sdk

Uber Rides iOS SDK (beta)
https://developer.uber.com/docs
MIT License
371 stars 123 forks source link

Implements PAR request to prefill user information #294

Closed mohssenfathi closed 4 months ago

mohssenfathi commented 5 months ago

Description

Adding support for prefill values. This was a feature of the existing SDK that is being migrated to the new UberAuth, so logic should be fairly similar.

NetworkProvider

This is a network utility used to make the PAR request. There is a similar class in UberCore, but since it will be removed I recreated in UberAuth

ParRequest

This is the request builder for the PAR endpoint. Should be similar to AuthorizeRequest, but with different values.

Scope Changes

I reduced the scope of several classes where possible.

Testing

Demo

https://github.com/uber/rides-ios-sdk/assets/5241321/83a05445-bfd5-4a5a-96f4-14fd2927cf43