<div dir="ltr">
<div></div><div>Hello everyone!</div><div><br></div><div>I'm looking into using packages as ways to deliver feature packs and found myself in an issue where I need to add a class variable to a system class.</div><div><br></div><div>I have no issue adding the variable to the class, the problem is when I try to reflect this change on a package. So far the only way I see of adding or removing things from a package is changing the category name of methods/classes so they fit into the package file.</div><div><br></div><div>However I don't think it would be a good idea to move the whole Utility class into a package system category just to add a single var.</div><div><br></div><div>So far i'm just considering either adding it through the addClassVarName: method (after checking if it doesn't exist) in one of the methods that uses that variable regularly or straight up injecting the code into the package file so it's executed on fileIn.</div><div><br></div><div>Both ways seem like hacky workarounds that might actually cause problems (for example if the package is later removed that variable won't be removed at all).</div><div></div><div>
<div><br></div><div>Is there any other way to add the modification of the Utility class into my package? Or is the idea that package modifications are identified and tracked by the categories only?</div><div><br></div><div>And before you say changesets. Yes I know they can reflect this, but packages allow me to work on different things on the system without having to have a separate image for each or touching up the contents of the changesets.<br></div><div><br></div><div>Kind regards,</div><div><br></div><div><b>Mauro Rizzi</b><br></div>
</div><div><br></div><div><span class="gmail-gI"></span></div><br></div>