Upgrade to Pro — share decks privately, control downloads, hide ads and more …

La modularisation dans le développement Android

La modularisation dans le développement Android

Yves Kalume

January 13, 2022
Tweet

More Decks by Yves Kalume

Other Decks in Programming

Transcript

  1. App -> manifest -> Java -> src -> data ->

    ui -> home -> HomeActivity.kt -> HomeViewModel.kt ... -> res -> layout -> activity_home.xml -> activity_search.xml -> item_content.xml
  2. App -> java ... -> HomeActivity -> HomeViewModel -> res

    -> layout -> activity_home.xml -> ... Search -> java ... -> SeachActivity -> SearchViewModel -> res -> layout -> activity_search.xml -> ... plugins { id 'com.android.application' … } dependencies { implementation project(":search") … } plugins { id 'com.android.library' … }
  3. Gestion des dépendances • implementation Vs api • Dettes techniques

    moduleA moduleB implementation project(":moduleA") implementation("com.lorem.lib:1.0") api("com.lorem.lib:1.0") • Dependances circulaire moduleA moduleB X Module1 build.gradle Module2 build.gradle Module3 build.gradle