mirror of
https://gitlab.com/foxixus/neomovies_mobile.git
synced 2025-10-27 19:58:50 +05:00
WebView Player Integration: - Create PlayerEmbedService for API server integration - Update WebView players to use server embed URLs instead of direct links - Add fallback to direct URLs when server is unavailable - Support for both Vibix and Alloha players with server API - Include optional parameters (imdbId, season, episode) for TV shows - Add health check endpoint for server availability Mock Testing Infrastructure: - Add comprehensive TorrentPlatformService tests with mock platform channel - Test all torrent operations without requiring real Android engine - Mock platform channel responses for addTorrent, removeTorrent, pauseTorrent, resumeTorrent - Test error handling with PlatformException simulation - Validate torrent state detection (downloading, seeding, completed) - Test file priority management and video file detection PlayerEmbedService Testing: - Mock HTTP client tests for Vibix and Alloha embed URL generation - Test server API integration with success and failure scenarios - Validate URL encoding for special characters and non-ASCII titles - Test fallback behavior when server is unavailable or times out - Mock player configuration retrieval from server - Test server health check functionality Test Dependencies: - Add http_mock_adapter for HTTP testing - Ensure all tests work without real Flutter/Android environment - Support for testing platform channels and HTTP services This enables proper API server integration for WebView players while maintaining comprehensive test coverage for all torrent and player functionality without requiring Android hardware.
131 lines
4.5 KiB
YAML
131 lines
4.5 KiB
YAML
name: neomovies_mobile
|
|
description: "A new Flutter project."
|
|
repository: https://gitlab.com/foxixius/neomovies_mobile
|
|
# The following line prevents the package from being accidentally published to
|
|
# pub.dev using `flutter pub publish`. This is preferred for private packages.
|
|
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
|
|
|
# The following defines the version and build number for your application.
|
|
# A version number is three numbers separated by dots, like 1.2.43
|
|
# followed by an optional build number separated by a +.
|
|
# Both the version and the builder number may be overridden in flutter
|
|
# build by specifying --build-name and --build-number, respectively.
|
|
# In Android, build-name is used as versionName while build-number used as versionCode.
|
|
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
|
|
# In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion.
|
|
# Read more about iOS versioning at
|
|
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
|
# In Windows, build-name is used as the major, minor, and patch parts
|
|
# of the product and file versions while build-number is used as the build suffix.
|
|
version: 1.0.0+1
|
|
|
|
environment:
|
|
sdk: ^3.8.1
|
|
|
|
# Dependencies specify other packages that your package needs in order to work.
|
|
# To automatically upgrade your package dependencies to the latest versions
|
|
# consider running `flutter pub upgrade --major-versions`. Alternatively,
|
|
# dependencies can be manually updated by changing the version numbers below to
|
|
# the latest version available on pub.dev. To see which dependencies have newer
|
|
# versions available, run `flutter pub outdated`.
|
|
dependencies:
|
|
flutter:
|
|
sdk: flutter
|
|
# Core
|
|
http: ^1.2.1
|
|
provider: ^6.1.2
|
|
flutter_bloc: ^8.1.3
|
|
freezed_annotation: ^2.4.1
|
|
json_annotation: ^4.9.0
|
|
flutter_dotenv: ^5.1.0
|
|
# UI & Theming
|
|
cupertino_icons: ^1.0.2
|
|
dynamic_color: 1.7.0
|
|
cached_network_image: ^3.3.1
|
|
google_fonts: ^6.2.1
|
|
# Local Storage & Caching
|
|
hive: ^2.2.3
|
|
hive_flutter: ^1.1.0
|
|
flutter_secure_storage: ^9.2.2
|
|
shared_preferences: ^2.2.2
|
|
intl: ^0.20.2
|
|
# Video Player (WebView only)
|
|
webview_flutter: ^4.7.0
|
|
wakelock_plus: ^1.2.1
|
|
# Video Player with native controls
|
|
video_player: ^2.9.2
|
|
chewie: ^1.8.5
|
|
# Utils
|
|
equatable: ^2.0.5
|
|
url_launcher: ^6.3.2
|
|
auto_route: ^8.3.0
|
|
# File operations and path management
|
|
path_provider: ^2.1.4
|
|
permission_handler: ^11.3.1
|
|
|
|
dev_dependencies:
|
|
freezed: ^2.4.5
|
|
json_serializable: ^6.7.1
|
|
hive_generator: ^2.0.1
|
|
auto_route_generator: ^8.3.0
|
|
flutter_test:
|
|
sdk: flutter
|
|
flutter_lints: ^5.0.0
|
|
build_runner: ^2.4.13
|
|
flutter_launcher_icons: ^0.13.1
|
|
# HTTP mocking for testing
|
|
http_mock_adapter: ^0.6.1
|
|
|
|
flutter_launcher_icons:
|
|
android: true
|
|
ios: false
|
|
adaptive_icon_background: "#00000000" # transparent
|
|
adaptive_icon_foreground: "assets/logo.png"
|
|
adaptive_icon_monochrome: "assets/monochrome.svg"
|
|
image_path: "assets/logo.png"
|
|
min_sdk_android: 21
|
|
# For information on the generic Dart part of this file, see the
|
|
# following page: https://dart.dev/tools/pub/pubspec
|
|
|
|
# The following section is specific to Flutter packages.
|
|
flutter:
|
|
|
|
# The following line ensures that the Material Icons font is
|
|
# included with your application, so that you can use the icons in
|
|
# the material Icons class.
|
|
uses-material-design: true
|
|
|
|
# To add assets to your application, add an assets section, like this:
|
|
assets:
|
|
- .env
|
|
- pubspec.yaml
|
|
- pubspec.lock
|
|
|
|
|
|
# An image asset can refer to one or more resolution-specific "variants", see
|
|
# https://flutter.dev/to/resolution-aware-images
|
|
|
|
# For details regarding adding assets from package dependencies, see
|
|
# https://flutter.dev/to/asset-from-package
|
|
|
|
# To add custom fonts to your application, add a fonts section here,
|
|
# in this "flutter" section. Each entry in this list should have a
|
|
# "family" key with the font family name, and a "fonts" key with a
|
|
# list giving the asset and other descriptors for the font. For
|
|
# example:
|
|
# fonts:
|
|
# - family: Schyler
|
|
# fonts:
|
|
# - asset: fonts/Schyler-Regular.ttf
|
|
# - asset: fonts/Schyler-Italic.ttf
|
|
# style: italic
|
|
# - family: Trajan Pro
|
|
# fonts:
|
|
# - asset: fonts/TrajanPro.ttf
|
|
# - asset: fonts/TrajanPro_Bold.ttf
|
|
# weight: 700
|
|
#
|
|
# For details regarding fonts from package dependencies,
|
|
# see https://flutter.dev/to/font-from-package
|
|
|