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-18351] Deprecate iOS and Android modules in node-appc #181

Merged
merged 3 commits into from Jan 27, 2015

Conversation

skypanther
Copy link
Contributor

@@ -446,6 +446,11 @@ SdkSubcommands.select = {
logger.error(__('Invalid Titanium SDK "%s"', value));
return false;
}
if(parseInt(value.split('.').slice(0,3).join('')) < 320) {
Copy link
Contributor

Choose a reason for hiding this comment

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

You should use node-appc to do your version comparison:

if (appc.version.lt(value, '3.2.0')) {

Also, make sure you have a space between if and the (. if is not a function.

if (appc.version.lt(value, '3.2.0')) {
logger.log('');
logger.warn(__('Selected SDK contains deprecated environment detection code.'));
logger.warn(__('Please choose a 3.2 or newer SDK for more accurate information.'));
Copy link
Contributor

Choose a reason for hiding this comment

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

The warning here needs to change. We shouldn't concern the user with detection code and such. We simply need to say:

Titanium SDK {VERSION} has been deprecated and will not work with future releases.
Please use Titanium SDK 3.2 or newer.

@cb1kenobi
Copy link
Contributor

This commit also needs to include additional logic in the https://github.com/appcelerator/titanium/blob/master/hooks/tisdk3fixes.js file. In the cli:post-validate hook, you need to detect if the tiapp.xml version is less than 3.2 and print a big warning saying they need to upgrade the app along with a similar message to the ti sdk select warning.

@pinnamur
Copy link

CR passed.

pinnamur pushed a commit that referenced this pull request Jan 27, 2015
[TIMOB-18351] Deprecate iOS and Android modules in node-appc
@pinnamur pinnamur merged commit 9fdc001 into tidev:master Jan 27, 2015
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

3 participants