[royale-asjs] 01/02: get api lists from both swf and js. swf-only shows up as red, js-only as green, if available on both platforms, is black or anchor-visited color
This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git commit 16f0b2a3d6e566eeddb770f28d5b693dbf149d1a Author: Alex HaruiAuthorDate: Fri Feb 23 16:54:23 2018 -0800 get api lists from both swf and js. swf-only shows up as red, js-only as green, if available on both platforms, is black or anchor-visited color --- examples/royale/ASDoc/build.xml| 10 +- .../royale/ASDoc/src/main/royale/ASDocClassData.as | 52 ++ .../ASDoc/src/main/royale/ASDocClassEvents.as | 11 ++ .../ASDoc/src/main/royale/ASDocMainView.mxml | 7 + .../ASDoc/src/main/royale/EventDetailRenderer.mxml | 4 + .../src/main/royale/EventSummaryRenderer.mxml | 4 + .../src/main/royale/MethodDetailRenderer.mxml | 4 + .../src/main/royale/MethodSummaryRenderer.mxml | 4 + .../src/main/royale/PropertyDetailRenderer.mxml| 5 + .../ASDoc/src/main/royale/SummaryRenderer.mxml | 7 + .../ASDoc/src/main/royale/models/ASDocModel.as | 197 ++--- 11 files changed, 281 insertions(+), 24 deletions(-) diff --git a/examples/royale/ASDoc/build.xml b/examples/royale/ASDoc/build.xml index c8178b1..19692a8 100644 --- a/examples/royale/ASDoc/build.xml +++ b/examples/royale/ASDoc/build.xml @@ -33,14 +33,20 @@ + + + + + - + @@ -97,7 +103,7 @@ - + diff --git a/examples/royale/ASDoc/src/main/royale/ASDocClassData.as b/examples/royale/ASDoc/src/main/royale/ASDocClassData.as new file mode 100644 index 000..a91daab --- /dev/null +++ b/examples/royale/ASDoc/src/main/royale/ASDocClassData.as @@ -0,0 +1,52 @@ + +// +// Licensed to the Apache Software Foundation (ASF) under one or more +// contributor license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright ownership. +// The ASF licenses this file to You under the Apache License, Version 2.0 +// (the "License"); you may not use this file except in compliance with +// the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +package +{ +public class ASDocClassData +{ +public function ASDocClassData(name:String, platform:String) +{ +_label = name; +_platforms.push(platform); +} + +private var _label:String; +[Bindable("__NoChangeEvent__")] +public function get label():String +{ +return _label; +} +public function set label(__v__:String):void +{ +_label = __v__; +} + +private var _platforms:Array = []; +[Bindable("__NoChangeEvent__")] +public function get platforms():Array +{ +return _platforms; +} +public function set platforms(__v__:Array):void +{ +_platforms = __v__; +} + +} +} diff --git a/examples/royale/ASDoc/src/main/royale/ASDocClassEvents.as b/examples/royale/ASDoc/src/main/royale/ASDocClassEvents.as index d7b2726..3b6632b 100644 --- a/examples/royale/ASDoc/src/main/royale/ASDocClassEvents.as +++ b/examples/royale/ASDoc/src/main/royale/ASDocClassEvents.as @@ -111,5 +111,16 @@ public class ASDocClassEvents _ownerhref = __v__; } +private var _platforms:Array; +[Bindable("__NoChangeEvent__")] +public function get platforms():Array +{ +return _platforms; +} +public function set platforms(__v__:Array):void +{ +_platforms = __v__; +} + } } diff --git a/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml b/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml index 8ec6394..f560e45 100644 --- a/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml +++ b/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml @@ -347,6 +347,13 @@ limitations under the License. width: 300px; } +.swfonly { +color: #f00; +} + +.jsonly { +color: #0f0; +} diff --git a/examples/royale/ASDoc/src/main/royale/EventDetailRenderer.mxml b/examples/royale/ASDoc/src/main/royale/EventDetailRenderer.mxml index d471f11..d109c31 100644 ---
[royale-asjs] 02/02: more work to try to get search indexing to work
This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git commit 07339fac5b1f1159828fa68499df0b41d332d8b8 Author: Alex HaruiAuthorDate: Fri Feb 23 21:41:33 2018 -0800 more work to try to get search indexing to work --- .../src/main/resources/royale-index-template.html | 1 + .../ASDoc/src/main/royale/ASDocMainView.mxml | 30 +++--- 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/examples/royale/ASDoc/src/main/resources/royale-index-template.html b/examples/royale/ASDoc/src/main/resources/royale-index-template.html index d949120..db94b7b 100644 --- a/examples/royale/ASDoc/src/main/resources/royale-index-template.html +++ b/examples/royale/ASDoc/src/main/resources/royale-index-template.html @@ -20,6 +20,7 @@ + http://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css; /> diff --git a/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml b/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml index 83d8630..5136378 100644 --- a/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml +++ b/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml @@ -33,10 +33,13 @@ limitations under the License. import org.apache.royale.html.PopUpList; import org.apache.royale.utils.PointUtils; +private var packagesReady:Boolean = false; + private function packagesReadyHandler(event:Event):void { +packagesReady = true; // wait until package data is ready before updating initial view to any anchor hash - updateView(); + hashChanged(); } /** @@ -80,7 +83,15 @@ limitations under the License. private var findMember:String ; -private function updateView():void +private function paramsReady():void +{ +if (packagesReady) +updateView(efb.urlParameters); +else +clb.callLater(paramsReady); +} + +private function hashChanged():void { if (popUpList) { @@ -93,6 +104,11 @@ limitations under the License. hash = hash.substring(2); if (hash.charAt(0) == "#") hash = hash.substring(1); +updateView(hash); +} + +private function updateView(hash:String):void +{ if (!hash) currentState = "packages"; else @@ -121,12 +137,17 @@ limitations under the License. } } applicationModel.addEventListener("currentDataChanged", findMemberDetail); - classList.selectedItem = cls; + classList.selectedItem = cls; +var title:String = cls; +if (pkg.length > 1) +title += " (" + pkg + ")"; +router.title = title; classChangedHandler(); } else { packageList.selectedItem = hash; +router.title = hash; packageChangedHandler(); } } @@ -375,7 +396,8 @@ limitations under the License. - + + -- To stop receiving notification emails like this one, please contact aha...@apache.org.
[royale-asjs] 01/02: new beads to try to get search indexing to work
This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git commit 192a644942303b57a4807ba22dadd9dbca576500 Author: Alex HaruiAuthorDate: Fri Feb 23 21:41:09 2018 -0800 new beads to try to get search indexing to work --- .../Basic/src/main/resources/basic-manifest.xml| 3 + .../apache/royale/routing/EscapedFragmentBead.as | 95 ++ .../routing/HashChangeNotifierBeadWithTitle.as | 69 .../org/apache/royale/routing/URLParameterBead.as | 90 4 files changed, 257 insertions(+) diff --git a/frameworks/projects/Basic/src/main/resources/basic-manifest.xml b/frameworks/projects/Basic/src/main/resources/basic-manifest.xml index fb4429d..acc6606 100644 --- a/frameworks/projects/Basic/src/main/resources/basic-manifest.xml +++ b/frameworks/projects/Basic/src/main/resources/basic-manifest.xml @@ -214,5 +214,8 @@ + + + diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/EscapedFragmentBead.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/EscapedFragmentBead.as new file mode 100644 index 000..be22d5f --- /dev/null +++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/EscapedFragmentBead.as @@ -0,0 +1,95 @@ + +// +// Licensed to the Apache Software Foundation (ASF) under one or more +// contributor license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright ownership. +// The ASF licenses this file to You under the Apache License, Version 2.0 +// (the "License"); you may not use this file except in compliance with +// the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +package org.apache.royale.routing +{ +import org.apache.royale.core.IStrand; +import org.apache.royale.events.Event; + + /** +* The EscapedFragmentBead class handles a special URL parameter that + * Google Search Crawlers use to verify search results. This + * technique is deprecated so use of this bead should be + * obsolete by 2nd quarter 2018. +* +* @langversion 3.0 +* @playerversion Flash 10.2 +* @playerversion AIR 2.6 +* @productversion Royale 0.9 +*/ + + public class EscapedFragmentBead extends URLParameterBead + { + /** +* constructor. +* +* @langversion 3.0 +* @playerversion Flash 10.2 +* @playerversion AIR 2.6 +* @productversion Royale 0.9 +*/ + public function EscapedFragmentBead() + { + } + +// supposedly, Google's crawler sends a hash bang fragment with this +// as the url param to verify that the page really did want the +// hash bang fragment indexed. If the contents returned is the same +// as the hash bang then the page is indexed. +// https://webmasters.googleblog.com/2017/12/rendering-ajax-crawling-pages.html +private static const token:String = "?_escaped_fragment_=" + + /** +* @copy org.apache.royale.core.IBead#strand +* +* @langversion 3.0 +* @playerversion Flash 10.2 +* @playerversion AIR 2.6 +* @productversion Royale 0.9 +*/ + override public function set strand(value:IStrand):void + { + _strand = value; +COMPILE::JS +{ +if (location.search.indexOf(token) != -1) +dispatchEvent(new Event("ready")); +} +COMPILE::SWF +{ +//TODO (aharui) SWF impl +} + } + + override public function get urlParameters():String + { + COMPILE::JS + { + var s:String = location.search; +var c:int = s.indexOf(token); +if (c != -1) +s = s.substring(c + token.length); +
[royale-asjs] branch develop updated (8345254 -> 07339fa)
This is an automated email from the ASF dual-hosted git repository. aharui pushed a change to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git. from 8345254 put up a loading screen while class data is loading. Fake some data for EventDispacher so ASDoc looks more complete. Fake a few methods to look like they exist on both platforms (which they do but our ASDoc doesn't process those external base classes) new 192a644 new beads to try to get search indexing to work new 07339fa more work to try to get search indexing to work 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: .../src/main/resources/royale-index-template.html | 1 + .../ASDoc/src/main/royale/ASDocMainView.mxml | 30 -- .../Basic/src/main/resources/basic-manifest.xml| 3 + ...hangeNotifierBead.as => EscapedFragmentBead.as} | 68 ++ .../routing/HashChangeNotifierBeadWithTitle.as | 48 --- ...shChangeNotifierBead.as => URLParameterBead.as} | 31 -- 6 files changed, 101 insertions(+), 80 deletions(-) copy frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/{HashChangeNotifierBead.as => EscapedFragmentBead.as} (53%) copy examples/royale/ASDoc/src/main/royale/AttributeRenderer.as => frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/HashChangeNotifierBeadWithTitle.as (67%) copy frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/{HashChangeNotifierBead.as => URLParameterBead.as} (76%) -- To stop receiving notification emails like this one, please contact aha...@apache.org.
[royale-asjs] 02/02: put up a loading screen while class data is loading. Fake some data for EventDispacher so ASDoc looks more complete. Fake a few methods to look like they exist on both platforms (
This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git commit 83452546ce80e37a5cb5291dd765b01bae3d61d6 Author: Alex HaruiAuthorDate: Fri Feb 23 18:17:42 2018 -0800 put up a loading screen while class data is loading. Fake some data for EventDispacher so ASDoc looks more complete. Fake a few methods to look like they exist on both platforms (which they do but our ASDoc doesn't process those external base classes) --- examples/royale/ASDoc/build.xml| 41 + .../apache/royale/events/EventDispatcher.swf.json | 51 ++ .../ASDoc/src/main/royale/ASDocMainView.mxml | 17 ++-- .../ASDoc/src/main/royale/EventDetailRenderer.mxml | 11 +++-- .../src/main/royale/EventSummaryRenderer.mxml | 11 +++-- .../src/main/royale/MethodDetailRenderer.mxml | 15 +-- .../src/main/royale/MethodSummaryRenderer.mxml | 15 +-- .../src/main/royale/PropertyDetailRenderer.mxml| 12 ++--- .../ASDoc/src/main/royale/models/ASDocModel.as | 4 ++ 9 files changed, 132 insertions(+), 45 deletions(-) diff --git a/examples/royale/ASDoc/build.xml b/examples/royale/ASDoc/build.xml index 19692a8..522ebf6 100644 --- a/examples/royale/ASDoc/build.xml +++ b/examples/royale/ASDoc/build.xml @@ -47,6 +47,26 @@ property="json.exists"/> + + + + + + + + + + + + + + + + + @@ -80,16 +100,6 @@ - - - - - - - - - - @@ -114,17 +124,6 @@ - - - - - - - - - - - diff --git a/examples/royale/ASDoc/src/main/json/org/apache/royale/events/EventDispatcher.swf.json b/examples/royale/ASDoc/src/main/json/org/apache/royale/events/EventDispatcher.swf.json new file mode 100644 index 000..75e6db1 --- /dev/null +++ b/examples/royale/ASDoc/src/main/json/org/apache/royale/events/EventDispatcher.swf.json @@ -0,0 +1,51 @@ +{ "type": "class", + "qname": "org.apache.royale.events.EventDispatcher", + "baseClassname": "flash.events.EventDispatcher" + , +"description": "This class simply wraps flash.events.EventDispatcher so that no flash packages are needed on the JS side.", + "tags": [ + { "tagName": "playerversion", + "values": ["Flash 10.2", "AIR 2.6"]}, + { "tagName": "productversion", + "values": ["Royale 0.0"]}, + { "tagName": "langversion", + "values": ["3.0"]} ], + "members": [ + { "type": "method", +"qname": "org.apache.royale.events.EventDispatcher", +"namespace": "", +"bindable": [], +"details": [], +"deprecated": {}, + "description": "Constructor.", +"tags": [ +{ "tagName": "playerversion", + "values": ["Flash 10.2", "AIR 2.6"]}, +{ "tagName": "productversion", + "values": ["Royale 0.0"]}, +{ "tagName": "langversion", + "values": ["3.0"]} ], + "return": "", + "params": [{ "name": "target", "type": "org.apache.royale.events.IEventDispatcher"}]} + , + { "type": "method", +"qname": "addEventListener", +"namespace": "public", +"bindable": [], +"details": [], +"deprecated": {}, + "description": "Adds an event listener.", + "return": "void", + "params": [{ "name": "type", "type": "String"},{ "name": "handler", "type": "Function"},{ "name": "capture", "type": "Boolean"}]} + , + { "type": "method", +"qname": "removeEventListener", +"namespace": "public", +"bindable": [], +"details": [], +"deprecated": {}, + "description": "Removes an event listener.", + "return": "void", + "params": [{ "name": "type", "type": "String"},{ "name": "handler", "type": "Function"},{ "name": "capture", "type": "Boolean"}]} + ] + } diff --git a/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml b/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml index f560e45..83d8630 100644 --- a/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml +++ b/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml @@ -63,7 +63,7 @@ limitations under the License. private function classChangedHandler():void { - currentState = "classDetail"; +currentState = "loading";
[royale-asjs] branch develop updated (62fbd92 -> 8345254)
This is an automated email from the ASF dual-hosted git repository. aharui pushed a change to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git. from 62fbd92 use BasicTheme in examples that need it (not MDL, for example) new 16f0b2a get api lists from both swf and js. swf-only shows up as red, js-only as green, if available on both platforms, is black or anchor-visited color new 8345254 put up a loading screen while class data is loading. Fake some data for EventDispacher so ASDoc looks more complete. Fake a few methods to look like they exist on both platforms (which they do but our ASDoc doesn't process those external base classes) 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: examples/royale/ASDoc/build.xml| 51 +++--- .../apache/royale/events/EventDispatcher.swf.json | 51 ++ .../{ASDocClassAttribute.as => ASDocClassData.as} | 31 ++-- .../ASDoc/src/main/royale/ASDocClassEvents.as | 11 ++ .../ASDoc/src/main/royale/ASDocMainView.mxml | 24 ++- .../ASDoc/src/main/royale/EventDetailRenderer.mxml | 7 + .../src/main/royale/EventSummaryRenderer.mxml | 7 + .../src/main/royale/MethodDetailRenderer.mxml | 11 ++ .../src/main/royale/MethodSummaryRenderer.mxml | 11 ++ .../src/main/royale/PropertyDetailRenderer.mxml| 7 + .../ASDoc/src/main/royale/SummaryRenderer.mxml | 7 + .../ASDoc/src/main/royale/models/ASDocModel.as | 201 ++--- 12 files changed, 359 insertions(+), 60 deletions(-) create mode 100644 examples/royale/ASDoc/src/main/json/org/apache/royale/events/EventDispatcher.swf.json copy examples/royale/ASDoc/src/main/royale/{ASDocClassAttribute.as => ASDocClassData.as} (68%) -- To stop receiving notification emails like this one, please contact aha...@apache.org.
[royale-compiler] branch develop updated: per platform json output
This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-compiler.git The following commit(s) were added to refs/heads/develop by this push: new e179dae per platform json output e179dae is described below commit e179daeb2d33793021830ec5529558bd12a3f1bc Author: Alex HaruiAuthorDate: Fri Feb 23 16:53:18 2018 -0800 per platform json output --- .../apache/royale/compiler/clients/ASDOCJSC.java | 16 -- .../codegen/js/royale/JSRoyaleASDocEmitter.java| 25 +- 2 files changed, 34 insertions(+), 7 deletions(-) diff --git a/compiler-jx/src/main/java/org/apache/royale/compiler/clients/ASDOCJSC.java b/compiler-jx/src/main/java/org/apache/royale/compiler/clients/ASDOCJSC.java index c4a78e9..d8c4601 100644 --- a/compiler-jx/src/main/java/org/apache/royale/compiler/clients/ASDOCJSC.java +++ b/compiler-jx/src/main/java/org/apache/royale/compiler/clients/ASDOCJSC.java @@ -27,6 +27,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.Collection; import java.util.List; +import java.util.Map; import java.util.Set; import org.apache.commons.io.FilenameUtils; import org.apache.royale.compiler.clients.problems.ProblemQuery; @@ -211,7 +212,16 @@ public class ASDOCJSC extends MXMLJSCRoyale if (errors.size() > 0) return false; } - + + Map defs = config.getCompilerDefine(); + String swf = defs.get("COMPILE::SWF"); + if (swf != null) + { + if (swf.equals("true")) + middle = ".swf"; + else + middle = ".js"; + } String outputFolderName = getOutputFilePath(); File outputFolder = null; @@ -359,6 +369,8 @@ public class ASDOCJSC extends MXMLJSCRoyale } } +String middle = ""; + /** * Get the output class file. This includes the (sub)directory in which the * original class file lives. If the directory structure doesn't exist, it @@ -387,7 +399,7 @@ public class ASDOCJSC extends MXMLJSCRoyale qname = cname[cname.length - 1]; } -return new File(sdirPath + qname + "." + project.getBackend().getOutputExtension()); +return new File(sdirPath + qname + middle + "." + project.getBackend().getOutputExtension()); } /** diff --git a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/royale/JSRoyaleASDocEmitter.java b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/royale/JSRoyaleASDocEmitter.java index 44befd2..d8a3d84 100644 --- a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/royale/JSRoyaleASDocEmitter.java +++ b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/royale/JSRoyaleASDocEmitter.java @@ -795,10 +795,25 @@ public class JSRoyaleASDocEmitter extends JSGoogEmitter implements IJSRoyaleEmit return description.substring(0, c + 1); return description; } + +private String getMiddle(RoyaleASDocProject project) +{ + Map defs = project.config.getCompilerDefine(); + String swf = defs.get("COMPILE::SWF"); + String middle = ""; + if (swf != null) + { + if (swf.equals("true")) + middle = ".swf"; + else + middle = ".js"; + } + return middle; +} public void outputIndex(File outputFolder, RoyaleASDocProject project) throws IOException { - final File indexFile = new File(outputFolder, "index.json"); + final File indexFile = new File(outputFolder, "index" + getMiddle(project) + ".json"); FileWriter out = new FileWriter(indexFile); out.write("{ \"index\": ["); System.out.println("Compiling file: " + indexFile); @@ -991,7 +1006,7 @@ public class JSRoyaleASDocEmitter extends JSGoogEmitter implements IJSRoyaleEmit public void outputClasses(File outputFolder, RoyaleASDocProject project) throws IOException { - final File indexFile = new File(outputFolder, "classes.json"); + final File indexFile = new File(outputFolder, "classes" + getMiddle(project) + ".json"); FileWriter out = new FileWriter(indexFile); out.write("{ \"classes\": ["); System.out.println("Compiling file: " + indexFile); @@ -1051,7 +1066,7 @@ public class JSRoyaleASDocEmitter extends JSGoogEmitter implements IJSRoyaleEmit e.printStackTrace(); } - final File listFile = new
[royale-compiler.wiki] branch master updated: Added Eclipse instructions
This is an automated email from the ASF dual-hosted git repository. harbs pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/royale-compiler.wiki.git The following commit(s) were added to refs/heads/master by this push: new 21be1c0 Added Eclipse instructions 21be1c0 is described below commit 21be1c07839a27a69f72f6c697982a9b9f7363f1 Author: HarbsAuthorDate: Fri Feb 23 10:44:49 2018 +0200 Added Eclipse instructions --- Eclipse-Setup.md | 14 ++ _Sidebar.md | 2 ++ 2 files changed, 16 insertions(+) diff --git a/Eclipse-Setup.md b/Eclipse-Setup.md new file mode 100644 index 000..9b7b420 --- /dev/null +++ b/Eclipse-Setup.md @@ -0,0 +1,14 @@ +## Eclipse Setup + +Setup of the royale-compiler project in Eclipse should be pretty straight-forward. There are 5 Eclipse projects which have dependencies on each other and they should all be imported into Eclipse: +1. `compiler` +2. `compiler-common` +3. `compiler-externc` +4. `compiler-jx` +5. `compiler-test-utils` + +Aditonally, there is a classpath variable used in the `compiler` project which references `ANT_JAR`. A class path variable named `ANT_JAR` should be created in the Eclipse preferences which should reference the file named `ant.jar` located in the ant distribution on your computer. + +### Setup Debug Configurations + +*TO DO* \ No newline at end of file diff --git a/_Sidebar.md b/_Sidebar.md index 5d9a5dc..defcb7c 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -1,5 +1,7 @@ [Home](https://github.com/apache/royale-asjs/wiki) +## Debug Environment Setup +- [Eclipse](Eclipse-Setup) ## RELEASE_NOTES Updates - [0.9.1](Release-Notes-0.9.1) - [0.9.0](Release-Notes-0.9.0) -- To stop receiving notification emails like this one, please contact ha...@apache.org.
[royale-asjs] 01/01: Merge branch 'develop' into feature/vivid-ui-set
This is an automated email from the ASF dual-hosted git repository. piotrz pushed a commit to branch feature/vivid-ui-set in repository https://gitbox.apache.org/repos/asf/royale-asjs.git commit 55b307f92f21589c0bcd038b4b685a7abedb68bd Merge: 8d9b616 5db5c2c Author: Piotr ZarzyckiAuthorDate: Fri Feb 23 09:17:34 2018 +0100 Merge branch 'develop' into feature/vivid-ui-set .../ASDoc/src/main/royale/ASDocMainView.mxml | 19 .../ASDoc/src/main/royale/models/ASDocModel.as | 2 +- examples/royale/MDLDynamicTabsExample/build.xml| 55 ++ .../src/main/config/compile-app-config.xml | 25 ++ .../royale/RoyaleStore/src/main/royale/beige.css | 16 +-- .../royale/RoyaleStore/src/main/royale/main.css| 10 ++-- .../src/main/royale/productsView/ProductList.mxml | 15 ++ .../main/royale/productsView/ProductListItem.mxml | 4 ++ .../samples/royalestore/ProductFilterEvent.as | 7 +++ .../royale/samples/royalestore/ProductListEvent.as | 3 ++ .../samples/royalestore/ProductThumbEvent.as | 3 ++ .../Basic/src/main/resources/basic-manifest.xml| 1 + .../projects/Basic/src/main/resources/defaults.css | 10 ++-- .../org/apache/royale/core/DataContainerBase.as| 12 - .../main/royale/org/apache/royale/core/UIBase.as | 30 +++- .../main/royale/org/apache/royale/html/Alert.as| 2 +- .../royale/org/apache/royale/html/CSSCheckBox.as | 1 - .../main/royale/org/apache/royale/html/CheckBox.as | 3 +- .../main/royale/org/apache/royale/html/ComboBox.as | 2 +- .../royale/org/apache/royale/html/ControlBar.as| 2 +- .../main/royale/org/apache/royale/html/DataGrid.as | 2 +- .../org/apache/royale/html/DataGridButtonBar.as| 2 +- .../royale/html/DataGridButtonBarTextButton.as | 3 +- .../royale/org/apache/royale/html/DateField.as | 2 +- .../main/royale/org/apache/royale/html/Group.as| 1 + .../main/royale/org/apache/royale/html/HTMLText.as | 1 - .../main/royale/org/apache/royale/html/Image.as| 1 - .../main/royale/org/apache/royale/html/Label.as| 3 +- .../src/main/royale/org/apache/royale/html/List.as | 16 +-- .../org/apache/royale/html/MultilineLabel.as | 1 + .../main/royale/org/apache/royale/html/Panel.as| 2 +- .../html/{DataGridButtonBar.as => PopUpList.as}| 24 +- .../royale/org/apache/royale/html/RangeStepper.as | 2 +- .../royale/org/apache/royale/html/SimpleAlert.as | 2 +- .../royale/org/apache/royale/html/SimpleList.as| 2 +- .../main/royale/org/apache/royale/html/Slider.as | 3 +- .../main/royale/org/apache/royale/html/Spinner.as | 2 +- .../main/royale/org/apache/royale/html/Table.as| 2 +- .../royale/org/apache/royale/html/TableCell.as | 2 +- .../royale/org/apache/royale/html/TableHeader.as | 2 +- .../main/royale/org/apache/royale/html/TableRow.as | 2 +- .../main/royale/org/apache/royale/html/TextArea.as | 1 - .../royale/org/apache/royale/html/TextButton.as| 1 - .../royale/org/apache/royale/html/TextInput.as | 1 - .../main/royale/org/apache/royale/html/TitleBar.as | 2 +- .../main/royale/org/apache/royale/html/ToolTip.as | 3 +- .../src/main/royale/org/apache/royale/html/Tree.as | 2 +- .../main/royale/org/apache/royale/html/TreeGrid.as | 2 +- .../royale/utils/loadBeadFromValuesManager.as | 13 - .../main/royale/org/apache/royale/effects/Fade.as | 8 ++-- .../main/royale/org/apache/royale/effects/Move.as | 8 ++-- .../royale/org/apache/royale/effects/Resize.as | 8 ++-- .../main/royale/org/apache/royale/effects/Wipe.as | 8 ++-- .../royale/org/apache/royale/express/MXMLViewer.as | 1 - .../src/main/resources/defaults.css| 7 +++ .../royale/org/apache/royale/mobile/DatePicker.as | 2 +- .../royale/org/apache/royale/mobile/ManagerBase.as | 2 +- .../org/apache/royale/mobile/StackedViewManager.as | 2 +- .../org/apache/royale/mobile/TabbedViewManager.as | 2 +- .../apache/royale/mobile/chrome/NavigationBar.as | 2 +- .../org/apache/royale/mobile/chrome/TabBar.as | 2 +- .../org/apache/royale/mobile/chrome/ToolBar.as | 2 +- frameworks/themes/Basic/basic.css | 17 +++ 63 files changed, 265 insertions(+), 130 deletions(-) -- To stop receiving notification emails like this one, please contact pio...@apache.org.
[royale-compiler] 01/01: Merge branch 'develop' into feature/vivid-ui-set
This is an automated email from the ASF dual-hosted git repository. piotrz pushed a commit to branch feature/vivid-ui-set in repository https://gitbox.apache.org/repos/asf/royale-compiler.git commit c9ee8cfac204b5ab94730d47de9fc77a8f7174ec Merge: f0042b0 f19695e Author: Piotr ZarzyckiAuthorDate: Fri Feb 23 09:18:12 2018 +0100 Merge branch 'develop' into feature/vivid-ui-set .../internal/codegen/js/jx/AsIsEmitter.java| 13 + .../internal/codegen/js/jx/InterfaceEmitter.java | 17 +++ .../codegen/mxml/royale/MXMLRoyaleEmitter.java | 34 +- .../compiler/internal/graph/GoogDepsWriter.java| 17 +-- .../codegen/js/royale/TestRoyaleInterface.java | 4 +-- .../projects/overrides/interfaces/IA_result.js | 6 6 files changed, 80 insertions(+), 11 deletions(-) -- To stop receiving notification emails like this one, please contact pio...@apache.org.
[royale-compiler] branch feature/vivid-ui-set updated (f0042b0 -> c9ee8cf)
This is an automated email from the ASF dual-hosted git repository. piotrz pushed a change to branch feature/vivid-ui-set in repository https://gitbox.apache.org/repos/asf/royale-compiler.git. from f0042b0 add other CSS files found in SWCs add 1827a70 GCC says Object doesn't coerce to Function so we have to type cast it add e8c6a62 we've been outputting incorrect interfaces for a while now. This should fix it add bd774ec also for Class receiving a '*' type add 5ff4db6 clean up -remove-circulars so it doesn't result in warnings on top-level functions add f19695e handle static bindings in removecirculars new c9ee8cf Merge branch 'develop' into feature/vivid-ui-set The 1 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: .../internal/codegen/js/jx/AsIsEmitter.java| 13 + .../internal/codegen/js/jx/InterfaceEmitter.java | 17 +++ .../codegen/mxml/royale/MXMLRoyaleEmitter.java | 34 +- .../compiler/internal/graph/GoogDepsWriter.java| 17 +-- .../codegen/js/royale/TestRoyaleInterface.java | 4 +-- .../projects/overrides/interfaces/IA_result.js | 6 6 files changed, 80 insertions(+), 11 deletions(-) -- To stop receiving notification emails like this one, please contact pio...@apache.org.
[royale-asjs] branch feature/vivid-ui-set updated: Introduce RadioButton
This is an automated email from the ASF dual-hosted git repository. carlosrovira pushed a commit to branch feature/vivid-ui-set in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/feature/vivid-ui-set by this push: new f7d5356 Introduce RadioButton f7d5356 is described below commit f7d53565de98a5223ad19dd41ba592729329878f Author: Carlos RoviraAuthorDate: Fri Feb 23 20:26:03 2018 +0100 Introduce RadioButton --- .../src/main/royale/TextInputPlayGround.mxml | 2 + .../projects/Vivid/src/main/resources/defaults.css | 8 + .../Vivid/src/main/resources/vivid-manifest.xml| 1 + .../projects/Vivid/src/main/royale/VividClasses.as | 2 + .../royale/org/apache/royale/vivid/RadioButton.as | 107 .../apache/royale/vivid/beads/RadioButtonView.as | 286 + .../royale/vivid/supportClasses/RadioButtonIcon.as | 117 + 7 files changed, 523 insertions(+) diff --git a/examples/royale/VividExample/src/main/royale/TextInputPlayGround.mxml b/examples/royale/VividExample/src/main/royale/TextInputPlayGround.mxml index eced5aa..ae694cc 100644 --- a/examples/royale/VividExample/src/main/royale/TextInputPlayGround.mxml +++ b/examples/royale/VividExample/src/main/royale/TextInputPlayGround.mxml @@ -25,4 +25,6 @@ limitations under the License. + + diff --git a/frameworks/projects/Vivid/src/main/resources/defaults.css b/frameworks/projects/Vivid/src/main/resources/defaults.css index e4a792a..ee46fc1 100644 --- a/frameworks/projects/Vivid/src/main/resources/defaults.css +++ b/frameworks/projects/Vivid/src/main/resources/defaults.css @@ -83,4 +83,12 @@ Slider { iThumbView: ClassReference("org.apache.royale.vivid.beads.SliderThumbView"); iTrackView: ClassReference("org.apache.royale.vivid.beads.SliderTrackView"); } + + RadioButton + { + IBeadModel: ClassReference("org.apache.royale.html.beads.models.ValueToggleButtonModel"); + IBeadView: ClassReference("org.apache.royale.vivid.beads.RadioButtonView"); + /*font-size: 11px; + font-family: Arial;*/ + } } diff --git a/frameworks/projects/Vivid/src/main/resources/vivid-manifest.xml b/frameworks/projects/Vivid/src/main/resources/vivid-manifest.xml index 4c24222..6eebd31 100644 --- a/frameworks/projects/Vivid/src/main/resources/vivid-manifest.xml +++ b/frameworks/projects/Vivid/src/main/resources/vivid-manifest.xml @@ -25,5 +25,6 @@ + diff --git a/frameworks/projects/Vivid/src/main/royale/VividClasses.as b/frameworks/projects/Vivid/src/main/royale/VividClasses.as index a069ba8..e1dd9bb 100644 --- a/frameworks/projects/Vivid/src/main/royale/VividClasses.as +++ b/frameworks/projects/Vivid/src/main/royale/VividClasses.as @@ -33,6 +33,8 @@ package { import org.apache.royale.vivid.beads.SliderThumbView; SliderThumbView; import org.apache.royale.vivid.beads.SliderTrackView; SliderTrackView; + +import org.apache.royale.vivid.beads.RadioButtonView; RadioButtonView; } } diff --git a/frameworks/projects/Vivid/src/main/royale/org/apache/royale/vivid/RadioButton.as b/frameworks/projects/Vivid/src/main/royale/org/apache/royale/vivid/RadioButton.as new file mode 100644 index 000..c230519 --- /dev/null +++ b/frameworks/projects/Vivid/src/main/royale/org/apache/royale/vivid/RadioButton.as @@ -0,0 +1,107 @@ + +// +// Licensed to the Apache Software Foundation (ASF) under one or more +// contributor license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright ownership. +// The ASF licenses this file to You under the Apache License, Version 2.0 +// (the "License"); you may not use this file except in compliance with +// the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +package org.apache.royale.vivid +{ +import org.apache.royale.html.RadioButton; + +COMPILE::SWF +{ +import flash.display.DisplayObject; +} + +COMPILE::JS +{ +import org.apache.royale.core.WrappedHTMLElement; +import org.apache.royale.vivid.supportClasses.RadioButtonIcon; +import org.apache.royale.html.util.addElementToWrapper; +} + +
[royale-asjs] 02/02: use BasicTheme in examples that need it (not MDL, for example)
This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git commit 62fbd92fd6896d6b3503fa6927141e83b16c6eb6 Author: Alex HaruiAuthorDate: Fri Feb 23 11:48:15 2018 -0800 use BasicTheme in examples that need it (not MDL, for example) --- examples/royale/ASDoc/pom.xml| 7 +++ examples/royale/AccordionExample/pom.xml | 7 +++ examples/royale/AlertExample/pom.xml | 7 +++ examples/royale/ChartExample/pom.xml | 7 +++ examples/royale/CordovaCameraExample/pom.xml | 7 +++ examples/royale/CreateJSExample/pom.xml | 7 +++ examples/royale/DataBindingExample/pom.xml | 7 +++ examples/royale/DataBindingExampleWithFlexLayout/pom.xml | 7 +++ examples/royale/DataGridExample/pom.xml | 7 +++ examples/royale/DateControlsExample/pom.xml | 7 +++ examples/royale/DebuggingExample/pom.xml | 8 examples/royale/DesktopMap/pom.xml | 7 +++ examples/royale/DividedContainerExample/pom.xml | 7 +++ examples/royale/DragAndDropExample/pom.xml | 7 +++ examples/royale/Flex2Royale/pom.xml | 7 +++ examples/royale/HTMLElements/pom.xml | 7 +++ examples/royale/HelloWorld/pom.xml | 7 +++ examples/royale/JSON2ASVO/pom.xml| 7 +++ examples/royale/ListExample/pom.xml | 7 +++ examples/royale/MapSearch/pom.xml| 7 +++ examples/royale/MobileMap/pom.xml| 7 +++ examples/royale/MobileStocks/pom.xml | 7 +++ examples/royale/MobileTrader/pom.xml | 7 +++ examples/royale/ModuleExample/MainApp/pom.xml| 7 +++ examples/royale/ModuleExample/Module/pom.xml | 7 +++ examples/royale/RemoteObjectAMFTest/pom.xml | 7 +++ examples/royale/RoyaleStore/pom.xml | 7 +++ examples/royale/RoyaleStore_jquery/pom.xml | 7 +++ examples/royale/RoyaleWebsite/pom.xml| 7 +++ examples/royale/RoyaleWebsiteStatsViewer/pom.xml | 7 +++ examples/royale/StorageExample/pom.xml | 7 +++ examples/royale/StyleExample/pom.xml | 7 +++ examples/royale/TableExample/pom.xml | 7 +++ examples/royale/TeamPage/pom.xml | 7 +++ examples/royale/TodoListSampleApp/pom.xml| 7 +++ examples/royale/TreeExample/pom.xml | 7 +++ examples/royale/pom.xml | 10 +- 37 files changed, 258 insertions(+), 5 deletions(-) diff --git a/examples/royale/ASDoc/pom.xml b/examples/royale/ASDoc/pom.xml index 8eedb04..6146a56 100644 --- a/examples/royale/ASDoc/pom.xml +++ b/examples/royale/ASDoc/pom.xml @@ -75,6 +75,13 @@ swc js + + org.apache.royale.framework + BasicTheme + 0.9.2-SNAPSHOT + swc + theme + com.adobe.flash.framework diff --git a/examples/royale/AccordionExample/pom.xml b/examples/royale/AccordionExample/pom.xml index dcfe8aa..b7bd940 100644 --- a/examples/royale/AccordionExample/pom.xml +++ b/examples/royale/AccordionExample/pom.xml @@ -59,6 +59,13 @@ swc provided + + org.apache.royale.framework + BasicTheme + 0.9.2-SNAPSHOT + swc + theme + diff --git a/examples/royale/AlertExample/pom.xml b/examples/royale/AlertExample/pom.xml index f970fcc..4d20f02 100644 --- a/examples/royale/AlertExample/pom.xml +++ b/examples/royale/AlertExample/pom.xml @@ -76,6 +76,13 @@ swc provided + + org.apache.royale.framework + BasicTheme + 0.9.2-SNAPSHOT + swc + theme + diff --git a/examples/royale/ChartExample/pom.xml b/examples/royale/ChartExample/pom.xml index 4c079a5..2d72326 100644 --- a/examples/royale/ChartExample/pom.xml +++ b/examples/royale/ChartExample/pom.xml @@ -74,6 +74,13 @@ swc js + + org.apache.royale.framework + BasicTheme + 0.9.2-SNAPSHOT + swc + theme + diff --git a/examples/royale/CordovaCameraExample/pom.xml b/examples/royale/CordovaCameraExample/pom.xml index 1809ed7..8d4b64d 100644 --- a/examples/royale/CordovaCameraExample/pom.xml +++ b/examples/royale/CordovaCameraExample/pom.xml @@ -72,6 +72,13 @@ swc js + + org.apache.royale.framework + BasicTheme + 0.9.2-SNAPSHOT + swc + theme + diff --git
[royale-compiler] 01/02: add other CSS files found in SWCs
This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-compiler.git commit 183d5587625a8edaacb801d06aca5c7978dd834f Author: Alex HaruiAuthorDate: Sun Feb 18 21:56:16 2018 -0800 add other CSS files found in SWCs --- .../royale/compiler/internal/css/CSSManager.java | 20 1 file changed, 20 insertions(+) diff --git a/compiler/src/main/java/org/apache/royale/compiler/internal/css/CSSManager.java b/compiler/src/main/java/org/apache/royale/compiler/internal/css/CSSManager.java index a454e19..3b13a88 100644 --- a/compiler/src/main/java/org/apache/royale/compiler/internal/css/CSSManager.java +++ b/compiler/src/main/java/org/apache/royale/compiler/internal/css/CSSManager.java @@ -25,6 +25,7 @@ import java.io.File; import java.util.ArrayList; import java.util.Collection; import java.util.HashSet; +import java.util.Map; import java.util.Set; import org.apache.commons.io.FilenameUtils; @@ -46,6 +47,7 @@ import org.apache.royale.compiler.problems.CSSUnresolvedClassReferenceProblem; import org.apache.royale.compiler.problems.ICompilerProblem; import org.apache.royale.compiler.units.ICompilationUnit; import org.apache.royale.swc.ISWC; +import org.apache.royale.swc.ISWCFileEntry; import org.apache.royale.swc.ISWCManager; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableSet; @@ -258,6 +260,24 @@ public class CSSManager implements ICSSManager // Ignore theme file without a defaults CSS. if (css != null && css != CSSDocumentCache.EMPTY_CSS_DOCUMENT) builder.add(css); + +if ("swc".equalsIgnoreCase(extension)) +{ +final ISWC swc = swcManager.get(new File(themeFile.getPath())); +// add other css files. +Map files = swc.getFiles(); +Set fileNames = files.keySet(); +for (String fileName : fileNames) +{ + String suffix = FilenameUtils.getExtension(fileName); + if ("css".equalsIgnoreCase(suffix) && !fileName.contains("default")) + { +final CacheStoreKeyBase key = CSSDocumentCache.createKey(swc, fileName); +final ICSSDocument extracss = cssCache.get(key); +builder.add(extracss); + } +} +} } catch (CSSDocumentCache.ProblemParsingCSSRuntimeException cssError) { -- To stop receiving notification emails like this one, please contact aha...@apache.org.
[royale-compiler] branch develop updated (f19695e -> 8a1ddc8)
This is an automated email from the ASF dual-hosted git repository. aharui pushed a change to branch develop in repository https://gitbox.apache.org/repos/asf/royale-compiler.git. from f19695e handle static bindings in removecirculars new 183d558 add other CSS files found in SWCs new 8a1ddc8 support themes 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: .../royale/compiler/internal/css/CSSManager.java | 20 .../main/java/org/apache/royale/maven/BaseMojo.java | 2 +- .../src/main/resources/config/compile-app-config.xml | 2 ++ 3 files changed, 23 insertions(+), 1 deletion(-) -- To stop receiving notification emails like this one, please contact aha...@apache.org.
[royale-compiler] 02/02: support themes
This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-compiler.git commit 8a1ddc868429b61d18cfff3e1214e47bb56afdfc Author: Alex HaruiAuthorDate: Fri Feb 23 11:01:49 2018 -0800 support themes --- royale-maven-plugin/src/main/java/org/apache/royale/maven/BaseMojo.java | 2 +- royale-maven-plugin/src/main/resources/config/compile-app-config.xml| 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/royale-maven-plugin/src/main/java/org/apache/royale/maven/BaseMojo.java b/royale-maven-plugin/src/main/java/org/apache/royale/maven/BaseMojo.java index 20a9a04..74af100 100644 --- a/royale-maven-plugin/src/main/java/org/apache/royale/maven/BaseMojo.java +++ b/royale-maven-plugin/src/main/java/org/apache/royale/maven/BaseMojo.java @@ -397,7 +397,7 @@ public abstract class BaseMojo private List internalGetLibraries(List artifacts) { List libraries = new LinkedList(); for (Artifact artifact : artifacts) { -if (!("provided".equalsIgnoreCase(artifact.getScope()) || "runtime".equalsIgnoreCase(artifact.getScope())) +if (!("provided".equalsIgnoreCase(artifact.getScope()) || "runtime".equalsIgnoreCase(artifact.getScope()) || "theme".equalsIgnoreCase(artifact.getScope())) && includeLibrary(artifact)) { if(!"pom".equals(artifact.getType())) { libraries.add(artifact); diff --git a/royale-maven-plugin/src/main/resources/config/compile-app-config.xml b/royale-maven-plugin/src/main/resources/config/compile-app-config.xml index a264b7e..ea275ed 100644 --- a/royale-maven-plugin/src/main/resources/config/compile-app-config.xml +++ b/royale-maven-plugin/src/main/resources/config/compile-app-config.xml @@ -178,6 +178,8 @@ +#foreach($theme in $themeLibraries) $theme.file +#end -- To stop receiving notification emails like this one, please contact aha...@apache.org.
[royale-compiler] branch develop updated: the def is the type not the declaration so its bindability doesn't matter
This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-compiler.git The following commit(s) were added to refs/heads/develop by this push: new d9faf61 the def is the type not the declaration so its bindability doesn't matter d9faf61 is described below commit d9faf61217093b638ff8c346ed9070101e41ebe2 Author: Alex HaruiAuthorDate: Fri Feb 23 11:49:41 2018 -0800 the def is the type not the declaration so its bindability doesn't matter --- .../royale/compiler/internal/codegen/js/royale/JSRoyaleDocEmitter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/royale/JSRoyaleDocEmitter.java b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/royale/JSRoyaleDocEmitter.java index 362035b..71ecd89 100644 --- a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/royale/JSRoyaleDocEmitter.java +++ b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/royale/JSRoyaleDocEmitter.java @@ -437,7 +437,7 @@ public class JSRoyaleDocEmitter extends JSGoogDocEmitter if (tag != null) bindable = true; } -if (warnPublicVars && !node.isConst() && !(def.isBindable() || bindable)) +if (warnPublicVars && !node.isConst() && !bindable) { if (!suppressedWarning(node, fjp)) fjp.getProblems().add(new PublicVarWarningProblem(node)); -- To stop receiving notification emails like this one, please contact aha...@apache.org.
[royale-asjs] 01/02: for Maven, basic.css becomes BasicTheme.swc
This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git commit a78edcb19f547809a362247dbe2eda48c70f4709 Author: Alex HaruiAuthorDate: Fri Feb 23 11:47:23 2018 -0800 for Maven, basic.css becomes BasicTheme.swc --- frameworks/pom.xml| 1 + frameworks/{ => themes/Basic}/pom.xml | 35 ++- frameworks/{ => themes}/pom.xml | 39 ++- 3 files changed, 60 insertions(+), 15 deletions(-) diff --git a/frameworks/pom.xml b/frameworks/pom.xml index 642bd56..c4b9134 100644 --- a/frameworks/pom.xml +++ b/frameworks/pom.xml @@ -35,6 +35,7 @@ fontsrc projects +themes diff --git a/frameworks/pom.xml b/frameworks/themes/Basic/pom.xml similarity index 63% copy from frameworks/pom.xml copy to frameworks/themes/Basic/pom.xml index 642bd56..5ea7c72 100644 --- a/frameworks/pom.xml +++ b/frameworks/themes/Basic/pom.xml @@ -22,19 +22,34 @@ org.apache.royale.framework -royale-framework-parent +themes 0.9.2-SNAPSHOT - frameworks + BasicTheme 0.9.2-SNAPSHOT - pom - - Apache Royale: Framework - - -fontsrc -projects - + swc + + Apache Royale: Framework: Themes: Basic + + +. + + +org.apache.royale.compiler +royale-maven-plugin +${royale.compiler.version} +true + + + + basic.css + ../basic.css + + + + + + diff --git a/frameworks/pom.xml b/frameworks/themes/pom.xml similarity index 52% copy from frameworks/pom.xml copy to frameworks/themes/pom.xml index 642bd56..33ba1d3 100644 --- a/frameworks/pom.xml +++ b/frameworks/themes/pom.xml @@ -22,19 +22,48 @@ org.apache.royale.framework -royale-framework-parent +frameworks 0.9.2-SNAPSHOT - frameworks + themes 0.9.2-SNAPSHOT pom - Apache Royale: Framework + Apache Royale: Framework: Themes -fontsrc -projects +Basic + + + com.adobe.air.framework + airglobal + ${air.version} + swc + provided + + + + org.apache.royale.typedefs + royale-typedefs-gcl + ${royale.typedefs.version} + swc + typedefs + + + + org.apache.royale.typedefs + royale-typedefs-js + ${royale.typedefs.version} + swc + typedefs + runtime + + -- To stop receiving notification emails like this one, please contact aha...@apache.org.
[royale-asjs] branch develop updated (5db5c2c -> 62fbd92)
This is an automated email from the ASF dual-hosted git repository. aharui pushed a change to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git. from 5db5c2c clean up warnings new a78edcb for Maven, basic.css becomes BasicTheme.swc new 62fbd92 use BasicTheme in examples that need it (not MDL, for example) 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: examples/royale/ASDoc/pom.xml | 7 + examples/royale/AccordionExample/pom.xml | 7 + examples/royale/AlertExample/pom.xml | 7 + examples/royale/ChartExample/pom.xml | 7 + examples/royale/CordovaCameraExample/pom.xml | 7 + examples/royale/CreateJSExample/pom.xml| 7 + examples/royale/DataBindingExample/pom.xml | 7 + .../DataBindingExampleWithFlexLayout/pom.xml | 7 + examples/royale/DataGridExample/pom.xml| 7 + examples/royale/DateControlsExample/pom.xml| 7 + examples/royale/DebuggingExample/pom.xml | 8 + examples/royale/DesktopMap/pom.xml | 7 + examples/royale/DividedContainerExample/pom.xml| 7 + examples/royale/DragAndDropExample/pom.xml | 7 + examples/royale/Flex2Royale/pom.xml| 7 + examples/royale/HTMLElements/pom.xml | 7 + examples/royale/HelloWorld/pom.xml | 7 + examples/royale/JSON2ASVO/pom.xml | 7 + examples/royale/ListExample/pom.xml| 7 + examples/royale/MapSearch/pom.xml | 7 + examples/royale/MobileMap/pom.xml | 7 + examples/royale/MobileStocks/pom.xml | 7 + examples/royale/MobileTrader/pom.xml | 7 + examples/royale/ModuleExample/MainApp/pom.xml | 7 + examples/royale/ModuleExample/Module/pom.xml | 7 + examples/royale/RemoteObjectAMFTest/pom.xml| 7 + examples/royale/RoyaleStore/pom.xml| 7 + examples/royale/RoyaleStore_jquery/pom.xml | 7 + examples/royale/RoyaleWebsite/pom.xml | 7 + examples/royale/RoyaleWebsiteStatsViewer/pom.xml | 7 + examples/royale/StorageExample/pom.xml | 7 + examples/royale/StyleExample/pom.xml | 7 + examples/royale/TableExample/pom.xml | 7 + examples/royale/TeamPage/pom.xml | 7 + examples/royale/TodoListSampleApp/pom.xml | 7 + examples/royale/TreeExample/pom.xml| 7 + examples/royale/pom.xml| 10 +++--- frameworks/pom.xml | 1 + .../{projects/Language => themes/Basic}/pom.xml| 18 ++- {examples/node => frameworks/themes}/pom.xml | 36 +- 40 files changed, 290 insertions(+), 28 deletions(-) copy frameworks/{projects/Language => themes/Basic}/pom.xml (81%) copy {examples/node => frameworks/themes}/pom.xml (77%) -- To stop receiving notification emails like this one, please contact aha...@apache.org.
[royale-asjs] 01/02: fresh branch with all vivid work, still not work
This is an automated email from the ASF dual-hosted git repository. carlosrovira pushed a commit to branch feature/vivid-ui-set in repository https://gitbox.apache.org/repos/asf/royale-asjs.git commit fc85819b00c8c98db8bbb04f6262f54a15a0c17f Author: Carlos RoviraAuthorDate: Tue Feb 20 21:04:59 2018 +0100 fresh branch with all vivid work, still not work --- examples/royale/VividExample/.vscode/launch.json | 21 +++ examples/royale/VividExample/.vscode/settings.json | 3 + examples/royale/VividExample/.vscode/tasks.json| 8 + examples/royale/VividExample/README.txt| 26 examples/royale/VividExample/asconfig.json | 31 examples/royale/VividExample/build.xml | 68 examples/royale/VividExample/pom.xml | 83 ++ .../src/main/config/compile-app-config.xml | 28 .../src/main/resources/vivid-example-styles.css| 25 +++ .../royale/VividExample/src/main/royale/App.mxml | 40 + .../src/main/royale/ButtonPlayGround.mxml | 42 + .../src/main/royale/TextInputPlayGround.mxml | 28 examples/royale/pom.xml| 1 + frameworks/projects/Vivid/.vscode/launch.json | 21 +++ frameworks/projects/Vivid/.vscode/settings.json| 3 + frameworks/projects/Vivid/.vscode/tasks.json | 8 + frameworks/projects/Vivid/asconfig.json| 34 frameworks/projects/Vivid/build.xml| 130 .../royale => frameworks/projects/Vivid}/pom.xml | 133 ++-- .../Vivid/src/main/config/compile-swf-config.xml | 105 + .../projects/Vivid/src/main/resources/defaults.css | 86 +++ .../Vivid/src/main/resources/vivid-as-manifest.xml | 25 +++ .../Vivid/src/main/resources/vivid-manifest.xml| 29 .../projects/Vivid/src/main/royale/VividClasses.as | 40 + .../royale/org/apache/royale/vivid/Application.as | 70 + .../main/royale/org/apache/royale/vivid/Slider.as | 72 + .../royale/org/apache/royale/vivid/TextButton.as | 63 .../royale/org/apache/royale/vivid/TextField.as| 115 ++ .../apache/royale/vivid/beads/SliderThumbView.as | 121 +++ .../apache/royale/vivid/beads/SliderTrackView.as | 121 +++ .../org/apache/royale/vivid/beads/SliderView.as| 172 + .../royale/vivid/supportClasses/ITextField.as | 68 .../royale/vivid/supportClasses/TextFieldBase.as | 154 ++ .../projects/VividBlueTheme/.vscode/launch.json| 21 +++ .../projects/VividBlueTheme/.vscode/settings.json | 3 + .../projects/VividBlueTheme/.vscode/tasks.json | 8 + frameworks/projects/VividBlueTheme/asconfig.json | 34 frameworks/projects/VividBlueTheme/build.xml | 133 frameworks/projects/VividBlueTheme/pom.xml | 66 .../src/main/config/compile-swf-config.xml | 91 +++ .../src/main/resources/TextField.css | 75 + .../VividBlueTheme/src/main/resources/defaults.css | 33 .../src/main/royale/VividBlueThemeClasses.as | 33 frameworks/projects/pom.xml| 2 + 44 files changed, 2385 insertions(+), 88 deletions(-) diff --git a/examples/royale/VividExample/.vscode/launch.json b/examples/royale/VividExample/.vscode/launch.json new file mode 100644 index 000..5dfb672 --- /dev/null +++ b/examples/royale/VividExample/.vscode/launch.json @@ -0,0 +1,21 @@ +{ +"version": "0.2.0", +"configurations": [ +{ +"name": "Launch Chrome against debug.html, with sourcemaps", +"type": "chrome", +"request": "launch", +"file": "${workspaceRoot}/target/javascript/bin/js-debug/index.html", +"sourceMaps": true, +"preLaunchTask": "mvn" +}, +{ +"name": "Launch Firefox against debug.html, with sourcemaps", +"type": "firefox", +"request": "launch", +"file": "${workspaceRoot}/target/javascript/bin/js-debug/index.html", +"sourceMaps": true, +"preLaunchTask": "mvn" +} +] +} diff --git a/examples/royale/VividExample/.vscode/settings.json b/examples/royale/VividExample/.vscode/settings.json new file mode 100644 index 000..1069e6c --- /dev/null +++ b/examples/royale/VividExample/.vscode/settings.json @@ -0,0 +1,3 @@ +{ +"nextgenas.sdk.framework": "/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-0.9.1" +} \ No newline at end of file diff --git a/examples/royale/VividExample/.vscode/tasks.json b/examples/royale/VividExample/.vscode/tasks.json new file mode 100644 index 000..5d6198d --- /dev/null +++ b/examples/royale/VividExample/.vscode/tasks.json @@ -0,0 +1,8 @@ +{ + // for the documentation about the tasks.json format + "version": "0.1.0",
[royale-asjs] 02/02: Introduce RadioButton
This is an automated email from the ASF dual-hosted git repository. carlosrovira pushed a commit to branch feature/vivid-ui-set in repository https://gitbox.apache.org/repos/asf/royale-asjs.git commit 05be98765c0d8e42b669d8d8526add6b78d02e72 Author: Carlos RoviraAuthorDate: Fri Feb 23 20:26:03 2018 +0100 Introduce RadioButton --- .../src/main/royale/TextInputPlayGround.mxml | 2 + .../projects/Vivid/src/main/resources/defaults.css | 8 + .../Vivid/src/main/resources/vivid-manifest.xml| 1 + .../projects/Vivid/src/main/royale/VividClasses.as | 2 + .../royale/org/apache/royale/vivid/RadioButton.as | 107 .../apache/royale/vivid/beads/RadioButtonView.as | 286 + .../royale/vivid/supportClasses/RadioButtonIcon.as | 117 + 7 files changed, 523 insertions(+) diff --git a/examples/royale/VividExample/src/main/royale/TextInputPlayGround.mxml b/examples/royale/VividExample/src/main/royale/TextInputPlayGround.mxml index eced5aa..ae694cc 100644 --- a/examples/royale/VividExample/src/main/royale/TextInputPlayGround.mxml +++ b/examples/royale/VividExample/src/main/royale/TextInputPlayGround.mxml @@ -25,4 +25,6 @@ limitations under the License. + + diff --git a/frameworks/projects/Vivid/src/main/resources/defaults.css b/frameworks/projects/Vivid/src/main/resources/defaults.css index e4a792a..ee46fc1 100644 --- a/frameworks/projects/Vivid/src/main/resources/defaults.css +++ b/frameworks/projects/Vivid/src/main/resources/defaults.css @@ -83,4 +83,12 @@ Slider { iThumbView: ClassReference("org.apache.royale.vivid.beads.SliderThumbView"); iTrackView: ClassReference("org.apache.royale.vivid.beads.SliderTrackView"); } + + RadioButton + { + IBeadModel: ClassReference("org.apache.royale.html.beads.models.ValueToggleButtonModel"); + IBeadView: ClassReference("org.apache.royale.vivid.beads.RadioButtonView"); + /*font-size: 11px; + font-family: Arial;*/ + } } diff --git a/frameworks/projects/Vivid/src/main/resources/vivid-manifest.xml b/frameworks/projects/Vivid/src/main/resources/vivid-manifest.xml index 4c24222..6eebd31 100644 --- a/frameworks/projects/Vivid/src/main/resources/vivid-manifest.xml +++ b/frameworks/projects/Vivid/src/main/resources/vivid-manifest.xml @@ -25,5 +25,6 @@ + diff --git a/frameworks/projects/Vivid/src/main/royale/VividClasses.as b/frameworks/projects/Vivid/src/main/royale/VividClasses.as index a069ba8..e1dd9bb 100644 --- a/frameworks/projects/Vivid/src/main/royale/VividClasses.as +++ b/frameworks/projects/Vivid/src/main/royale/VividClasses.as @@ -33,6 +33,8 @@ package { import org.apache.royale.vivid.beads.SliderThumbView; SliderThumbView; import org.apache.royale.vivid.beads.SliderTrackView; SliderTrackView; + +import org.apache.royale.vivid.beads.RadioButtonView; RadioButtonView; } } diff --git a/frameworks/projects/Vivid/src/main/royale/org/apache/royale/vivid/RadioButton.as b/frameworks/projects/Vivid/src/main/royale/org/apache/royale/vivid/RadioButton.as new file mode 100644 index 000..c230519 --- /dev/null +++ b/frameworks/projects/Vivid/src/main/royale/org/apache/royale/vivid/RadioButton.as @@ -0,0 +1,107 @@ + +// +// Licensed to the Apache Software Foundation (ASF) under one or more +// contributor license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright ownership. +// The ASF licenses this file to You under the Apache License, Version 2.0 +// (the "License"); you may not use this file except in compliance with +// the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +package org.apache.royale.vivid +{ +import org.apache.royale.html.RadioButton; + +COMPILE::SWF +{ +import flash.display.DisplayObject; +} + +COMPILE::JS +{ +import org.apache.royale.core.WrappedHTMLElement; +import org.apache.royale.vivid.supportClasses.RadioButtonIcon; +import org.apache.royale.html.util.addElementToWrapper; +} + +/** +* The RadioButton class is a component that displays a selectable Button. RadioButtons +* are typically used in groups, identified
[royale-asjs] branch feature/vivid-ui-set updated (f7d5356 -> 05be987)
This is an automated email from the ASF dual-hosted git repository. carlosrovira pushed a change to branch feature/vivid-ui-set in repository https://gitbox.apache.org/repos/asf/royale-asjs.git. discard f7d5356 Introduce RadioButton discard 55b307f Merge branch 'develop' into feature/vivid-ui-set discard 8d9b616 fresh branch with all vivid work, still not work add a78edcb for Maven, basic.css becomes BasicTheme.swc add 62fbd92 use BasicTheme in examples that need it (not MDL, for example) new fc85819 fresh branch with all vivid work, still not work new 05be987 Introduce RadioButton This update added new revisions after undoing existing revisions. That is to say, some revisions that were in the old version of the branch are not in the new version. This situation occurs when a user --force pushes a change and generates a repository containing something like this: * -- * -- B -- O -- O -- O (f7d5356) \ N -- N -- N refs/heads/feature/vivid-ui-set (05be987) You should already have received notification emails for all of the O revisions, and so the following emails describe only the N revisions from the common base, B. Any revisions marked "omit" are not gone; other references still refer to them. Any revisions marked "discard" are gone forever. 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: examples/royale/ASDoc/pom.xml | 7 + examples/royale/AccordionExample/pom.xml | 7 + examples/royale/AlertExample/pom.xml | 7 + examples/royale/ChartExample/pom.xml | 7 + examples/royale/CordovaCameraExample/pom.xml | 7 + examples/royale/CreateJSExample/pom.xml| 7 + examples/royale/DataBindingExample/pom.xml | 7 + .../DataBindingExampleWithFlexLayout/pom.xml | 7 + examples/royale/DataGridExample/pom.xml| 7 + examples/royale/DateControlsExample/pom.xml| 7 + examples/royale/DebuggingExample/pom.xml | 8 + examples/royale/DesktopMap/pom.xml | 7 + examples/royale/DividedContainerExample/pom.xml| 7 + examples/royale/DragAndDropExample/pom.xml | 7 + examples/royale/Flex2Royale/pom.xml| 7 + examples/royale/HTMLElements/pom.xml | 7 + examples/royale/HelloWorld/pom.xml | 7 + examples/royale/JSON2ASVO/pom.xml | 7 + examples/royale/ListExample/pom.xml| 7 + examples/royale/MapSearch/pom.xml | 7 + examples/royale/MobileMap/pom.xml | 7 + examples/royale/MobileStocks/pom.xml | 7 + examples/royale/MobileTrader/pom.xml | 7 + examples/royale/ModuleExample/MainApp/pom.xml | 7 + examples/royale/ModuleExample/Module/pom.xml | 7 + examples/royale/RemoteObjectAMFTest/pom.xml| 7 + examples/royale/RoyaleStore/pom.xml| 7 + examples/royale/RoyaleStore_jquery/pom.xml | 7 + examples/royale/RoyaleWebsite/pom.xml | 7 + examples/royale/RoyaleWebsiteStatsViewer/pom.xml | 7 + examples/royale/StorageExample/pom.xml | 7 + examples/royale/StyleExample/pom.xml | 7 + examples/royale/TableExample/pom.xml | 7 + examples/royale/TeamPage/pom.xml | 7 + examples/royale/TodoListSampleApp/pom.xml | 7 + examples/royale/TreeExample/pom.xml| 7 + examples/royale/pom.xml| 10 +++--- frameworks/pom.xml | 1 + .../{projects/Language => themes/Basic}/pom.xml| 18 ++- {examples/node => frameworks/themes}/pom.xml | 36 +- 40 files changed, 290 insertions(+), 28 deletions(-) copy frameworks/{projects/Language => themes/Basic}/pom.xml (81%) copy {examples/node => frameworks/themes}/pom.xml (77%) -- To stop receiving notification emails like this one, please contact carlosrov...@apache.org.
[royale-compiler] branch feature/vivid-ui-set updated (c9ee8cf -> d9faf61)
This is an automated email from the ASF dual-hosted git repository. carlosrovira pushed a change to branch feature/vivid-ui-set in repository https://gitbox.apache.org/repos/asf/royale-compiler.git. discard c9ee8cf Merge branch 'develop' into feature/vivid-ui-set discard f0042b0 add other CSS files found in SWCs add 183d558 add other CSS files found in SWCs add 8a1ddc8 support themes add d9faf61 the def is the type not the declaration so its bindability doesn't matter This update added new revisions after undoing existing revisions. That is to say, some revisions that were in the old version of the branch are not in the new version. This situation occurs when a user --force pushes a change and generates a repository containing something like this: * -- * -- B -- O -- O -- O (c9ee8cf) \ N -- N -- N refs/heads/feature/vivid-ui-set (d9faf61) You should already have received notification emails for all of the O revisions, and so the following emails describe only the N revisions from the common base, B. Any revisions marked "omit" are not gone; other references still refer to them. Any revisions marked "discard" are gone forever. No new revisions were added by this update. Summary of changes: .../royale/compiler/internal/codegen/js/royale/JSRoyaleDocEmitter.java | 2 +- royale-maven-plugin/src/main/java/org/apache/royale/maven/BaseMojo.java | 2 +- royale-maven-plugin/src/main/resources/config/compile-app-config.xml| 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) -- To stop receiving notification emails like this one, please contact carlosrov...@apache.org.
[royale-compiler.wiki] branch master updated: Updated _Sidebar (markdown)
This is an automated email from the ASF dual-hosted git repository. harbs pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/royale-compiler.wiki.git The following commit(s) were added to refs/heads/master by this push: new 91446b1 Updated _Sidebar (markdown) 91446b1 is described below commit 91446b14977a82b667a4ff73194507bf823d305c Author: HarbsAuthorDate: Fri Feb 23 16:00:19 2018 +0200 Updated _Sidebar (markdown) --- _Sidebar.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_Sidebar.md b/_Sidebar.md index defcb7c..076aee4 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -1,6 +1,6 @@ [Home](https://github.com/apache/royale-asjs/wiki) -## Debug Environment Setup +## Debug Env. Setup - [Eclipse](Eclipse-Setup) ## RELEASE_NOTES Updates - [0.9.1](Release-Notes-0.9.1) -- To stop receiving notification emails like this one, please contact ha...@apache.org.