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 =/.
Asked
Active
Viewed 149 times
1 Answers
0
NO.
But there is a hack for it.
- If your dynamic module size < 10MB
- call SplitInstallRequest builder in the background on App launch.
- implement SplitInstallStateUpdatedListener onStateUpdate() call back.
- in SplitInstallSessionStatus.DOWNLOADING state you get size of your module.
- 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.

DivyaSourabh
- 86
- 4