Sending Build Settings To The Server
When sending a build to the server you can provide additional parameters to the build which will be incorporated into the build process on the server to hint on multiple different build time options.
You can do this by right clicking the Codename One project and entering the project properties. There you will find the "Build Hints" tab in which you can just type the arguments and the appropriate values from the list bellow.
Here is the current list of supported arguments, keep up with this page since we intend to update it frequently with new options:
You can do this by right clicking the Codename One project and entering the project properties. There you will find the "Build Hints" tab in which you can just type the arguments and the appropriate values from the list bellow.
Here is the current list of supported arguments, keep up with this page since we intend to update it frequently with new options:
- android.min_sdk_version - defaults to '7". Used in the manifest to indicate the android:minSdkVersion property.
- android.xapplication - defaults to an empty string. Allows developers of native Android code to add text within the application block to define things such as widgets etc.
- android.xpermissions - additional permissions for the Android manifest
- block_server_registration - true/false flag defaults to false. By default Codename One applications register with our server, setting this to true blocks them from sending information to our cloud. We keep this data for statistical purposes and intend to provide additional installation stats in the future.
- ios.project_type - one of ios, ipad, iphone (defaults to ios). Indicates whether the resulting binary is targeted to the iphone only or ipad only.
- ios.statusbar_hidden - true/false defaults to false. Hides the iOS status bar if set to true.
- ios.prerendered_icon - true/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).
- ios.application_exits - true/false (defaults to true). Indicates whether the application should exit immediately on home button press. The default is to exit, leaving the application running is untested at the moment.
- ios.interface_orientation - UIInterfaceOrientationPortrait by default. Indicates the default initial orientation, one of: UIInterfaceOrientationPortrait, UIInterfaceOrientationPortraitUpsideDown, UIInterfaceOrientationLandscapeLeft, UIInterfaceOrientationLandscapeRight
- rim.askPermissions - true/false defaults to true. Indicates whether the user is prompted for permissions on RIM devices.
- crash_protect - true/false defaults to false Only applicable to paying users. Instruments an application with on device exception logging which allows the application to send a crash log containing detailed exception stacks to the server when it fails.
- rim.ignor_legacy - true/false defaults to false. When set to true the RIM build targets only 5.0 devices and newer and doesn’t build the 4.x version.
- ios.plistInject - entries to inject into the iOS plist file during build.
- noExtraResources - true/false (defaults to false). Blocks codename one from injecting its own resources when set to true, the only effect this has is in slightly reducing archive size.
- j2me.iconSize - Defaults to 48x48. The size of the icon in the format of width x height (without the spacing).