connection fixes

This commit is contained in:
2025-10-06 09:41:23 +09:00
parent 4ceccae6ce
commit fa55367e68
361 changed files with 24633 additions and 6206 deletions

561
TECHNICAL_SPECIFICATION.md Normal file
View File

@@ -0,0 +1,561 @@
# ТЕХНИЧЕСКОЕ ЗАДАНИЕ
## Система удаленного доступа к камерам мобильных устройств "GodEye"
### Версия: 1.0
### Дата: 6 октября 2025 г.
---
## 1. ОБЩИЕ ПОЛОЖЕНИЯ
### 1.1 Наименование системы
**GodEye Signal Center** - система удаленного доступа к камерам мобильных устройств через WebRTC с централизованным управлением.
### 1.2 Назначение системы
Система предназначена для организации удаленного доступа операторов к камерам Android устройств в режиме реального времени через веб-интерфейс.
### 1.3 Цели разработки
- Обеспечение безопасного удаленного доступа к камерам мобильных устройств
- Централизованное управление подключениями и сессиями
- Масштабируемая архитектура для поддержки множественных подключений
- Минимальная задержка передачи видео (< 500ms)
---
## 2. ХАРАКТЕРИСТИКИ ОБЪЕКТА АВТОМАТИЗАЦИИ
### 2.1 Краткие сведения об объекте
- **Тип системы**: Распределенная система реального времени
- **Область применения**: Удаленный мониторинг, техническая поддержка, безопасность
- **Пользователи**: Операторы мониторинга, администраторы системы
- **Устройства**: Android смартфоны/планшеты, десктопные рабочие станции
### 2.2 Функциональные требования
#### 2.2.1 Основные функции
1. **Регистрация и аутентификация устройств**
- Уникальная идентификация Android устройств
- Регистрация операторов с правами доступа
- Система разрешений и контроля доступа
2. **Управление камерой**
- Запрос доступа к камере устройства
- Переключение между типами камер (основная, фронтальная, широкоугольная, телеобъектив)
- Контроль качества видеопотока
- Завершение сессий
3. **Видеотрансляция**
- WebRTC peer-to-peer соединение
- Адаптивное качество в зависимости от пропускной способности
- Поддержка разрешений: 480p, 720p, 1080p
- Кодеки: H.264, VP8, VP9
4. **Мониторинг и логирование**
- Отслеживание состояния устройств
- Логирование всех операций
- Статистика использования
- Система уведомлений
#### 2.2.2 Дополнительные функции
1. **Администрирование**
- Панель управления системой
- Управление пользователями и устройствами
- Мониторинг производительности
- Конфигурация системы
2. **Безопасность**
- Шифрование всех соединений (TLS/SSL)
- Аутентификация устройств по токенам
- Аудит действий пользователей
- Контроль сессий
---
## 3. АРХИТЕКТУРА СИСТЕМЫ
### 3.1 Компоненты системы
#### 3.1.1 Backend Server (Node.js)
- **Технологии**: Node.js, Express.js, Socket.IO
- **Функции**:
- Сигнальный сервер для WebRTC
- Управление сессиями и устройствами
- REST API для управления
- Система логирования
- **Порт**: 3001 (конфигурируемый)
#### 3.1.2 Android Client Application
- **Технологии**: Kotlin, Android SDK, WebRTC Android
- **Функции**:
- Регистрация в системе
- Управление камерой устройства
- WebRTC видеопоток
- Обработка команд переключения камер
- **Минимальная версия Android**: API 21 (Android 5.0)
#### 3.1.3 Desktop Operator Application
- **Технологии**: Electron, HTML5, CSS3, JavaScript
- **Функции**:
- Интерфейс оператора
- Управление подключениями к устройствам
- Просмотр видеопотоков
- Переключение камер
- **Платформы**: Windows 10+, macOS 10.14+, Linux (Ubuntu 18.04+)
#### 3.1.4 Web Demo Interface
- **Технологии**: HTML5, CSS3, JavaScript, Socket.IO
- **Функции**:
- Демонстрационный интерфейс
- Тестирование функциональности
- Имитация Android устройства и оператора
### 3.2 Схема взаимодействия
```
Android Device <--WebSocket--> Backend Server <--WebSocket--> Desktop Operator
| | |
| | |
Camera API Session Video Display
WebRTC Management WebRTC
Stream Device Registry Controls
```
---
## 4. ТЕХНИЧЕСКИЕ ТРЕБОВАНИЯ
### 4.1 Требования к Backend Server
#### 4.1.1 Функциональные требования
- **Протоколы**: HTTP/HTTPS, WebSocket (Socket.IO)
- **API**: RESTful API + Socket.IO events
- **База данных**: В памяти (session storage) с возможностью подключения PostgreSQL/MongoDB
- **Логирование**: Winston с ротацией логов
- **Конфигурация**: JSON файлы + переменные окружения
#### 4.1.2 Socket.IO Events
**Входящие события:**
- `register:android` - регистрация Android устройства
- `register:operator` - регистрация оператора
- `camera:request` - запрос доступа к камере
- `camera:response` - ответ устройства на запрос камеры
- `camera:switch` - переключение типа камеры
- `camera:disconnect` - завершение сессии
- `webrtc:offer` - WebRTC offer
- `webrtc:answer` - WebRTC answer
- `webrtc:ice-candidate` - ICE кандидаты
- `ping` - проверка соединения
**Исходящие события:**
- `register:success/error` - результат регистрации
- `device:connected/disconnected` - изменение статуса устройства
- `camera:request` - передача запроса камеры
- `camera:stream-ready` - готовность видеопотока
- `camera:denied` - отказ в доступе
- `session:status-update` - обновление статуса сессии
- `webrtc:offer/answer/ice-candidate` - WebRTC сигнализация
#### 4.1.3 REST API Endpoints
**Операторы:**
- `GET /api/operators/devices` - список доступных устройств
- `POST /api/operators/camera/request` - запрос камеры
- `POST /api/operators/camera/:sessionId/switch` - переключение камеры
- `DELETE /api/operators/camera/:sessionId` - завершение сессии
- `GET /api/operators/sessions` - активные сессии оператора
**Администрирование:**
- `GET /api/admin/stats` - статистика системы
- `GET /api/admin/health` - состояние системы
- `GET /api/admin/devices` - все устройства
- `GET /api/admin/sessions` - все сессии
- `POST /api/admin/cleanup` - очистка неактивных сессий
**Мониторинг:**
- `GET /api/status` - общий статус системы
### 4.2 Требования к Android Application
#### 4.2.1 Функциональные требования
- **Разрешения**: CAMERA, RECORD_AUDIO, INTERNET, ACCESS_NETWORK_STATE
- **Архитектура**: MVVM с использованием Android Architecture Components
- **WebRTC**: Последняя стабильная версия WebRTC Android
- **Socket.IO**: Socket.IO Android Client
#### 4.2.2 Основные классы и функции
**MainActivity:**
- Основной экран приложения
- Управление разрешениями
- Отображение статуса подключения
- Список активных сессий
**SocketManager:**
- Подключение к серверу
- Обработка Socket.IO событий
- Отправка ответов на запросы камеры
**CameraManager:**
- Инициализация камеры
- Переключение между камерами
- Управление параметрами видео
**WebRTCManager:**
- Создание peer connection
- Обработка offer/answer
- Управление ICE кандидатами
- Потоковая передача видео
#### 4.2.3 Пользовательский интерфейс
- **Главный экран**: Device ID, статус подключения, настройки сервера
- **Экран сессий**: Список активных запросов и сессий
- **Настройки**: URL сервера, качество видео, разрешения
### 4.3 Требования к Desktop Operator
#### 4.3.1 Функциональные требования
- **Framework**: Electron (последняя LTS версия)
- **UI Framework**: Собственный CSS/JavaScript
- **WebRTC**: Встроенный в Chromium
- **Архитектура**: Main process + Renderer process
#### 4.3.2 Основные модули
**ConfigManager:**
- Управление настройками приложения
- Сохранение конфигурации
- Валидация параметров
**SocketManager:**
- Подключение к backend серверу
- Обработка событий
- Переподключение при обрывах
**DeviceManager:**
- Отображение списка устройств
- Управление подключениями
- Фильтрация и поиск
**SessionManager:**
- Управление активными сессиями
- Отображение статусов
- История операций
**VideoManager:**
- Отображение видеопотоков
- Управление качеством
- Фильтры изображения
#### 4.3.3 Пользовательский интерфейс
**Главное окно:**
- Панель подключения (статус, настройки)
- Список доступных устройств
- Область просмотра видео
- Панель управления камерой
- Логи операций
**Дополнительные окна:**
- Настройки приложения
- История сессий
- Справочная информация
---
## 5. ТРЕБОВАНИЯ К ПРОИЗВОДИТЕЛЬНОСТИ
### 5.1 Пропускная способность
- **Минимальная**: 1 Мбит/с для SD качества (480p)
- **Рекомендуемая**: 5 Мбит/с для HD качества (720p)
- **Оптимальная**: 10 Мбит/с для Full HD (1080p)
### 5.2 Задержка
- **WebRTC соединение**: < 500ms
- **Команды управления**: < 100ms
- **Отклик интерфейса**: < 50ms
### 5.3 Масштабируемость
- **Одновременные устройства**: до 100
- **Одновременные операторы**: до 50
- **Активные сессии**: до 30
- **Время работы без перезагрузки**: 24/7
### 5.4 Ресурсы сервера
- **ОЗУ**: минимум 2 ГБ, рекомендуется 8 ГБ
- **CPU**: минимум 2 ядра, рекомендуется 4 ядра
- **Сеть**: 100 Мбит/с
- **Дисковое пространство**: 10 ГБ для логов
---
## 6. ТРЕБОВАНИЯ К БЕЗОПАСНОСТИ
### 6.1 Шифрование
- **WebSocket соединения**: WSS (WebSocket Secure)
- **WebRTC**: DTLS (по умолчанию)
- **REST API**: HTTPS
- **Конфигурационные файлы**: шифрование чувствительных данных
### 6.2 Аутентификация
- **Устройства**: уникальный Device ID + токен регистрации
- **Операторы**: логин/пароль + сессионные токены
- **Администраторы**: двухфакторная аутентификация
### 6.3 Авторизация
- **Ролевая модель**: администратор, оператор, устройство
- **Права доступа**: по устройствам и функциям
- **Аудит**: логирование всех действий
### 6.4 Защита данных
- **Персональные данные**: минимальный объем сбора
- **Видеопотоки**: не сохраняются на сервере
- **Логи**: автоматическая очистка через 30 дней
- **Backup**: шифрованные резервные копии конфигурации
---
## 7. ТРЕБОВАНИЯ К НАДЕЖНОСТИ
### 7.1 Отказоустойчивость
- **Автоматическое переподключение** при обрыве связи
- **Graceful shutdown** с сохранением состояния
- **Обработка ошибок** с информативными сообщениями
- **Восстановление сессий** после сбоев
### 7.2 Мониторинг
- **Health checks** для всех компонентов
- **Метрики производительности** в реальном времени
- **Система алертов** при критических событиях
- **Логирование** с различными уровнями детализации
### 7.3 Резервное копирование
- **Конфигурация**: ежедневное автоматическое резервирование
- **Логи**: архивирование и ротация
- **Состояние системы**: snapshot при критических изменениях
---
## 8. ТРЕБОВАНИЯ К ИНТЕРФЕЙСАМ
### 8.1 Пользовательский интерфейс
#### 8.1.1 Desktop Operator Application
- **Современный дизайн**: Material Design или аналогичный
- **Адаптивность**: масштабирование под разные разрешения
- **Темная/светлая тема**: переключение в настройках
- **Локализация**: русский и английский языки
- **Доступность**: поддержка screen readers
#### 8.1.2 Android Application
- **Material Design 3**: соответствие последним гайдлайнам Google
- **Адаптивность**: поддержка планшетов и различных размеров экранов
- **Простота использования**: минимальное количество действий для основных функций
- **Обратная связь**: четкие индикаторы состояния и прогресса
#### 8.1.3 Web Demo Interface
- **Responsive design**: работа на мобильных и десктопных устройствах
- **Cross-browser compatibility**: Chrome, Firefox, Safari, Edge
- **Интерактивность**: real-time обновления интерфейса
- **Отладочная информация**: детальные логи для разработчиков
### 8.2 API интерфейсы
#### 8.2.1 REST API
- **OpenAPI 3.0 спецификация**: полная документация API
- **Стандартные HTTP коды**: правильное использование статусов
- **JSON формат**: все запросы и ответы
- **Версионирование**: поддержка версий API
- **Rate limiting**: защита от злоупотреблений
#### 8.2.2 WebSocket API
- **Документация событий**: полный список с примерами
- **Схемы данных**: JSON Schema для всех событий
- **Обработка ошибок**: стандартизированные коды ошибок
- **Heartbeat**: механизм проверки соединения
---
## 9. ТРЕБОВАНИЯ К ТЕСТИРОВАНИЮ
### 9.1 Модульное тестирование
- **Backend**: покрытие кода минимум 80%
- **Android**: unit тесты для бизнес-логики
- **Desktop**: тестирование основных модулей
- **Автоматизация**: запуск тестов при каждом коммите
### 9.2 Интеграционное тестирование
- **API тестирование**: все endpoints и сценарии
- **WebSocket тестирование**: все события и error cases
- **WebRTC тестирование**: установка соединений и качество
- **Cross-platform**: тестирование на различных ОС
### 9.3 Нагрузочное тестирование
- **Одновременные подключения**: до максимальных значений
- **Долговременная работа**: 24 часа непрерывной работы
- **Деградация сервиса**: поведение при превышении лимитов
- **Memory leaks**: отсутствие утечек памяти
### 9.4 Безопасности тестирование
- **Penetration testing**: поиск уязвимостей
- **Authentication bypass**: проверка обхода аутентификации
- **Data validation**: валидация всех входных данных
- **SSL/TLS**: проверка конфигурации шифрования
---
## 10. ТРЕБОВАНИЯ К ДОКУМЕНТАЦИИ
### 10.1 Техническая документация
- **Архитектура системы**: диаграммы и описания компонентов
- **API документация**: полная OpenAPI спецификация
- **Database schema**: структура данных
- **Deployment guide**: инструкции по развертыванию
### 10.2 Пользовательская документация
- **Руководство администратора**: установка, настройка, обслуживание
- **Руководство оператора**: работа с desktop приложением
- **Инструкция для пользователей**: настройка Android приложения
- **FAQ**: часто задаваемые вопросы и решения
### 10.3 Документация разработчика
- **Setup guide**: настройка среды разработки
- **Code style**: стандарты кодирования
- **Contributing guidelines**: правила участия в проекте
- **Changelog**: история изменений
---
## 11. ТРЕБОВАНИЯ К ПОСТАВКЕ
### 11.1 Исходный код
- **Git repository**: структурированная история коммитов
- **Branching strategy**: GitFlow или аналогичная стратегия
- **Code review**: все изменения проходят ревью
- **CI/CD**: автоматическая сборка и тестирование
### 11.2 Сборки приложений
- **Backend**: Docker образ + npm package
- **Android**: APK файл + source code
- **Desktop**: инсталляторы для Windows, macOS, Linux
- **Web Demo**: статические файлы
### 11.3 Конфигурация
- **Environment templates**: примеры конфигурационных файлов
- **Docker Compose**: готовая конфигурация для развертывания
- **Kubernetes manifests**: для enterprise развертывания
- **Monitoring setup**: конфигурация систем мониторинга
---
## 12. КРИТЕРИИ ПРИЕМКИ
### 12.1 Функциональные критерии
- Регистрация и подключение Android устройств
- Регистрация и подключение операторов
- Запрос и получение доступа к камере
- Переключение между типами камер
- Стабильная WebRTC видеотрансляция
- Завершение сессий и отключение устройств
- Административные функции
- Система логирования и мониторинга
### 12.2 Технические критерии
- Задержка видео < 500ms
- Стабильная работа 24 часа
- Поддержка 30 одновременных сессий
- Покрытие тестами > 80%
- ✅ Безопасность соединений (HTTPS/WSS)
- ✅ Cross-platform совместимость
### 12.3 Качественные критерии
- ✅ Удобство использования интерфейсов
- ✅ Полнота документации
- ✅ Качество кода (code review passed)
- ✅ Отсутствие критических уязвимостей
- ✅ Соответствие техническому заданию
---
## 13. УПРАВЛЕНИЕ ПРОЕКТОМ
### 13.1 Этапы разработки
#### Этап 1: Архитектура и Backend (4 недели)
- Проектирование архитектуры системы
- Разработка Backend Server
- Создание REST API и Socket.IO events
- Базовое тестирование API
#### Этап 2: Android Application (3 недели)
- Разработка Android клиента
- Интеграция с Backend
- Реализация WebRTC функциональности
- Тестирование на различных устройствах
#### Этап 3: Desktop Operator (3 недели)
- Разработка Electron приложения
- Пользовательский интерфейс
- Интеграция с Backend
- WebRTC клиент для операторов
#### Этап 4: Интеграция и тестирование (2 недели)
- Интеграционное тестирование
- Нагрузочное тестирование
- Исправление критических багов
- Подготовка документации
#### Этап 5: Финализация и поставка (1 неделя)
- Финальное тестирование
- Подготовка релизных сборок
- Документация и инструкции
- Передача заказчику
### 13.2 Команда проекта
- **Tech Lead / Architect** - 1 человек
- **Backend Developer** - 1 человек
- **Android Developer** - 1 человек
- **Frontend Developer** - 1 человек
- **QA Engineer** - 1 человек
### 13.3 Коммуникации
- **Ежедневные standups**: 15 минут
- **Еженедельные ретроспективы**: 1 час
- **Демонстрации заказчику**: каждые 2 недели
- **Отчеты о прогрессе**: еженедельно
---
## 14. РИСКИ И ОГРАНИЧЕНИЯ
### 14.1 Технические риски
- **WebRTC совместимость** между различными платформами
- **Производительность** при высокой нагрузке
- **Сетевые ограничения** (NAT, firewall)
- **Безопасность** peer-to-peer соединений
### 14.2 Проектные риски
- **Изменение требований** в процессе разработки
- **Недоступность экспертизы** по WebRTC
- **Задержки в тестировании** на реальных устройствах
- **Интеграционные проблемы** между компонентами
### 14.3 Митигация рисков
- **Прототипирование** критических компонентов
- **Раннее тестирование** на целевых устройствах
- **Резервные планы** для критических функций
- **Регулярная коммуникация** с заказчиком
---
## 15. ЗАКЛЮЧЕНИЕ
Данное техническое задание определяет полный объем работ по созданию системы удаленного доступа к камерам мобильных устройств "GodEye". Система должна обеспечивать безопасную, надежную и производительную работу в условиях реального времени.
Все компоненты системы должны быть разработаны в соответствии с современными стандартами и best practices, обеспечивать высокое качество пользовательского опыта и соответствовать требованиям безопасности.
---
**Документ подготовлен:** 6 октября 2025 г.
**Версия:** 1.0
**Статус:** Для согласования с подрядчиком

View File

@@ -1,2 +0,0 @@
#Mon Sep 29 19:45:19 KST 2025
gradle.version=7.2

View File

@@ -1,20 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id=":" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="java-gradle" name="Java-Gradle">
<configuration>
<option name="BUILD_FOLDER_PATH" value="$MODULE_DIR$/build" />
<option name="BUILDABLE" value="false" />
</configuration>
</facet>
</component>
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
<excludeFolder url="file://$MODULE_DIR$/build" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

View File

@@ -1,127 +0,0 @@
# GodEye Android Client - Setup Instructions
## Требования для разработки
### 1. Android SDK
- Android SDK Platform-tools
- Android SDK Build-tools 34.0.0
- Android 14 (API 34) Platform
- Android Emulator
### 2. Java Development Kit
- JDK 8 или выше
## Настройка эмулятора
### Создание AVD (Android Virtual Device)
```bash
# Создать эмулятор Android 14 с Google APIs
avdmanager create avd -n "GodEye_Emulator" -k "system-images;android-34;google_apis;x86_64" -d "pixel_4"
# Запуск эмулятора
emulator -avd GodEye_Emulator -no-snapshot-save
```
### Альтернативно через Android Studio:
1. Tools → AVD Manager
2. Create Virtual Device
3. Choose Pixel 4 или подобное устройство
4. Select Android 14 (API 34) system image
5. Name: "GodEye_Emulator"
## Команды сборки
### Сборка проекта
```bash
# Debug версия
./gradlew assembleDebug
# Release версия
./gradlew assembleRelease
# Установка на эмулятор/устройство
./gradlew installDebug
# Запуск тестов
./gradlew test
```
### Установка APK
```bash
# Найти собранный APK
ls app/build/outputs/apk/debug/
# Установить через adb
adb install app/build/outputs/apk/debug/app-debug.apk
# Или напрямую
./gradlew installDebug
```
## Настройки IDE
### Android Studio
1. Open Project → выбрать папку `/android-client`
2. File → Project Structure → Project SDK: Android API 34
3. Build → Make Project
4. Run → Run 'app'
### IntelliJ IDEA
1. New → Project from Existing Sources
2. Import as Gradle project
3. SDK Location: установить путь к Android SDK
4. Gradle JVM: JDK 8+
## Отладка
### ADB команды
```bash
# Просмотр логов приложения
adb logcat | grep "GodEye\|SocketManager\|CameraManager"
# Просмотр устройств
adb devices
# Перенаправление портов для локального сервера
adb reverse tcp:3001 tcp:3001
```
### Настройка сети для эмулятора
- Localhost backend: `http://10.0.2.2:3001`
- Внешний сервер: `http://YOUR_IP:3001`
## Структура проекта
```
android-client/
├── app/
│ ├── src/main/
│ │ ├── java/com/godeye/android/
│ │ │ ├── MainActivity.kt
│ │ │ ├── network/SocketManager.kt
│ │ │ └── camera/CameraManager.kt
│ │ ├── res/layout/activity_main.xml
│ │ └── AndroidManifest.xml
│ └── build.gradle
├── gradle/wrapper/
├── gradlew
└── settings.gradle
```
## Troubleshooting
### Проблемы с правами
```bash
chmod +x gradlew
```
### Проблемы с SDK
```bash
export ANDROID_HOME=/path/to/android/sdk
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
```
### Проблемы с сетью в эмуляторе
- Убедиться что backend сервер запущен на порту 3001
- Использовать `10.0.2.2` вместо `localhost` в эмуляторе
- Проверить правила firewall

View File

@@ -0,0 +1,2 @@
#Sun Oct 05 11:59:43 KST 2025
gradle.version=8.9

View File

@@ -1,62 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id=":app" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="android-gradle" name="Android-Gradle">
<configuration>
<option name="GRADLE_PROJECT_PATH" value=":app" />
<option name="LAST_SUCCESSFUL_SYNC_AGP_VERSION" value="7.2.2" />
<option name="LAST_KNOWN_AGP_VERSION" value="7.2.2" />
</configuration>
</facet>
<facet type="android" name="Android">
<configuration>
<option name="SELECTED_BUILD_VARIANT" value="debug" />
<option name="ASSEMBLE_TASK_NAME" value="assembleDebug" />
<option name="COMPILE_JAVA_TASK_NAME" value="compileDebugSources" />
<option name="ASSEMBLE_TEST_TASK_NAME" value="assembleDebugAndroidTest" />
<option name="COMPILE_JAVA_TEST_TASK_NAME" value="compileDebugAndroidTestSources" />
<option name="ALLOW_USER_CONFIGURATION" value="false" />
<option name="MANIFEST_FILE_RELATIVE_PATH" value="/src/main/AndroidManifest.xml" />
<option name="RES_FOLDER_RELATIVE_PATH" value="/src/main/res" />
<option name="RES_FOLDERS_RELATIVE_PATH" value="file://$MODULE_DIR$/src/main/res" />
<option name="TEST_RES_FOLDERS_RELATIVE_PATH" value="" />
<option name="ASSETS_FOLDER_RELATIVE_PATH" value="/src/main/assets" />
</configuration>
</facet>
<facet type="kotlin-language" name="Kotlin">
<configuration version="5" platform="JVM 1.8" allPlatforms="JVM [1.8]" useProjectSettings="false">
<compilerSettings>
<option name="additionalArguments" value="-java-parameters" />
</compilerSettings>
<compilerArguments>
<stringArguments>
<stringArg name="jvmTarget" arg="1.8" />
</stringArguments>
</compilerArguments>
</configuration>
</facet>
</component>
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
<output url="file://$MODULE_DIR$/build/intermediates/javac/debug/classes" />
<output-test url="file://$MODULE_DIR$/build/intermediates/javac/debugUnitTest/classes" />
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/kotlin" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/main/res" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/main/assets" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/debug" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/debug" isTestSource="false" generated="true" />
<excludeFolder url="file://$MODULE_DIR$/build" />
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
</content>
<orderEntry type="jdk" jdkName="Android API 32 Platform" jdkType="Android SDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" exported="" name="Gradle: androidx.core:core-ktx:1.8.0@aar" level="project" />
<orderEntry type="library" exported="" name="Gradle: androidx.appcompat:appcompat:1.5.0@aar" level="project" />
<orderEntry type="library" exported="" name="Gradle: com.google.android.material:material:1.6.1@aar" level="project" />
<orderEntry type="library" exported="" name="Gradle: androidx.constraintlayout:constraintlayout:2.1.4@aar" level="project" />
</component>
</module>

View File

@@ -1,29 +0,0 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
# WebRTC ProGuard rules
-keep class org.webrtc.** { *; }
-dontwarn org.webrtc.**
# Socket.IO ProGuard rules
-keep class io.socket.** { *; }
-dontwarn io.socket.**

View File

@@ -1,41 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<!-- Permissions -->
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<!-- Hardware features -->
<uses-feature android:name="android.hardware.camera" android:required="true" />
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />
<uses-feature android:name="android.hardware.microphone" android:required="true" />
<application
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.GodEye"
android:usesCleartextTraffic="true"
tools:targetApi="31">
<activity
android:name=".MainActivity"
android:exported="true"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>

View File

@@ -32,7 +32,6 @@ class SocketManager(
sock.on(Socket.EVENT_CONNECT, onConnect)
sock.on(Socket.EVENT_DISCONNECT, onDisconnect)
sock.on(Socket.EVENT_CONNECT_ERROR, onConnectError)
sock.on("server:hello", createServerHelloHandler(availableCameras))
sock.on("register:success", onRegisterSuccess)
sock.on("register:error", onRegisterError)
sock.on("camera:request", onCameraRequestReceived)
@@ -43,6 +42,22 @@ class SocketManager(
sock.on("webrtc:ice-candidate", onWebRTCIceCandidate)
sock.connect()
// Регистрация устройства
val deviceInfo = JSONObject().apply {
put("model", android.os.Build.MODEL)
put("manufacturer", android.os.Build.MANUFACTURER)
put("androidVersion", android.os.Build.VERSION.RELEASE)
put("appVersion", "1.0.0")
put("availableCameras", JSONArray(availableCameras))
}
val registerData = JSONObject().apply {
put("deviceId", deviceId)
put("deviceInfo", deviceInfo)
}
sock.emit("register:android", registerData)
}
} catch (e: Exception) {
Log.e(TAG, "Connection error", e)
@@ -61,7 +76,11 @@ class SocketManager(
val response = JSONObject().apply {
put("sessionId", sessionId)
put("accepted", accepted)
put("message", if (accepted) "Доступ разрешен" else "Доступ отклонен")
if (accepted) {
put("streamUrl", "webrtc")
} else {
put("error", "Доступ отклонен пользователем")
}
}
socket?.emit("camera:response", response)
Log.d(TAG, "Camera request response sent: $accepted")

View File

@@ -1,13 +0,0 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path android:fillColor="#26A69A"
android:pathData="M0,0h108v108h-108z"/>
<path android:fillColor="#ffffff"
android:pathData="M54,30c-13.3,0 -24,10.7 -24,24s10.7,24 24,24s24,-10.7 24,-24S67.3,30 54,30zM54,70c-8.8,0 -16,-7.2 -16,-16s7.2,-16 16,-16s16,7.2 16,16S62.8,70 54,70z"/>
<path android:fillColor="#ffffff"
android:pathData="M54,38c-8.8,0 -16,7.2 -16,16s7.2,16 16,16s16,-7.2 16,-16S62.8,38 54,38zM54,62c-4.4,0 -8,-3.6 -8,-8s3.6,-8 8,-8s8,3.6 8,8S58.4,62 54,62z"/>
</vector>

View File

@@ -1,123 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res/android-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="16dp"
tools:context=".MainActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:gravity="center_horizontal">
<!-- Header -->
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="GodEye Signal Center"
android:textSize="24sp"
android:textStyle="bold"
android:layout_marginBottom="24dp"
android:textColor="@color/design_default_color_primary" />
<!-- Device Info -->
<TextView
android:id="@+id/tvDeviceId"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Device ID: ..."
android:textSize="14sp"
android:background="@color/design_default_color_surface"
android:padding="12dp"
android:layout_marginBottom="16dp" />
<!-- Connection Status -->
<TextView
android:id="@+id/tvStatus"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Отключено"
android:textSize="16sp"
android:textStyle="bold"
android:textAlignment="center"
android:padding="12dp"
android:background="@color/design_default_color_surface"
android:layout_marginBottom="24dp" />
<!-- Server Configuration -->
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Настройки сервера"
android:textSize="18sp"
android:textStyle="bold"
android:layout_marginBottom="8dp" />
<EditText
android:id="@+id/etServerUrl"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="URL сервера (например: http://192.168.1.100:3001)"
android:inputType="textUri"
android:layout_marginBottom="16dp" />
<!-- Control Buttons -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center"
android:layout_marginBottom="32dp">
<Button
android:id="@+id/btnConnect"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Подключиться"
android:layout_marginEnd="8dp" />
<Button
android:id="@+id/btnDisconnect"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Отключиться"
android:layout_marginStart="8dp"
android:enabled="false" />
</LinearLayout>
<!-- Active Sessions -->
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Активные сессии"
android:textSize="18sp"
android:textStyle="bold"
android:layout_marginBottom="8dp" />
<LinearLayout
android:id="@+id/rvSessions"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:background="@color/design_default_color_surface"
android:padding="16dp"
android:minHeight="100dp">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Нет активных сессий"
android:textAlignment="center"
android:textColor="@android:color/darker_gray" />
</LinearLayout>
</LinearLayout>
</ScrollView>

View File

@@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>

View File

@@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>

View File

@@ -1,17 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="purple_200">#FFBB86FC</color>
<color name="purple_500">#FF6200EE</color>
<color name="purple_700">#FF3700B3</color>
<color name="teal_200">#FF03DAC5</color>
<color name="teal_700">#FF018786</color>
<color name="black">#FF000000</color>
<color name="white">#FFFFFFFF</color>
<!-- Custom colors -->
<color name="status_background">#E3F2FD</color>
<color name="video_background">#212121</color>
<color name="error_color">#F44336</color>
<color name="success_color">#4CAF50</color>
</resources>

View File

@@ -1,4 +0,0 @@
<resources>
<color name="ic_launcher_background">#3DDC84</color>
</resources>

View File

@@ -1,14 +0,0 @@
<resources>
<string name="app_name">GodEye Signal Center</string>
<string name="permission_denied_title">Необходимы разрешения</string>
<string name="permission_denied_message">Для работы приложения необходим доступ к камере, микрофону и интернету</string>
<string name="camera_request_title">Запрос доступа к камере</string>
<string name="camera_request_message">Оператор %1$s запрашивает доступ к камере %2$s. Разрешить?</string>
<string name="allow">Разрешить</string>
<string name="deny">Отклонить</string>
<string name="connecting">Подключение...</string>
<string name="connected">Подключено</string>
<string name="disconnected">Отключено</string>
<string name="error">Ошибка</string>
</resources>

View File

@@ -1,18 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Theme.GodEye" parent="Theme.Material3.DayNight.NoActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/design_default_color_primary</item>
<item name="colorPrimaryVariant">@color/design_default_color_primary_variant</item>
<item name="colorOnPrimary">@color/design_default_color_on_primary</item>
<!-- Secondary brand color. -->
<item name="colorSecondary">@color/design_default_color_secondary</item>
<item name="colorSecondaryVariant">@color/design_default_color_secondary_variant</item>
<item name="colorOnSecondary">@color/design_default_color_on_secondary</item>
<!-- Status bar color. -->
<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
<!-- Customize your theme here. -->
</style>
</resources>

View File

@@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content>
<!-- Exclude sensitive data from backup -->
<exclude domain="sharedpref" path="secure_prefs.xml"/>
</full-backup-content>

View File

@@ -1,16 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<data-extraction-rules>
<cloud-backup>
<!-- TODO: Use <include> and <exclude> to control what is backed up.
<include .../>
<exclude .../>
-->
</cloud-backup>
<!--
<device-transfer>
<include .../>
<exclude .../>
</device-transfer>
-->
</data-extraction-rules>

View File

@@ -1,24 +0,0 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.9.20'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.2.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}

View File

@@ -1,420 +0,0 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
==============================================================================
Licenses for included components:
------------------------------------------------------------------------------
Eclipse Public License 1.0
https://opensource.org/licenses/EPL-1.0
junit:junit
org.sonatype.aether:aether-api
org.sonatype.aether:aether-connector-wagon
org.sonatype.aether:aether-impl
org.sonatype.aether:aether-spi
org.sonatype.aether:aether-util
------------------------------------------------------------------------------
3-Clause BSD
https://opensource.org/licenses/BSD-3-Clause
com.google.code.findbugs:jsr305
org.hamcrest:hamcrest-core
BSD License
Copyright (c) 2000-2015 www.hamcrest.org
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of
conditions and the following disclaimer. Redistributions in binary form must reproduce
the above copyright notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the distribution.
Neither the name of Hamcrest nor the names of its contributors may be used to endorse
or promote products derived from this software without specific prior written
permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
com.esotericsoftware.kryo:kryo
com.esotericsoftware.minlog:minlog
Copyright (c) 2008-2018, Nathan Sweet All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Neither the name of Esoteric Software nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
org.ow2.asm:asm
org.ow2.asm:asm-analysis
org.ow2.asm:asm-commons
org.ow2.asm:asm-tree
org.ow2.asm:asm-util
ASM: a very small and fast Java bytecode manipulation framework
Copyright (c) 2000-2011 INRIA, France Telecom
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holders nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.
------------------------------------------------------------------------------
MIT
com.googlecode.plist:dd-plist
dd-plist - An open source library to parse and generate property lists
Copyright (C) 2016 Daniel Dreibrodt
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
org.bouncycastle:bcpg-jdk15on
org.bouncycastle:bcprov-jdk15on
Copyright (c) 2000 - 2019 The Legion of the Bouncy Castle Inc. (https://www.bouncycastle.org)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
org.slf4j:jcl-over-slf4j
org.slf4j:jul-to-slf4j
org.slf4j:log4j-over-slf4j
org.slf4j:slf4j-api
Copyright (c) 2004-2017 QOS.ch
All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
------------------------------------------------------------------------------
CDDL
https://opensource.org/licenses/CDDL-1.0
com.sun.xml.bind:jaxb-impl
------------------------------------------------------------------------------
LGPL 2.1
https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html
org.samba.jcifs:jcifs
org.jetbrains.intellij.deps:trove4j
------------------------------------------------------------------------------
License for the GNU Trove library included by the Kotlin embeddable compiler
------------------------------------------------------------------------------
The source code for GNU Trove is licensed under the Lesser GNU Public License (LGPL).
Copyright (c) 2001, Eric D. Friedman All Rights Reserved. This library is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Two classes (HashFunctions and PrimeFinder) included in Trove are licensed under the following terms:
Copyright (c) 1999 CERN - European Organization for Nuclear Research. Permission to use, copy, modify, distribute and sell this software
and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and
that both that copyright notice and this permission notice appear in supporting documentation. CERN makes no representations about the
suitability of this software for any purpose. It is provided "as is" without expressed or implied warranty.
The source code of modified GNU Trove library is available at
https://github.com/JetBrains/intellij-deps-trove4j (with trove4j_changes.txt describing the changes)
------------------------------------------------------------------------------
Eclipse Distribution License 1.0
https://www.eclipse.org/org/documents/edl-v10.php
org.eclipse.jgit:org.eclipse.jgit
------------------------------------------------------------------------------
BSD-style
com.jcraft:jsch
com.jcraft:jzlib
Copyright (c) 2000-2011 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the distribution.
3. The names of the authors may not be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL JCRAFT,
INC. OR ANY CONTRIBUTORS TO THIS SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
------------------------------------------------------------------------------
Eclipse Public License 2.0
https://www.eclipse.org/legal/epl-2.0/
org.junit.platform:junit-platform-launcher
------------------------------------------------------------------------------
Mozilla Public License 2.0
https://www.mozilla.org/en-US/MPL/2.0/
org.mozilla:rhino

View File

@@ -1,21 +0,0 @@
=========================================================================
== NOTICE file corresponding to the section 4 d of ==
== the Apache License, Version 2.0, ==
== in this case for the Gradle distribution. ==
=========================================================================
This product includes software developed by
The Apache Software Foundation (http://www.apache.org/).
It includes the following other software:
Groovy (http://groovy-lang.org)
SLF4J (http://www.slf4j.org)
JUnit (http://www.junit.org)
JCIFS (http://jcifs.samba.org)
HttpClient (https://hc.apache.org/httpcomponents-client-4.5.x/)
For licenses, see the LICENSE file.
If any software distributed with Gradle does not have an Apache 2 License, its license is explicitly listed in the
LICENSE file.

View File

@@ -1,11 +0,0 @@
Gradle is a build tool with a focus on build automation and support for multi-language development. If you are building, testing, publishing, and deploying software on any platform, Gradle offers a flexible model that can support the entire development lifecycle from compiling and packaging code to publishing web sites. Gradle has been designed to support build automation across multiple languages and platforms including Java, Scala, Android, C/C++, and Groovy, and is closely integrated with development tools and continuous integration servers including Eclipse, IntelliJ, and Jenkins.
For more information about Gradle, please visit: https://gradle.org
If you are using the "all" distribution, the User Manual is included in your distribution.
If you are using the "bin" distribution, a copy of the User Manual is available on https://docs.gradle.org.
Typing `gradle help` prints the command line help.
Typing `gradle tasks` shows all the tasks of a Gradle build.

View File

@@ -1,244 +0,0 @@
#!/bin/sh
#
# Copyright © 2015-2021 the original authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
##############################################################################
#
# Gradle start up script for POSIX generated by Gradle.
#
# Important for running:
#
# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
# noncompliant, but you have some other compliant shell such as ksh or
# bash, then to run this script, type that shell name before the whole
# command line, like:
#
# ksh Gradle
#
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
# * functions;
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
# * compound commands having a testable exit status, especially «case»;
# * various built-in commands including «command», «set», and «ulimit».
#
# Important for patching:
#
# (2) This script targets any POSIX shell, so it avoids extensions provided
# by Bash, Ksh, etc; in particular arrays are avoided.
#
# The "traditional" practice of packing multiple parameters into a
# space-separated string is a well documented source of bugs and security
# problems, so this is (mostly) avoided, by progressively accumulating
# options in "$@", and eventually passing that to Java.
#
# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
# see the in-line comments for details.
#
# There are tweaks for specific operating systems such as AIX, CygWin,
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
#
##############################################################################
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
app_path=$0
# Need this for daisy-chained symlinks.
while
APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
[ -h "$app_path" ]
do
ls=$( ls -ld "$app_path" )
link=${ls#*' -> '}
case $link in #(
/*) app_path=$link ;; #(
*) app_path=$APP_HOME$link ;;
esac
done
# This is normally unused
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
APP_HOME=$( cd "${APP_HOME:-./}.." && pwd -P ) || exit
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
warn () {
echo "$*"
} >&2
die () {
echo
echo "$*"
echo
exit 1
} >&2
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "$( uname )" in #(
CYGWIN* ) cygwin=true ;; #(
Darwin* ) darwin=true ;; #(
MSYS* | MINGW* ) msys=true ;; #(
NONSTOP* ) nonstop=true ;;
esac
CLASSPATH=$APP_HOME/lib/gradle-launcher-8.0.jar
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD=$JAVA_HOME/jre/sh/java
else
JAVACMD=$JAVA_HOME/bin/java
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD=java
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
# Increase the maximum file descriptors if we can.
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
case $MAX_FD in #(
'' | soft) :;; #(
*)
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
fi
# Collect all arguments for the java command, stacking in reverse order:
# * args from the command line
# * the main class name
# * -classpath
# * -D...appname settings
# * --module-path (only if needed)
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
# For Cygwin or MSYS, switch paths to Windows format before running java
if "$cygwin" || "$msys" ; then
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
JAVACMD=$( cygpath --unix "$JAVACMD" )
# Now convert the arguments - kludge to limit ourselves to /bin/sh
for arg do
if
case $arg in #(
-*) false ;; # don't mess with options #(
/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
[ -e "$t" ] ;; #(
*) false ;;
esac
then
arg=$( cygpath --path --ignore --mixed "$arg" )
fi
# Roll the args list around exactly as many times as the number of
# args, so each arg winds up back in the position where it started, but
# possibly modified.
#
# NB: a `for` loop captures its iteration list before it begins, so
# changing the positional parameters here affects neither the number of
# iterations, nor the values presented in `arg`.
shift # remove old arg
set -- "$@" "$arg" # push replacement arg
done
fi
# Collect all arguments for the java command;
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
# shell script including quotes and variable substitutions, so put them in
# double quotes to make sure that they get re-expanded; and
# * put everything else in single quotes, so that it's not re-expanded.
set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
-classpath "$CLASSPATH" \
org.gradle.launcher.GradleMain \
"$@"
# Stop when "xargs" is not available.
if ! command -v xargs >/dev/null 2>&1
then
die "xargs is not available"
fi
# Use "xargs" to parse quoted args.
#
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
#
# In Bash we could simply go:
#
# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
# set -- "${ARGS[@]}" "$@"
#
# but POSIX shell has neither arrays nor command substitution, so instead we
# post-process each arg (as a line of input to sed) to backslash-escape any
# character that might be a shell metacharacter, then use eval to reverse
# that process (while maintaining the separation between arguments), and wrap
# the whole thing up as a single "set" statement.
#
# This will of course break if any of these variables contains a newline or
# an unmatched quote.
#
eval "set -- $(
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
xargs -n1 |
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
tr '\n' ' '
)" '"$@"'
exec "$JAVACMD" "$@"

View File

@@ -1,92 +0,0 @@
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem https://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@rem This is normally unused
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%..
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto execute
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\lib\gradle-launcher-8.0.jar
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.launcher.GradleMain %*
:end
@rem End local scope for the variables with windows NT shell
if %ERRORLEVEL% equ 0 goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega

View File

@@ -1 +0,0 @@
You can add .gradle (e.g. test.gradle) init scripts to this directory. Each one is executed at the start of the build.

Some files were not shown because too many files have changed in this diff Show More