Need Help in iOS Build Packing
Hello and thank you for the great grandlefx you built.
I have a FlashBuilder Project, I succeed in creating Grandle.build for apk output, as the example was very clear.
As for ios, i followed the example, I am getting an ipa file, but wont install on iphone, although packing the project using Flash Builder will create an installable ipa.
Any help is appreciated.
SDK used is 19
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
1 Posted by Ibrahim Ammar on 02 Feb, 2016 02:17 AM
Android that worked for me:
buildscript {
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
classpath group: 'org.gradlefx', name: 'gradlefx', version: '1.1'
}
}
apply plugin: 'gradlefx'
apply plugin: 'flashbuilder'
mainClass = 'Tropicana.as'
srcDirs = ['src']
type = 'mobile'
repositories {
ivy {
name 'Adobe Air SDK'
artifactPattern 'http://airdownload.adobe.com/air/mac/download/[revision]/[module].[ext]'
}
}
dependencies {
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')
}
air {
keystore = 'test.p12'
storepass = 'xxxxxxxx'
applicationDescriptor = 'src/Tropicana-app.xml'
fileOptions = [
'-C',
'src',
'icons'
]
}
airMobile {
target = 'apk-debug'
}
sdkAutoInstall {
showPrompts = false
}
2 Posted by Ibrahim Ammar on 02 Feb, 2016 02:18 AM
ios that did not work
import org.apache.tools.ant.taskdefs.condition.Os
buildscript {
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
classpath group: 'org.gradlefx', name: 'gradlefx', version: '1.1'
}
}
apply plugin: 'gradlefx'
apply plugin: 'ideafx'
defaultTasks 'clean', 'flashbuilderClean', 'ideaClean', 'compile', 'test', 'flashbuilder', 'idea'
project.tasks.remove(package)
mainClass = 'Tropicana.as'
srcDirs = ['src']
type = 'mobile'
version = '1.0.0'
playerVersion = '19.0'
def flexUnitHome = System.getenv()['FLEXUNIT_HOME']
def additionalCompilerArguments = [
'-swf-version=26',
'-debug=true',
'-inline',
'-keep-as3-metadata+=Inline,Inject,Embed,ChangeEvent,Managed,NonCommittingChangeEvent,PostConstruct,PreDestroy,Transient']
repositories {
mavenLocal()
maven {
name 'Starling repo'
url 'https://raw.githubusercontent.com/tconkling/maven-repo/master/'
}
ivy {
name 'Adobe Air SDK'
artifactPattern 'http://airdownload.adobe.com/air/mac/download/[revision]/[module].[ext]'
}
}
dependencies {
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")
}
additionalCompilerOptions = additionalCompilerArguments
sdkAutoInstall {
showPrompts = false
}
airMobile {
platform = 'ios'
target = 'ipa-app-store'
outputExtension = 'ipa'
provisioningProfile = 'Prov_Dev_Tropicana.mobileprovision'
}
air {
keystore = 'Certificates.p12'
storepass = 'xxxxxx'
applicationDescriptor = 'src/Tropicana-app.xml'
fileOptions = [
'-C',
'src',
'icons'
]
}
flexUnit {
additionalCompilerOptions = additionalCompilerArguments
template = buildDir.toString() + "/reports/FlexUnitRunnerTemplate.as"
}
3 Posted by Ibrahim Ammar on 02 Feb, 2016 03:44 AM
Hi again, sorry my mistake, forgot to include the lunch images.. thank you on all ways.
Can you kindly remove my above posts as I did not see that i kept the passwords.
Support Staff 4 Posted by Yennick Trevels on 02 Feb, 2016 07:50 AM
Hi,
I've edited your posts so that the passwords aren't visible anymore.
I'll try to look into the issue asap.
Cheers,
Yennick
5 Posted by Ibrahim Ammar on 02 Feb, 2016 05:36 PM
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 ?
Support Staff 6 Posted by Yennick Trevels on 02 Feb, 2016 06:42 PM
Sure, you can use GradleFx any way you like :)
Glad to hear your problem got solved.
Yennick Trevels closed this discussion on 02 Feb, 2016 06:42 PM.