Multi APP lib, can you access APP specific files (eg. environment?)

I’m trying to create a, cordova, multi app following

My use case is that 2 apps which differs only in config.xml, environment files and a single service (authentication). I’d like my extracted shared library to depend on the app specific environment files and my authentication service, but I’m not sure how to go about this seeing as including either in my ‘shared’ libarary via include is bound to fail:

import { environment } from '../../apps/appOne/environments/environment';

I’m looking for a way to inject these into my shared code as the first thing when my app launches.