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 841DB11580 for ; Thu, 28 Aug 2014 16:56:04 +0000 (UTC) Received: (qmail 12653 invoked by uid 500); 28 Aug 2014 16:56:04 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 12614 invoked by uid 500); 28 Aug 2014 16:56:04 -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 12602 invoked by uid 99); 28 Aug 2014 16:56:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Aug 2014 16:56:03 +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: domain of shazron@gmail.com designates 209.85.216.175 as permitted sender) Received: from [209.85.216.175] (HELO mail-qc0-f175.google.com) (209.85.216.175) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Aug 2014 16:55:38 +0000 Received: by mail-qc0-f175.google.com with SMTP id c9so1076855qcz.20 for ; Thu, 28 Aug 2014 09:55:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=5j5qeAkAXTB2jF7PRvx8GM0wa7u3oZPcjNimSu3s15E=; b=FPm6o2OKZdcQUgjuiskrUEZwIulrFocq7Q6z8dIB/WRkwjplPfLOEJHj0yJOrrrc4b 243KjDeSPaOQ3RoU5YGES12o4yL2Na4hzetmItffhj8x2Ptu6oKWWAoa9HN7JJqR2Z+g cWTMecv5I9MqTOkGkPAIJs1COLY8JORBqbfv3HBQG0FOvdZQYczihH338/BI/rTSb5bb zTjgwQN1VqvUndhZ2JkVFqCwmk0nW66QL4HJV2J7SUXzMjUyY5SzNYozm1EbPWsrM+EB ClgxaRcESA6RPD0RG5vrcIIFtG36CRKKuW/i7VOXavQfM642L/75rb8T+X9VqUe0+Jxf V14A== X-Received: by 10.224.40.145 with SMTP id k17mr8817014qae.4.1409244937060; Thu, 28 Aug 2014 09:55:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.43.229 with HTTP; Thu, 28 Aug 2014 09:54:56 -0700 (PDT) In-Reply-To: References: <3486BFDE-97B4-4744-95A3-FBFD8090CC16@redhat.com> From: Shazron Date: Thu, 28 Aug 2014 09:54:56 -0700 Message-ID: Subject: Re: plugin with swift To: "dev@cordova.apache.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org I agree, the time for messing with pbxproj files is over. In hindsight we should have moved to workspaces and xcconfig files, but what can you do. We should get rid of this technical debt asap by 4.0 On Thu, Aug 28, 2014 at 9:44 AM, Carlos Santana wrot= e: > I guess I need to pay more attention to JIRA issues :-) > > I think using xcconfig files is huge step forward in managing xcode > projects. > > xcconfig is the same pattern use by cocoapods, it allows more flexibility > and and at the same time not messing up user's pbxproj > > One thing to also look is to flow information from plugin.xml into xcconf= ig > and not use node-xcode. > > > > On Thu, Aug 28, 2014 at 12:03 PM, Shazron wrote: > >> Right now - no. Although you could write a post-install hook that will >> directly update the project file using node-xcode I suppose. >> >> In the future, we can just add this to the template (please file a >> feature request so we don't forget). But I think the approach in this >> issue is better, and will be simpler for the CLI to add items: >> https://issues.apache.org/jira/browse/CB-5520 >> >> >> On Thu, Aug 28, 2014 at 2:19 AM, Erik Jan de Wit >> wrote: >> > Hi all, >> > >> > I=E2=80=99ve been experimenting with swift and ported the HelloWorld p= lugin [1] >> to Swift. There was one trick to make it work together with cordova, tha= t >> was to specify the name of the class to export it under so it could be >> referenced: >> > >> > @objc(HWPHello) class Hello : CDVPlugin { >> > >> > Then it=E2=80=99s =E2=80=98exported=E2=80=99 under =E2=80=9CHWPHello= =E2=80=9D that is what we put into the >> plugin.xml that can then be found at runtime by cordova >> > >> > There remains one problem in order to use CDVPlugin in Swift one needs >> to add a bridging header file and add that to the swift compiler options= . >> The file can be part of the plugin but can cordova on plugin install add >> the needed compiler settings? >> > >> > [1] https://github.com/edewit/cordova-plugin-hello/tree/swift >> > > > > -- > Carlos Santana >