Annotation Type Ios
iOS build hints, checked by the compiler.
Place this on your application's main class -- the class named by
codename1.mainName. An attribute you do not set is not written at all, so
the builder's own default applies; the values shown here are that default,
for reference.
Generated from com.codename1.build.shared.BuildHints by BuildHintCodeGenerator. Do not edit by hand -- edit the catalog and re-run scripts/gen-build-hint-annotations.sh.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionString[]A semicolon separated list of libraries that should be linked to the app to build it Values are joined with;when the hint is written.String[]Comma separated list of url schemes thatcanExecutewill respect on iOS.Objective-C code that can be injected into the iOS app delegate at the top of the body of the didFinishLaunchingWithOptions callback methodIndicates the version number of the bundle, this is useful if you want to create a minor version number change for the beta testing supportWhich native dependency manager to use: auto picks one from whichever of ios.pods and ios.spm.packages is set, and cocoapods, spm or both require the matching hint to be set.Minimum iOS version the build targets.Objective-C code that can be injected into the iOS app delegate at the top of the file.booleantrue/false (defaults to false).UIInterfaceOrientationPortrait by default.The null and empty-string reads of this hint are presence checks; 6.0 is the substantive default (IPhoneBuilder.java:4671).booleantrue/false defaults to false but defined on new projects as true by default.booleanAdded the-ObjCcompile flag to the project files which some native libraries requireentries to inject into the iOS plist file during build.String[]A comma separated list of https://cocoapods.org/[Cocoa Pods] that should be linked to the app to build it.Sets the Cocoapods 'platform' for the Cocoapods.String[]Extra CocoaPods spec repositories to search, in addition to the default trunk.booleantrue/false defaults to false.one of ios, ipad, iphone (defaults to ios).String[]Swift Package Manager packages to link, one per entry, each written as identity|url|requirement.Specifies the team ID associated with the iOS provisioning profile and certificate.auto(default),modern,ios7,legacy.booleantrue/false (defaults to true).Allows intercepting a URL call using the syntax<string>urlPrefix<string>
-
Element Details
-
addLibs
String[] addLibsA semicolon separated list of libraries that should be linked to the app to build it Values are joined with;when the hint is written.- Default:
{}
-
applicationQueriesSchemes
String[] applicationQueriesSchemesComma separated list of url schemes thatcanExecutewill respect on iOS. If the url scheme isn't mentioned herecanExecutewill return false starting with iOS 9. Notice that this collides withios.plistInjectwhen used with the<key>LSApplicationQueriesSchemes</key>...value so you should use one or the other. For example, to enablecanExecutefor a url likemyurl://xysyou can use:myurl,myotherurlValues are joined with,when the hint is written.- Default:
{}
-
beforeFinishLaunching
String beforeFinishLaunchingObjective-C code that can be injected into the iOS app delegate at the top of the body of the didFinishLaunchingWithOptions callback method- Default:
""
-
bundleVersion
String bundleVersionIndicates the version number of the bundle, this is useful if you want to create a minor version number change for the beta testing support- Default:
""
-
dependencyManager
IosDependencyManager dependencyManagerWhich native dependency manager to use: auto picks one from whichever of ios.pods and ios.spm.packages is set, and cocoapods, spm or both require the matching hint to be set. An unrecognized value fails the build.- Default:
AUTO
-
deploymentTarget
String deploymentTargetMinimum iOS version the build targets. Set it to the lowest iOS you actually support; a higher value excludes older devices from the App Store listing.- Default:
""
-
glAppDelegateHeader
String glAppDelegateHeaderObjective-C code that can be injected into the iOS app delegate at the top of the file. For example, if you need to include headers or make special imports for other injected code- Default:
""
-
includePush
boolean includePushtrue/false (defaults to false). Whether to include the push capabilities in the iOS build. Notice that the IDE plugin has an "Include Push" check box you should use under the iOS section.- Default:
false
-
interfaceOrientation
String interfaceOrientationUIInterfaceOrientationPortrait by default. Indicates the orientation, one or more of (separated by colon :):UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown,UIInterfaceOrientationLandscapeLeft,UIInterfaceOrientationLandscapeRight. Notice that the IDE plugin has an "Interface Orientation" combo box you should use under the iOS section.- Default:
""
-
minDeploymentTarget
String minDeploymentTargetThe null and empty-string reads of this hint are presence checks; 6.0 is the substantive default (IPhoneBuilder.java:4671).- Default:
"6.0"
-
newStorageLocation
boolean newStorageLocationtrue/false defaults to false but defined on new projects as true by default. This changes the storage directory on iOS from using caches to using the documents directory which is the recommended location but might break compatibility. This is described in https://github.com/codenameone/CodenameOne/issues/1480[this issue]- Default:
true
-
objC
boolean objCAdded the-ObjCcompile flag to the project files which some native libraries require- Default:
false
-
plistInject
-
pods
String[] podsA comma separated list of https://cocoapods.org/[Cocoa Pods] that should be linked to the app to build it. For example,AFNetworking ~> 2.6, ORStackView ~> 3.0, SwiftyJSON ~> 2.3Values are joined with,when the hint is written.- Default:
{}
-
podsPlatform
String podsPlatformSets the Cocoapods 'platform' for the Cocoapods. Some Cocoapods require a minimum platform level. For example,ios.pods.platform=7.0.- Default:
""
-
podsSources
String[] podsSourcesExtra CocoaPods spec repositories to search, in addition to the default trunk. Values are joined with,when the hint is written.- Default:
{}
-
prerenderedIcon
boolean prerenderedIcontrue/false defaults to false. The iOS build process adapts the submitted icon for iOS conventions (adding an overlay) that might not be appropriate on some icons. Setting this to true leaves the icon unchanged (only scaled).- Default:
false
-
projectType
IosProjectType projectTypeone of ios, ipad, iphone (defaults to ios). Indicates whether the resulting binary is targeted to the iphone only or ipad only. Notice that the IDE plugin has a "Project Type" combo box you should use under the iOS section.- Default:
IOS
-
spmPackages
String[] spmPackagesSwift Package Manager packages to link, one per entry, each written as identity|url|requirement. Values are joined with;when the hint is written.- Default:
{}
-
teamId
String teamIdSpecifies the team ID associated with the iOS provisioning profile and certificate. Useios.debug.teamIdandios.release.teamIdto specify different team IDs for debug and release builds respectively.- Default:
""
-
themeMode
IosThemeMode themeModeauto(default),modern,ios7,legacy.auto(unset) keeps the existing iOS 7 flat theme so pre-refactor screenshot goldens and apps see no behavior change.modern/liquidopts in to the CSS-generated iOS Modern (liquid-glass) theme shipped fromnative-themes/ios-modern/theme.css.ios7/flatis the same asauto- pre-liquid iOS 7 flat theme;legacy/iphoneloads the pre-iOS 7 iPhone theme. Theauto-> modern flip is planned for a future release.- Default:
AUTO
-
uiscene
boolean uiscenetrue/false (defaults to true). Enables iOS UIScene lifecycle support. UIScene lets iOS manage one or more app UI sessions independently, improving lifecycle handling in modern iOS versions. Apple has indicated UIScene will be required starting with iOS 27, so this is now on by default; set the flag tofalseonly if you need to temporarily fall back to the legacyUIApplicationDelegatelifecycle.- Default:
true
-
urlScheme
String urlSchemeAllows intercepting a URL call using the syntax<string>urlPrefix<string>- Default:
""
-