From users-return-1216-archive-asf-public=cust-asf.ponee.io@royale.apache.org Thu May 10 08:04:20 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id F1DCA18063A for ; Thu, 10 May 2018 08:04:13 +0200 (CEST) Received: (qmail 57344 invoked by uid 500); 10 May 2018 06:04:12 -0000 Mailing-List: contact users-help@royale.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@royale.apache.org Delivered-To: mailing list users@royale.apache.org Received: (qmail 57333 invoked by uid 99); 10 May 2018 06:04:12 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 May 2018 06:04:12 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 517DCCCD6F for ; Thu, 10 May 2018 06:04:10 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.816 X-Spam-Level: ** X-Spam-Status: No, score=2.816 tagged_above=-999 required=6.31 tests=[FORGED_OUTLOOK_TAGS=0.565, HTML_MESSAGE=2, KAM_LOTSOFHASH=0.25, KAM_SHORT=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 2ehkjxTgN1Fe for ; Thu, 10 May 2018 06:03:59 +0000 (UTC) Received: from WIN-CMCMLBH19BL.vconn.com.pk (static.39.34.130.94.clients.your-server.de [94.130.34.39]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 9DD155F5F7 for ; Thu, 10 May 2018 06:03:52 +0000 (UTC) Received: from aleenaPC ([58.65.129.193]) by vconn.com.pk with MailEnable ESMTPA; Thu, 10 May 2018 08:03:33 +0200 From: "Alina Kazi" To: References: <20180418002543.Horde.mzlpgP-XMBmxpXSlhvB_b3X@webmail.sporha.com> <005701d3dc65$c0dfdae0$429f90a0$@d-bz.com> <24D50FB5-D484-45D0-838D-FD8895CC85AD@adobe.com> <007d01d3dc7a$c1838860$448a9920$@d-bz.com> <9bb981e6-ecdc-d56a-88bb-06279ac49034@likyateknoloji.com> <2B3BAC80-F898-46CB-AA96-FAF3A87AA7D2@adobe.com> <783C355C-95F9-428E-B6C7-C0565788BD5A@adobe.com> <5e7331bf-1e31-b39a-d084-9fdc43e57664@likyateknoloji.com> <005201d3e5d9$7c3e54c0$74bafe40$@d-bz.com> <9 79001B3-A2BC-402 7-8139-16489A1992C4@adobe.com> <003801d3e699$eabf59b0$c03e0d10$@d-bz.com> In-Reply-To: Subject: RE: Work on Emulation Date: Thu, 10 May 2018 11:01:18 +0500 Message-ID: <009301d3e824$586f1d20$094d5760$@d-bz.com> MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_NextPart_000_0094_01D3E84E.419D5740" X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQJdAZr8DLMpQb/p0e7BCaXcEai6oQF7wBghA7IJJbQBiVUW9AKAVxfhAUQGFtQCJufEVQLosLHDAf/aFhIChyAzpgFmiMd5AaXynMgCab/AGADLvC7SAl5+HKYC+BLwqgHvHSIlA0nbzL0Cp9HpKQHmMUl+AibDICuhuYCj4A== Content-Language: en-us This is a multipart message in MIME format. ------=_NextPart_000_0094_01D3E84E.419D5740 Content-Type: multipart/alternative; boundary="----=_NextPart_001_0095_01D3E84E.419D5740" ------=_NextPart_001_0095_01D3E84E.419D5740 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you Alex. After Review, I am adding comments on Shahid=E2=80=99s PRs. When he will work on his PRs further, then after review. I will merge = them. =20 Thanks, Alina Kazi=20 =20 From: Alex Harui [mailto:aharui@adobe.com]=20 Sent: Tuesday, May 08, 2018 9:00 PM To: users@royale.apache.org Subject: Re: Work on Emulation =20 Hi Alina, =20 When we made you a committer, it also meant that we trust you to review = and merge pull requests from others. Especially for Shahid, since both = of you are working in the same area. I did review the Module classes = and made some comments on that. I will probably take a quick look at = other PRs that are for important areas, but it is fine if you work with = Shahid on merging the rest. =20 I think you also noticed that Shahid=E2=80=99s first two PRs have some = problems regarding which files are in the PR, so work with him to figure = that out then merge and commit his code. =20 Thanks, -Alex =20 From: Alina Kazi Reply-To: "users@royale.apache.org" Date: Tuesday, May 8, 2018 at 12:00 AM To: "users@royale.apache.org" Subject: RE: Work on Emulation =20 Hi Alex, Sure, We will continue to work on emulation process for mx and spark = components . Shahid has created 4 pull request for 12 API=E2=80=99s so far. None of = his PR is merged yet. Could some please review his PR and merge. =20 Thanks, Alina =20 From: Alex Harui [mailto:aharui@adobe.com]=20 Sent: Tuesday, May 08, 2018 11:33 AM To: users@royale.apache.org Subject: Re: Work on Emulation =20 Hi Alina, if Spark Components are being used in the main application, = then it is probably best if you and Shahid start creating emulations for = those Spark components. It would be better to spend your time on that = than trying to modify your application. =20 Thanks, -Alex =20 From: Alina Kazi Reply-To: "users@royale.apache.org" Date: Monday, May 7, 2018 at 10:57 PM To: "users@royale.apache.org" Subject: RE: Work on Emulation =20 Thank you Alex. =20 Application Dependency on Spark components =20 53 out of 268 API=E2=80=99s are spark components. We will try to emulate them asap. =20 Thanks, Alina Kazi =20 From: Alex Harui [mailto:aharui@adobe.com]=20 Sent: Monday, May 07, 2018 9:25 PM To: users@royale.apache.org Subject: Re: Work on Emulation =20 Hi Alina, =20 Great progress! =20 Yes, the Spark components will go in the same branch, but we will create = a new library project for them, so instead of = frameworks/projects/MXRoyale we would put spark classes in = frameworks/projects/SparkRoyale. =20 However, before we start on Spark components, I would like to know how = much of your application depends on Spark components. If large chunks = of your application can run without Spark components because Spark is = only used in certain modules, you may want to first try to get more of = the MX emulations to actually run. =20 Thoughts? -Alex =20 From: Alina Kazi Reply-To: "users@royale.apache.org" Date: Monday, May 7, 2018 at 1:03 AM To: "users@royale.apache.org" Subject: RE: Work on Emulation =20 Hi, =20 179 out of 268 files are emulated from List: = https://github.com/apache/royale-asjs/issues/136 = =20 Only 36 mx Components are left. It has 53 spark components. Do these components should also be added to = feature/MXRoyale Branch ? Thanks, Alina Kazi =20 From: Alex Harui [mailto:aharui@adobe.com]=20 Sent: Monday, May 07, 2018 10:15 AM To: users@royale.apache.org Subject: Re: Work on Emulation =20 Hi Serkan, =20 In Royale, we are emphasizing =E2=80=9CPay As You Go=E2=80=9D (PAYG). = So in that view, the initial implementation can require UTF8. Some = other implementation can support different character sets. I think = Flash is always UTF8. =20 The emulation has to eventually execute in JS what worked in Flash. The = goal is to get your code snippet to work unmodified. So, a = =E2=80=9Csimple tests=E2=80=9D is to get your code snippet working in = Royale with your emulation in SWF form, then try to get the same results = by integration TextEncoderLite and the Base64. =20 HTH, -Alex =20 From: Serkan Ta=C5=9F Reply-To: "users@royale.apache.org" Date: Saturday, May 5, 2018 at 11:39 PM To: "users@royale.apache.org" Subject: Re: Work on Emulation =20 Hi Alex, Actually I am not concentrated on the functionality that my flex = application requires.=20 I am just trying to convert the class for emulation. The flex encoder just use the default encoder method for encoding but i = am not sure which chacracters set is used. TextEncoder supports a wide range of charset for encoding according to = the documentation. TextEncoderLite supports only utf8 and i believe that = the encoding info should be parametric, and more encoding charset should = be available like latin5 etc. In my application, I am using UTF encoding functionality for carrying user name and = password required for Basic Http Authentication. e.g: var encoder:Base64Encoder =3D new Base64Encoder(); encoder.encodeUTFBytes(userInfo.username + ":" + userInfo.password); var credsHeader:URLRequestHeader =3D new = URLRequestHeader("Authorization", "Basic " + encoder.toString()); The original SWF implementation does not return anything but stores the = encoded data internally and can be retrieved with toString method. I am not really sure which way to go to help the emulation progress. To = implement the features in js or just make the project to be compiled = successfully 06.05.2018 09:02 tarihinde Alex Harui yazd=C4=B1: Hi Serkan, =20 Sometimes it is easier to get it working without Royale in order to = understand the pieces. So, if you just start with an html and js file, = what do you need to get = https://raw.githubusercontent.com/beatgammit/base64-js/master/base64js.mi= n.js = =20 to work? =20 Does base64decode return an UInt8Array or something else? =20 I=E2=80=99m not clear you MUST use a TextEncoder. =20 Once you get it working without Royale, we might better understand how = to make your example work with Royale. =20 HTH, -Alex =20 From: Serkan Ta=C5=9F = Reply-To: "users@royale.apache.org" = Date: Saturday, May 5, 2018 at 7:58 AM To: "users@royale.apache.org" = Subject: Re: Work on Emulation =20 Hi Piotr, Alex, Thank you very much for your valuable guidance. You can find my comments below the questions, you may want to check. As the result of my work, i have questions : 1. I could not find the exact js library for TextEncoder instead i = referenced encoding.min.js which is unfortunately does not contain = TextEncoder=20 2. I do not now how to implement new (TextEncoder || TextEncoderLite) = if i would have find the js library. 3. How can i test that the js method i implemented works ? Thanx in advance, Serkan. According your advices i inserted the injection rules, =20 /** =20 * The Royale Compiler will inject html into the index.html file. = Surround with =20 * "inject_html" tag as follows: =20 * * =20 *