"EnTerr" wrote:"ioan" wrote:
I need to share code between multiple channels, between the Pro version and Basic version. Right now I copied my global brs file in both channels and make all modifications twice and I'm hoping that there is a better way to share global functions between channels.
Can i propose a very simple solution to your very specific problem, which avoids tackling at all sharing of sources between projects?
Have only 1 channel source!
No, just wait a minute - hear me out: since your Basic version is a subset of the Pro version, build from a single codebase - moreover build a single app, once - then upload to 2 channels. But how will they differentiate? Quite simple - when started, query what's the channel# - roAppInfo.getID() - and based on that tune up the behavior (i.e. act as Pro or Basic). Say if the # is that of the Basic channel, then disable some features, maybe tweak some messages - otherwise (i.e. side-loaded or Pro), have the full functionality. Reminder, the channel name and thumbnails are specified in the dev.portal (outside of the app bundle).
That is actually a great idea! I have a question though, considering that one of the differences between the channels is the screensaver, how would I completely remove it from the basic with "if"s?
or plaster a semi-transparent (ad?) banner on top of the video
That gives me an idea. I could make it an "in channel product" for the basic. Same with extra cameras.