세션 노트
alexzaitsev/apk-dependency-graph
Class dependency visualizer. Only apk file is needed. Class coupling is one of the significant code metrics that shows how easy it is to change, maintain, and test the code. This tool helps to view the whole picture of the project. Table of contents Some helpful scripts are prepared for you.
https://github.com/alexzaitsev/apk-dependency-graph
HOMEWORK 🏡
- repository data source 옮기기
- app / data / local / remote 나누기
- app에 local / remote interface 만들고, local/ remote에서 impl 구현 → internal로 사용할 수 없게 만들기
- app → data ← local/remote
implementation
→ 해당 모듈 안에서만 사용하겠다api
→ 나를 import하는 곳에서도 사용할 수 있게 하겠다
추가 자료
difference between private and internal
- Internal: 모듈 내부에서만 조회 가능 함
- Private: 클래스 내부에서만 조회 가능 함
Use interface for parameters, and implementations for arguments
mediaplayer and UI synchronization
Error Handling like a pro 😎
Android: Error handling in Clean Architecture
We have started refactoring our android project for almost two years with Clean Architecture. Since that time the only topic that has been missing till now is error handling. Sometimes it’s confusing how to propagate errors crossing boundaries between layers. Our Clean Architecture brief: Domain : entities and business logic Data : data sources, repositories, providers, 3rd-party services, platform-specific stuff…
https://proandroiddev.com/android-error-handling-in-clean-architecture-844a7fc0dc03
livedata on viewmodel
What is sealed
?
Sealed classes in Kotlin: enums with super-powers
Sealed classes in Kotlin are another new concept we didn’t have in Java, and open another new world of possibilities. A sealed class allows you to represent constrained hierarchies in which an object can only be of one of the given types. That is, we have a class with a specific number of subclasses.
https://antonioleiva.com/sealed-classes-kotlin/
version.gradle
- suggestion provider(content provider), shared preference class, interface location
- create resource provider
- how to import global components ??!?!?