in uber-core/src/main/java/com/uber/sdk/core/client/SessionConfiguration.java [192:226]
public SessionConfiguration build() {
checkNotNull(clientId, "Client must be set");
if (environment == null) {
environment = Environment.PRODUCTION;
}
if (locale == null) {
locale = Locale.US;
}
if (scopes == null) {
scopes = new HashSet<>();
} else {
scopes = new HashSet<>(scopes);
}
if (customScopes == null) {
customScopes = new HashSet<>();
} else {
customScopes = new HashSet<>(customScopes);
}
return new SessionConfiguration(
clientId,
clientSecret,
serverToken,
redirectUri,
DEFAULT,
environment,
scopes,
customScopes,
locale,
profileHint);
}