Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D79FC11FEB for ; Wed, 23 Apr 2014 01:41:12 +0000 (UTC) Received: (qmail 44286 invoked by uid 500); 23 Apr 2014 01:41:12 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 44222 invoked by uid 500); 23 Apr 2014 01:41:11 -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 Delivered-To: moderator for dev@cordova.apache.org Received: (qmail 38714 invoked by uid 99); 23 Apr 2014 01:31:36 -0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-type:content-transfer-encoding :subject:message-id:date:to:mime-version; bh=JuvMU5TohnLGUNhfsJ/9yvZL6Zz2wd2ohz7b3uj78nA=; b=HnnV++f4NhFokK+qxv5oBjzrVKRQWc843qFlWxsCF39ZH8eYEJmQ4BONNm+5oNe9gS pQXZc2Ffp+a+gNxhY/fEDdMEXG7U18gJpeVhwKeMUGPNOfFaw71MpUOqV0MDbn9IdIYZ EfSafwDaryUWUikBA3dslJw5AHoisJG4BoA79ESmjZBjwp3S+bOMJ/egWDiWSvPHxXn9 xIhRG8nakX9jvV5Lb+z02szNEtForqHRf1djPKXwHJJha1zhoTYhViwUMfWqe/zMyOQi UuuZdo9mmdrmslNnRQjXexublqnTSfqRoscwVY8Vuc+7g/aspD32jsbtrdL9bvYoN5C2 /enQ== X-Gm-Message-State: ALoCoQlSfs38ZiPUFLAmAX5mr4TghOkxW05RvqwRziOdcyC0od2B9YTD9ceiQ5nqxYSSCf+vEBeD X-Received: by 10.68.254.5 with SMTP id ae5mr48667291pbd.83.1398216666892; Tue, 22 Apr 2014 18:31:06 -0700 (PDT) From: Cameron Barrie Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Generating configuration files Message-Id: Date: Wed, 23 Apr 2014 11:31:02 +1000 To: dev@cordova.apache.org Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) X-Mailer: Apple Mail (2.1874) X-Virus-Checked: Checked by ClamAV on apache.org Hey folks, I'm an iOS/Android developer and am currently wrapping a 3rd party = Native SDK(iOS && Android) in a Cordova plugin for a client. I'll use iOS as my examples here, but the same principles apply to the = Android build. The SDK assumes that there is a file called config.plist, when the SDK = is instantiated it loads up it's API keys, and a variety of style = elements(colors etc) for use by the SDK.=20 I'd like to find a way to generate this file from the config.xml and/or = the plugin.xml, but I cannot seem to find an interface to do this within = the Cordova eco-system? The config-file element in the plugin.xml only = appears to work on certain files(or I'm missing something pretty = simple). Any advise anyone can provide would be great, otherwise, the devs = integrating the plugin will need to open the native projects and edit = these files, which isn't ideal. And please before anyone asks, no I am not the author of the SDK, and = no, there is no programatic way to set any of these variables(which I = agree is stupid, alas that's how it's been designed). Thanks in advance, Cameron