Annotation Type Build
Build hints that are not specific to one platform.
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 build server's own default applies. The default clause below each
attribute names a constant that says nothing -- see HintUnset -- and this
package deliberately does not record what the server would do instead,
because that is the server's to change.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThe application ID for an app that requires native Facebook login integration, this defaults to null which means native Facebook support shouldn't be in the appThe Android/chrome push identifier, see the push section for more detailsmodern,legacy,custom(default unset).true/false (defaults to false).
-
Element Details
-
facebookAppId
String facebookAppIdThe application ID for an app that requires native Facebook login integration, this defaults to null which means native Facebook support shouldn't be in the app- Default:
""
-
gcmSenderId
String gcmSenderIdThe Android/chrome push identifier, see the push section for more details- Default:
""
-
nativeTheme
ThemeMode nativeThememodern,legacy,custom(default unset). Cross-platform override that sets bothios.themeModeandand.themeModetogether when those aren't set explicitly.modern= liquid glass + Material 3,legacy= iOS 7 flat- Holo Light,
customdisables the framework native theme entirely. The legacy aliascn1.nativeThemeis still accepted.
- Default:
DEFAULT
- Holo Light,
-
noExtraResources
Toggle noExtraResourcestrue/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. This might have adverse effects on some features of Codename One so it isn't recommended.- Default:
DEFAULT
-