Publishing to Flathub

Hi,
I’m going to publish my app on Flathub.

This is the structure of the file that I would like to publish.

how am I supposed to publish the shared_modules?
Should I publish them as a git submodule? Should I copy them as plain files?

Submodule should be fine, but you might want to wait for the others to chime in.