You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ha...@apache.org on 2017/11/09 15:50:35 UTC
[royale-asjs] branch develop updated: Removed live compiler
warnings in VS Code
This is an automated email from the ASF dual-hosted git repository.
harbs pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new 71cae47 Removed live compiler warnings in VS Code
71cae47 is described below
commit 71cae47dd550d7d7efd88d4b81ec24c6f6ca0835
Author: Harbs <ha...@in-tools.com>
AuthorDate: Thu Nov 9 17:50:29 2017 +0200
Removed live compiler warnings in VS Code
---
frameworks/projects/Core/asconfig.json | 3 ++
frameworks/projects/DragDrop/asconfig.json | 47 ++++++++++++++--------
frameworks/projects/Effects/asconfig.json | 47 ++++++++++++++--------
frameworks/projects/Express/asconfig.json | 47 ++++++++++++++--------
frameworks/projects/FontAwesome/asconfig.json | 47 ++++++++++++++--------
frameworks/projects/Language/asconfig.json | 1 -
.../projects/MaterialDesignLite/asconfig.json | 4 +-
.../royale/mdl/beads/views/SliderThumbView.as | 9 +++--
.../royale/mdl/beads/views/SliderTrackView.as | 9 +++--
frameworks/projects/Mobile/asconfig.json | 7 +++-
frameworks/projects/Storage/asconfig.json | 3 ++
frameworks/projects/TLF/asconfig.json | 4 +-
.../royale/textLayout/accessibility/TextAccImpl.as | 11 +++--
frameworks/projects/asconfig.json | 3 ++
14 files changed, 157 insertions(+), 85 deletions(-)
diff --git a/frameworks/projects/Core/asconfig.json b/frameworks/projects/Core/asconfig.json
index b5008b2..1451ad3 100644
--- a/frameworks/projects/Core/asconfig.json
+++ b/frameworks/projects/Core/asconfig.json
@@ -23,6 +23,9 @@
"SWF",
"JSRoyale"
],
+ "external-library-path": [
+ "../../../../frameworks/libs/air/airglobal.swc"
+ ],
"include-classes": [
"CoreClasses"
],
diff --git a/frameworks/projects/DragDrop/asconfig.json b/frameworks/projects/DragDrop/asconfig.json
index 637f9b0..17b5d69 100644
--- a/frameworks/projects/DragDrop/asconfig.json
+++ b/frameworks/projects/DragDrop/asconfig.json
@@ -1,21 +1,34 @@
-{
+/*
+ * 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.
+ */
+ {
"config": "royale",
+ "type": "lib",
"compilerOptions": {
"debug": true,
- "js-output-type": "royale",
- "define": [
- {
- "name": "COMPILE::SWF",
- "value": true
- },
- {
- "name": "COMPILE::JS",
- "value": false
- }
- ]
- },
- "files":
- [
- "src/main/royale/DragDropClasses.as"
- ]
+ "targets": [
+ "SWF",
+ "JSRoyale"
+ ],
+ "include-classes": [
+ "DragDropClasses"
+ ],
+ "include-sources": [
+ "src/main/royale"
+ ],
+ "output": "target/DragDrop.swc"
+ }
}
diff --git a/frameworks/projects/Effects/asconfig.json b/frameworks/projects/Effects/asconfig.json
index c9bce67..2aa8008 100644
--- a/frameworks/projects/Effects/asconfig.json
+++ b/frameworks/projects/Effects/asconfig.json
@@ -1,21 +1,34 @@
-{
+/*
+ * 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.
+ */
+ {
"config": "royale",
+ "type": "lib",
"compilerOptions": {
"debug": true,
- "js-output-type": "royale",
- "define": [
- {
- "name": "COMPILE::SWF",
- "value": true
- },
- {
- "name": "COMPILE::JS",
- "value": false
- }
- ]
- },
- "files":
- [
- "src/main/royale/EffectsClasses.as"
- ]
+ "targets": [
+ "SWF",
+ "JSRoyale"
+ ],
+ "include-classes": [
+ "EffectsClasses"
+ ],
+ "include-sources": [
+ "src/main/royale"
+ ],
+ "output": "target/Effects.swc"
+ }
}
diff --git a/frameworks/projects/Express/asconfig.json b/frameworks/projects/Express/asconfig.json
index b4bff8f..6934600 100644
--- a/frameworks/projects/Express/asconfig.json
+++ b/frameworks/projects/Express/asconfig.json
@@ -1,21 +1,34 @@
-{
+/*
+ * 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.
+ */
+ {
"config": "royale",
+ "type": "lib",
"compilerOptions": {
"debug": true,
- "js-output-type": "royale",
- "define": [
- {
- "name": "COMPILE::SWF",
- "value": true
- },
- {
- "name": "COMPILE::JS",
- "value": false
- }
- ]
- },
- "files":
- [
- "src/main/royale/ExpressClasses.as"
- ]
+ "targets": [
+ "SWF",
+ "JSRoyale"
+ ],
+ "include-classes": [
+ "ExpressClasses"
+ ],
+ "include-sources": [
+ "src/main/royale"
+ ],
+ "output": "target/Express.swc"
+ }
}
diff --git a/frameworks/projects/FontAwesome/asconfig.json b/frameworks/projects/FontAwesome/asconfig.json
index c9f306e..c7ab25c 100644
--- a/frameworks/projects/FontAwesome/asconfig.json
+++ b/frameworks/projects/FontAwesome/asconfig.json
@@ -1,21 +1,34 @@
-{
+/*
+ * 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.
+ */
+ {
"config": "royale",
+ "type": "lib",
"compilerOptions": {
"debug": true,
- "js-output-type": "royale",
- "define": [
- {
- "name": "COMPILE::SWF",
- "value": true
- },
- {
- "name": "COMPILE::JS",
- "value": false
- }
- ]
- },
- "files":
- [
- "src/main/royale/FAClasses.as"
- ]
+ "targets": [
+ "SWF",
+ "JSRoyale"
+ ],
+ "include-classes": [
+ "FAClasses"
+ ],
+ "include-sources": [
+ "src/main/royale"
+ ],
+ "output": "target/FontAwesome.swc"
+ }
}
diff --git a/frameworks/projects/Language/asconfig.json b/frameworks/projects/Language/asconfig.json
index 4e77635..aa08119 100644
--- a/frameworks/projects/Language/asconfig.json
+++ b/frameworks/projects/Language/asconfig.json
@@ -20,7 +20,6 @@
"compilerOptions": {
"debug": true,
"targets": [
- "SWF",
"JSRoyale"
],
"include-classes": [
diff --git a/frameworks/projects/MaterialDesignLite/asconfig.json b/frameworks/projects/MaterialDesignLite/asconfig.json
index a740af3..7fc0f9c 100644
--- a/frameworks/projects/MaterialDesignLite/asconfig.json
+++ b/frameworks/projects/MaterialDesignLite/asconfig.json
@@ -20,8 +20,8 @@
"compilerOptions": {
"debug": true,
"targets": [
- "SWF",
- "JSRoyale"
+ "JSRoyale",
+ "SWF"
],
"include-classes": [
"MDLClasses"
diff --git a/frameworks/projects/MaterialDesignLite/src/main/royale/org/apache/royale/mdl/beads/views/SliderThumbView.as b/frameworks/projects/MaterialDesignLite/src/main/royale/org/apache/royale/mdl/beads/views/SliderThumbView.as
index 32dda94..232d663 100644
--- a/frameworks/projects/MaterialDesignLite/src/main/royale/org/apache/royale/mdl/beads/views/SliderThumbView.as
+++ b/frameworks/projects/MaterialDesignLite/src/main/royale/org/apache/royale/mdl/beads/views/SliderThumbView.as
@@ -18,9 +18,11 @@
////////////////////////////////////////////////////////////////////////////////
package org.apache.royale.mdl.beads.views
{
- import flash.display.Graphics;
- import flash.display.Shape;
- import flash.display.SimpleButton;
+ COMPILE::SWF{
+ import flash.display.Graphics;
+ import flash.display.Shape;
+ import flash.display.SimpleButton;
+ }
import org.apache.royale.core.BeadViewBase;
import org.apache.royale.core.IBeadView;
@@ -39,6 +41,7 @@ package org.apache.royale.mdl.beads.views
* @playerversion AIR 2.6
* @productversion Royale 0.8
*/
+ COMPILE::SWF
public class SliderThumbView extends BeadViewBase implements IBeadView
{
/**
diff --git a/frameworks/projects/MaterialDesignLite/src/main/royale/org/apache/royale/mdl/beads/views/SliderTrackView.as b/frameworks/projects/MaterialDesignLite/src/main/royale/org/apache/royale/mdl/beads/views/SliderTrackView.as
index 7101f0d..9851486 100644
--- a/frameworks/projects/MaterialDesignLite/src/main/royale/org/apache/royale/mdl/beads/views/SliderTrackView.as
+++ b/frameworks/projects/MaterialDesignLite/src/main/royale/org/apache/royale/mdl/beads/views/SliderTrackView.as
@@ -18,9 +18,11 @@
////////////////////////////////////////////////////////////////////////////////
package org.apache.royale.mdl.beads.views
{
- import flash.display.Graphics;
- import flash.display.Shape;
- import flash.display.SimpleButton;
+ COMPILE::SWF{
+ import flash.display.Graphics;
+ import flash.display.Shape;
+ import flash.display.SimpleButton;
+ }
import org.apache.royale.core.BeadViewBase;
import org.apache.royale.core.IBeadView;
@@ -39,6 +41,7 @@ package org.apache.royale.mdl.beads.views
* @playerversion AIR 2.6
* @productversion Royale 0.8
*/
+ COMPILE::SWF
public class SliderTrackView extends BeadViewBase implements IBeadView
{
/**
diff --git a/frameworks/projects/Mobile/asconfig.json b/frameworks/projects/Mobile/asconfig.json
index 0e67ad2..478b69c 100644
--- a/frameworks/projects/Mobile/asconfig.json
+++ b/frameworks/projects/Mobile/asconfig.json
@@ -23,9 +23,12 @@
"SWF",
"JSRoyale"
],
+ "external-library-path": [
+ "../../../../frameworks/libs/air/airglobal.swc"
+ ],
"include-classes": [
- "MobileClasses",
- "CordovaClasses"
+ "MobileClasses",
+ "CordovaClasses"
],
"include-sources": [
"src/main/royale"
diff --git a/frameworks/projects/Storage/asconfig.json b/frameworks/projects/Storage/asconfig.json
index 2004172..ab55f78 100644
--- a/frameworks/projects/Storage/asconfig.json
+++ b/frameworks/projects/Storage/asconfig.json
@@ -29,6 +29,9 @@
"include-sources": [
"src/main/royale"
],
+ "external-library-path": [
+ "../../../../frameworks/libs/air/airglobal.swc"
+ ],
"output": "target/Storage.swc"
}
}
diff --git a/frameworks/projects/TLF/asconfig.json b/frameworks/projects/TLF/asconfig.json
index 7d63f02..102a22b 100644
--- a/frameworks/projects/TLF/asconfig.json
+++ b/frameworks/projects/TLF/asconfig.json
@@ -30,8 +30,8 @@
}
],
"targets": [
- "SWF",
- "JSRoyale"
+ "JSRoyale",
+ "SWF"
],
"include-classes": [
"TLFClasses"
diff --git a/frameworks/projects/TLF/src/main/royale/org/apache/royale/textLayout/accessibility/TextAccImpl.as b/frameworks/projects/TLF/src/main/royale/org/apache/royale/textLayout/accessibility/TextAccImpl.as
index 65e9be8..2b79759 100644
--- a/frameworks/projects/TLF/src/main/royale/org/apache/royale/textLayout/accessibility/TextAccImpl.as
+++ b/frameworks/projects/TLF/src/main/royale/org/apache/royale/textLayout/accessibility/TextAccImpl.as
@@ -18,10 +18,12 @@
////////////////////////////////////////////////////////////////////////////////
package org.apache.royale.textLayout.accessibility
{
- import flash.accessibility.Accessibility;
- import flash.accessibility.AccessibilityImplementation;
- import flash.accessibility.AccessibilityProperties;
- import flash.display.DisplayObject;
+ COMPILE::SWF{
+ import flash.accessibility.Accessibility;
+ import flash.accessibility.AccessibilityImplementation;
+ import flash.accessibility.AccessibilityProperties;
+ import flash.display.DisplayObject;
+ }
import org.apache.royale.events.Event;
import org.apache.royale.textLayout.edit.EditingMode;
@@ -66,6 +68,7 @@ package org.apache.royale.textLayout.accessibility
* The TextAccImpl class adds accessibility for text components.
* This hooks into DisplayObjects when TextFlow.container is set.
*/
+ COMPILE::SWF
public class TextAccImpl extends AccessibilityImplementation
{
//TODO might want to put these constants in a new class if they are
diff --git a/frameworks/projects/asconfig.json b/frameworks/projects/asconfig.json
index 73ab219..d14a663 100644
--- a/frameworks/projects/asconfig.json
+++ b/frameworks/projects/asconfig.json
@@ -33,6 +33,9 @@
"SWF",
"JSRoyale"
],
+ "external-library-path": [
+ "../../../frameworks/libs/air/airglobal.swc"
+ ],
"include-classes": [
"BasicClasses"
],
--
To stop receiving notification emails like this one, please contact
['"commits@royale.apache.org" <co...@royale.apache.org>'].