Giter Site home page Giter Site logo

android-template's Introduction

Android Template

화면

frame

목적

  • 10페이지 이내 간단한 앱 개발

의존성 - 라이브러리

  • Navigation - Jetpack
  • Koin - DI
  • MVVM - AAC
  • Retrofit2 - 통신

패키지 구조

  • feature (UI)

    • main
      • MainActivity (NavHost 를 위한 컨테이너)
      • MainViewModel (전역 상태 관리)
    • home
      • HomeFragment
      • HomeViewModel
    • memo
      • MemoFragment
      • MemoViewModel

    ...

  • global

    • base (BaseActivity, BaseFragment)
    • constant (상수)
    • di (의존관계 주입 koin)
    • usecase (기능)
    • util (개발자 정의 라이브러리)
    • configs (필요에 따라 .gitignore 로 추가해 주세요.)
    • store (전역변수로 사용 중이나 수정 고려 중)
  • data

    • model (Entity)
    • repository (로컬 혹은 서버 DB 에 접근)

패키지별 의존 관계

  • feature - 각각의 화면 단위 (global 의존 O, data\model 의존 O, data\repository 의존 X)
  • global - feature 에서 사용할 기능등 정의 (feature 의존 X, data 의존 O)
  • data - DB 접근 로직 및 Entity 정의 (다른 패키지에 의존 X)

예제

기능

  • 사용자가 저장한 마지막 메모를 가져온다.
    • 화면1 : 로컬에서 가져오기, 서버에서 가져오기
    • 화면2 : 이전 데이터 출력 및 새로운 데이터 저장 가능

android-template's People

Contributors

hambp avatar

Stargazers

유진 avatar Gowoon avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.