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

hiedra pushed a commit to branch examples/TDJ_localresources
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/examples/TDJ_localresources by 
this push:
     new aa0d9e8d66 Including web-animation.min.js in the .swc library output 
via the -js-include-script compilation parameter. Overriding the 
<inject_script> block in TabBarView.as
aa0d9e8d66 is described below

commit aa0d9e8d662684aa39a1ab4b9fc43b8667e83c42
Author: mjesteve <[email protected]>
AuthorDate: Tue Mar 11 13:47:17 2025 +0100

    Including web-animation.min.js in the .swc library output via the 
-js-include-script compilation parameter.
    Overriding the <inject_script> block in TabBarView.as
---
 frameworks/projects/Jewel/asconfig.json            |  5 +++-
 frameworks/projects/Jewel/pom.xml                  |  5 +++-
 .../scripts/dialog-polyfill/0.4.9/LICENSE.txt      | 27 ----------------------
 .../dialog-polyfill/0.4.9/dialog-polyfill.min.js   |  1 -
 .../web-animations/2.3.1/{LICENSE.txt => LICENSE}  |  0
 .../apache/royale/jewel/beads/views/TabBarView.as  | 10 ++++----
 6 files changed, 13 insertions(+), 35 deletions(-)

diff --git a/frameworks/projects/Jewel/asconfig.json 
b/frameworks/projects/Jewel/asconfig.json
index 3915f722ae..441dfcfb92 100644
--- a/frameworks/projects/Jewel/asconfig.json
+++ b/frameworks/projects/Jewel/asconfig.json
@@ -30,5 +30,8 @@
             "src/main/royale"
         ],
         "output": "target/Jewel.swc"
-    }
+    },
+    "additionalOptions": [
+        
"-js-include-script+=src/main/assembly/scripts/web-animations/2.3.1/web-animations.min.js"
+    ]
 }
diff --git a/frameworks/projects/Jewel/pom.xml 
b/frameworks/projects/Jewel/pom.xml
index c9b9ab7936..938422592e 100644
--- a/frameworks/projects/Jewel/pom.xml
+++ b/frameworks/projects/Jewel/pom.xml
@@ -64,7 +64,10 @@
           <allowSubclassOverrides>true</allowSubclassOverrides>
           <skipExtern>true</skipExtern>
           <skipAS>${royale.skipAS}</skipAS>
-          
<additionalCompilerOptions>${project.compiler.options}</additionalCompilerOptions>
+          <additionalCompilerOptions>
+            ${project.compiler.options}
+            
-js-include-script+=${basedir}/src/main/assembly/scripts/web-animations/2.3.1/web-animations.min.js
+          </additionalCompilerOptions>
         </configuration>
       </plugin>
       <plugin>
diff --git 
a/frameworks/projects/Jewel/src/main/assembly/scripts/dialog-polyfill/0.4.9/LICENSE.txt
 
b/frameworks/projects/Jewel/src/main/assembly/scripts/dialog-polyfill/0.4.9/LICENSE.txt
deleted file mode 100644
index 3d0f7d3edf..0000000000
--- 
a/frameworks/projects/Jewel/src/main/assembly/scripts/dialog-polyfill/0.4.9/LICENSE.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-//    * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-//    * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-//    * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git 
a/frameworks/projects/Jewel/src/main/assembly/scripts/dialog-polyfill/0.4.9/dialog-polyfill.min.js
 
b/frameworks/projects/Jewel/src/main/assembly/scripts/dialog-polyfill/0.4.9/dialog-polyfill.min.js
deleted file mode 100644
index 29f5253a71..0000000000
--- 
a/frameworks/projects/Jewel/src/main/assembly/scripts/dialog-polyfill/0.4.9/dialog-polyfill.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(){function e(e){for(;e&&e!==document.body;){var 
t=window.getComputedStyle(e),o=function(e,o){return!(void 
0===t[e]||t[e]===o)};if(t.opacity<1||o("zIndex","auto")||o("transform","none")||o("mixBlendMode","normal")||o("filter","none")||o("perspective","none")||"isolate"===t.isolation||"fixed"===t.position||"touch"===t.webkitOverflowScrolling)return!0;e=e.parentElement}return!1}function
 t(e){for(;e;){if("dialog"===e.localName)return e;e=e.parentElement}return 
null}function o(e){e& [...]
\ No newline at end of file
diff --git 
a/frameworks/projects/Jewel/src/main/assembly/scripts/web-animations/2.3.1/LICENSE.txt
 
b/frameworks/projects/Jewel/src/main/assembly/scripts/web-animations/2.3.1/LICENSE
similarity index 100%
rename from 
frameworks/projects/Jewel/src/main/assembly/scripts/web-animations/2.3.1/LICENSE.txt
rename to 
frameworks/projects/Jewel/src/main/assembly/scripts/web-animations/2.3.1/LICENSE
diff --git 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/TabBarView.as
 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/TabBarView.as
index c95042b0ab..f86bdeff3e 100644
--- 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/TabBarView.as
+++ 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/TabBarView.as
@@ -42,11 +42,11 @@ package org.apache.royale.jewel.beads.views
                /**
                 *  constructor.
                 *
-                *  <inject_script>
-                *  var script = document.createElement("script");
-                *  script.setAttribute("src", 
"https://cdnjs.cloudflare.com/ajax/libs/web-animations/2.3.1/web-animations.min.js";);
-                *  document.head.appendChild(script);
-                *  </inject_script>
+                *  //<inject_script>
+                *  //var script = document.createElement("script");
+                *  //script.setAttribute("src", 
"https://cdnjs.cloudflare.com/ajax/libs/web-animations/2.3.1/web-animations.min.js";);
+                *  //document.head.appendChild(script);
+                *  //</inject_script>
                 * 
                 *  @langversion 3.0
                 *  @playerversion Flash 10.2

Reply via email to