Skip to content

wangzigeng2004/lidrobile

This branch is 1146 commits behind RoepStoep/lidrobile:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9ee9e20 · Jan 26, 2020
Aug 2, 2019
Oct 25, 2019
Oct 18, 2019
Jan 26, 2020
Jan 15, 2020
Feb 11, 2017
Oct 18, 2019
Sep 23, 2018
Mar 6, 2018
Oct 26, 2019
Aug 2, 2019
Jan 18, 2020
Nov 1, 2019
Aug 2, 2019
Jun 13, 2017
Jan 18, 2020
Jan 18, 2020
Jan 18, 2020
Aug 19, 2019
Aug 19, 2019
Jun 12, 2017
Nov 25, 2017
Sep 8, 2017

Repository files navigation

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.

Requirements

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 use android command everywhere.

iOS:

Build the web application

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

Run the tests

$ npm run test

Run in a browser

$ 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.

Build cordova application and run on device

Be sure to check requirements above.

See scripts defined in package.json for various environments.

Android

Plug your device with USB, or use an emulator. Then:

$ npm run android-stage

iOS

Plug your device with USB, or use an emulator. Then:

$ npm run ios-stage

Build scan

Android

Build the native code using:

ndk-build -C platforms/android

iOS

Through XCode, in the build settings menu:

  • Set C++ Language Dialect option to C++14 value.
  • Set C++ Standard Library option to libc++ value.

About

lidraughts.org mobile application

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 82.4%
  • CSS 14.1%
  • JavaScript 3.2%
  • Other 0.3%