Skip to content

Commit

Permalink
update message, add deprecation warning to tisdk3fixes hook
Browse files Browse the repository at this point in the history
  • Loading branch information
skypanther authored and Feon Sua committed Mar 20, 2015
1 parent 515e3b9 commit 35a4022
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions hooks/tisdk3fixes.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ exports.init = function (logger, config, cli, appc) {
data.command.platform.options['deploy-type'].values = ['production'];
}
}
if (appc.version.lt(sdk, '3.2.0')) {
logger.log('');
logger.warn(__('Titanium ' + sdk + ' has been deprecated and will not work with future releases.'));
logger.warn(__('Please use Titanium 3.2 or newer.'));

}
});

// Titanium SDK 3.3.x and older does not support Xcode 6, so we try to remove it as if it never existed
Expand Down
4 changes: 2 additions & 2 deletions lib/commands/sdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,8 @@ SdkSubcommands.select = {
}
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.'));
logger.warn(__('Titanium SDK ' + value + ' has been deprecated and will not work with future releases.'));
logger.warn(__('Please use Titanium SDK 3.2 or newer.'));
}
return true;
}
Expand Down

0 comments on commit 35a4022

Please sign in to comment.