Project: titanium
Issue TIMOB-23185: TiAPI: Remove Ti.include and advertise workaround
Ti.include has been deprecated since 3.3.0. We should remove it in 6.0.0 since it has certain issues, and isn't supported with Alloy projects. See details here: https://jira.appcelerator.org/browse/TIMOB-16984 Clients who are using this should consider a workaround like this: {code} function include(file) { return eval(Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, file).read().text); } {code} When removing, be sure to address this doc: https://github.com/appcelerator/titanium_mobile/blob/master/apidoc/Titanium/Titanium.yml#L61 If a better alternative method can be devised, another JIRA ticket should be created.
Story points: 3