Lidraughts mobile is a cordova application, forked from Lichess mobile. It is written in TypeScript and JavaScript. The rendering library is mithril.js. It uses babel, browserify and gulp as build tools. It talks to a native Scan 3.1 engine, through a cordova plugin. Multi-variant draughts library is brought by a JavaScript version of scaladraughts.
Android:
- the android SDK
- SDK packages API 23
- last version of Android SDK tools and platform tools
- android ndk for scan compilation
- make sure the
sdk/tools/directory is in your path, so you can useandroidcommand everywhere.
iOS:
- OS X and Xcode
Make sure you installed all deps:
$ npm install Then copy env.json.example to env.json and modify settings to link your app to a lidraughts server.
To build and watch for changes:
$ npm run watch $ npm run test $ chromium --user-data-dir=/tmp/lidrobile-chrom --disable-web-security www/index.html Be sure to Toggle Device Mode in your browser, or else you won't be able to click on anything.
Be sure to check requirements above.
See scripts defined in package.json for various environments.
Plug your device with USB, or use an emulator. Then:
$ npm run android-stage Plug your device with USB, or use an emulator. Then:
$ npm run ios-stage Build the native code using:
ndk-build -C platforms/android Through XCode, in the build settings menu:
- Set
C++ Language Dialectoption toC++14value. - Set
C++ Standard Libraryoption tolibc++value.