Skip to content
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

[TIMOB-4983] Added support for "ant install" to install a module straight #360

Merged
merged 0 commits into from Sep 9, 2011
Merged

[TIMOB-4983] Added support for "ant install" to install a module straight #360

merged 0 commits into from Sep 9, 2011

Conversation

dawsontoth
Copy link
Contributor

[TIMOB-4983] Added support for "ant install" to install a module straight to device.

http://jira.appcelerator.org/browse/TIMOB-4983

tiapp_xml = os.path.join(gen_project_dir,'tiapp.xml')

script = os.path.abspath(os.path.join(template_dir,'..',platform,'builder.py'))
script_args = [script, "install", manifest.name, android_sdk.get_android_sdk(), gen_project_dir, manifest.moduleid, "Necessary argument, but unused."]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One question I have about this commit is that last argument to the array on line 223. I haven't observed that argument having any impact on the build, but I know that if it is not there, the bounds checking will stop us with an error message. What is that argument supposed to be used for? Is it actually necessary and I missed something in my interpretation of the code? I seem to recall it being the specific Android version, or at least that's how Titanium Desktop used it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not actually needed, but it's been around since the Developer days for compatibility. we shouldn't be validating on it, that's for sure. IIRC it expects an AVD id in that argument, but AVD ids are only used for the "simulator" command

@dawsontoth dawsontoth merged commit 32b5af9 into tidev:master Sep 9, 2011
@dawsontoth
Copy link
Contributor Author

Ah crap... I didn't mean to do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants