@echo off
echo Building Muning Menu Recommender...

echo.
echo Step 1: Cleaning previous builds...
flutter clean

echo.
echo Step 2: Getting dependencies...
flutter pub get

echo.
echo Step 3: Generating Hive adapters...
flutter packages pub run build_runner build --delete-conflicting-outputs

echo.
echo Step 4: Building APK (Debug)...
flutter build apk --debug

echo.
echo Step 5: Building APK (Release)...
flutter build apk --release

echo.
echo Build completed!
echo Debug APK: build\app\outputs\flutter-apk\app-debug.apk
echo Release APK: build\app\outputs\flutter-apk\app-release.apk

pause
