google / google/ground-android

[Code health] Consider organizing and and naming packages according to their respective layer

Open
#1,476 0 comments 0 reactions 0 assignees View on GitHub
type: code health
Dominant language
Kotlin
Stars
293
Forks
149
Avg merge
1d 16h
Merged PRs (30d)
42

Description

From https://developer.android.com/topic/architecture:

![image](https://user-images.githubusercontent.com/228050/215338776-8793c442-e6ac-446b-aaba-8ab01e654e31.png)

So under com.google.android.ground, we'd probably have:

* .ui
* .domain.usecase
* .domain.model
* .data.repository
* .data.source

And possibly:
* .system for wrappers around system services (no change from current state)
* .common.coroutines
* .common.collect
* .common.rx

Lastly, activities should probably be in ui layer instead of root.

@shobhitagarwal1612 @scolsen @JSunde for your input.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.