Simple Android Architecture
this library is focusing on how to develop simple.
Usage
Todo : apply plugin, add classpath of othe plugins
todo : is there way to remove pluginManagement below? settings.gradle.kts
pluginManagement {
resolutionStrategy {
eachPlugin {
val plugin = requested.id.id
when (plugin) {
"kotlinx-serialization" -> useModule("org.jetbrains.kotlin:kotlin-serialization:${requested.version}")
}
}
}
}
enableFeaturePreview("GRADLE_METADATA")
Goals
- Simplest
- Intuitive & Least learning curve
- No extra knowledge required
- Support all platform
- Just add your business logic without technical code
Merits by the Goals
- Simple to read : even non-developer can understand
- Simple to write : no boilerplate code, 1 line of code means 1 business logic. able to focus on business logic only
- Simple learning curve : easy to remember usage. even it's easy, if you forget?, you can find where to see. and also it provides the sample as well.
- Simple to use latest architecture : you don't need to spend a lot of time for what is latest architecture, how to make good code. just follow sample, then you'll write code at least not bad.
- Simple to test : it provides base test classes and sample. just follow sample, then you can test.
Prerequisite
Todo : add prerequisite for ios, js, backend
Client
- MVVM
- Kotlin, Coroutine
Android
- Koin
- Jetpack : Navigation, Data Binding, LiveData, Paging, Room, ViewModel
- Resource
- AndroidX testing
Articles
Todo : Multiplatform architecture for android, ios, frontend, backend
Android Articles
- Remove boilerplate code of RecyclerView
- Coroutine Api call and error handling in Retrofit2
- LiveData and event
- MVVM concept and reduce boilerplate code on Activity/Fragment/ViewModel
- Testing efficiently with Android X
- Refactoring to new architecture
Samples
- Sample : shows usage of Simple Android Architecture one by one
- Sunflower Sample : this is converted version of Android Sunflower sample
- Testing Sample : this is converted version of Android Testing Codelab
Planning
Currently this is focusing on only android development. but with Kotlin multiplatform, will support spring, ktor, ios, frontend.
License
Copyright 2020 Jeonghyun Kim
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.