inventory / sebn_inventory_app / README.md
README.md
Raw

SEBN inventory app

Flutter crossplatform (android/web) application for internal use in SEBN UA company.

Getting Started:

  1. Run flutter pub get to update dependencies.

  2. Required generated files are missing (.gitignore). Run:

flutter pub run build_runner watch --delete-conflicting-outputs --use-polling-watcher

in terminal to generate the required files and watch changes.

  1. Also run to generate localization files:
flutter gen-l10n --template-arb-file=intl_en.arb
  1. Create .env file in .\ with fields:
BACKEND_URI=http://0.0.0.0:0000/
CONNECTION_CHECK_HOST=0.0.0.0
SQL_CIPHER_PRAGMA_KEY=yourStringKeyToAccessEncryptedLocalDatabase

Warning, changing SQL_CIPHER_PRAGMA_KEY during production usage will make it impossible to access database. Database deletiong logic already implemented, user will be warned. SQL_CIPHER_PRAGMA_KEY additionaly encrypted in runtime

  1. Run flutter build apk to build apk file. Output is in sebn_inventory_app\build\app\outputs\apk\release. Use flutter clean command to clear cache if something wrong. Configure sebn_inventory_app\android\app\build.gradle to change build config. Supported platforms: armeabi-v7a, arm64-v8a, x86_64