This is a simple Apache Cordova scaffold wrapping your a single-page web app that embodies a timer for some abstract activity.
This project has a configured devcontainer environment which you can use to build the project for Android devices.
www/index.html— single-page web app.config.xml— basic Cordova app configuration.package.json— convenience scripts for common Cordova commands.res/— placeholder directory for icons/splashes.
- Node.js and npm installed (https://nodejs.org/)
- Cordova CLI:
npm install -g cordova
Android (Windows) specific:
- Java JDK (17 reccomended, 21 latest)
- Android SDK (via Android Studio or Command line tools)
- Set
ANDROID_HOMEand add platform tools to PATH
iOS (macOS only):
- Xcode (required for building/running on iOS devices/simulators)
npm startThis opens a local dev server at http://localhost:8000 with the www/ contents in your browser (auto-opens).
Alternatively: npx http-server www -p 8000
cordova platform add android
cordova platform add ios
cordova build android cordova build ios
cordova run android --emulator cordova run android --device
- iOS builds require macOS with Xcode installed. You cannot build iOS targets on Windows.
- If you already have an existing Cordova project, you can copy
www/index.htmlinto itswww/folder and mergeconfig.xmlsettings.
