Skip to content

Commit

Permalink
Merge pull request #279 from mohssenfathi/0.14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mohssenfathi authored Apr 19, 2023
2 parents c8a8058 + ba5b1fa commit 6508aaa
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change Log

## [0.14.0] 2023-04-18

* [Pull #278](https://github.com/uber/rides-ios-sdk/pull/278) Implementing PAR
* [Pull #277](https://github.com/uber/rides-ios-sdk/pull/277) Bump deployment target to iOS 11

## [0.13.0] 2019-11-24

* [Pull #264](https://github.com/uber/rides-ios-sdk/pull/264) iOS 13: Don't check for source application
Expand Down
4 changes: 2 additions & 2 deletions PodspecShared.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
def configure_podspec(spec, module_name)
spec.name = module_name
spec.version = "0.13.0"
spec.version = "0.14.0"
spec.summary = "The Official Uber Rides iOS SDK."
spec.description = <<-DESC
This Swift library allows you to integrate Uber into your iOS app. It is designed to make it quick and easy to add a 'Request a Ride' button in your application, seamlessly connecting your users with Uber.
Expand All @@ -15,5 +15,5 @@ def configure_podspec(spec, module_name)
spec.swift_version = '4.2'
spec.resource = "source/" + module_name + "/Resources/**"
spec.requires_arc = true
spec.ios.deployment_target = '8.0'
spec.ios.deployment_target = '11.0'
end
49 changes: 45 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This [Swift library](https://developer.apple.com/library/ios/documentation/Gener

## Requirements

- iOS 8.0+
- iOS 11.0+
- Xcode 10.0+
- Swift 4.2+

Expand All @@ -13,12 +13,12 @@ This [Swift library](https://developer.apple.com/library/ios/documentation/Gener
To install the Uber Rides SDK, you may use [CocoaPods](http://cocoapods.org), [Carthage](https://github.com/Carthage/Carthage), or add it to your project manually

```ruby
pod 'UberRides', '~> 0.13'
pod 'UberRides', '~> 0.14'
```

### Carthage
```
github "uber/rides-ios-sdk" ~> 0.13
github "uber/rides-ios-sdk" ~> 0.14
```

## Getting Started
Expand Down Expand Up @@ -306,7 +306,7 @@ If you want to provide a more custom experience in your app, there are a few cla
### Uber Rides API Endpoints
The SDK exposes all the endpoints available in the [Uber Developers documentation](https://developer.uber.com/docs). Some endpoints can be authenticated with a server token, but for most endpoints, you will require a bearer token. A bearer token can be retrieved via implicit grant, authorization code grant, or SSO. To authorize [privileged scopes](https://developer.uber.com/docs/scopes#section-privileged-scopes), you must use authorization code grant or SSO.
Read the full API documentation at [CocoaDocs](http://cocoadocs.org/docsets/UberRides/0.13.0/)
Read the full API documentation at [CocoaDocs](http://cocoadocs.org/docsets/UberRides/0.14.0/)
The `RidesClient` is your source to access all the endpoints available in the Uber Rides API. With just your server token, you can get a list of Uber products as well as price and time estimates.
Expand Down Expand Up @@ -428,6 +428,47 @@ TokenManager.deleteToken()
[UBSDKTokenManager deleteToken];
```

### Prefilling User Information
If you would like text fields during signup to be pre-populated with user information you can do so using the prefill API. Partial information is accepted.
There are two ways to provide this information:

**Using the LoginButton / DataSource**
```
// Conform to the LoginButtonDataSource
class MyClass: NSObject, LoginButtonDataSource {
// Implement the the delegate method to provide prefill values
func prefillValues(_ button: LoginButton) -> Prefill? {
Prefill(
email: "[email protected]",
phoneNumber: "12345678900",
firstName: "Jane",
lastName: "Doe"
)
}
}
```

**Using LoginManager Directly**
```
let loginManager = LoginManager(loginType: .authorizationCode)
let prefill = Prefill(
email: "[email protected]",
phoneNumber: "12345678900",
firstName: "Jane",
lastName: "Doe"
)
loginManager.login(
scopes: [.profile],
presentingViewController: viewController,
prefillValues: prefill,
completion: nil
)
```

## Getting help

Uber developers actively monitor the [Uber Tag](http://stackoverflow.com/questions/tagged/uber-api) on StackOverflow. If you need help installing or using the library, you can ask a question there. Make sure to tag your question with uber-api and ios!
Expand Down

0 comments on commit 6508aaa

Please sign in to comment.