Files
mobile-android/watch-dev.sh
senseiGai 5e3b9d0882 feat: Refactor SearchResultsList component for improved loading and empty state handling
- Updated UI to use AnimatedVisibility for loading indicator and empty state message.
- Enhanced user feedback with a centered loading spinner and message during search.
- Improved layout and spacing for search results and user items.
- Adjusted colors and sizes for better visual consistency.

chore: Update gradle.properties to use new Java 17 path

- Changed Java home path to reflect new installation location.

docs: Add comprehensive README for project setup and development

- Included quick start instructions, available emulators, technologies used, and useful commands.
- Documented project structure and debugging tips.
- Added license information and contact details for the development team.

build: Add development scripts for quick rebuild and installation

- Created dev.sh for fast rebuild and install without cleaning.
- Added run.sh for a complete build and install process with emulator checks.
- Introduced watch-dev.sh for automatic rebuild on file changes.
2026-01-11 17:14:02 +05:00

59 lines
1.8 KiB
Bash
Executable File

#!/bin/bash
# Auto-rebuild on file changes
# Requires: fswatch (install via: brew install fswatch)
echo "👀 Watching for changes..."
echo "📝 Редактируйте файлы - приложение будет пересобираться автоматически"
echo ""
# Check if fswatch is installed
if ! command -v fswatch &> /dev/null; then
echo "⚠️ fswatch не установлен!"
echo "📦 Установите через: brew install fswatch"
echo ""
echo "Или используйте ./dev.sh для ручной пересборки"
exit 1
fi
# Ensure emulator is running
if ! adb devices | grep -q "emulator"; then
echo "🚀 Запускаю эмулятор..."
$ANDROID_HOME/emulator/emulator -avd Pixel_9_Pro_API_35 &
adb wait-for-device
while [ "$(adb shell getprop sys.boot_completed 2>/dev/null | tr -d '\r')" != "1" ]; do
sleep 2
done
fi
echo "✅ Эмулятор готов!"
echo ""
# Initial build
./gradlew installDebug
adb shell am start -n com.rosetta.messenger/.MainActivity
echo ""
echo "👂 Слежу за изменениями в app/src/main/java..."
echo ""
# Watch for changes in Kotlin files
fswatch -o app/src/main/java | while read f; do
echo "🔄 Изменение обнаружено! Пересобираю..."
./gradlew installDebug --no-daemon
if [ $? -eq 0 ]; then
echo "✅ Обновлено! Перезапускаю приложение..."
adb shell am force-stop com.rosetta.messenger
sleep 1
adb shell am start -n com.rosetta.messenger/.MainActivity
echo "🎉 Готово!"
else
echo "❌ Ошибка сборки"
fi
echo ""
echo "👂 Жду следующих изменений..."
done