Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merging main into 1.x branch #249

Open
wants to merge 249 commits into
base: 1.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
249 commits
Select commit Hold shift + click to select a range
9878043
[Gradle Release Plugin] - pre tag commit: 'v0.10.1'.
Feb 27, 2019
25fc5fa
[Gradle Release Plugin] - new version commit: 'v0.10.2-SNAPSHOT'.
Feb 27, 2019
584b89b
Handle redirect for ChromeTab Auth Code flow.
Feb 20, 2019
45ff7c7
Addressing feedback on AuthUtilsTest
Mar 1, 2019
6d75060
Update minimum Uber Eats version to 2488
Mar 6, 2019
529fc9f
Merge pull request #162 from uber/ml/min_eats_version_2488
mleroy Mar 7, 2019
bed5d60
Recognize nightly & internal builds
Mar 7, 2019
6edb3ac
Bring back deprecated code and change order of package names
Mar 7, 2019
950c92e
Introduce compatibility with nightly build
Mar 7, 2019
2107517
Revert previous code
Mar 7, 2019
594b15f
Merge pull request #163 from uber/ml/recognize_other_eats_builds
mleroy Mar 7, 2019
06e43f6
Update CHANGELOG.md
May 30, 2019
c4cac90
fix proposal
Oct 29, 2019
7a70a1a
fix syntax
Oct 29, 2019
78226a6
Merge pull request #176 from uber/fix_service_connection
tyvsmith Nov 23, 2019
ee405a4
[Gradle Release Plugin] - pre tag commit: 'v0.10.2'.
tyvsmith Dec 3, 2019
c55bec9
[Gradle Release Plugin] - new version commit: 'v0.10.3-SNAPSHOT'.
tyvsmith Dec 3, 2019
405f53a
fix crash in CustomTabsHelper if connection is null
lalwani Apr 30, 2020
cdb4726
Merge pull request #181 from lalwani/crash
tyvsmith Apr 30, 2020
4fb5a36
Remove Travis and migrate to Github Actions
May 6, 2021
34666df
Migrate to AndroidX
EdbertChan Jun 30, 2021
f94d75e
version configuration change
EdbertChan Jun 30, 2021
29bc2f3
Merge pull request #183 from rafaeltoledo/rt/gh-actions
tyvsmith Jul 1, 2021
c46f984
Merge branch 'uber:master' into master
EdbertChan Jul 1, 2021
870bea4
Change how the auth data is published into the config yaml
Jul 5, 2021
eb26024
Merge pull request #184 from EdbertChan/master
EdbertChan Jul 12, 2021
5a0e67a
Merge pull request #185 from rafaeltoledo/rt/gh-snapshot-upload-fix
tyvsmith Aug 4, 2021
4a1fa72
init
EdbertChan Aug 12, 2021
9cad233
Upgrade AndroidX RoboElectric
EdbertChan Aug 12, 2021
701154b
restore workflow
EdbertChan Aug 12, 2021
74af3f9
Update RideRequestActivity.java
EdbertChan Aug 12, 2021
2e2bbc8
test
EdbertChan Aug 17, 2021
e29a7c4
Merge pull request #187 from EdbertChan/master
EdbertChan Aug 18, 2021
233abbb
[Gradle Release Plugin] - pre tag commit: 'v0.10.3'.
EdbertChan Aug 19, 2021
73b25c3
Added support for login par flow
lalwani Apr 25, 2023
0d94f02
changed executeParIfNeccessary method name to launchOnboardingFlow
lalwani Apr 25, 2023
04b4a31
updated rides java sdk version and fixed unit tests
lalwani May 9, 2023
1bc2e7e
added unit tests
lalwani May 10, 2023
547e1ac
removed id for progress spineer
lalwani May 10, 2023
f7f76f3
added shadow classes used in unit tests
lalwani May 10, 2023
2a20934
created new methods for newIntent to maintain backward compatibility
lalwani May 19, 2023
50eab00
addressed comments
lalwani May 25, 2023
c5720e5
renamed ShadowLoginPARDispatch to ShadowLoginPushedAUthorizationRequest
lalwani May 25, 2023
76721b8
Merge pull request #192 from lalwani/par
lalwani May 25, 2023
8447c67
upgrading minSdk version to 26
lalwani May 25, 2023
9d9fd9d
Update README.md
lalwani May 25, 2023
707165a
Merge pull request #196 from lalwani/readme-1
lalwani May 26, 2023
3302a0f
Merge pull request #195 from lalwani/par
lalwani May 26, 2023
c5b73ea
Update gradle.properties
lalwani May 26, 2023
66d1efd
updated changelog file
lalwani May 26, 2023
46b6bef
Merge pull request #197 from lalwani/par
lalwani May 29, 2023
590b69f
bumping up the version to prepare for next release
lalwani May 30, 2023
339d627
Merge pull request #198 from lalwani/master
lalwani May 30, 2023
7748df8
created login demo using applink
lalwani Aug 7, 2023
314d594
added readme.md
lalwani Aug 11, 2023
69ec5b5
updated readme
lalwani Aug 11, 2023
b649c4e
Added failsafe null check when removing progress indicator
lalwani Aug 11, 2023
d286c74
Merge pull request #205 from lalwani/bugfix
lalwani Aug 11, 2023
4bfdc07
[Gradle Release Plugin] - pre tag commit: 'vy'.
Aug 15, 2023
af69016
removed unneeded onResume call
lalwani Aug 16, 2023
b8993e8
Merge pull request #203 from lalwani/login-demo
lalwani Aug 16, 2023
37de2c4
Update gradle.properties
lalwani Aug 16, 2023
9603236
[Gradle Release Plugin] - pre tag commit: 'v0.10.5'.
Aug 16, 2023
9db435c
Update gradle.properties
lalwani Aug 17, 2023
080f66f
[Gradle Release Plugin] - pre tag commit: 'v0.10.5'.
Aug 17, 2023
3c1591f
Update gradle.properties
lalwani Aug 17, 2023
ad5875d
[Gradle Release Plugin] - pre tag commit: 'v0.10.6'.
Aug 17, 2023
a6684cf
Update gradle.properties
lalwani Aug 17, 2023
8865da4
[Gradle Release Plugin] - pre tag commit: 'v0.10.7'.
lalwani Aug 17, 2023
45cd479
Update gradle.properties
lalwani Aug 17, 2023
947ca19
Update gradle.properties
lalwani Aug 17, 2023
2f8d2b3
updated rides java sdk to 0.8.4
lalwani Sep 22, 2023
72011ec
Merge pull request #206 from lalwani/sdk
lalwani Sep 22, 2023
03e2c4a
Update gradle.properties
lalwani Sep 22, 2023
b02a04e
Update README.md
lalwani Nov 8, 2023
21befd1
Update README.md
lalwani Nov 17, 2023
03f04fa
preparing for release
lalwani Dec 4, 2023
46dc8a5
Merge pull request #208 from lalwani/sdk
lalwani Dec 4, 2023
9fd2f9c
Update gradle.properties
lalwani Dec 4, 2023
58f18d9
renaming master to main
lalwani Feb 7, 2024
b9db7e0
Merge pull request #209 from lalwani/main
lalwani Feb 7, 2024
78e94a2
WIP migrating to newer gradle and version catalog
lalwani Feb 13, 2024
878a0d6
Merge pull request #212 from uber/main
lalwani Feb 20, 2024
be2efd4
Merge branch 'uber:2.x' into 2.x
lalwani Feb 20, 2024
3fbbf22
WIP migrating to newer gradle and version catalog
lalwani Feb 19, 2024
897c832
Create android.yml
lalwani Feb 20, 2024
47592d6
Update android.yml
lalwani Feb 20, 2024
3aab010
updated the workflow and dokka task
lalwani Feb 20, 2024
8f04f11
deleted new workflow since the original one was updated
lalwani Feb 20, 2024
b467c49
removed auth module. don't want to mix it with upgrades
lalwani Feb 20, 2024
3a9102b
addressed comments
lalwani Feb 20, 2024
97effab
Merge pull request #213 from lalwani/2.x
lalwani Feb 20, 2024
782fc14
Update gradle.properties
lalwani Feb 20, 2024
0cf1865
Added spotless plugin for code formatting
lalwani Feb 27, 2024
19af812
fixed formatting in build.gradle.kts of authentication module
lalwani Feb 27, 2024
5224007
Merge pull request #216 from lalwani/2.x
lalwani Feb 27, 2024
2881e92
Added config objects for creating AuthContext
lalwani Feb 27, 2024
9b13613
renamed mobile field to phoneNumber
lalwani Feb 27, 2024
374d2bb
added AuthException class. also added kdocs
lalwani Feb 28, 2024
6c029ac
added response data classes
lalwani Feb 28, 2024
81718f9
fixed formatting errors
lalwani Feb 28, 2024
48df4d6
addressed comments
lalwani Mar 1, 2024
2c9de43
updated kotlin version to 1.9
lalwani Mar 2, 2024
a1a84fa
applied formatting
lalwani Mar 2, 2024
673fa56
Merge pull request #222 from lalwani/api
lalwani Mar 2, 2024
bd1c84b
adding parcelize
lalwani Mar 9, 2024
9e3a70f
changes to top level gradle
lalwani Mar 9, 2024
b98fa81
added a core module
lalwani Mar 9, 2024
53bfc84
ran spotlessApply
lalwani Mar 9, 2024
8510066
addressed comments
lalwani Mar 11, 2024
ad90155
Revert "adding parcelize"
lalwani Mar 11, 2024
e6941c6
removing parcelize dependency
lalwani Mar 11, 2024
cb27bfe
fixed formatting
lalwani Mar 11, 2024
239e681
Merge pull request #223 from lalwani/api
lalwani Mar 11, 2024
08dc295
adding parcelize
lalwani Mar 9, 2024
dac5875
Added SsoConfig to read one time configuration for client apps
lalwani Mar 12, 2024
60f94dd
extracting app packages into constants
lalwani Mar 12, 2024
e966e82
ran spotlessApply
lalwani Mar 12, 2024
4506e01
Merge pull request #225 from uber/auth
lalwani Mar 12, 2024
4c1eb3b
Merge branch '2.x' into config
lalwani Mar 12, 2024
afe5ab2
added unit tests
lalwani Mar 13, 2024
d0a64a1
close the bufferedSource
lalwani Mar 13, 2024
c0b4eab
added copyright header
lalwani Mar 13, 2024
6ec18ec
using different mockito and mockito-kotlin versions
lalwani Mar 13, 2024
1c8a3c3
addressed comments
lalwani Mar 14, 2024
6180dd6
removed unused import
lalwani Mar 15, 2024
1129fe1
Merge pull request #226 from uber/config
lalwani Mar 15, 2024
2e41c6f
Added abstractions for AppDiscovery and AuthProvider
lalwani Mar 12, 2024
e75bff3
rebased
lalwani Mar 19, 2024
e78af6d
more changes to the scaffolding
lalwani Mar 19, 2024
1479123
addressed comments
lalwani Mar 19, 2024
c12ebe3
spotless
lalwani Mar 19, 2024
da2dc8d
Merge pull request #228 from uber/scaffolding
lalwani Mar 20, 2024
7fd566e
Providing implementation for SsoLink
lalwani Mar 20, 2024
e78fd58
added CustomTabsLauncher
lalwani Mar 20, 2024
b93bf95
added AppDiscovery
lalwani Mar 20, 2024
30feed4
fixed tests
lalwani Mar 20, 2024
a741d8a
removed SsoLinkFactoryTest
lalwani Mar 20, 2024
a8f9739
updated definition of AppDiscovering and SsoLink interfaces
lalwani Mar 20, 2024
cc3d1af
updated definition for AppDiscovering and optimized finding the packa…
lalwani Mar 22, 2024
59bd2e2
Added AuthProvider implementation
lalwani Mar 20, 2024
23ff9d0
spotless
lalwani Mar 20, 2024
ae7aa09
removed adapters
lalwani Mar 21, 2024
549c904
added shadows
lalwani Mar 21, 2024
f8aea34
addressed comments
lalwani Mar 22, 2024
4c36e14
Added PrefillRequest and some other changes
lalwani Mar 21, 2024
b668f8e
added dependency for moshi-kotlin
lalwani Mar 21, 2024
0e71676
using extension functions for bufferedsource
lalwani Mar 21, 2024
b10317a
fixed par request and unit tests
lalwani Mar 22, 2024
4db3213
rebased
lalwani Mar 22, 2024
04046c2
fixed build error
lalwani Mar 22, 2024
d3b009f
Merge pull request #229 from uber/ssolink
lalwani Mar 22, 2024
fa80982
Merge pull request #230 from uber/impl
lalwani Mar 22, 2024
23728e1
Merge pull request #231 from uber/prefill
lalwani Mar 22, 2024
cde22a0
Added AuthActivity and AuthRedirectActivity
lalwani Mar 21, 2024
94647c5
added kdocs
lalwani Mar 22, 2024
d083d7d
addressed comments
lalwani Mar 22, 2024
d5e47d6
fixed unit tests
lalwani Mar 22, 2024
1736165
fixed lifecycleScope in Activity and using Dispatchers.IO when perfor…
lalwani Mar 22, 2024
af2272f
Merge pull request #233 from uber/activity
lalwani Mar 22, 2024
245819f
Update uri when adding optional query parameters
lalwani Mar 26, 2024
1f9872b
Merge pull request #236 from uber/par
lalwani Mar 26, 2024
aba8499
updated the field names for par
lalwani Mar 27, 2024
c441153
Merge pull request #239 from uber/bugfix
lalwani Mar 28, 2024
0315d0e
Pass the error message back to the caller
lalwani Mar 26, 2024
11a449d
spotless
lalwani Mar 26, 2024
518e02f
removed unused import
lalwani Mar 28, 2024
0c67e97
Merge pull request #238 from uber/error
lalwani Mar 29, 2024
741973a
dropped api package from the sdk
lalwani Mar 26, 2024
8427493
Config changes for default auth sso flow
lalwani May 1, 2024
a6f3b43
Create README.md for authentication module
lalwani May 2, 2024
dd8e380
Added screenshots of configuration on developer portal
lalwani May 2, 2024
2463096
Update README.md
lalwani May 2, 2024
88f2961
Update build.yml
lalwani May 2, 2024
e996c4f
Update build.yml
lalwani May 3, 2024
52a52d8
Merge pull request #241 from uber/instrumentation
lalwani May 3, 2024
ad29ca1
Merge branch '2.x' into config
lalwani May 3, 2024
677ac40
spotless
lalwani May 3, 2024
745cf52
Merge pull request #240 from uber/config
lalwani May 3, 2024
f992cad
Update build.yml
lalwani May 29, 2024
2525a7d
Added code challenge method as a query param
lalwani May 29, 2024
034c78b
added unit tests for UriConfig
lalwani May 29, 2024
0067c9d
added custom Uber button
lalwani Mar 22, 2024
3283e23
added UberButton resources
lalwani May 30, 2024
2e5d216
removed tooling preview for composable
lalwani May 30, 2024
324de3c
Some minor fixes
lalwani Jun 3, 2024
946b0a9
added 1p app's debug package to be discoverable
lalwani Jun 3, 2024
a709acb
Merge pull request #243 from uber/fixes
lalwani Jun 3, 2024
19878f9
Merge pull request #242 from uber/uri
lalwani Jun 3, 2024
5506b76
Fixed bug with inApp authentication flow
lalwani Jun 3, 2024
53596d2
replacing hardcoded value used for testing with app id
lalwani Jun 4, 2024
2f37b3e
encapsulating PAR call in the try block as well
lalwani Jun 4, 2024
8aacaab
addressed comments
lalwani Jun 5, 2024
0e3658a
appending .uberauth after the app's package name for redirect activity
lalwani Jun 5, 2024
148e81b
Merge pull request #244 from uber/fixes
lalwani Jun 5, 2024
ad87109
Create MIGRATION.md
lalwani Jun 5, 2024
4c39c90
Merge pull request #234 from uber/core
lalwani Jun 6, 2024
a4b5f57
Added UberButton in compose
lalwani Jun 10, 2024
b04c67c
spotless
lalwani Jun 10, 2024
507d87d
replaced Text with Button composable
lalwani Jun 11, 2024
37087ab
Merge pull request #246 from uber/button
lalwani Jun 12, 2024
950251c
Added UberAuthButton in compose
lalwani Jun 10, 2024
52f2ef9
upgraded libs and modified UberAuthButton to wrap content and customi…
lalwani Jun 12, 2024
cad4247
spotless
lalwani Jun 12, 2024
f970b68
updating the old sample app to comply with lib upgrades
lalwani Jun 12, 2024
4d795c5
Removing customization for auth button text
lalwani Jun 12, 2024
c4ae823
updating the old sample app to comply with lib upgrades
lalwani Jun 12, 2024
d7560f6
Merge pull request #245 from uber/2.x
lalwani Jun 13, 2024
16c2c65
Fixed bug with authentication flow
lalwani Jun 13, 2024
a652401
preparing for release for authentication module
lalwani Jun 13, 2024
94799c5
Merge pull request #250 from uber/bugfix
lalwani Jun 13, 2024
374d615
Fixed bug with inApp authentication
lalwani Jun 14, 2024
e79d178
spotless
lalwani Jun 14, 2024
db22ddd
Merge pull request #251 from uber/bugfix
lalwani Jun 14, 2024
a9b7aea
changing the auth module versioning to 2.0 rest of the modules are st…
lalwani Jun 17, 2024
e02e09c
Merge pull request #252 from uber/versioning
lalwani Jun 17, 2024
cc77b10
Update MIGRATION.md
lalwani Jun 21, 2024
64f6568
Update MIGRATION.md
lalwani Jun 21, 2024
99e97f4
Update README.md
lalwani Jun 21, 2024
856537b
Update README.md
lalwani Jun 21, 2024
0ab5575
Update README.md
lalwani Jun 26, 2024
89711b0
added beta version for auth library
lalwani Jun 26, 2024
a2149f8
spotless
lalwani Jun 26, 2024
82994e3
Merge pull request #254 from uber/version
lalwani Jun 26, 2024
95e0a19
added material theme design
lalwani Jun 26, 2024
90236f8
created a compose theme to avoid using resource dimens. addressed com…
lalwani Jun 27, 2024
60525e4
removed auto demo from settings gradle
lalwani Jun 27, 2024
03629ad
Merge pull request #248 from uber/button
lalwani Jun 27, 2024
d2af797
Add code challenge param only with pkce authType
lalwani Jul 2, 2024
5a0cab6
Merge pull request #255 from uber/fixes
lalwani Jul 15, 2024
63fac07
added prompt for sso authorization
lalwani Jul 3, 2024
168c1bd
Merge pull request #256 from uber/prompt
lalwani Jul 16, 2024
97837b9
Added code challenge method as a query param to UriAssembler
lalwani Jul 17, 2024
55b94a1
preparing for release
lalwani Jul 17, 2024
8cc8e33
Update README.md for app link sample app
lalwani Jul 18, 2024
4b66ce4
Merge pull request #258 from uber/release
lalwani Jul 18, 2024
14e082d
Update gradle.properties
lalwani Jul 19, 2024
be7528e
Merge pull request #257 from uber/applinkdemo
lalwani Aug 6, 2024
723b52b
Update README.md
lalwani Aug 15, 2024
4590edf
Update README.md
lalwani Aug 15, 2024
dbdd3bf
Update build.yml
lalwani Sep 5, 2024
d581a91
Merge pull request #260 from uber/actions
lalwani Sep 27, 2024
38c04f4
changed copyright header
lalwani Sep 5, 2024
4e89191
Merge pull request #261 from uber/copyright
lalwani Nov 28, 2024
9069b67
Update README.md
lalwani Dec 4, 2024
ad79a9c
Update README.md
lalwani Dec 4, 2024
631b6ec
Update README.md
lalwani Dec 4, 2024
69449b1
Update README.md
lalwani Dec 6, 2024
5d6b053
Update README.md
lalwani Dec 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .buildscript/deploy_snapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

SLUG="uber/rides-android-sdk"
JDK="oraclejdk8"
BRANCH="master"
BRANCH="main"

set -e

Expand Down
63 changes: 63 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: CI

on: [push, pull_request]

jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v1
- name: Install JDK
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '17'
- name: Lint and Unit tests
run: ./gradlew check --stacktrace
- name: Upload lint and test reports
if: always()
uses: actions/upload-artifact@v4
with:
name: execution-reports
path: |
./core-android/build/reports
./rides-android/build/reports
test:
runs-on: macOS-latest # enables hardware acceleration in the virtual machine, required for emulator testing
strategy:
matrix:
api-level: [ 26, 30, 33 ]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v1
- name: Install JDK
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '17'
upload-snapshots:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
needs:
- check
- test
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v1
- name: Install JDK
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '17'
- name: Upload snapshots
run: ./gradlew publish --stacktrace
env:
ORG_GRADLE_PROJECT_SONATYPE_NEXUS_USERNAME: ${{ secrets.SonatypeUsername }}
ORG_GRADLE_PROJECT_SONATYPE_NEXUS_PASSWORD: ${{ secrets.SonatypePassword }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ obj

.DS_Store
log.txt
.vscode
51 changes: 0 additions & 51 deletions .travis.yml

This file was deleted.

63 changes: 48 additions & 15 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,57 @@
v0.10.1 - TBD
v0.10.8 - 09/22/2023
-------------

### Update
- Updated [rides-java-sdk](https://github.com/uber/rides-java-sdk) version to 0.8.4

v0.10.7 - 08/17/2023
-------------

### Fixed
- [Issue #204](https://github.com/uber/rides-android-sdk/issues/204) NullPointerException when login via SSO with pushed authorization request

v0.10.4 - 05/26/2023
-------------

### Added
- [Issue #194](https://github.com/uber/rides-android-sdk/issues/194) Integrated Login Pushed authorization request flow
- [Issue #193](https://github.com/uber/rides-android-sdk/issues/193) Deprecating embedded webviews
- Updated java version to 1.8
- Updated login endpoint to auth.uber.com from login.uber.com
- Replaced jcenter with mavenCentral

v0.10.3 - 08/19/2021
-------------

v0.10.2 - 12/03/2019
-------------

v0.10.1 - 02/27/2019
-------------

### Fixed
- [Issue #153](https://github.com/uber/rides-android-sdk/issues/153) NullPointerException when login via SSO without setting product flow priority
- [Issue #151](https://github.com/uber/rides-android-sdk/issues/151) Login throws IllegalStateException when using only CustomScopes


v0.10.0 - 12/14/2018
------------

### Added
- [Issue #144](https://github.com/uber/rides-android-sdk/issues/144) Allow SSO Client to dictate which Uber Apps can be used for SSO
- [Issue #138](https://github.com/uber/rides-android-sdk/issues/138) Support for IETF RFC 8252
- [Issue #130](https://github.com/uber/rides-android-sdk/issues/130) Support for Uber Eats SSO
- [Issue #144](https://github.com/uber/rides-android-sdk/issues/144) Allow SSO Client to dictate which Uber Apps can be used for SSO
- [Issue #138](https://github.com/uber/rides-android-sdk/issues/138) Support for IETF RFC 8252
- [Issue #130](https://github.com/uber/rides-android-sdk/issues/130) Support for Uber Eats SSO

### Fixed
- [Issue #129](https://github.com/uber/rides-android-sdk/issues/129) Allow use of refresh token for non-privileged scopes
- [Issue #119](https://github.com/uber/rides-android-sdk/issues/119) Redirect URL documentation issue
- [Issue #129](https://github.com/uber/rides-android-sdk/issues/129) Allow use of refresh token for non-privileged scopes
- [Issue #119](https://github.com/uber/rides-android-sdk/issues/119) Redirect URL documentation issue

v0.9.1 - 03/20/2018
------------

### Fixed
- [Issue #115](https://github.com/uber/rides-android-sdk/issues/115) Release Script is creating invalid release notes/download artifacts.
- Updated to Java SDK 0.8.0 to fix Token Refresh NPE
- [Issue #115](https://github.com/uber/rides-android-sdk/issues/115) Release Script is creating invalid release notes/download artifacts.
- Updated to Java SDK 0.8.0 to fix Token Refresh NPE


v0.9.0 - 02/13/2018
Expand All @@ -29,16 +62,16 @@ v0.9.0 - 02/13/2018
over deprecated Ride Request Widget

### Fixed
- [Issue #105](https://github.com/uber/rides-android-sdk/issues/105) onReceivedError and onReceivedHttpError does not work on API level < 23
- [Issue #105](https://github.com/uber/rides-android-sdk/issues/105) onReceivedError and onReceivedHttpError does not work on API level < 23

v0.8.0 - 02/09/2018
------------

### Changed
- [Issue #101](https://github.com/uber/rides-android-sdk/issues/101) LoginManager now uses AccessTokenStorage
- [Issue #101](https://github.com/uber/rides-android-sdk/issues/101) LoginManager now uses AccessTokenStorage

### Added
- [Issue #22](https://github.com/uber/rides-android-sdk/issues/22) Customtab support
- [Issue #22](https://github.com/uber/rides-android-sdk/issues/22) Customtab support


v0.7.0 - 11/17/2017
Expand All @@ -53,7 +86,7 @@ v0.7.0 - 11/17/2017
v0.6.1 - 4/5/2017
-------------------
### Changed
- AuthUtils now omits unrecognized scopes from parsed AccessToken instead of throwing an exception when creating
- AuthUtils now omits unrecognized scopes from parsed AccessToken instead of throwing an exception when creating

v0.6.0 - 2/14/2017
-------------------
Expand Down Expand Up @@ -152,7 +185,7 @@ v0.3.1 - 4/18/2016
### Fixed

- [Issue #15] (https://github.com/uber/rides-android-sdk/issues/15) RideRequestView correctly handles redirecting to
call or message the driver
call or message the driver

v0.3.0 - 4/11/2016
------------------
Expand Down Expand Up @@ -208,8 +241,8 @@ Currently available `requestingBehaviors` are:

v0.2.0 - 2/3/2016
------------------
- Localization of request button text for zh-rCN.
- Localization of request button text for zh-rCN.

v0.1.0 - 11/24/2015
------------------
- Initial version.
- Initial version.
79 changes: 79 additions & 0 deletions MIGRATION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# Authentication Migration Guide from old sdk (version 0.10.X and below) to new sdk (2.X and above)

We've simplified the SDK for consumers by providing a single point of entry. Information passing from the client app to the library is now divided into two parts:

1. **Static Information**: Provided as a one-time configuration with the `sso_config.json` file.
2. **Dynamic Information**: Contains parameters that can change over time, such as the type of flow needed, prefill information, use of SSO, or in-app authentication.

For detailed SDK integration documentation, please refer to the [authentication guide](https://github.com/uber/rides-android-sdk/tree/2.x/authentication).

This guide focuses on modifying your codebase when migrating from the older 0.10.X version of the SDK to the 2.X version.

## Steps to Follow:

### 1. Providing Application Information
- Remove `UBER_CLIENT_ID` and `UBER_REDIRECT_URI` entries from the `gradle.properties` file.
- Create a `sso_config.json` file in your application's `res/raw` folder with the following details:

```json
{
"client_id": "YOUR_CLIENT_ID",
"redirect_uri": "YOUR_APPLICATION_ID.uberauth://redirect",
"scope": "YOUR_SCOPES COMMA SEPARATED"
}
```

### 2. Deprecating `SessionConfiguration` Object
- Remove references to the `SessionConfiguration` object built like this:

```java
SessionConfiguration configuration = new SessionConfiguration.Builder()
.setClientId(CLIENT_ID)
.setRedirectUri(REDIRECT_URI)
.setScopes(Arrays.asList(Scope.PROFILE, Scope.RIDE_WIDGETS))
.setProfileHint(new ProfileHint
.Builder()
.email("[email protected]")
.firstName("John")
.lastName("Doe")
.phone("1234567890")
.build())
.build();
```

- Instead, use `AuthContext`:

```java
AuthContext authContext = new AuthContext(
new AuthDestination.CrossAppSso(),
new AuthType.PKCE(),
new PrefillInfo(
"[email protected]",
"John",
"Doe",
"1234567890"
)
);
```

### 3. Replace `LoginManager` with `UberAuthClient`

Replace

```java
LoginManager loginManager = new LoginManager(accessTokenStorage,
new SampleLoginCallback(),
configuration,
CUSTOM_BUTTON_REQUEST_CODE);
loginManager.login(LoginSampleActivity.this);
```
with

```java
UberAuthClient uberAuthClient = new UberAuthClientImpl();
uberAuthClient.authenticate(LoginSampleActivity.this, authContext);
```

### 4. Custom buttons (Future)

The Uber custom buttons provide apis for `setSessionConfiguration()` `setCallback()` and `setRequestCode()` with the changes in the authentication module we will not be needing these anymore as there will be only one entry point for authentication module of the sdk
Loading
Loading