How to build Collabora Android only as document viewer that does not include the edit mode to reduce the size?

Hi everyone, currently I could build Collabora online and embed it as an additional SDK to open some documents inside my Android app. But if I embed this original build, the size will be too big, so I plan to remove the feature that I don’t need like editing mode since I just only need the viewer. Could it be possible to only build Collabora as a document viewer? Thank you for your help.