Skip to content

Android: Project structure and error handling (pt1)#1864

Merged
keeshux merged 76 commits into
masterfrom
bugfix/android-exceptions
Jun 17, 2026
Merged

Android: Project structure and error handling (pt1)#1864
keeshux merged 76 commits into
masterfrom
bugfix/android-exceptions

Conversation

@keeshux

@keeshux keeshux commented Jun 16, 2026

Copy link
Copy Markdown
Member

Reorganize overall packages (sorted from lowest layer):

  • .models = OpenAPI models
  • .business = App logic
  • .observables = UI logic
  • .ui = UI views
  • .context = Dependency injection (concrete data)

Error handling:

  • Catch risky paths
  • Prefer runCatching everywhere
  • Rethrow cancellations
  • Group custom app exceptions into sealed classes
  • Centralize in UI
    • AppCoordinator (see SwiftUI AppCoordinatorConforming)
    • Global error handler
    • Wrap in AppError(Code) before rethrowing
  • Wrap JNI library

@keeshux keeshux added bug Something isn't working refactoring Improves software architecture Android Related to the Android app labels Jun 16, 2026
@keeshux keeshux self-assigned this Jun 16, 2026
@keeshux keeshux added this to the Android MVP milestone Jun 16, 2026
@keeshux keeshux force-pushed the bugfix/android-exceptions branch from 3fd815c to dcd9e97 Compare June 17, 2026 09:20
@keeshux keeshux changed the title Android: Improve logging and error handling Android: Error handling Jun 17, 2026
@keeshux keeshux changed the title Android: Error handling Android: UI structure and error handling Jun 17, 2026
@keeshux keeshux changed the title Android: UI structure and error handling Android: Structure and error handling Jun 17, 2026
keeshux added 2 commits June 17, 2026 17:18
Propagate logsPrivateData preference to tunnel.
@keeshux keeshux changed the title Android: Structure and error handling Android: Error handling (pt1) Jun 17, 2026
@keeshux keeshux changed the title Android: Error handling (pt1) Android: Project structure and error handling (pt1) Jun 17, 2026
@keeshux keeshux marked this pull request as ready for review June 17, 2026 16:54
@keeshux keeshux merged commit 893f9c7 into master Jun 17, 2026
@keeshux keeshux deleted the bugfix/android-exceptions branch June 17, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Android Related to the Android app bug Something isn't working refactoring Improves software architecture

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant