flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yishay Weiss <yishayj...@hotmail.com>
Subject RE: [FlexJS] Conditional compilation in user projects
Date Mon, 05 Dec 2016 12:42:53 GMT
Links should be

[1] https://paste.apache.org/SQ8J

[2] https://paste.apache.org/isny

From: Yishay Weiss<mailto:yishayjobs@hotmail.com>
Sent: Monday, December 5, 2016 2:38 PM
To: dev@flex.apache.org<mailto:dev@flex.apache.org>
Subject: RE: [FlexJS] Conditional compilation in user projects

In our project we started out with conditional compilation but we decided we didn't really
need it. I think part of the appeal of FlexJS is that it's AS3/MXML only. If application devs
start mixing it up with JS, their projects will probably start suffer from typical JS project

Keeping our project AS3/MXML only has helped us as framework devs to map what’s currently
missing in FlexJS, and has motivated us to fix it.

Application specific item renderers are possible with this approach. Here [1] [2] is an example
of how I created a custom item renderer for an Accordion.

[1] https://paste.apache.org/SQ8J
[2] https://paste.apache.org/wAHf

From: Carlos Rovira<mailto:carlosrovira@apache.org>
Sent: Monday, December 5, 2016 1:39 PM
To: dev@flex.apache.org<mailto:dev@flex.apache.org>
Subject: [FlexJS] Conditional compilation in user projects

Hi Alex,

to introduce the problem:

I took a look and saw that your ListItemRenderer is in the application
> project, not a library project, but it contains conditional compile code.
> I'm not sure we've ironed out that workflow.  The main idea was that
> application developers wouldn't need conditional compilation.  All APIs
> they would need would be cross-platform and all the platform-specific
> stuff would be encapsulated into the library SWCs.
mmm...I was thinking on that decision and I think it should be hard to make
devs understand that they
can't do that in their projects.

I think use case like custom item renderers are very common. We should
expect FlexJS users writing
custom IR a lot in their apps. If they are writing a complex app...should
be normal to has one or more swc libs
created by them, but we all now that one of the powers of flex is make a
fast app in one single project and even
in few files (classes). So I think, although I understand the decision and
intention, I think that is not practical.

btw, you pointed me to change COMPILE::JS to true, but how I can do this?
I see that in some build.xml but no in pom.xml. So although I search, I
don't know how to do this right now.
Some clue or where to dig?


Carlos Rovira

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message