Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0DE53200ACA for ; Thu, 9 Jun 2016 19:39:19 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0C9A4160A58; Thu, 9 Jun 2016 17:39:19 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 56A45160A29 for ; Thu, 9 Jun 2016 19:39:18 +0200 (CEST) Received: (qmail 58255 invoked by uid 500); 9 Jun 2016 17:39:17 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 58244 invoked by uid 99); 9 Jun 2016 17:39:17 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jun 2016 17:39:17 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 113B5DFDEC; Thu, 9 Jun 2016 17:39:17 +0000 (UTC) From: riknoll To: dev@cordova.apache.org Reply-To: dev@cordova.apache.org References: In-Reply-To: Subject: [GitHub] cordova-lib pull request #449: CB-11023 Add edit-config functionality Content-Type: text/plain Message-Id: <20160609173917.113B5DFDEC@git1-us-west.apache.org> Date: Thu, 9 Jun 2016 17:39:17 +0000 (UTC) archived-at: Thu, 09 Jun 2016 17:39:19 -0000 Github user riknoll commented on a diff in the pull request: https://github.com/apache/cordova-lib/pull/449#discussion_r66486389 --- Diff: cordova-common/src/ConfigChanges/ConfigChanges.js --- @@ -125,12 +128,32 @@ function remove_plugin_changes(pluginInfo, is_top_level) { PlatformMunger.prototype.add_plugin_changes = add_plugin_changes; -function add_plugin_changes(pluginInfo, plugin_vars, is_top_level, should_increment) { +function add_plugin_changes(pluginInfo, plugin_vars, is_top_level, should_increment, plugin_force) { var self = this; var platform_config = self.platformJson.root; + var editConfigChanges = pluginInfo.getEditConfigs(self.platform); + var config_munge; - // get config munge, aka how should this plugin change various config files - var config_munge = self.generate_plugin_config_munge(pluginInfo, plugin_vars); + if (!editConfigChanges || editConfigChanges.length === 0) { + // get config munge, aka how should this plugin change various config files + config_munge = self.generate_plugin_config_munge(pluginInfo, plugin_vars); + } + else if (plugin_force) { + CordovaLogger.get().log(CordovaLogger.WARN, '--force is used. edit-config will overwrite any conflicts'); --- End diff -- I would add "conflicting plugins may not work as expected" to the end of this warning (or something to that effect) --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org For additional commands, e-mail: dev-help@cordova.apache.org