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

carlosrovira 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 3022c9b  SampleLib: The lib part to use with AppWithLib example app, 
generated with the maven archetype "royale-jewel-library-archetype"
3022c9b is described below

commit 3022c9b41013efa531c6cf2ebbacc175ee985223
Author: Carlos Rovira <carlos.rov...@apache.org>
AuthorDate: Sat Feb 27 16:58:29 2021 +0100

    SampleLib: The lib part to use with AppWithLib example app, generated with 
the maven archetype "royale-jewel-library-archetype"
---
 examples/jewel/SampleLib/SampleLib.mxml.as3proj    | 117 ++++++++
 examples/jewel/SampleLib/asconfig.json             |  58 ++++
 examples/jewel/SampleLib/pom.xml                   | 301 +++++++++++++++++++++
 .../jewel/SampleLib/src/main/resources/default.css |  20 ++
 .../src/main/resources/samplelib-as-manifest.xml   |  26 ++
 .../src/main/resources/samplelib-manifest.xml      |  26 ++
 .../SampleLib/src/main/royale/SampleLibClasses.as  |  46 ++++
 .../org/apache/royale/examples/SampleClass.as      |  31 +++
 .../jewel/SampleLib/src/main/sass/_global.sass     |  25 ++
 .../jewel/SampleLib/src/main/sass/default.sass     |  21 ++
 10 files changed, 671 insertions(+)

diff --git a/examples/jewel/SampleLib/SampleLib.mxml.as3proj 
b/examples/jewel/SampleLib/SampleLib.mxml.as3proj
new file mode 100644
index 0000000..2a85f03
--- /dev/null
+++ b/examples/jewel/SampleLib/SampleLib.mxml.as3proj
@@ -0,0 +1,117 @@
+<!--
+
+  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.
+
+-->
+<?xml version="1.0" encoding="utf-8"?>
+<project>
+  <output>
+    <movie width="800"/>
+    <movie disabled="False"/>
+    <movie path="bin-debug/SampleLib.swf"/>
+    <movie platform="Flash Player"/>
+    <movie fps="60"/>
+    <movie version="11"/>
+    <movie height="600"/>
+    <movie background="#FFFFFF"/>
+    <movie input=""/>
+  </output>
+  &lt;!-- Other classes to be compiled into your SWF --&gt;
+  <jsOutput>
+    <option 
path="/Users/christofer.dutz/Library/Containers/com.moonshine-ide/Data/Documents/NewJavaScriptBrowserProject"/>
+  </jsOutput>
+  <classpaths>
+    <class path="src"/>
+  </classpaths>
+  <moonshineResourcePaths></moonshineResourcePaths>
+  <moonshineNativeExtensionPaths></moonshineNativeExtensionPaths>
+  <build>
+    <option compilerConstants=""/>
+    <option strict="True"/>
+    <option useResourceBundleMetadata="True"/>
+    <option allowSourcePathOverlap="False"/>
+    <option sourceMap="True"/>
+    <option showDeprecationWarnings="True"/>
+    <option benchmark="False"/>
+    <option showBindingWarnings="True"/>
+    <option warnings="True"/>
+    <option 
customSDK="/Users/christofer.dutz/Downloads/MoonshineSDKs/Royale_SDK/apache-royale-0.9.8-bin-js/royale-asjs"/>
+    <option showActionScriptWarnings="True"/>
+    <option antBuildPath="build/build.xml"/>
+    <option verboseStackTraces="False"/>
+    <option loadConfig=""/>
+    <option 
additional="-theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css
 -html-template=src/resources/jewel-index-template.html"/>
+    <option linkReport=""/>
+    <option optimize="False"/>
+    <option locale=""/>
+    <option accessible="False"/>
+    <option staticLinkRSL="False"/>
+    <option showUnusedTypeSelectorWarnings="True"/>
+    <option useNetwork="True"/>
+    <option es="False"/>
+  </build>
+  <mavenBuild>
+    <option settingsFilePath=""/>
+    <option 
mavenBuildPath="/Users/christofer.dutz/Library/Containers/com.moonshine-ide/Data/Documents/NewJavaScriptBrowserProject"/>
+    <option commandLine=""/>
+    <actions>
+      <action action="install" actionName="Build"/>
+      <action action="clean package" actionName="Clean and package"/>
+      <action action="clean" actionName="Clean"/>
+      <action action="clean install" actionName="Clean and Build"/>
+      <action action="war:exploded" actionName="Exploded"/>
+    </actions>
+  </mavenBuild>
+  <includeLibraries></includeLibraries>
+  <libraryPaths></libraryPaths>
+  <externalLibraryPaths></externalLibraryPaths>
+  <rslPaths></rslPaths>
+  <intrinsics>
+    <element path="Library/AS3/frameworks/Flex4"/>
+    <element path="Library\AS3\frameworks\Flex4"/>
+    <element path="Library\AS3\frameworks\Flex4"/>
+  </intrinsics>
+  <library></library>
+  <compileTargets>
+    <compile path="src/NewJavaScriptBrowserProject.mxml"/>
+  </compileTargets>
+  <hiddenPaths></hiddenPaths>
+  <preBuildCommand>null</preBuildCommand>
+  <postBuildCommand alwaysRun="False">null</postBuildCommand>
+  <trustSVNCertificate>False</trustSVNCertificate>
+  <options>
+    <option testMovieCommand=""/>
+    <option defaultBuildTargets=""/>
+    <option isRoyale="True"/>
+    <option isExportedToExistingSource="False"/>
+    <option showHiddenPaths="False"/>
+    <option isPrimeFacesVisualEditor="False"/>
+    <option testMovie=""/>
+    <option visualEditorExportPath=""/>
+  </options>
+  <moonshineRunCustomization>
+    <option launchMethod="Simulator"/>
+    <option 
urlToLaunch="/Users/christofer.dutz/Library/Containers/com.moonshine-ide/Data/Documents/NewJavaScriptBrowserProject/bin/js-debug/index.html"/>
+    <option targetPlatform="5"/>
+    <option projectType="2"/>
+    <option customUrlToLaunch=""/>
+    <option deviceSimulator="null"/>
+    <deviceSimulator>null</deviceSimulator>
+    <certAndroid>null</certAndroid>
+    <certIos>null</certIos>
+    <certIosProvisioning>null</certIosProvisioning>
+  </moonshineRunCustomization>
+</project>
\ No newline at end of file
diff --git a/examples/jewel/SampleLib/asconfig.json 
b/examples/jewel/SampleLib/asconfig.json
new file mode 100644
index 0000000..cdedb7a
--- /dev/null
+++ b/examples/jewel/SampleLib/asconfig.json
@@ -0,0 +1,58 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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,
+        "targets": ["JSRoyale"],
+        "source-path": [
+            "src/main/royale"
+        ],
+        "include-namespaces": [
+            "library://ns.apache.org/royale/samplelib"
+        ],
+        "namespace": [
+            {
+                "uri": "library://ns.apache.org/royale/samplelib",
+                "manifest": "src/main/resources/samplelib-manifest.xml"
+            }
+            // ,{
+            //     "uri": "library://ns.apache.org/royale/samplelib",
+            //     "manifest": "src/main/resources/samplelib-as-manifest.xml"
+            // }
+        ],
+        "include-classes": [
+            "SampleLibClasses"
+        ],
+        "include-sources": [
+            "src/main/royale"
+        ],
+        // "library-path": [
+        //     "${royalelib}/js/libs/MXRoyaleJS.swc"
+        // ],
+        // "js-library-path": [
+        //     "${royalelib}/js/libs/MXRoyaleJS.swc"
+        // ],
+        "source-map": true,
+        "output": "bin/SampleLib.swc"
+    }
+    // ,
+    // "additionalOptions": "-js-dynamic-access-unknown-members=true"
+}
diff --git a/examples/jewel/SampleLib/pom.xml b/examples/jewel/SampleLib/pom.xml
new file mode 100644
index 0000000..2508c8c
--- /dev/null
+++ b/examples/jewel/SampleLib/pom.xml
@@ -0,0 +1,301 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  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.
+
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0";
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache</groupId>
+    <artifactId>apache</artifactId>
+    <version>23</version>
+    <relativePath />
+  </parent>
+
+  <groupId>org.apache.royale.examples</groupId>
+  <artifactId>SampleLib</artifactId>
+  <version>0.9.8-SNAPSHOT</version>
+  <packaging>swc</packaging>
+
+  <properties>
+    <compiler.debug>true</compiler.debug>
+    <royale.framework.version>0.9.8-SNAPSHOT</royale.framework.version>
+    
<compiler.output-dir-debug>${basedir}/target/javascript/bin/js-debug</compiler.output-dir-debug>
+    
<compiler.output-dir-release>${basedir}/target/javascript/bin/js-release</compiler.output-dir-release>
+  </properties>
+
+  <build>
+    <sourceDirectory>src/main/royale</sourceDirectory>
+
+    <pluginManagement>
+      <plugins>
+        <!-- Copy the resources to the compiler output directory -->
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-resources-plugin</artifactId>
+          <executions>
+            <execution>
+              <id>copy-resources-debug</id>
+              <phase>validate</phase>
+              <goals>
+                <goal>copy-resources</goal>
+              </goals>
+              <configuration>
+                <outputDirectory>${compiler.output-dir-debug}</outputDirectory>
+                <resources>
+                  <resource>
+                    <directory>src/main/resources</directory>
+                    <filtering>true</filtering>
+                  </resource>
+                </resources>
+              </configuration>
+            </execution>
+            <execution>
+              <id>copy-resources-release</id>
+              <phase>validate</phase>
+              <goals>
+                <goal>copy-resources</goal>
+              </goals>
+              <configuration>
+                <!-- Copy the assets to the assets output directory -->
+                
<outputDirectory>${compiler.output-dir-release}/assets</outputDirectory>
+                <resources>
+                  <resource>
+                    <directory>src/main/resources/js</directory>
+                    <filtering>true</filtering>
+                  </resource>
+                </resources>
+              </configuration>
+            </execution>
+          </executions>
+        </plugin>
+      </plugins>
+    </pluginManagement>
+
+    <plugins>
+      <plugin>
+        <groupId>org.apache.royale.compiler</groupId>
+        <artifactId>royale-maven-plugin</artifactId>
+        <version>0.9.8-SNAPSHOT</version>
+        <extensions>true</extensions>
+        <configuration>
+          <targets>JSRoyale</targets>
+          <namespaces>
+            <namespace>
+              <uri>library://ns.apache.org/royale/samplelib</uri>
+              
<manifest>${project.basedir}/src/main/resources/samplelib-manifest.xml</manifest>
+            </namespace>
+            <!-- <namespace>
+              <type>as</type>
+              <uri>library://ns.apache.org/royale/samplelib</uri>
+              
<manifest>${basedir}/src/main/resources/samplelib-as-manifest.xml</manifest>
+            </namespace> -->
+          </namespaces>
+          <includeClasses>
+            <includeClass>SampleLibClasses</includeClass>
+          </includeClasses>
+          <includeFiles>
+            <include-file>
+              <name>default.css</name>
+              <path>../src/main/resources/default.css</path>
+            </include-file>
+            <!-- Uncomment To Include Assets like Images -->
+            <!-- <include-file>
+              <name>assets/*</name>
+              <path>../src/main/resources/assets/*</path>
+            </include-file>
+            <include-file>
+              <name>js/*</name>
+              <path>../src/main/resources/js/*</path>
+            </include-file> -->
+          </includeFiles>
+          <!-- <includeLookupOnly>true</includeLookupOnly>
+          <allowSubclassOverrides>true</allowSubclassOverrides>
+          <skipExtern>true</skipExtern>
+          <skipAS>true</skipAS> -->
+          <!-- <additionalCompilerOptions>
+            -source-map=true;
+            -source-map-source-root=/frameworks/projects/Jewel/src/main/royale/
+          </additionalCompilerOptions> -->
+        </configuration>
+        <dependencies>
+          <dependency>
+            <groupId>org.apache.royale.compiler</groupId>
+            <artifactId>compiler-jx</artifactId>
+            <version>0.9.8-SNAPSHOT</version>
+          </dependency>
+        </dependencies>
+      </plugin>
+      <plugin>
+        <groupId>nl.geodienstencentrum.maven</groupId>
+        <artifactId>sass-maven-plugin</artifactId>
+        <version>3.7.2</version>
+        <configuration>
+          <resources>
+            <resource>
+              <source>
+                <directory>${basedir}/src/main/sass</directory>
+                <includes>
+                  <include>**/*.sass</include>
+                </includes>
+              </source>
+              <destination>${basedir}/src/main/resources</destination>
+            </resource>
+          </resources>
+        </configuration>
+        <executions>
+          <execution>
+            <id>generate-css-using-sass</id>
+            <goals>
+                <goal>update-stylesheets</goal>
+            </goals>
+            <phase>generate-resources</phase>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <groupId>com.google.code.maven-replacer-plugin</groupId>
+        <artifactId>replacer</artifactId>
+        <version>1.5.3</version>
+        <executions>
+          <execution>
+            <phase>generate-resources</phase>
+            <goals>
+              <goal>replace</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <includes>
+            <include>${basedir}/src/main/resources/**/*.css</include>
+          </includes>
+          <regex>false</regex>
+          <replacements>
+            <replacement>
+              <token>@@ZERO_WIDTH_SPACE</token>
+              <value>\200b</value>
+            </replacement>
+            <replacement>
+              <token>@@NON_BREAKING_SPACE</token>
+              <value>\0a</value>
+            </replacement>
+          </replacements>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
+  <dependencies>
+    <!-- For flash compilation, we need the airglobal or playerglobal -->
+    <dependency>
+      <groupId>com.adobe.air.framework</groupId>
+      <artifactId>airglobal</artifactId>
+      <version>20.0</version>
+      <type>swc</type>
+      <scope>provided</scope>
+    </dependency>
+    <!-- For JavaScript compilation, we need some other base classes -->
+    <dependency>
+      <groupId>org.apache.royale.typedefs</groupId>
+      <artifactId>royale-typedefs-gcl</artifactId>
+      <version>0.9.8-SNAPSHOT</version>
+      <type>swc</type>
+      <classifier>typedefs</classifier>
+    </dependency>
+
+    <!-- Add dependencies you might be needing here -->
+    <dependency>
+      <groupId>org.apache.royale.framework</groupId>
+      <artifactId>Core</artifactId>
+      <version>0.9.8-SNAPSHOT</version>
+      <type>swc</type>
+      <classifier>js</classifier>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.royale.framework</groupId>
+      <artifactId>Basic</artifactId>
+      <version>0.9.8-SNAPSHOT</version>
+      <type>swc</type>
+      <classifier>js</classifier>
+    </dependency>
+    
+    <dependency>
+      <groupId>org.apache.royale.framework</groupId>
+      <artifactId>Jewel</artifactId>
+      <version>0.9.8-SNAPSHOT</version>
+      <type>swc</type>
+      <classifier>js</classifier>
+    </dependency>
+    
+    <dependency>
+      <groupId>org.apache.royale.framework</groupId>
+      <artifactId>Icons</artifactId>
+      <version>0.9.8-SNAPSHOT</version>
+      <type>swc</type>
+      <classifier>js</classifier>
+    </dependency>
+
+    <!-- Needed for JavaScript compilation -->
+    <dependency>
+      <groupId>org.apache.royale.framework</groupId>
+      <artifactId>HTML</artifactId>
+      <version>0.9.8-SNAPSHOT</version>
+      <type>swc</type>
+      <classifier>js</classifier>
+    </dependency>
+    
+    <dependency>
+      <groupId>org.apache.royale.framework</groupId>
+      <artifactId>Language</artifactId>
+      <version>0.9.8-SNAPSHOT</version>
+      <type>swc</type>
+      <classifier>js</classifier>
+    </dependency>
+  </dependencies>
+
+  <profiles>
+    <profile>
+      <id>apache-release</id>
+      <properties>
+        <compiler.debug>false</compiler.debug>
+      </properties>
+    </profile>
+
+    <profile>
+      <id>option-with-swf</id>
+      <properties>
+        <!-- no point building the swf target  -->
+        <royale.targets>JSRoyale</royale.targets>
+      </properties>
+      <dependencies>
+        <!-- Needed for Flash compilation -->
+        <!-- <dependency>
+          <groupId>com.adobe.flash.framework</groupId>
+          <artifactId>playerglobal</artifactId>
+          <version>20.0</version>
+          <type>swc</type>
+          <scope>provided</scope>
+        </dependency> -->
+      </dependencies>
+    </profile>
+  </profiles>
+
+</project>
diff --git a/examples/jewel/SampleLib/src/main/resources/default.css 
b/examples/jewel/SampleLib/src/main/resources/default.css
new file mode 100644
index 0000000..5542716
--- /dev/null
+++ b/examples/jewel/SampleLib/src/main/resources/default.css
@@ -0,0 +1,20 @@
+/**
+ *  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.
+ */
+@namespace "http://www.w3.org/1999/xhtml";;
+@namespace j "library://ns.apache.org/royale/samplelib";
+
+/*# sourceMappingURL=default.css.map */
diff --git 
a/examples/jewel/SampleLib/src/main/resources/samplelib-as-manifest.xml 
b/examples/jewel/SampleLib/src/main/resources/samplelib-as-manifest.xml
new file mode 100644
index 0000000..43b5314
--- /dev/null
+++ b/examples/jewel/SampleLib/src/main/resources/samplelib-as-manifest.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<!--
+
+  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.
+
+-->
+
+
+<componentPackage>
+
+  <!-- <component id="ClassName" class="package.ClassName"/> -->
+
+</componentPackage>
\ No newline at end of file
diff --git a/examples/jewel/SampleLib/src/main/resources/samplelib-manifest.xml 
b/examples/jewel/SampleLib/src/main/resources/samplelib-manifest.xml
new file mode 100644
index 0000000..523a781
--- /dev/null
+++ b/examples/jewel/SampleLib/src/main/resources/samplelib-manifest.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<!--
+
+  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.
+
+-->
+
+
+<componentPackage>
+
+  <component id="SampleClass" class="org.apache.royale.examples.SampleClass"/>
+
+</componentPackage>
\ No newline at end of file
diff --git a/examples/jewel/SampleLib/src/main/royale/SampleLibClasses.as 
b/examples/jewel/SampleLib/src/main/royale/SampleLibClasses.as
new file mode 100644
index 0000000..8e6964a
--- /dev/null
+++ b/examples/jewel/SampleLib/src/main/royale/SampleLibClasses.as
@@ -0,0 +1,46 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
+{
+    /**
+     *  @private
+     *  This class is used to link additional classes into jewel.swc
+     *  beyond those that are found by dependecy analysis starting
+     *  from the classes specified in manifest.xml.
+     * 
+     *  If the class need to be used in MXML please add only to manifest.xml
+     */
+    internal class SampleLibClasses
+    {
+        // Add here classes for all platforms
+        // import package.ClassName; ClassName;
+
+        // Add here classes for the JS platform
+        // COMPILE::JS
+           // {
+        // import package.ClassName; ClassName;
+        // }
+        
+        // Add here classes for the SWF platform
+        // COMPILE::SWF
+           // {
+        // import package.ClassName; ClassName;
+        // }
+    }
+}
\ No newline at end of file
diff --git 
a/examples/jewel/SampleLib/src/main/royale/org/apache/royale/examples/SampleClass.as
 
b/examples/jewel/SampleLib/src/main/royale/org/apache/royale/examples/SampleClass.as
new file mode 100644
index 0000000..7093b6a
--- /dev/null
+++ 
b/examples/jewel/SampleLib/src/main/royale/org/apache/royale/examples/SampleClass.as
@@ -0,0 +1,31 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.examples
+{
+    /**
+     *  A Sample Class to fill this library
+     */
+    public class SampleClass
+    {
+        public function doSomething():void
+        {
+            trace("doing something");
+        }
+    }
+}
\ No newline at end of file
diff --git a/examples/jewel/SampleLib/src/main/sass/_global.sass 
b/examples/jewel/SampleLib/src/main/sass/_global.sass
new file mode 100644
index 0000000..319f28c
--- /dev/null
+++ b/examples/jewel/SampleLib/src/main/sass/_global.sass
@@ -0,0 +1,25 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+@namespace "http://www.w3.org/1999/xhtml";
+@namespace j "library://ns.apache.org/royale/samplelib"
+
+// .jewel
+//     .label
+//         color: #ff0000
\ No newline at end of file
diff --git a/examples/jewel/SampleLib/src/main/sass/default.sass 
b/examples/jewel/SampleLib/src/main/sass/default.sass
new file mode 100644
index 0000000..bbad92a
--- /dev/null
+++ b/examples/jewel/SampleLib/src/main/sass/default.sass
@@ -0,0 +1,21 @@
+/**
+ *  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.
+ */
+
+// Variables
+
+// Global
+@import "global"
\ No newline at end of file

Reply via email to