feat: Implement ActivityResultContract#1033
Conversation
Motivation: - Provide state-of-the-art access to Nextcloud Single Sign On - Hide complete permission granting and account importing process behind a clear API surface - Deprecate methods that rely on deprecated Android framework methods like onActivityResult - Enhance maintainability and make refactoring easier in the future when the deprecated methods have eventually been removed or marked as private Refs: #448 Co-authored-by: Gemini Signed-off-by: Stefan Niedermann <info@niedermann.it>
Not up to standards ⛔🔴 Issues
|
| Category | Results |
|---|---|
| ErrorProne | 2 high |
| CodeStyle | 1 minor |
🟢 Metrics 16 complexity
Metric Results Complexity 16
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
Additional informationException HandlingA third party app can start the import process and gets either a This aligns with other ThemingThere are multiple sources of dialogs that may look different within the flow:
Given this does not affect the (now) deprecated way of importing accounts, this can be enhanced progressively in my opinion, so this should not be a show stopper. TestingTested successfully manually on AVD API level 24 without Google Play Services and API Level 36.1 with Google Play Services. |
Motivation:
Refs: #448
Co-authored-by: Gemini
🤖 AI (if applicable)