diff --git a/hooks/add_swift_support.js b/hooks/add_swift_support.js index 452cd4f..6e4fa87 100755 --- a/hooks/add_swift_support.js +++ b/hooks/add_swift_support.js @@ -30,7 +30,8 @@ module.exports = function (context) { // 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_plugin_add' && context.cmdLine.includes('plugin add'))) { + (context.hook === 'after_plugin_add' && context.cmdLine.includes('plugin add')) || + (context.hook === 'before_build' && context.cmdLine.includes('build'))) { platformMetadata.getPlatformVersions(projectRoot).then(function (platformVersions) { var IOS_MIN_DEPLOYMENT_TARGET = '7.0'; var platformPath = path.join(projectRoot, 'platforms', 'ios'); diff --git a/plugin.xml b/plugin.xml index ff59725..8370542 100755 --- a/plugin.xml +++ b/plugin.xml @@ -121,8 +121,8 @@ - - + + ${EXECUTABLE_NAME} Would Like to Use Your Current Location Even In Background.