- Flutter
- Kaiteki is running on the Flutter beta branch. Prefer checking the SDK releases page.
- A supported IDE like Visual Studio Code, IntelliJ, or Android Studio (optional)
- Build tools for the platform you want to compile for
- Android: See Flutter "Getting Started" guide for setting up the Android SDK, otherwise download https://developer.android.com/studio#command-line-tools-only and set SDK path with
flutter config --android-studio-dir
- Windows: Visual Studio or Build Tools for Visual Studio 2022 with "Desktop development with C++" workload
- Linux:
- Debian/Ubuntu:
clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev
- Void Linux:
clang cmake ninja pkg-config gtk+3-devel
- Debian/Ubuntu:
- Android: See Flutter "Getting Started" guide for setting up the Android SDK, otherwise download https://developer.android.com/studio#command-line-tools-only and set SDK path with
Note Kaiteki stores its translations inside another repository and includes them via a submodule, so it's important to update and initialize them before compiling.
git clone https://github.com/Kaiteki-Fedi/Kaiteki.git
git submodule update --init
$ flutter pub get # Get packages
"de": 2 untranslated message(s).
...
Running "flutter pub get" in kaiteki...
Resolving dependencies... (4.4s)
_fe_analyzer_shared 47.0.0 (51.0.0 available)
...
Got dependencies!
$ flutter build apk # Check `flutter build -h` for what platforms you can compile for
💪 Building with sound null safety 💪
"de": 2 untranslated message(s).
...
Running Gradle task 'assembleDebug'... 68.2s
✓ Built build/app/outputs/flutter-apk/app-debug.apk.
flutter gen-l10n
to generate source code from localization files.flutter pub upgrade
to upgrade packages to a newer minor version.
IDEs with official Flutter plugins are recommended. Otherwise you can still run a Flutter application with flutter run
, and invoke actions like Hot Reload, or Hot Restart with your keyboard. Dart supports LSP, so IDEs like Kate support linting and showing problems as well.
Try clearing caches and existing build files with flutter clean
. Perhaps generated files are outdated, then you can try running flutter pub run build_runner build --delete-conflicting-outputs