KitX-Mobile
KitX-Mobile copied to clipboard
Mobile Client for KitX
KitX Mobile
Mobile Client for KitX
Runs on Android, iOS
Build project
Warning Please use physical devices to debug, any emulator may cause problems. Android emulators are currently known to experience problems; the situation with iOS simulators is currently unknown.
-
Pass
flutter doctor -v -
[China Mainland Developer]Config flutter related SDKs mirror through commands:set PUB_HOSTED_URL=https://mirrors.tuna.tsinghua.edu.cn/dart-pub set FLUTTER_STORAGE_BASE_URL=https://mirrors.tuna.tsinghua.edu.cn/flutterOnly works in current session. Config system envrionment varieties for permanent effect.
-
Set system environment varieties
GRADLE_OPTSto-Dfile.encoding=UTF-8. -
Run
init_packages.sh/ps1to fetch packages. -
Use
flutter runto run the project[Android]You need connect your phone to your computer inadbfirst.[iOS]Open yoursimulatorfirst or connect your iPhone to yourXCode.
-
[Android]Useflutter build --split-per-abito build the project, remove--split-per-abiarguments for flat apk which is much bigger but support more platforms.- We suggest your to run
build.pyinstead. [iOS]Build app inXCode.
- We suggest your to run
-
[Android]The output apk is in/kitx_mobile/build/app/outputs/flutter-apk/folder.
Tools
update-version.pyfor bothandroidandiOS- This script changes version number in
pubspec.yaml. - Run this script in
XCodebuild phases by add custom script:cd .. python3 update-version.py
- This script changes version number in
dependencies-analyzer.py- This script analyze
pubspec.yamland update thirdparty data in both mobile and kitx docs. - Tow arguments:
--export-for-mobile-about--export-for-website-docs
- This script analyze