Hi! This is a template for initializing an Android project in MobileUp.
After cloning the template:
- Replace
ru.mobileup.template
with the package name of your project. - Replace application name and icon to the correct ones.
- Remove the pokemons feature. It is created as an example.
- Replace error text resources with text for your project.
The project is based on three gradle modules:
It pieces all the features together, contains Application
and Activity
classes.
It contains general purpose things: error handing, message showing, network, theme, utils, reusable widgets.
It consists of concrete features. Each feature has its own package which contains:
- DI configuration
- ui layer - components, Jetpack Compose UI
- domain layer - entities, interactors
- data layer - repositories, storages
- Jetpack Compose - UI
- Decompose - componentization and navigation
- Replica - organizing of network communication
- Koin - Dependency Injection
- Ktor - Network
- Ktorfit - network requests in Retrofit way
- Coroutines - asynchronous operations
- Kotlin Serialization - JSON serialization and parsing
- Coil - image loading
- Detekt - static code analysis
- Hyperion - debug panel
- Module Graph Gradle Plugin - feature dependency graph visualization and validation
-
Runs detekt static code analysis and module graph validation before commit. Installation:
cp git_hooks/pre-commit .git/hooks/ && chmod 0775 .git/hooks/pre-commit
-
Adds issue prefix in every commit message according to branch name. Installation:
cp git_hooks/prepare-commit-msg .git/hooks/ && chmod 0775 .git/hooks/prepare-commit-msg
- Read installation instruction root/geminio/SETUP.MD
- Read user instruction root/geminio/HOW_TO_USE.MD
https://mrmans0n.github.io/compose-rules/
MIT License
Copyright (c) 2023 MobileUp
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.