GNU General Public License v3.0

项目介绍

lichess-org/lichobile 是一个托管在 GitHub 上的开源项目,主要使用 TypeScript 编写,采用 GNU General Public License v3.0 许可证,目前获得 2.2k 个 Star、329 次 Fork。

仓库全名
lichess-org/lichobile
开源许可证
GNU General Public License v3.0
Star 数
2.2k
Fork 数
329
未关闭 Issue
694

README 摘要

[!WARNING] End-of-life notice This repository is obsolete and will no longer be updated. It was officially replaced by a complete rewrite, which you can find here. If you are unable to install the new app, we suggest you use the mobile website. lichess.org/mobile Lichess mobile is the lichess.org official application. It is written in TypeScript, with a bit of Kotlin and Swift. It is a web application that accesses…

完整内容见 GitHub 原始 README 或本页 。

常见问题

lichobile 用什么语言开发?

主要使用 TypeScript 编写,采用 GNU General Public License v3.0 许可证,目前有 2.2k 个 Star。

lichobile 可以免费商用吗?

仓库标注的许可证为 GNU General Public License v3.0,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 lichobile 的源码?

可以直接克隆仓库:git clone https://github.com/lichess-org/lichobile.git,默认分支为 master;安装与运行步骤见仓库 README。

lichobile 最近还在维护吗?

仓库最近一次更新为 2月16日,当前有 694 个未关闭 Issue;Star 数为 2.2k,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

lichess.org former mobile application / new one -> github.com/lichess-org/mobile

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

语言占比

C
HTML
Java
JavaScript
Mustache
Objective-C
Ruby
Stylus
Swift
TypeScript

Release

README

Warning 警告

End-of-life notice

This repository is obsolete and will no longer be updated. It was officially replaced by a complete rewrite, which you can find here. If you are unable to install the new app, we suggest you use the mobile website.

lichess.org/mobile

Android build Lint and unit tests GitHub contributors GitHub All Releases GitHub

lichess mobile screenshots

Lichess mobile is the lichess.org official application. It is written in TypeScript, with a bit of Kotlin and Swift. It is a web application that accesses the native SDK, thanks to Ionic capacitor. The rendering library is mithril.js. It talks to a native Stockfish engine, supporting multiple variants, through a capacitor plugin. Multi-variant chess library is brought by a JavaScript version of scalachess.

Download

Get it on F-Droid Get it on Google Play

or get the APK from the Releases section

Required dependencies

Android:

  • in addition to capacitor dependencies, android ndk for stockfish compilation (to install with Android Studio).

Setup project

Make sure to install all dependencies:

$ npm install

Capacitor needs the web app before sync, so build it:

$ npm run build

Sync capacitor:

$ npx cap sync

Running in the browser

$ npm run serve

Will serve assets at http://localhost:8080. Once the server is up, browse to http://localhost:8080/www.

You should use a chromium based browser to be close to the android webview which is based on chrome.

Be sure to Toggle Device Mode or else you won’t be able to click on anything.

Running in a device/emulator

Be sure to install all the dependencies and follow the steps above in the Setup project section.

In order to build Stockfish, you need to download the current stockfish plugin NNUE file and save it to the proper location for each platform:

$ npm run fetch-nnue

Android

Using command line:

$ npx cap run android

Using android studio:

$ npx cap open android

More information available here.

Free version

By default, the output APK will rely on Firebase Cloud Messaging to support push notifications. However, it is possible to remove this dependency if you don’t care about push notifications.

To build the free version:

$ npm run patch-nonfree
$ npx cap update android
$ cd ./android
$ ./gradlew assembleDebug

iOS

You will need a GoogleService-Info.plist file in order to compile iOS project. You can download a dummy one from the firebase open-source project. Put it in the ios/App/App/ folder. Only debug builds are allowed with that example file. Push notifications won’t work, but you will be able to run the app on a simulator just fine.

Using command line:

$ npx cap run ios

Using Xcode:

$ npx cap open ios

More information available here.

Advanced setup

See the wiki.

评论

暂无评论