New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(android): ignore additional require argument #11378
Conversation
Tests:
|
Looks to me like we pass around this stuff in the context:
The module/sourceUrl are set by the module/js require/load code anyways. The interesting ones are
I suspect that the require should probably not take a second argument at all and should inherit the parent module's context with overridden module/sourceUrl values. I'll see if I can come up with something.... |
Note that currentTab doesn't appear to be implemented on iOS. I suspect it may have been removed long ago but the docs never deprecated/removed it. |
...and that |
This will break the This property is not defined in Java code. It's defined in JavaScript. Pretty much everyone who uses Android services use the I agree that this is not a great design. Changing it isn't trivial though. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will break the Ti.Android.currentService
property.
I'm going to kill this one off in favor of #11380, since this naive approach seems like it'll break |
Hmm... maybe I'm wrong. We do have a mocha unit test which tests the I think it's not failing because we only apply the |
JIRA: https://jira.appcelerator.org/browse/TIMOB-27633
@garymathews This is my naive solution, which just drops the additional parameter we currently support in our
require
on Android. I couldn't find anyrequire
s in our codebase that make use of this second parameter.I'm note sure if this is just a relic from older versions or if we actually still use this. We could change this PR to something like this to avoid breaking changes: