I’d recommend these two possible approaches:
Add the files to a private Git submodule and add it to your dependencies: https://docs.codemagic.io/building/access-private-git-submodules/
If there are not too many files, then you could encrypt them in Codemagic and then add them through environment variables.
CLICK HERE to find out more related problems solutions.