tag:support.gradlefx.org,2011-05-23:/discussions/questions/3602-need-help-in-ios-build-packingGradleFx: Discussion 2016-02-02T18:42:44Ztag:support.gradlefx.org,2011-05-23:Comment/390674622016-02-02T02:17:04Z2016-02-02T07:48:48ZNeed Help in iOS Build Packing<div><p>Android that worked for me:</p>
<p>buildscript {<br>
repositories { mavenLocal() mavenCentral() } dependencies {
classpath group: 'org.gradlefx', name: 'gradlefx', version: '1.1' }
}</p>
<p>apply plugin: 'gradlefx'<br>
apply plugin: 'flashbuilder'</p>
<p>mainClass = 'Tropicana.as'</p>
<p>srcDirs = ['src']</p>
<p>type = 'mobile'</p>
<p>repositories {</p>
<pre>
<code>ivy {
name 'Adobe Air SDK'
artifactPattern 'http://airdownload.adobe.com/air/mac/download/[revision]/[module].[ext]'
}</code>
</pre>
<p>}</p>
<p>dependencies {</p>
<pre>
<code>airSDK group: 'com.adobe', name: 'AIRSDK_Compiler', version: '19.0', ext: 'tbz2'
merged files('libs/starling.swc')
merged files('libs/feathers.swc')
merged files('libs/Starling-Extension-Graphics.swc')</code>
</pre>
<p>}</p>
<p>air {</p>
<pre>
<code>keystore = 'test.p12'
storepass = 'xxxxxxxx'
applicationDescriptor = 'src/Tropicana-app.xml'
fileOptions = [
'-C',
'src',
'icons'
]</code>
</pre>
<p>}</p>
<p>airMobile {</p>
<pre>
<code>target = 'apk-debug'</code>
</pre>
<p>}</p>
<p>sdkAutoInstall {<br>
showPrompts = false }</p></div>Ibrahim Ammartag:support.gradlefx.org,2011-05-23:Comment/390674622016-02-02T02:18:49Z2016-02-02T07:49:31ZNeed Help in iOS Build Packing<div><p>ios that did not work</p>
<p>import org.apache.tools.ant.taskdefs.condition.Os</p>
<p>buildscript {<br>
repositories { mavenLocal() mavenCentral() } dependencies {
classpath group: 'org.gradlefx', name: 'gradlefx', version: '1.1' }
}</p>
<p>apply plugin: 'gradlefx'<br>
apply plugin: 'ideafx'</p>
<p>defaultTasks 'clean', 'flashbuilderClean', 'ideaClean',
'compile', 'test', 'flashbuilder', 'idea'</p>
<p>project.tasks.remove(package)</p>
<p>mainClass = 'Tropicana.as'</p>
<p>srcDirs = ['src']</p>
<p>type = 'mobile'<br>
version = '1.0.0'<br>
playerVersion = '19.0'</p>
<p>def flexUnitHome = System.getenv()['FLEXUNIT_HOME']</p>
<p>def additionalCompilerArguments = [<br>
'-swf-version=26', '-debug=true', '-inline',
'-keep-as3-metadata+=Inline,Inject,Embed,ChangeEvent,Managed,NonCommittingChangeEvent,PostConstruct,PreDestroy,Transient']</p>
<p>repositories {<br>
mavenLocal() maven { name 'Starling repo' url '<a href="https://raw.githubusercontent.com/tconkling/maven-repo/master/&#39">https://raw.githubusercontent.com/tconkling/maven-repo/master/&#39</a>;
}</p>
<pre>
<code>ivy {
name 'Adobe Air SDK'
artifactPattern 'http://airdownload.adobe.com/air/mac/download/[revision]/[module].[ext]'
}</code>
</pre>
<p>}</p>
<p>dependencies {</p>
<pre>
<code>airSDK group: 'com.adobe', name: 'AIRSDK_Compiler', version: '19.0', ext: 'tbz2'
merged files('libs/starling.swc')
merged files('libs/feathers.swc')
merged files('libs/Starling-Extension-Graphics.swc')
test files("${flexUnitHome}/flexUnitTasks-4.1.0-8.jar",
"${flexUnitHome}/flexunit-4.1.0-8-as3_4.1.0.16076.swc",
"${flexUnitHome}/flexunit-aircilistener-4.1.0-8-4.1.0.16076.swc",
"${flexUnitHome}/flexunit-cilistener-4.1.0-8-4.1.0.16076.swc",
"${flexUnitHome}/flexunit-uilistener-4.1.0-8-4.1.0.16076.swc")</code>
</pre>
<p>}</p>
<p>additionalCompilerOptions = additionalCompilerArguments</p>
<p>sdkAutoInstall {<br>
showPrompts = false }</p>
<p>airMobile {</p>
<pre>
<code>platform = 'ios'
target = 'ipa-app-store'
outputExtension = 'ipa'
provisioningProfile = 'Prov_Dev_Tropicana.mobileprovision'
}</code>
</pre>
<p>air {</p>
<pre>
<code>keystore = 'Certificates.p12'
storepass = 'xxxxxx'
applicationDescriptor = 'src/Tropicana-app.xml'
fileOptions = [
'-C',
'src',
'icons'
]</code>
</pre>
<p>}</p>
<p>flexUnit {<br>
additionalCompilerOptions = additionalCompilerArguments template =
buildDir.toString() + "/reports/FlexUnitRunnerTemplate.as" }</p></div>Ibrahim Ammartag:support.gradlefx.org,2011-05-23:Comment/390674622016-02-02T03:44:36Z2016-02-02T03:44:37ZNeed Help in iOS Build Packing<div><p>Hi again, sorry my mistake, forgot to include the lunch images..
thank you on all ways.</p>
<p>Can you kindly remove my above posts as I did not see that i
kept the passwords.</p></div>Ibrahim Ammartag:support.gradlefx.org,2011-05-23:Comment/390674622016-02-02T07:50:32Z2016-02-02T07:50:32ZNeed Help in iOS Build Packing<div><p>Hi,</p>
<p>I've edited your posts so that the passwords aren't visible
anymore.<br>
I'll try to look into the issue asap.</p>
<p>Cheers,<br>
Yennick</p></div>Yennick Trevelstag:support.gradlefx.org,2011-05-23:Comment/390674622016-02-02T17:36:22Z2016-02-02T17:36:22ZNeed Help in iOS Build Packing<div><p>I mean it is solved.. when I included the launch images, as
Flash Builder includes them automatically while in grandle I need
to specify it. So issue is done .. thank you so much for the great
product.. by the way .. are we allowed to include grandlefx in a
commercial product ?</p></div>Ibrahim Ammartag:support.gradlefx.org,2011-05-23:Comment/390674622016-02-02T18:42:39Z2016-02-02T18:42:39ZNeed Help in iOS Build Packing<div><p>Sure, you can use GradleFx any way you like :)<br>
Glad to hear your problem got solved.</p></div>Yennick Trevels