-
Notifications
You must be signed in to change notification settings - Fork 408
Working With CodenameOne Sources
$ mkdir workspace
$ cd workspace
$ git clone https://github.com/codenameone/CodenameOne
Note
|
Creating a clean "workspace" directory is optional, and there is nothing special about the name "workspace". It is just recommended to create a clean directory into which you check out Codename One, because building Codename One will check out a few dependent projects and place then at the same level as the CodenameOne folder, so having a clean workspace will make it easier to manage. |
$ cd CodenameOne
$ ant
Note
|
The cd CodenameOne command should take you to the root project directory which contains subfolders "CodenameOne", "Ports", etc.. - not the subfolder named "CodenameOne".
|
You can run the unit test suite locally in the Codename One simulator using the "test-javase" ant target.
$ ant test-javase
Note
|
Running iOS Unit tests is currently limited to interal use only by Codename One. |
TLDR: You can run Codename One’s unit tests on a local iOS simulator by running the "test-ios" ant target in the main CodenameOne directory. E.g.
ant test-ios
This assumes the following requirements
-
You are running Mac OS X with Xcode 7.3 or higher installed.
-
You have npm installed and in your environment PATH.
-
You have appium installed and running.
Either download the installer from https://nodejs.org/en/ OR run brew install node
from terminal.
Open a new terminal window, then
$ mkdir appium
$ cd appium
$ npm install appium
$ ./node_modules/.bin/appium
Note
|
You may want to run the last command ./node_modules/.bin/appium as a daemon so that you can continue to use the same terminal window. E.g. ./node_modules/.bin/appium &
|
About This Guide
Introduction
Basics: Themes, Styles, Components & Layouts
Theme Basics
Advanced Theming
Working With The GUI Builder
The Components Of Codename One
Using ComponentSelector
Animations & Transitions
The EDT - Event Dispatch Thread
Monetization
Graphics, Drawing, Images & Fonts
Events
File-System,-Storage,-Network-&-Parsing
Miscellaneous Features
Performance, Size & Debugging
Advanced Topics/Under The Hood
Signing, Certificates & Provisioning
Appendix: Working With iOS
Appendix: Working with Mac OS X
Appendix: Working With Javascript
Appendix: Working With UWP
Security
cn1libs
Appendix: Casual Game Programming