Build stripping and scenes in Asset Bundles

I’m working on a mobile game that includes several minigames that we’re downloading as Asset Bundled scenes. These minigames use their own gameplay code which does not get compiled with the build when we’re also using build stripping. We would like to use build stripping to remove unused internal code while still keeping the minigame code in our compiled build.

We’ve thought of putting all our own code in a Resources folder or referencing all our own code in a MonoBehaviour somewhere but both of these solutions would require quite a lot of manual work and would also be hard to maintain in the long run. Is there an easier way to force inclusion of code in builds?

I ended up putting all my scripts (except Editor scripts) into Resources folders. Writing an Editor script collecting all script dependencies when building the Asset Bundles and referencing them somewhere would probably be a better long term solution though but for a smaller project such as ours the quick Resources folder solutions seems to work fine. It creates some problems with updating plugins though.