-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
omh-storage integration #4455
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
base: release/4.0
Are you sure you want to change the base?
omh-storage integration #4455
Conversation
|
One way another, it needs to happen anyway. Pending tasks before PR can leave draft status:
|
5ad9d38 to
00b918e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR integrates omh-storage cloud storage functionality to replace cloudrail-si for cloud service support. The integration includes SDK-less implementations for Dropbox, Microsoft OneDrive, and Google Drive. The PR also updates the minimum Android version requirement to API level 26 (Android 8.0) and enables kotlinx coroutines usage throughout the codebase.
Key changes:
- Replaces cloudrail-si with omh-storage library for cloud storage integration
- Updates minimum SDK version from 21 to 26 (Android 8.0)
- Enables kotlin coroutines and updates kotlin version to 2.1.20
- Converts Java exceptions to Kotlin for better interoperability
Reviewed Changes
Copilot reviewed 150 out of 163 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| gradle/libs.versions.toml | Updates minSdk to 26, adds coroutines dependencies, removes cloudrail |
| app/src/main/java/com/amaze/filemanager/utils/omh/ | New OMH client helper classes for cloud integration |
| app/src/main/java/com/amaze/filemanager/filesystem/cloud/CloudUtil.kt | Rewrites CloudUtil from Java to Kotlin with omh-storage support |
| Multiple test files | Updates test SDK configurations from LOLLIPOP to O (API 26) |
| app/src/main/java/com/amaze/filemanager/utils/DataUtils.kt | Converts DataUtils from Java to Kotlin |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
app/src/test/java/com/amaze/filemanager/ui/notifications/NotificationConstantsTest.java
Outdated
Show resolved
Hide resolved
| var gridfiles: ArrayList<String?>? | ||
| get() = gridfiles | ||
| set(gridfiles) { | ||
| if (gridfiles != null) { | ||
| for (gridfile in gridfiles) { | ||
| setPathAsGridOrList(gridfile, GRID) | ||
| } | ||
| } | ||
| } |
Copilot
AI
Sep 18, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This getter creates infinite recursion by calling itself. The getter should return the actual backing field or property, not call itself recursively.
ad08367 to
e5e1778
Compare
2919bfa to
07ed600
Compare
|
6a2abd4 to
9f8c153
Compare
eb1ed76 to
a87506c
Compare
a87506c to
e8276eb
Compare
e8276eb to
ef6dba7
Compare
Description
Integration with https://github.com/openmobilehub/android-omh-auth and https://github.com/openmobilehub/android-omh-storage for Cloud storage integration.
However due the aged codebase of Amaze itself, there were some overhaul to the codebase itself in order to facilitate integration, with reduced code redundancy and unnecessary code.
Also
Open source compliance
Though omh libraries come as binary jar instead of Maven dependency, their source code are available for review and pending to merge into their mainline codebases. Once they are merged these jars can be replaced by Maven dependencies.
Issue tracker
Automatic tests
Manual tests
Build tasks success
Successfully running following tasks on local:
./gradlew assembledebug./gradlew spotlessCheck