I integrating Zoom Sdk to my application. Zoom Sdk adds ~80Mb to the release apk after build. But I have a lot of flavors of my app and only one or two of them actually use zoom. All other apps are releasing without using zoom feature.
I want to exclude all zoom-code from my final apk in some flavors to save small size of apk. How to do it? It will be good if you suggest me solution that excludes zoom module during apk assembling.
UPDATE:
Zoom includes not in app directly, it includes transitevly via other core module: app<--core<--zoom
I can't read flavor of app inside of core module. I expect there is a solution which can implement core
dependency with kind of parameter which includes or excludes zoom module during building an apk. Kinda:
implementation project(":core", withZoom = true)
or
def coreModule = project(":core")
coreModule.setParam("zoom", true)
implementation coreModule