Build SDK: JS + SWF

2022-01-07 Thread Maria Jose Esteve
Hi, I need to compile the SDK for JS and for SWL, I am building the asjs with 
these two instructions:

1º) maven
mvn clean install -P option-with-swf,option-with-sass-compile -DskipTests 
-Drat.skip=true

2º) ant
ant all -Dbuild.noprompt=true -Drelease.target=true -Dskip-tests=true

My doubts arise when I start working with the royale-spetrum project in vsCode 
[1], I suspect that maybe I am not doing it right because I am:


  *   IDE displays "Only JS"



[cid:image001.png@01D803DF.809FB450]


  *   And, on the contrary, the IDE shows me the COMPILE::JS code blocks as 
deactivated.

[Disabled configuration condition 
block(as3mxml-disabled-config-condition-block)]

[cid:image002.png@01D803E1.F2A4EF50]

I'm having a hard time understanding it, can anyone comment on this?

[1] en asconfig.json:
"targets": [
"JSRoyale"
],

Thx

Hiedra



Re: Setting up spectrum

2022-01-07 Thread Roman Isitua
Thanks for this info. I will ask questions whenever the need arises.

On Fri, Jan 7, 2022 at 10:33 AM Harbs  wrote:

> One question, since spectrum is not part of the royale sdk, is there an as
> doc for spectrum  ?
>
> I like looking api doc to understand how to use ui components (properties,
> beads, e.t.c )
>
>
> No. Sorry. I’m not very good about writing docs. :-(
>
> (If you’re inclined I’d love to get PRs to fix that up…)
>
> Here’s the basics:
>
> 1. Most of Spectrum does not use model and view. The exception is
> components which take dataProviders. (The view is pretty much handled by
> Adobe’s CSS.)
> 2. The source of SpectrumBrowser should give you a pretty good idea of
> what properties the components have.
> 3. I was pretty good about using [Inspectable] metadata, so your IDE (i.e.
> VS Code) should give you hints in MXML about what legal values for
> properties are.
> 4. Spectrum favors baking functionality in over beads.
> 5. Icons are specified using strings which applies named SVG symbols using
> “use” elements.
>
> Feel free to ask me questions...
>
> On Jan 7, 2022, at 9:42 AM, Roman Isitua  wrote:
>
> Thanks.
>
> I showed my colleague the spectrum demo. He was impressed. He is UI
> designer. We want to try it out.
>
> One question, since spectrum is not part of the royale sdk, is there an as
> doc for spectrum  ?
>
> I like looking api doc to understand how to use ui components (properties,
> beads, e.t.c )
>
> On Fri, 7 Jan 2022, 08:26 Harbs,  wrote:
>
>> That’s right. There’s only one swc. Spectrum does not support swf.
>>
>> Spectrum.swc is for js.
>>
>> You need to manually copy the css files and use an html template files
>> like you have in the SpecturmBrowser project.
>>
>> The easiest way to do that is to just copy the assets and template from
>> there.
>>
>> On Jan 7, 2022, at 8:53 AM, Roman Isitua  wrote:
>>
>> Harbs I have been able to build the Spectrum project using ant. I used
>> the binary release of 0.9.8 to achieve this.
>>
>> I have a question, in the target folder I can see only one file
>> (Spectrum.swc). I was expecting to see three files. One Spectrum.swc and
>> two others namely. One for js and another for swf.
>>
>> Can I use the Spectrum.swc in my js project ? Or is there a problem with
>> the build process ?
>>
>>
>>
>> On Wed, 5 Jan 2022, 17:39 Harbs,  wrote:
>>
>>> Sorry for the trouble. I don’t use Maven, so I don’t have a Maven build
>>> in Spectrum.
>>>
>>> You can feel free to make a PR with a Maven config to build it.
>>>
>>> Thanks,
>>> Harbs
>>>
>>> On Jan 5, 2022, at 4:33 PM, Roman Isitua  wrote:
>>>
>>> I commented it out. It did not work. I had to comment on another area
>>> with a similar message.
>>>
>>> The current error
>>>
>>> C:\Users\nyemi\git\spectrum\spectrum-royale\Spectrum>ant
>>> Buildfile: C:\Users\nyemi\git\spectrum\spectrum-royale\Spectrum\build.xml
>>>  [echo] ROYALE_HOME: C:\ROYALE\apache-royale-0.9.8
>>>
>>> check-compiler-home:
>>>
>>> check-transpiler-home:
>>>
>>> check-compiler:
>>>
>>> BUILD FAILED
>>> C:\Users\nyemi\git\spectrum\spectrum-royale\Spectrum\build.xml:78:
>>> C:\Users\nyemi\git\spectrum\spectrum-royale\Spectrum\${ROYALE_COMPILER_HOME}\lib
>>> does not exist.
>>>
>>>
>>> Note: I built the royale sdk using maven.
>>>
>>> I have compared this maven built royale 0.9.8 sdk with the 0.9.7 binary
>>> distribution I downloaded months ago when I started learning royale. I
>>> noticed the 0.9.7 binary has a lib folder
>>> (C:\ROYALE\apache-royale-0.9.7-bin-js-swf\royale-asjs\js\lib)  where the
>>> compc.jar and mxmlc.jar files are located. But the maven built 0.9.8 does
>>> not have a lib folder in that location. (Even after executing mvn clean
>>> install)
>>>
>>> I guess I should consider building the 0.9.8 with ant ? I hope there
>>> will be no issues building the same sdk with maven and then ant ?
>>>
>>>
>>>
>>>
>>> On Wed, Jan 5, 2022 at 7:41 AM Yishay Weiss 
>>> wrote:
>>>
 I don’t know why that check was necessary in the original build, but it
 seems it isn’t for the spectrum one. Roman, you can just remove this line
 [1] from build.xml and I think it should work.



 [1]

 >>>
 unless="ROYALE_SWF_COMPILER_HOME"/>



 *From: *Harbs 
 *Sent: *Wednesday, January 5, 2022 12:07 AM
 *To: *users@royale.apache.org
 *Subject: *Re: Setting up spectrum



 It’s checking for compiler-mxmlc.jar in the lib directory in
 ROYALE_HOME. Are you missing that for some reason?

 I’m not sure why it’s checking for that instead of compc.jar which is
 what it should actually be using.

 It was copied from the build.xml files used in the framework compile.

 Maybe Alex or Josh (or Greg?) can comment on that.

 > On Jan 4, 2022, at 11:54 PM, Roman Isitua 
 wrote:
 >
 > I am trying to build royale spectrum from source using ant.
 >
 > I get the below error
 >
 > C:\Users\nyemi\git\

Re: Setting up spectrum

2022-01-07 Thread Harbs
> One question, since spectrum is not part of the royale sdk, is there an as 
> doc for spectrum  ? 
> 
> I like looking api doc to understand how to use ui components (properties, 
> beads, e.t.c )

No. Sorry. I’m not very good about writing docs. :-(

(If you’re inclined I’d love to get PRs to fix that up…)

Here’s the basics:

1. Most of Spectrum does not use model and view. The exception is components 
which take dataProviders. (The view is pretty much handled by Adobe’s CSS.)
2. The source of SpectrumBrowser should give you a pretty good idea of what 
properties the components have.
3. I was pretty good about using [Inspectable] metadata, so your IDE (i.e. VS 
Code) should give you hints in MXML about what legal values for properties are.
4. Spectrum favors baking functionality in over beads.
5. Icons are specified using strings which applies named SVG symbols using 
“use” elements.

Feel free to ask me questions...

> On Jan 7, 2022, at 9:42 AM, Roman Isitua  wrote:
> 
> Thanks.
> 
> I showed my colleague the spectrum demo. He was impressed. He is UI designer. 
> We want to try it out.
> 
> One question, since spectrum is not part of the royale sdk, is there an as 
> doc for spectrum  ? 
> 
> I like looking api doc to understand how to use ui components (properties, 
> beads, e.t.c )
> 
> On Fri, 7 Jan 2022, 08:26 Harbs,  > wrote:
> That’s right. There’s only one swc. Spectrum does not support swf.
> 
> Spectrum.swc is for js.
> 
> You need to manually copy the css files and use an html template files like 
> you have in the SpecturmBrowser project.
> 
> The easiest way to do that is to just copy the assets and template from there.
> 
>> On Jan 7, 2022, at 8:53 AM, Roman Isitua > > wrote:
>> 
>> Harbs I have been able to build the Spectrum project using ant. I used the 
>> binary release of 0.9.8 to achieve this.
>> 
>> I have a question, in the target folder I can see only one file 
>> (Spectrum.swc). I was expecting to see three files. One Spectrum.swc and two 
>> others namely. One for js and another for swf. 
>> 
>> Can I use the Spectrum.swc in my js project ? Or is there a problem with the 
>> build process ?
>> 
>> 
>> 
>> On Wed, 5 Jan 2022, 17:39 Harbs, > > wrote:
>> Sorry for the trouble. I don’t use Maven, so I don’t have a Maven build in 
>> Spectrum.
>> 
>> You can feel free to make a PR with a Maven config to build it.
>> 
>> Thanks,
>> Harbs
>> 
>>> On Jan 5, 2022, at 4:33 PM, Roman Isitua >> > wrote:
>>> 
>>> I commented it out. It did not work. I had to comment on another area with 
>>> a similar message.
>>> 
>>> The current error
>>> 
>>> C:\Users\nyemi\git\spectrum\spectrum-royale\Spectrum>ant
>>> Buildfile: C:\Users\nyemi\git\spectrum\spectrum-royale\Spectrum\build.xml
>>>  [echo] ROYALE_HOME: C:\ROYALE\apache-royale-0.9.8
>>> 
>>> check-compiler-home:
>>> 
>>> check-transpiler-home:
>>> 
>>> check-compiler:
>>> 
>>> BUILD FAILED
>>> C:\Users\nyemi\git\spectrum\spectrum-royale\Spectrum\build.xml:78: 
>>> C:\Users\nyemi\git\spectrum\spectrum-royale\Spectrum\${ROYALE_COMPILER_HOME}\lib
>>>  does not exist.
>>> 
>>> 
>>> Note: I built the royale sdk using maven.
>>> 
>>> I have compared this maven built royale 0.9.8 sdk with the 0.9.7 binary 
>>> distribution I downloaded months ago when I started learning royale. I 
>>> noticed the 0.9.7 binary has a lib folder 
>>> (C:\ROYALE\apache-royale-0.9.7-bin-js-swf\royale-asjs\js\lib)  where the 
>>> compc.jar and mxmlc.jar files are located. But the maven built 0.9.8 does 
>>> not have a lib folder in that location. (Even after executing mvn clean 
>>> install)
>>> 
>>> I guess I should consider building the 0.9.8 with ant ? I hope there will 
>>> be no issues building the same sdk with maven and then ant ?
>>> 
>>> 
>>> 
>>> 
>>> On Wed, Jan 5, 2022 at 7:41 AM Yishay Weiss >> > wrote:
>>> I don’t know why that check was necessary in the original build, but it 
>>> seems it isn’t for the spectrum one. Roman, you can just remove this line 
>>> [1] from build.xml and I think it should work.
>>> 
>>>  
>>> 
>>> [1]
>>> 
>>> >> 
>>> unless="ROYALE_SWF_COMPILER_HOME"/>
>>> 
>>>  
>>> 
>>> From: Harbs 
>>> Sent: Wednesday, January 5, 2022 12:07 AM
>>> To: users@royale.apache.org 
>>> Subject: Re: Setting up spectrum
>>> 
>>>  
>>> 
>>> It’s checking for compiler-mxmlc.jar in the lib directory in ROYALE_HOME. 
>>> Are you missing that for some reason?
>>> 
>>> I’m not sure why it’s checking for that instead of compc.jar which is what 
>>> it should actually be using.
>>> 
>>> It was copied from the build.xml files used in the framework compile.
>>> 
>>> Maybe Alex or Josh (or Greg?) can comment on that.
>>> 
>>> > On Jan 4, 2022, at 11:54 PM, Roman Isitua >> > > wrote:
>>> > 
>>> > I am trying t