From ba5b1fa836fb3a47de2e65fc6ebecd4e1dd48a4e Mon Sep 17 00:00:00 2001 From: mohssen Date: Wed, 19 Apr 2023 09:27:52 -0700 Subject: [PATCH] Bump version to 0.14.0 --- CHANGELOG.md | 5 +++++ PodspecShared.rb | 4 ++-- README.md | 49 ++++++++++++++++++++++++++++++++++++++++++++---- 3 files changed, 52 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a4d6c261..d4719ec2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/PodspecShared.rb b/PodspecShared.rb index 0db53390..b18cad0d 100644 --- a/PodspecShared.rb +++ b/PodspecShared.rb @@ -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. @@ -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 diff --git a/README.md b/README.md index 63908d0b..04483f81 100755 --- a/README.md +++ b/README.md @@ -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+ @@ -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 @@ -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. @@ -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: "jane@test.com", + phoneNumber: "12345678900", + firstName: "Jane", + lastName: "Doe" + ) + } +} +``` + +**Using LoginManager Directly** +``` +let loginManager = LoginManager(loginType: .authorizationCode) + +let prefill = Prefill( + email: "jane@test.com", + 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!