Skip to content

Commit

Permalink
remove conditional for cli usage only
Browse files Browse the repository at this point in the history
  • Loading branch information
odra committed Oct 4, 2018
1 parent a0bae0d commit 4d70d9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default (context) => {
// This script has to be executed depending on the command line arguments, not
// on the hook execution cycle.
if ((context.hook === 'after_platform_add' && context.cmdLine.includes('platform add')) ||
(context.hook === 'after_prepare' && context.cmdLine.includes('prepare')) ||
(context.hook === 'after_prepare' || context.cmdLine.includes('prepare')) ||
(context.hook === 'after_plugin_add' && context.cmdLine.includes('plugin add'))) {
getPlatformVersionsFromFileSystem(context, projectRoot).then((platformVersions) => {
const IOS_MIN_DEPLOYMENT_TARGET = '7.0';
Expand Down

0 comments on commit 4d70d9c

Please sign in to comment.