The difference between Android Studio 3 between the library module and the function module

Android Studio 3 has at least two new types of modules. First Instant app moduleand second feature module. From Instant app modulethis it is quite obvious, but feature modulefrom my point of view it coincides with library module. So what is the real difference between the modules library, and featurewhen should I use library moduleand when feature module?

+4
source share
5 answers

I would follow the scheme of Marcin Orlovsky like this. You can imagine a library module in the same way as dependencies on a given function or base module.

, APP APP APP.

enter image description here

+4

- , com.android.feature.

:

  • (com.android.application) aar ,

  • Instant App APK (com.android.instantapp) APK Instant App , . .

Instant . , api. , , baseFeature.

: https://codelabs.developers.google.com/codelabs/android-instant-apps/#3

+2

Feature ( deeplink).

Feature.

+1

Android SDK - , Android. SDK , .

- , . , . , , , - , , .

- , . . , . , , . , .

. .

- , . APK, Android.

A library is a collection of code that represents something that you want to use in multiple applications or otherwise want to be stored in a separate "container" than the rest of the application code. The output of the library module is AAR and Jar.

0
source

Source: https://habr.com/ru/post/1680460/


All Articles