Skip to content

Latest commit

 

History

History
61 lines (44 loc) · 2.67 KB

BUILDING.md

File metadata and controls

61 lines (44 loc) · 2.67 KB

Building Kaiteki

Prerequisites

Cloning and updating submodules

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

Compiling

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

Other commands

  • flutter gen-l10n to generate source code from localization files.
  • flutter pub upgrade to upgrade packages to a newer minor version.

Debugging

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.

Things to try when a build fails

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

Official resources