Page 1 of 1
How define inclusions of a standalone by script ?
Posted: Sun Oct 08, 2017 2:03 pm
by jmburnod
Hi All,
Is there a way to define inclusions of a standalone by script (before compilation) ?
Something like that (pseudocode):
Code: Select all
on initInclusionForStandalone
if the environment = "mobile" then
-- disable InternetInclusion
else
-- enable InternetInclusion
end if
end initInclusionForStandalone
Best regards
Jean-Marc
Re: How define inclusions of a standalone by script ?
Posted: Sun Oct 08, 2017 2:33 pm
by Klaus
Hi Jean-Marc,
I think you can manipulate the custom property set "cRevStandaloneSettings" before compiling.
A quick test show that without a checked "Internet" inclusion:
the cRevStandaloneSettings["scriptLibraries"] of stack "your standalone here" = EMPTY
Otherwise (Internet checked):
the cRevStandaloneSettings["scriptLibraries"] of stack "your standalone here" = "Internet"
Of course you need to parse the prop, since there may be other inclusions added.
Format of this prop = CR delimited list of inclusions like:
Internet
Printing
etc...
Hope that gets you started!
Best
Klaus
Re: How define inclusions of a standalone by script ?
Posted: Sun Oct 08, 2017 2:44 pm
by jmburnod
Hi Klaus,
Thanks. One more, exactly what I need.
Kind regards
Jean-Marc
Re: How define inclusions of a standalone by script ?
Posted: Sun Oct 10, 2021 9:36 pm
by trevix
Hello.
Suppose I need to have an inclusion working or not according to the device type? (post compilation)
For example, I would like my standalone to have push notification working on a android cell phone but not on a Tv Box.
Can it be that the only way is to bare with it and, on the TvBox, just ignore the pushNotificationReceived?
Thanks
Trevix