The Alloy GitHub repository includes a number of small test applications that demonstrates various Alloy features.
To build and run one of the test applications, do the following:
/appfolder and overwrite any existing files.
The sample apps are organized in several folders representing the following categories:
Note that some samples demonstrate platform-specific features that only run on certain platforms.
To import one of the sample application, first clone the Alloy GitHub project locally:
git clone https://github.com/appcelerator/alloy
Once you've selected a test app to build and run, you first create a new "blank" Alloy project, and then copy the contents of the sample folder into the
/app folder of the newly created Alloy project. You can do this either using Appcelerator Studio or on the command line using the CLI tools, as explained below.
Prior to Alloy 1.7.6, you need to manually copy the source code to the new Titanium project:.
appc new -t titanium -n picker_test --id com.yourdomain -d . -url yourdomain.com -p all cd picker_test/ cp -r <alloy_repo>/test/apps/ui/picker/ app/ appc run -p ios
/appfolder in Project Explorer.
You can now build or run the application on a target device, simulator or emulator.