Stockfishm is a cordova application that demonstrate how to use the cordova stockfish plugin.
Android:
- the android SDK
- SDK packages API 23
- last version of Android SDK tools and platform tools
- make sure the
sdk/tools/
directory is in your path, so you can useandroid
command everywhere. - ndk
iOS:
- OS X and Xcode version 7.x
tarifa check --force
This will recreate the cordova folder with android and iOS platforms and also install plugins.
cd project
npm install
Build the native code using:
ndk-build -C app/platforms/android
Build the apk using:
tarifa build android
Through XCode, in the build settings menu:
- Set
C++ Language Dialect
option toC++11
value. - Set
C++ Standard Library
option tolib++
value.
Finally, build the ios app using:
tarifa build ios