You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2018/12/08 00:27:58 UTC

[royale-docs] branch master updated (4c6c209 -> bb11b68)

This is an automated email from the ASF dual-hosted git repository.

aharui pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/royale-docs.git.


    from 4c6c209  Merge branch 'develop'
     new d93ed29  add more information about Emulation workflow
     new bb11b68  reference circular dependencies doc

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../migrate-an-existing-app/migrate-from-flex.md          | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)


[royale-docs] 01/02: add more information about Emulation workflow

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aharui pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/royale-docs.git

commit d93ed2921c6f36fcd6226a7c1770c251e7d567bf
Author: Alex Harui <ah...@apache.org>
AuthorDate: Fri Dec 7 16:16:59 2018 -0800

    add more information about Emulation workflow
---
 .../migrate-an-existing-app/migrate-from-flex.md            | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/create-an-application/migrate-an-existing-app/migrate-from-flex.md b/create-an-application/migrate-an-existing-app/migrate-from-flex.md
index 6c3657c..a9ffb27 100644
--- a/create-an-application/migrate-an-existing-app/migrate-from-flex.md
+++ b/create-an-application/migrate-an-existing-app/migrate-from-flex.md
@@ -56,12 +56,25 @@ We may not have had to force you to make these changes, but we think it will hel
 
 Another category of changes is API conflicts.  For example, in Flex, UIComponent (and thus all components and MXML files) had a 'document' property.  The 'document' property conflicts with the 'document' object in the browser, so in the Royale emulation, UIComponent had 'document' renamed to be 'component'.  You will want to look for uses of 'document' and 'parentDocument' and change them to be 'component' and 'parentComponent'.
 
+Yet another category of changes is for non-Flex SWCs.  If you used third-party libraries, you will need to find Royale equivalents for them.   Royale is not developing any emulations for any non-Apache Flex libraries at this time.  Some third-party libraries may not have Flash dependencies and can just be transpiled with the Royale compiler.  Others will take some effort and you may prefer to find a different SWC that Royale does support instead.  Start a discussion on dev@royale.apache. [...]
+
+## Running the compiler
+
+The Royale compiler supports every options the Flex compiler supports.  In addition there are some new options for controlling JavaScript output.  Royale also has an Ant task just like Flex does.  It supports all of the options that the Flex Ant task supports, plus some new options for controlling JavaScript output.  You should be able to use the same compiler options on the Royale compiler as you did when compiling your Flex app.  The only thing you must add is the compiler option
+
+```
++configname=flex
+```
+
+THen, assuming you aren't using any third-party libraries, your application should compile.
 
 
 ## Intepreting Compiler Errors and Warnings
 
 The migration process is probably best done by first trying to get your code to compile without any "import flash' directives and using the Royale emulation components.  You will get a bunch of errors and have to rename Flash APIs, and possibly comment out other parts that are not essential to getting the application up and running.  We recommend that you use a special comment format so you can find places that are temporarily commented out.
 
+If you get errors about a component or API not found, then it is likely that the Emulation doesn't support that API yet.  Ask on dev@royale.apache.org to find out what your options are.  If you don't really have to use that API, comment it out for now.
+
 You may see an warning about the use of "public var".  As described in the tutorial, Royale uses a optimizing compiler for JavaScript output that will rename variables in order to save on download size.  That generally works fine unless the public vars represent fields in an object from an external source like a JSON object or other server result.  You may need to change the public var to a getter and/or setter.  Or, you can suppress the warning by using the @royalesuppresspublicvarwarni [...]
 
 You may see at the end of the compile output that says "namespace not provided yet".  If you see that, ensure that the -remove-circulars compiler option is on.  It should be on by default.  If you still see that, ask on the mailing list for assistance.


[royale-docs] 02/02: reference circular dependencies doc

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aharui pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/royale-docs.git

commit bb11b684d734f525b43d690924639e1ac166ce97
Author: Alex Harui <ah...@apache.org>
AuthorDate: Fri Dec 7 16:27:48 2018 -0800

    reference circular dependencies doc
---
 create-an-application/migrate-an-existing-app/migrate-from-flex.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/create-an-application/migrate-an-existing-app/migrate-from-flex.md b/create-an-application/migrate-an-existing-app/migrate-from-flex.md
index a9ffb27..34a6b30 100644
--- a/create-an-application/migrate-an-existing-app/migrate-from-flex.md
+++ b/create-an-application/migrate-an-existing-app/migrate-from-flex.md
@@ -77,7 +77,7 @@ If you get errors about a component or API not found, then it is likely that the
 
 You may see an warning about the use of "public var".  As described in the tutorial, Royale uses a optimizing compiler for JavaScript output that will rename variables in order to save on download size.  That generally works fine unless the public vars represent fields in an object from an external source like a JSON object or other server result.  You may need to change the public var to a getter and/or setter.  Or, you can suppress the warning by using the @royalesuppresspublicvarwarni [...]
 
-You may see at the end of the compile output that says "namespace not provided yet".  If you see that, ensure that the -remove-circulars compiler option is on.  It should be on by default.  If you still see that, ask on the mailing list for assistance.
+You may see at the end of the compile output that says "namespace not provided yet".  If you see that, ensure that the -remove-circulars compiler option is on.  It should be on by default.  If you still see that, ask on the mailing list for assistance.  More about circular dependencies can be found [here](create-an-application/migrate-an-existing-app/circular-dependencies.html)
 
 ## Running the migrated app after a successful compile