Change Log

[0.13.0] 2019-11-24

[0.12.0] 2019-04-10

[0.11.0] 2018-10-22

0.11 updates the Uber Rides SDK for Xcode 10/Swift 4.2 compatibility. (Pull #245, thanks @rmuhamedgaliev!)

Changes

[0.10.0] 2018-04-27

0.10 updates the Uber Rides SDK for Xcode 9.3/Swift 4.1 compatibility.

Changes

[0.9.0] 2018-02-13

Changes

Deprecated

[0.8.2] 2018-02-06

Changes

[0.8.1] 2018-01-31

Fixes

[0.8.0] 2017-11-28

0.8 separates the Uber Rides SDK into two modules, UberRides and UberCore. It also contains a number of authentication-related changes to simplify the Login with Uber flows.

When migrating to 0.8, you may need to add import UberCore to files previously importing just UberRides, and rename usage of some classes below.

Changes

Moved to UberCore

Removed

[0.7.0] 2017-09-15

0.7 makes the Uber Rides iOS SDK compatible with iOS 11 and Swift 4.

Added

Fixed

Removed

[0.6.0] 2016-11-22

Added

Added Swift 2.3 support

[0.5.3] 2016-11-18

This will be the final release using Swift 2.2

Fixed

[0.5.2] 2016-08-2

Added

The Ride Request Widget now attempts to refresh expired access tokens automatically. If you are using the RideRequestViewController, the SDK will attempt to hit the Refresh endpoint with your current Access Token's Refresh Token. If that fails, the user will be redirected to the appropriate login

Fixed

[0.5.1] 2016-06-14

Fixed

[0.5.0] 2016-06-2

Added

SSO (Native login with Uber)

Introducing SSO. Allows a user to sign in & authorize your application via the native Uber app. Users no longer have to remember their username & password as long as they are signed into the Uber app.

LoginButton

Added a built in button to make login easier. Uses a LoginManager to initiate the login process when the user taps the button. Reflects the logged in / logged out state of the user

Support all REST API Endpoints

Updated RidesClient to support all of the REST API endpoints. See https://developer.uber.com/docs/api-overview for a complete overview of the endpoints

UberAuthenticating Classes

Added Authenticating classes to handle the possible login types

These classes should be created with your requested scopes (and potentially other information) and will handle making the correct login call for you. LoginView and LoginManager have been updated to use these new classes

Deeplinks

All deeplink objects now subclass the BaseDeeplink which encapsulates shared logic for executing a deeplink.

Added new Deeplinking objects, AuthenticationDeeplink which is used for SSO, and AppStoreDeeplink which is used to fallback to the Uber App on the App Store

Changed

Swift 2.2

Updated to using Swift 2.2. XCode 7.3+ is now required

Info.plist

There has been an update in how you define your callback URIs in your Info.plist. We now support callbackURIs for different login types. Anything that is not defined will use the General type (if you still use the old UberCallbackURI key, that will be treated as General)

We have also added UberDisplayName. This should contain the name of your application. See an example of the new format below

	<key>UberClientID</key>
	<string>YOUR_CLIENT_ID</string>
	<key>UberDisplayName</key>
	<string>YOUR_APP_NAME</string>
	<key>UberCallbackURIs</key>
	<array>
		<dict>
			<key>UberCallbackURIType</key>
			<string>General</string>
			<key>URIString</key>
			<string>callback://your_callback_uri</string>
		</dict>
		<dict>
			<key>UberCallbackURIType</key>
			<string>AuthorizationCode</string>
			<key>URIString</key>
			<string>callback://optional_authorization_code_uri</string>
		</dict>
	</array>

You also need to add a new Application Query Scheme on iOS 9+ in order to use SSO

	<key>LSApplicationQueriesSchemes</key>
	<array>
		<string>uberauth</string>
		<string>uber</string>
	</array>

RideRequestButton

The RideRequestButton has been updated to show information about your Uber ride. Requires setting a product ID in your RideParameters and optionally a dropoff address.

Ride Request Widget Button

The Ride Request Widget Button now defaults to using the .Native LoginType instead of the previous .Implicit. If Native login is unavailable, it will automatically fallback to Implicit

Breaking

LoginBehavior -> LoginType

LoginBehavior has been removed, replaced by LoginType. Available login types:

LoginManager

LoginManager now takes a LoginType instead of a LoginBehavior

LoginView

LoginView is now initialized using the new UberAuthenticating classes rather than an array of RidesScope

RidesClient

Renamed getAccessToken() to fetchAccessToken()

Fixed

[0.4.2] 2016-04-19

Changed

Correctly updated Change Log

[0.4.1] 2016-04-19

Added

NotSupported RideRequestViewErrorType, which occurs when an operation is not supported by the current device (currently fired if you attempt to open an sms or tel link on the simulator

Fixed

[0.4.0] 2016-04-11

Added

Configuration

Handles SDK Configuration, including ClientID and RedirectURI. Values are pulled from your app's Info.plist

LoginManager / Implicit Grant flow

Added implicit grant (i.e. token) login authorization flow for non-privileged scopes (profile, history, places, ride_widgets)

Ride Request Widget

Introducing the Ride Request Widget. Allows for an end to end Uber experience without leaving your application.

RideParameters

All ride requests are now specified by a RideParameters object. It allows you to set pickup/dropoff location, nickname, formatted address & product ID. Use the RideParametersBuilder to easily create RideParameters objects

RideRequestButton Updates

RequestButton has been renamed to RideRequestButton

RideRequestButton now works by using a RideParameters and a RequestingBehavior. The RideParameters defines the parameters for the ride and the requestingBehavior defines how to execute it. Currently available requestingBehaviors are:

Fixed

Breaking

[0.3.1] 2016-02-11

Fixed

[0.3.0] 2016-02-01

Breaking

[0.2.1] 2016-01-26

Fixed

[0.2.0] 2016-01-15

Added

Fixed

[0.1.1] 2015-12-02