Package org.robovm.compiler.target.ios
Class IOSTarget
java.lang.Object
org.robovm.compiler.target.AbstractTarget
org.robovm.compiler.target.ios.IOSTarget
- All Implemented Interfaces:
Target
public class IOSTarget extends AbstractTarget
- Author:
- niklas
-
Field Summary
Fields inherited from class org.robovm.compiler.target.AbstractTarget
config -
Constructor Summary
Constructors Constructor Description IOSTarget() -
Method Summary
Modifier and Type Method Description voidarchive()Creates an archive suitable for distribution and stores it in theConfig.getInstallDir()directory.booleancanLaunchInPlace()Returnstrueif binaries created by thisTargetcan be launched in place and doesn't have to be copied into some folder structure, e.g.protected voidcopyResources(File destDir)protected voidcreateInfoPList(File dir)protected LaunchercreateLauncher(LaunchParameters launchParameters)LaunchParameterscreateLaunchParameters()CreatesLaunchParametersfor launching the binary built by thisTarget.protected voidcustomizeInfoPList(com.dd.plist.NSDictionary dict)protected voiddoBuild(File outFile, List<String> ccArgs, List<File> objectFiles, List<String> libArgs)protected voiddoInstall(File installDir, String executable, File resourcesDir)protected ProcessdoLaunch(LaunchParameters launchParameters)protected FilegetAppDir()ArchgetArch()protected StringgetBundleId()List<Arch>getDefaultArchs()Returns a list of the default archs to build for if no archs have been specified in theConfig.IDevicegetDevice()Returns theIDevicewhen an app has been launched on a device.protected StringgetExecutable()protected StringgetMinimumOSVersion()OSgetOs()List<SDK>getSDKs()StringgetType()Returns a unique type id for thisTarget.voidinit(Config config)static booleanisDeviceArch(Arch arch)static booleanisSimulatorArch(Arch arch)protected voidprepareInstall(File installDir)voidprepareLaunch()performs prepare launch activitiesprotected voidprepareLaunch(File appDir)Methods inherited from class org.robovm.compiler.target.AbstractTarget
build, build, buildFat, canLaunch, copyAppExtensions, copyDynamicFrameworks, copyFile, copySwiftLibs, copyWatchApp, doInstall, findDirectoryInLocations, getInstallRelativeArchivePath, getSwiftDependencies, getTargetCcArgs, getTargetExportedSymbols, getTargetLibs, install, isAppExtension, isDynamicLibrary, isStaticLibrary, launch, stripArchive, stripArchives, stripBitcode, stripExtraArches, updateAppExtensionBundleId
-
Field Details
-
TYPE
- See Also:
- Constant Field Values
-
-
Constructor Details
-
IOSTarget
public IOSTarget()
-
-
Method Details
-
getType
Description copied from interface:TargetReturns a unique type id for thisTarget. -
getArch
Description copied from interface:TargetReturns theArchthisTargetwill build for. This is determined byTarget.init(Config). If an explicitArchhas been set on theConfigin the call toTarget.init(Config)thatArchwill returned by this method. OtherwiseTarget.init(Config)will determine a defaultArchand this method returns that one. -
createLaunchParameters
Description copied from interface:TargetCreatesLaunchParametersfor launching the binary built by thisTarget.- Specified by:
createLaunchParametersin interfaceTarget- Overrides:
createLaunchParametersin classAbstractTarget
-
isSimulatorArch
-
isDeviceArch
-
getSDKs
-
getDevice
Returns theIDevicewhen an app has been launched on a device. ReturnsnullbeforeAbstractTarget.launch(LaunchParameters)has been called or if the app was launched in the simulator. -
createLauncher
- Overrides:
createLauncherin classAbstractTarget- Throws:
IOException
-
doBuild
protected void doBuild(File outFile, List<String> ccArgs, List<File> objectFiles, List<String> libArgs) throws IOException- Overrides:
doBuildin classAbstractTarget- Throws:
IOException
-
prepareInstall
- Throws:
IOException
-
prepareLaunch
Description copied from interface:Targetperforms prepare launch activities- Specified by:
prepareLaunchin interfaceTarget- Overrides:
prepareLaunchin classAbstractTarget- Throws:
IOException
-
prepareLaunch
- Throws:
IOException
-
doInstall
- Overrides:
doInstallin classAbstractTarget- Throws:
IOException
-
doLaunch
- Overrides:
doLaunchin classAbstractTarget- Throws:
IOException
-
getDefaultArchs
Description copied from interface:TargetReturns a list of the default archs to build for if no archs have been specified in theConfig. Returns an empty list if there are no defaults.- Specified by:
getDefaultArchsin interfaceTarget- Overrides:
getDefaultArchsin classAbstractTarget
-
archive
Description copied from interface:TargetCreates an archive suitable for distribution and stores it in theConfig.getInstallDir()directory.- Specified by:
archivein interfaceTarget- Overrides:
archivein classAbstractTarget- Throws:
IOException
-
copyResources
- Overrides:
copyResourcesin classAbstractTarget- Throws:
IOException
-
getAppDir
- Overrides:
getAppDirin classAbstractTarget
-
getExecutable
- Overrides:
getExecutablein classAbstractTarget
-
getBundleId
- Overrides:
getBundleIdin classAbstractTarget
-
getMinimumOSVersion
-
customizeInfoPList
protected void customizeInfoPList(com.dd.plist.NSDictionary dict) -
createInfoPList
- Throws:
IOException
-
init
Description copied from interface:Target- Specified by:
initin interfaceTarget- Overrides:
initin classAbstractTarget
-
getOs
Description copied from interface:TargetReturns theOSthisTargetwill build for. This is determined byTarget.init(Config). If an explicitOShas been set on theConfigin the call toTarget.init(Config)thatOSwill returned by this method. OtherwiseTarget.init(Config)will determine a defaultOSand this method returns that one. -
canLaunchInPlace
public boolean canLaunchInPlace()Description copied from interface:TargetReturnstrueif binaries created by thisTargetcan be launched in place and doesn't have to be copied into some folder structure, e.g. an iOS app bundle.- Specified by:
canLaunchInPlacein interfaceTarget- Overrides:
canLaunchInPlacein classAbstractTarget
-