Flex dependencies can't be made external in SWCs
First of all, thanks for building this very promising build tool!
I've ran into an issue where I can't seem to get Gradle to
externalize Flex framework dependencies: they're always compiled
in, even if I explicitly declare
frameworkLinkage=external.
Simple reproduction:
-
Create a class that extends from any Flex component, for example spark.components.Group, in /src/main/actionscript.
-
Create a build.gradle file that declares
type='swc'
Flash Builder, using external framework linkage, will produce a 2kb SWC from this, whereas Gradle's is 408kb.
I used SDK 4.5.1.21328 to reproduce this.
- GradleTest.zip 1.2 KB
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac
Support Staff 1 Posted by Yennick Trevels on 26 Oct, 2012 11:25 PM
Hi Patrick,
This is indeed a bug in GradleFx. I got a fix for this in GradleFx itself so this will be in the next GradleFx version which will be released maybe this weekend (but next week is more likely).
What you can do in the meantime is this:
2 Posted by Patrick Mowrer on 29 Oct, 2012 04:04 PM
Thanks Yennick for the quick reply and the workaround!
Yennick Trevels closed this discussion on 29 Oct, 2012 09:40 PM.