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 1D01510EFE for ; Fri, 7 Feb 2014 10:44:33 +0000 (UTC) Received: (qmail 38922 invoked by uid 500); 7 Feb 2014 10:44:32 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 38479 invoked by uid 500); 7 Feb 2014 10:44:30 -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 38470 invoked by uid 99); 7 Feb 2014 10:44:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Feb 2014 10:44:29 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of v-segreb@microsoft.com designates 207.46.163.236 as permitted sender) Received: from [207.46.163.236] (HELO na01-by2-obe.outbound.protection.outlook.com) (207.46.163.236) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Feb 2014 10:44:22 +0000 Received: from BL2PR03MB417.namprd03.prod.outlook.com (10.141.92.12) by BL2PR03MB420.namprd03.prod.outlook.com (10.141.92.25) with Microsoft SMTP Server (TLS) id 15.0.868.8; Fri, 7 Feb 2014 10:44:01 +0000 Received: from BL2PR03MB417.namprd03.prod.outlook.com ([10.141.92.12]) by BL2PR03MB417.namprd03.prod.outlook.com ([10.141.92.12]) with mapi id 15.00.0868.013; Fri, 7 Feb 2014 10:44:00 +0000 From: "Sergey Grebnov (Akvelon)" To: "dev@cordova.apache.org" Subject: RE: Windows8/WP8 Proxy and Windows Runtime Components support Thread-Topic: Windows8/WP8 Proxy and Windows Runtime Components support Thread-Index: Ac8j3Eew5b3NGxxbQtSRZq/mooUUAQABd6qAAAO+iEA= Date: Fri, 7 Feb 2014 10:44:00 +0000 Message-ID: <96ca72a42d7743ed9a80fe350a42f661@BL2PR03MB417.namprd03.prod.outlook.com> References: <3560f1e5ea3d49f09c82921596630804@BL2PR03MB417.namprd03.prod.outlook.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [109.60.135.109] x-forefront-prvs: 011579F31F x-forefront-antispam-report: SFV:NSPM;SFS:(10009001)(6009001)(189002)(199002)(13464003)(24454002)(377454003)(51704005)(69226001)(63696002)(66066001)(81342001)(80022001)(19580395003)(65816001)(76796001)(74876001)(81542001)(15202345003)(85306002)(87266001)(74662001)(80976001)(74502001)(79102001)(54356001)(50986001)(51856001)(56776001)(76482001)(46102001)(81686001)(83322001)(94946001)(74366001)(4396001)(83072002)(93516002)(47736001)(74316001)(47976001)(92566001)(76576001)(49866001)(94316002)(86612001)(86362001)(19580405001)(76786001)(59766001)(2656002)(77982001)(81816001)(31966008)(47446002)(90146001)(56816005)(95416001)(74706001)(85852003)(33646001)(53806001)(54316002)(87936001)(15975445006)(93136001)(24736002);DIR:OUT;SFP:1101;SCL:1;SRVR:BL2PR03MB420;H:BL2PR03MB417.namprd03.prod.outlook.com;CLIP:109.60.135.109;FPR:E8F0F27D.8EB556C6.F1F5B7A1.4FECF2F1.20494;InfoNoRecordsMX:1;A:1;LANG:en; Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-Virus-Checked: Checked by ClamAV on apache.org Great, I'll test this as soon as you pushed the changes, looking forward.. =20 -Sergey -----Original Message----- From: purplecabbage@gmail.com [mailto:purplecabbage@gmail.com] On Behalf Of= Jesse Sent: Friday, February 7, 2014 12:54 PM To: dev@cordova.apache.org Subject: Re: Windows8/WP8 Proxy and Windows Runtime Components support Yes, I am currently working on changes to plugman to support this. Issues are : CB-5984 and CB-5970 I should have CB-5984 wrapped up tomorrow, or early next week, so you can a= dd/remove .dlls as plugins for both WP8 + Windows8. This should handle the use case for most plugin developers. I assume durin= g development they would just manually add a project reference to their nat= ive code project, and when it comes time to ship their plugin, checki-n the= pre-built dlls. There are potentially issues with 64bit/32bit/arm, but this is something we= can look at. Adding project references ( CB-5970 ) is a little more involved because the= .sln file format ( text based ) is not as easily modified as .jsproj/.cspr= oj/... which are all well formed xml. The WebSQL plugin is interesting, but I am not excited to see us perpetuate= a deprecated spec. I would be more excited to see indexedDB use move forw= ard, however that is firmly in the iOS/Android ballpark. Just my opinion ..= . Re: proxy modification. I don't expect it would be needed, based on howeve= r the plugin developer defines their API. Native calls ( inside the plugin= .js file ) could technically be routed through the proxy. but there would b= e little benefit when they can just call the exposed native APIs directly. = Ultimately I see this as a plugin developer decision, but we can provide e= xamples and guidance as well. On Fri, Feb 7, 2014 at 12:16 AM, Sergey Grebnov (Akvelon) < v-segreb@micros= oft.com> wrote: > Hi guys, > > Working on WebSQL polyfill for Windows8 and WP8 platforms which will=20 > be exposed as Cordova plugin I found out that there are PCL libraries=20 > with all required functionality. But I need to write two different=20 > Plugin wrappers - one for WP8 on C# and another one for Windows8 on=20 > JS. I'm wondering if we can add Plugins support written as Windows=20 > Runtime Component[1] > > I imagine developers will be able to use this feature as following: > > 1. Write C# library which exposes all required functionality, > handles plugin arguments and callback calls; use conditional compile=20 > directives if need access to platform specific api; or it could be=20 > exactly the same if it is just a Cordova wrapper around another library. > > 2. Compile two different versions - WP8 / W8, place them accordingl= y > to plugin folder structure and specify to be linked during plugin=20 > installation. > > Benefits: > > 1. Write once, deploy to both WP8 and Windows8. > > 2. Use C# if you are more comfortable with it. > > This involves the following: > > 1. Support of linking libraries on WP8, Windows8. It seems Jesse is > already working on this. > > 2. Windows8 proxy modification > > I can do further investigation and create a prototype of other devs=20 > think this is interesting too. Thoughts? > > [1] > http://msdn.microsoft.com/en-us/library/windows/apps/hh779077%28v=3Dvs.1 > 10%29.aspx > > Thx! > Sergey >