1

I would like to know if it is currently possible to know the on dynamic feature module size before we start to download it. I didn't find an answer to it anywhere on the web =/.

Augusto Carmo
  • 4,386
  • 2
  • 28
  • 61

1 Answers1

0

NO.

But there is a hack for it.

  1. If your dynamic module size < 10MB
  2. call SplitInstallRequest builder in the background on App launch.
  3. implement SplitInstallStateUpdatedListener onStateUpdate() call back.
  4. in SplitInstallSessionStatus.DOWNLOADING state you get size of your module.
  5. install your module by SplitCompat.install(context) when user want to use it.

Note: This approach violate the rule of dynamic delivery But you can consider it as per your requirement or need.