- Created appinfo/Application.php (Nextcloud app bootstrap)
- Extends OCP\AppFramework\App
- Registers proper app ID: analyticshub
- Loads CSS and JS files
- Removed obsolete lib/App.php file
- Updated all AppInfo::APP_NAME references to Application::APP_NAME
- AdminController, ApiV1Controller
- GoogleAnalyticsService, LLMService
- Fixed dependency injection in AdminController
- Injected IConfig service properly
- Added missing use statements
This is the core fix for the app not appearing in Nextcloud.
Nextcloud requires appinfo/Application.php to initialize the app.
- Renamed analytics-hub/ → analyticshub/
- App ID in info.xml is 'analyticshub' (no hyphen)
- Nextcloud requires folder name to match app ID exactly
- Fixes 'Could not download app analyticshub' error during installation
Installation:
- Upload analyticshub/ folder to /var/www/nextcloud/apps/
- Folder name must match app ID in info.xml