Skip to content

SDK-less implementation of Dropbox, Microsoft and box.com providers#113

Open
TranceLove wants to merge 8 commits into
openmobilehub:mainfrom
TranceLove:feature/sdkless-dropbox-microsoft
Open

SDK-less implementation of Dropbox, Microsoft and box.com providers#113
TranceLove wants to merge 8 commits into
openmobilehub:mainfrom
TranceLove:feature/sdkless-dropbox-microsoft

Conversation

@TranceLove

@TranceLove TranceLove commented Jun 7, 2025

Copy link
Copy Markdown

Summary

Implementation of OMH Auth API for Dropbox, Microsoft and box.com OAuth providers using Webview, instead of SDK provided by vendor.

This greatly reduces the overhead brought by including vendors' SDK, as well as enable usage scenarios where API credentials cannot be embedded into the source tree directly.

Will involve URI redirect for webviews though, in order to allow app to take control when the OAuth2 callback is triggered. Documentation had been updated to provide information regarding this.

The ID tokens included in the PR are for testing. They had been expired for long, and they should pose no security risks.

Tweaks

Since the three implementations also uses webview, which is similar to google-nongms plugin in many ways, their common code and routines had been extracted to a new module plugin-common-mobileweb, where implementations (including google-nongms) depends on.

Because of this change, Github workflow part will also need changes for publishing the new modules. However they should be handled in another PR.

Additionally, the compilation options are also updated to use updated Gradle plugin, use JDK 17 and SDK 35 to compile.

Demo

Login flow of Dropbox, Microsoft and box.com via Mobile Web had been added to the sample app.

Screen_recording_20250607_230635.mp4

Checklist:

  • Documentation is up to date to reflect these changes
  • Created Unit tests

@TranceLove TranceLove changed the title Feature/sdkless dropbox microsoft SDK-less implementation of Dropbox and Microsoft providers Jun 7, 2025
@TranceLove TranceLove force-pushed the feature/sdkless-dropbox-microsoft branch from 56ad0dc to c33d888 Compare June 7, 2025 15:21
@TranceLove TranceLove force-pushed the feature/sdkless-dropbox-microsoft branch 2 times, most recently from 7cfec86 to 70315a2 Compare June 24, 2025 15:47
@TranceLove TranceLove changed the title SDK-less implementation of Dropbox and Microsoft providers SDK-less implementation of Dropbox, Microsoft and box.com providers Jul 19, 2025
@TranceLove TranceLove force-pushed the feature/sdkless-dropbox-microsoft branch from 9f7049a to ec4b1bc Compare July 19, 2025 14:54
@TranceLove TranceLove force-pushed the feature/sdkless-dropbox-microsoft branch from 35ed953 to 84d0be2 Compare September 9, 2025 00:04
Signed-off-by: Raymond Lai <airwave209gt@gmail.com>
For better compatibility with legacy apps that cannot migrate to Google's Material Design Library with Material 3 designs yet.

Signed-off-by: Raymond Lai <airwave209gt@gmail.com>
Also added adaptation to try match host's day/night theme

Signed-off-by: Raymond Lai <airwave209gt@gmail.com>
Signed-off-by: Raymond Lai <airwave209gt@gmail.com>
- Add Github Actions files for new plugins
- Updated dependencies in build.gradle

Signed-off-by: Raymond Lai <airwave209gt@gmail.com>
Signed-off-by: Raymond Lai <airwave209gt@gmail.com>
So developers can just use plugin-google-nongms alone, without being tied to Google's closed source libraries

Signed-off-by: Raymond Lai <airwave209gt@gmail.com>
Chrome Webview -> AndroidX Browser CustomTab

Signed-off-by: Raymond Lai <airwave209gt@gmail.com>
@TranceLove TranceLove force-pushed the feature/sdkless-dropbox-microsoft branch from 47582d5 to 55155cb Compare October 1, 2025 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant