Git Product home page Git Product logo

android_multi_module_experiment's Introduction

android_multi_module_experiment

Annotation processor free Android projects

Annotation processor free Android projects contain 1Activity and 10000 classes in a project. Each class is generated as below.

class Foo00001 {
    fun method0() {
        Foo00000().method5()
    }

    fun method1() {
        method0()
    }

    fun method2() {
        method1()
    }

    fun method3() {
        method2()
    }

    fun method4() {
        method3()
    }

    fun method5() {
        method4()
    }
}

SingleModuleApp

  • Only :app module contains 1 Activity and 20000 classes.

MultiModuleApp1

  • :app moudle contains only MainActivity
  • :module1, :module2, :module3and :module4 contains 2500 classes by each
  • Each module depends serially on next module, such as :app depends only on :module4, :module4depends only on :moudle3, and so on.
Dependency

:app -> :module4 -> :module3 -> :module2 -> module1

MultiModuleApp2

  • :app moudle contains only MainActivity
  • :module1, :module2, :module3and :module4 contains 2500 classes by each
  • :appmodule depneds paralelly on :module1, :module2, :module3 and :module4
Dependency

:app -> :module1
     -> :module2
     -> :module3
     -> :moudle4

Android project with dagger

Dagger Android projects contain 1Activity and 2000 classes in a project. Each annotated class is generated as below.

class Foo00000 @Inject constructor(){
    fun method0() {}
    fun method1() { method0() }
    fun method2() { method1() }
    fun method3() { method2() }
    fun method4() { method3() }
    fun method5() { method4() }
}

DaggerSingleModuleApp

  • Only :app module contains 1 Activity and 2000 annotated classes.

DaggerMultiModuleApp1

  • :app moudle contains only MainActivity
  • :module1, :module2, :module3and :module4 contains 500 annotated classes by each
  • Each module depends serially on next module, such as :app depends only on :module4, :module4depends only on :moudle3, and so on.
Dependency

:app -> :module4 -> :module3 -> :module2 -> module1

DaggerMultiModuleApp2

  • :app moudle contains only MainActivity
  • :module1, :module2, :module3and :module4 contains 500 annotated classes by each
  • :appmodule depneds paralelly on :module1, :module2, :module3 and :module4
Dependency

:app -> :module1
     -> :module2
     -> :module3
     -> :moudle4

android_multi_module_experiment's People

Contributors

yamamotoj avatar

Stargazers

Tomi avatar ho2ri2s avatar  avatar chonamdoo avatar JoonHo Park avatar daiki avatar Hironori Ichimiya avatar Satoki Mizoguchi avatar Takayuki Matsubara 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.