From 61261962e30c12f0e3bf22150bfd963d0119c87f Mon Sep 17 00:00:00 2001 From: Beamlak Aschalew Date: Mon, 24 Jul 2023 22:57:15 +0300 Subject: [PATCH 1/5] fixed setting bug --- lib/constants/app_constants.dart | 5 +- lib/main.dart | 8 +++ lib/models/setting_preferences.dart | 13 ++++- lib/provider/settings_provider.dart | 13 +++++ lib/screens/common/about.dart | 2 +- lib/screens/common/live_player.dart | 62 ++++------------------- lib/screens/common/live_tv_screen.dart | 50 +++--------------- lib/screens/common/player.dart | 2 +- lib/screens/common/player_settings.dart | 14 +++++ lib/screens/movie/movie_video_loader.dart | 5 +- lib/screens/tv/tv_video_loader.dart | 5 +- lib/widgets/movie_widgets.dart | 7 +++ pubspec.yaml | 2 +- 13 files changed, 85 insertions(+), 103 deletions(-) diff --git a/lib/constants/app_constants.dart b/lib/constants/app_constants.dart index 0d1eb639..caa5b7b4 100644 --- a/lib/constants/app_constants.dart +++ b/lib/constants/app_constants.dart @@ -40,7 +40,7 @@ const kTextSmallAboutBodyStyle = TextStyle( const kTableLeftStyle = TextStyle(overflow: TextOverflow.ellipsis, fontWeight: FontWeight.bold); -const String currentAppVersion = '2.1.0'; +const String currentAppVersion = '2.1.1'; final client = HttpClient(); const retryOptions = RetryOptions( @@ -60,7 +60,8 @@ final List appNames = [ 'cinemax-v2.0.0.apk', 'cinemax-v2.0.0-build-v2.apk', 'cinemax-v2.0.0-build-v3.apk', - 'cinemax-v2.1.0.apk' + 'cinemax-v2.1.0.apk', + 'cinemax-v2.1.1.apk', ]; CacheManager cacheProp() { diff --git a/lib/main.dart b/lib/main.dart index 39290b14..2b9ddd23 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -41,7 +41,15 @@ Future appInitialize() async { await settingsProvider.getMaxBufferDuration(); await settingsProvider.getVideoResolution(); await settingsProvider.getSubtitleLanguage(); + await settingsProvider.getViewMode(); await _initialization; + // UnityAds.init( + // testMode: false, + // gameId: '5280322', + // onComplete: () => print('Initialization Complete'), + // onFailed: (error, message) => + // print('Initialization Failed: $error $message'), + // ); } void main() async { diff --git a/lib/models/setting_preferences.dart b/lib/models/setting_preferences.dart index 765c1e55..2199f0cb 100644 --- a/lib/models/setting_preferences.dart +++ b/lib/models/setting_preferences.dart @@ -56,7 +56,7 @@ class ImagePreferences { } class Material3Preferences { - static const MATERIAL3_MODE_STATUS = "adultStatus"; + static const MATERIAL3_MODE_STATUS = "materialStatus"; setMaterial3Mode(bool value) async { SharedPreferences prefs = await SharedPreferences.getInstance(); @@ -151,4 +151,15 @@ class VideoPlayerPreferences { SharedPreferences prefs = await SharedPreferences.getInstance(); return prefs.getString(DEFAULT_SUBTITLE) ?? ''; } + + static const DEFAULT_FULL_SCREEN = 'default_full_screen'; + setDefaultFullScreen(bool mode) async { + SharedPreferences prefs = await SharedPreferences.getInstance(); + prefs.setBool(DEFAULT_FULL_SCREEN, mode); + } + + Future autoFullScreen() async { + SharedPreferences prefs = await SharedPreferences.getInstance(); + return prefs.getBool(DEFAULT_FULL_SCREEN) ?? true; + } } diff --git a/lib/provider/settings_provider.dart b/lib/provider/settings_provider.dart index e6dddeea..69af7fd6 100644 --- a/lib/provider/settings_provider.dart +++ b/lib/provider/settings_provider.dart @@ -50,6 +50,9 @@ class SettingsProvider with ChangeNotifier { String _defaultSubtitleLanguage = 'English'; String get defaultSubtitleLanguage => _defaultSubtitleLanguage; + bool _defaultViewMode = true; + bool get defaultViewMode => _defaultViewMode; + late Mixpanel mixpanel; // theme change @@ -146,6 +149,16 @@ class SettingsProvider with ChangeNotifier { notifyListeners(); } + Future getViewMode() async { + defaultViewMode = await videoPlayerPreferences.autoFullScreen(); + } + + set defaultViewMode(bool value) { + _defaultViewMode = value; + videoPlayerPreferences.setDefaultFullScreen(value); + notifyListeners(); + } + // Future getMinBufferDuration() async { // defaultMinBufferDuration = await videoPlayerPreferences.getMinBuffer(); // } diff --git a/lib/screens/common/about.dart b/lib/screens/common/about.dart index 6adae6f3..d925ce63 100644 --- a/lib/screens/common/about.dart +++ b/lib/screens/common/about.dart @@ -39,7 +39,7 @@ class AboutPage extends StatelessWidget { ], ), const Text( - 'Cinemax v2.1.0', + 'Cinemax v2.1.', style: TextStyle( fontSize: 27.0, ), diff --git a/lib/screens/common/live_player.dart b/lib/screens/common/live_player.dart index dca81665..0292a4cf 100644 --- a/lib/screens/common/live_player.dart +++ b/lib/screens/common/live_player.dart @@ -1,15 +1,18 @@ -import 'dart:math'; - import 'package:better_player/better_player.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:startapp_sdk/startapp.dart'; class LivePlayer extends StatefulWidget { - const LivePlayer({required this.sources, required this.colors, Key? key}) + const LivePlayer( + {required this.sources, + required this.colors, + required this.autoFullScreen, + Key? key}) : super(key: key); final Map sources; final List colors; + final bool autoFullScreen; @override State createState() => _LivePlayerState(); @@ -20,24 +23,12 @@ class _LivePlayerState extends State { late BetterPlayerControlsConfiguration betterPlayerControlsConfiguration; late BetterPlayerBufferingConfiguration betterPlayerBufferingConfiguration; var startAppSdk = StartAppSdk(); - StartAppRewardedVideoAd? rewardedVideoAd; StartAppBannerAd? playerBannerAd; - late bool loadAd; - - bool isEventOccur() { - Random random = Random(); - int randomNumber = random.nextInt(10); - return randomNumber == 0; - } @override void initState() { super.initState(); - loadAd = isEventOccur(); - if (loadAd == true) { - loadRewardedVideoAd(); - } - startAppSdk.loadBannerAd(StartAppBannerType.MREC).then((bannerAd) { + startAppSdk.loadBannerAd(StartAppBannerType.BANNER).then((bannerAd) { setState(() { playerBannerAd = bannerAd; }); @@ -52,7 +43,7 @@ class _LivePlayerState extends State { minBufferMs: 15000, ); betterPlayerControlsConfiguration = BetterPlayerControlsConfiguration( - enableFullscreen: true, + enableFullscreen: widget.autoFullScreen, backgroundColor: widget.colors.elementAt(1).withOpacity(0.6), progressBarBackgroundColor: Colors.white, pauseIcon: Icons.pause_outlined, @@ -91,46 +82,15 @@ class _LivePlayerState extends State { _betterPlayerController.setupDataSource(dataSource).then((value) { if (_betterPlayerController.videoPlayerController!.value.aspectRatio > 1.0) { - _betterPlayerController.enterFullScreen(); + if (widget.autoFullScreen) { + _betterPlayerController.enterFullScreen(); + } } }); } - void loadRewardedVideoAd() { - startAppSdk.loadRewardedVideoAd( - onAdNotDisplayed: () { - debugPrint('onAdNotDisplayed: rewarded video'); - setState(() { - rewardedVideoAd?.dispose(); - rewardedVideoAd = null; - }); - }, - onAdHidden: () { - debugPrint('onAdHidden: rewarded video'); - setState(() { - rewardedVideoAd?.dispose(); - rewardedVideoAd = null; - }); - }, - ).then((rewardedVideoAd) { - setState(() { - this.rewardedVideoAd = rewardedVideoAd; - }); - }).onError((ex, stackTrace) { - debugPrint("Error loading Rewarded Video ad: ${ex.message}"); - }).onError((error, stackTrace) { - debugPrint("Error loading Rewarded Video ad: $error"); - }); - } - @override void dispose() { - if (rewardedVideoAd != null && loadAd == true) { - rewardedVideoAd!.show().onError((error, stackTrace) { - debugPrint("Error showing Rewarded Video ad: $error"); - return false; - }); - } SystemChrome.setPreferredOrientations([ DeviceOrientation.portraitUp, ]); diff --git a/lib/screens/common/live_tv_screen.dart b/lib/screens/common/live_tv_screen.dart index ebe15095..0bf5e39d 100644 --- a/lib/screens/common/live_tv_screen.dart +++ b/lib/screens/common/live_tv_screen.dart @@ -1,5 +1,3 @@ -import 'dart:math'; - import 'package:cached_network_image/cached_network_image.dart'; import 'package:cinemax/models/live_tv.dart'; import 'package:cinemax/screens/common/live_player.dart'; @@ -131,9 +129,8 @@ class _ChannelListState extends State { @override void initState() { startAppSdk - .loadBannerAd( - StartAppBannerType.BANNER, - ) + .loadBannerAd(StartAppBannerType.BANNER, + prefs: const StartAppAdPreferences(minCPM: 0.01)) .then((bannerAd) { setState(() { this.bannerAd = bannerAd; @@ -197,9 +194,6 @@ class ChannelWidget extends StatefulWidget { class _ChannelWidgetState extends State { Map videos = {}; - var startAppSdk = StartAppSdk(); - late bool showAd; - StartAppInterstitialAd? interstitialAd; Map reversedVids = {}; void sett() { @@ -215,31 +209,12 @@ class _ChannelWidgetState extends State { } } - bool isEventOccur() { - Random random = Random(); - int randomNumber = random.nextInt(4); - return randomNumber == 0; - } - @override void initState() { - loadInterstitialAd(); sett(); super.initState(); } - void loadInterstitialAd() { - startAppSdk.loadInterstitialAd().then((interstitialAd) { - setState(() { - this.interstitialAd = interstitialAd; - }); - }).onError((ex, stackTrace) { - debugPrint("Error loading Interstitial ad: ${ex.message}"); - }).onError((error, stackTrace) { - debugPrint("Error loading Interstitial ad: $error"); - }); - } - @override Widget build(BuildContext context) { return Column( @@ -247,34 +222,21 @@ class _ChannelWidgetState extends State { InkWell( child: GestureDetector( onTap: () { - setState(() { - showAd = isEventOccur(); - }); final mixpanel = Provider.of(context, listen: false) .mixpanel; + final autoFS = + Provider.of(context, listen: false) + .defaultViewMode; mixpanel.track('Most viewed TV channels', properties: { 'TV Channel name': widget.channel.channelName, 'Category': widget.catName, }); - if (interstitialAd != null && showAd == true) { - interstitialAd!.show().then((shown) { - if (shown) { - setState(() { - interstitialAd = null; - loadInterstitialAd(); - }); - } - - return null; - }).onError((error, stackTrace) { - debugPrint("Error showing Interstitial ad: $error"); - }); - } Navigator.push(context, MaterialPageRoute(builder: ((context) { return LivePlayer( sources: reversedVids, + autoFullScreen: autoFS, colors: [ Theme.of(context).primaryColor, Theme.of(context).colorScheme.background diff --git a/lib/screens/common/player.dart b/lib/screens/common/player.dart index f946c8e0..f35853a1 100644 --- a/lib/screens/common/player.dart +++ b/lib/screens/common/player.dart @@ -35,7 +35,7 @@ class _PlayerOneState extends State { minBufferMs: 15000, ); betterPlayerControlsConfiguration = BetterPlayerControlsConfiguration( - enableFullscreen: true, + enableFullscreen: widget.videoProperties.elementAt(3), backgroundColor: widget.colors.elementAt(1).withOpacity(0.6), progressBarBackgroundColor: Colors.white, pauseIcon: Icons.pause_outlined, diff --git a/lib/screens/common/player_settings.dart b/lib/screens/common/player_settings.dart index 541013ec..57f0f71b 100644 --- a/lib/screens/common/player_settings.dart +++ b/lib/screens/common/player_settings.dart @@ -17,6 +17,7 @@ class _PlayerSettingsState extends State { final seekSecond = Provider.of(context); final bufferAmount = Provider.of(context); final videoResolution = Provider.of(context); + final videoOrientation = Provider.of(context); // final subtitleLanguage = Provider.of(context); return Scaffold( appBar: AppBar( @@ -24,6 +25,19 @@ class _PlayerSettingsState extends State { ), body: Column( children: [ + ListTile( + leading: const Icon(Icons.fullscreen), + title: const Text('Auto full screen'), + trailing: Switch( + inactiveThumbColor: Colors.white, + inactiveTrackColor: const Color(0xFF9B9B9B), + value: videoOrientation.defaultViewMode, + onChanged: ((value) { + setState(() { + videoOrientation.defaultViewMode = value; + }); + }), + )), ListTile( leading: const Icon(Icons.forward_10), title: const Text('Seek second'), diff --git a/lib/screens/movie/movie_video_loader.dart b/lib/screens/movie/movie_video_loader.dart index 4c400107..86610e35 100644 --- a/lib/screens/movie/movie_video_loader.dart +++ b/lib/screens/movie/movie_video_loader.dart @@ -36,6 +36,7 @@ class _MovieVideoLoaderState extends State { late int seekDuration; late int videoQuality; late String subLanguage; + late bool autoFS; @override void initState() { @@ -72,6 +73,8 @@ class _MovieVideoLoaderState extends State { .defaultVideoResolution; subLanguage = Provider.of(context, listen: false) .defaultSubtitleLanguage; + autoFS = + Provider.of(context, listen: false).defaultViewMode; }); try { await fetchMoviesForStream( @@ -176,7 +179,7 @@ class _MovieVideoLoaderState extends State { Theme.of(context).primaryColor, Theme.of(context).colorScheme.background ], - videoProperties: [maxBuffer, seekDuration, videoQuality], + videoProperties: [maxBuffer, seekDuration, videoQuality, autoFS], ); }, )); diff --git a/lib/screens/tv/tv_video_loader.dart b/lib/screens/tv/tv_video_loader.dart index 9556e3ea..a3e5f4b4 100644 --- a/lib/screens/tv/tv_video_loader.dart +++ b/lib/screens/tv/tv_video_loader.dart @@ -41,6 +41,7 @@ class _TVVideoLoaderState extends State { late int seekDuration; late int videoQuality; late String subLanguage; + late bool autoFS; @override void initState() { @@ -77,6 +78,8 @@ class _TVVideoLoaderState extends State { .defaultVideoResolution; subLanguage = Provider.of(context, listen: false) .defaultSubtitleLanguage; + autoFS = + Provider.of(context, listen: false).defaultViewMode; }); try { await fetchTVForStream( @@ -191,7 +194,7 @@ class _TVVideoLoaderState extends State { Theme.of(context).primaryColor, Theme.of(context).colorScheme.background ], - videoProperties: [maxBuffer, seekDuration, videoQuality], + videoProperties: [maxBuffer, seekDuration, videoQuality, autoFS], ); }, )); diff --git a/lib/widgets/movie_widgets.dart b/lib/widgets/movie_widgets.dart index a26b2d20..78d63c2b 100644 --- a/lib/widgets/movie_widgets.dart +++ b/lib/widgets/movie_widgets.dart @@ -69,6 +69,13 @@ class _MainMoviesDisplayState extends State { isTrending: false, includeAdult: includeAdult, ), + // UnityBannerAd( + // placementId: 'Movies_one', + // onLoad: (placementId) => print('Banner loaded: $placementId'), + // onClick: (placementId) => print('Banner clicked: $placementId'), + // onFailed: (placementId, error, message) => + // print('Banner Ad $placementId failed: $error $message'), + // ), ScrollingMovies( title: 'Trending this week', api: Endpoints.trendingMoviesUrl(1, includeAdult), diff --git a/pubspec.yaml b/pubspec.yaml index ee61fed1..80b6140d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -3,7 +3,7 @@ description: A Flutter movie app. publish_to: 'none' -version: 2.1.0+1 +version: 2.1.1+1 environment: sdk: ">=2.12.0 <3.0.0" From e8b9feccc58bc5ce7a69c5278d770916a5b1f2a1 Mon Sep 17 00:00:00 2001 From: Beamlak Aschalew Date: Mon, 24 Jul 2023 23:29:06 +0300 Subject: [PATCH 2/5] video player fix --- lib/screens/common/live_player.dart | 2 +- lib/screens/common/player.dart | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/screens/common/live_player.dart b/lib/screens/common/live_player.dart index 0292a4cf..eaa21371 100644 --- a/lib/screens/common/live_player.dart +++ b/lib/screens/common/live_player.dart @@ -43,7 +43,7 @@ class _LivePlayerState extends State { minBufferMs: 15000, ); betterPlayerControlsConfiguration = BetterPlayerControlsConfiguration( - enableFullscreen: widget.autoFullScreen, + enableFullscreen: true, backgroundColor: widget.colors.elementAt(1).withOpacity(0.6), progressBarBackgroundColor: Colors.white, pauseIcon: Icons.pause_outlined, diff --git a/lib/screens/common/player.dart b/lib/screens/common/player.dart index f35853a1..72bc983c 100644 --- a/lib/screens/common/player.dart +++ b/lib/screens/common/player.dart @@ -35,7 +35,7 @@ class _PlayerOneState extends State { minBufferMs: 15000, ); betterPlayerControlsConfiguration = BetterPlayerControlsConfiguration( - enableFullscreen: widget.videoProperties.elementAt(3), + enableFullscreen: true, backgroundColor: widget.colors.elementAt(1).withOpacity(0.6), progressBarBackgroundColor: Colors.white, pauseIcon: Icons.pause_outlined, @@ -55,7 +55,7 @@ class _PlayerOneState extends State { BetterPlayerConfiguration betterPlayerConfiguration = BetterPlayerConfiguration( autoDetectFullscreenDeviceOrientation: true, - fullScreenByDefault: true, + fullScreenByDefault: widget.videoProperties.elementAt(3), autoPlay: true, fit: BoxFit.contain, autoDispose: true, From ecbe602153031b2c2b5f3a1ba63329b21309c01f Mon Sep 17 00:00:00 2001 From: Beamlak Aschalew Date: Wed, 26 Jul 2023 14:45:22 +0300 Subject: [PATCH 3/5] Changed server --- lib/constants/api_constants.dart | 2 +- lib/screens/common/about.dart | 2 +- lib/screens/common/live_tv_screen.dart | 24 +++++++++++++++++++++++- 3 files changed, 25 insertions(+), 3 deletions(-) diff --git a/lib/constants/api_constants.dart b/lib/constants/api_constants.dart index ee6228c5..72d88e76 100644 --- a/lib/constants/api_constants.dart +++ b/lib/constants/api_constants.dart @@ -16,4 +16,4 @@ const String IMDB_BASE_URL = 'https://imdb.com/title/'; const String TWOEMBED_BASE_URL = 'https://2embed.biz'; const String CINEMAX_UPDATE_URL = 'https://beamlakaschalew.github.io/cinemax/res/update.json'; -const String CONSUMET_API = 'https://cinemax-backend.vercel.app/'; +const String CONSUMET_API = 'https://consumet-railway.justchill.tv/'; diff --git a/lib/screens/common/about.dart b/lib/screens/common/about.dart index d925ce63..bf9bf661 100644 --- a/lib/screens/common/about.dart +++ b/lib/screens/common/about.dart @@ -39,7 +39,7 @@ class AboutPage extends StatelessWidget { ], ), const Text( - 'Cinemax v2.1.', + 'Cinemax v2.1.1', style: TextStyle( fontSize: 27.0, ), diff --git a/lib/screens/common/live_tv_screen.dart b/lib/screens/common/live_tv_screen.dart index 0bf5e39d..c24cb34b 100644 --- a/lib/screens/common/live_tv_screen.dart +++ b/lib/screens/common/live_tv_screen.dart @@ -17,6 +17,27 @@ class LiveTV extends StatefulWidget { } class _LiveTVState extends State { + var startAppSdk = StartAppSdk(); + + StartAppBannerAd? bannerAd; + + @override + void initState() { + startAppSdk + .loadBannerAd(StartAppBannerType.BANNER, + prefs: const StartAppAdPreferences(minCPM: 0.01)) + .then((bannerAd) { + setState(() { + this.bannerAd = bannerAd; + }); + }).onError((ex, stackTrace) { + debugPrint("Error loading Banner ad: ${ex.message}"); + }).onError((error, stackTrace) { + debugPrint("Error loading Banner ad: $error"); + }); + super.initState(); + } + final List categories = [ CatImage(categoryName: 'General', imagePath: 'assets/images/general.png'), CatImage( @@ -70,7 +91,8 @@ class _LiveTVState extends State { ), ); }), - ))) + ))), + bannerAd != null ? StartAppBanner(bannerAd!) : Container() ], ), )); From f40d2878d71b1e302c761c3dc7e56c77500fcc5c Mon Sep 17 00:00:00 2001 From: Beamlak Aschalew Date: Tue, 15 Aug 2023 22:17:12 +0300 Subject: [PATCH 4/5] api change --- lib/constants/api_constants.dart | 2 +- lib/constants/app_constants.dart | 3 ++- lib/screens/common/about.dart | 2 +- pubspec.yaml | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/constants/api_constants.dart b/lib/constants/api_constants.dart index 72d88e76..a83856a0 100644 --- a/lib/constants/api_constants.dart +++ b/lib/constants/api_constants.dart @@ -16,4 +16,4 @@ const String IMDB_BASE_URL = 'https://imdb.com/title/'; const String TWOEMBED_BASE_URL = 'https://2embed.biz'; const String CINEMAX_UPDATE_URL = 'https://beamlakaschalew.github.io/cinemax/res/update.json'; -const String CONSUMET_API = 'https://consumet-railway.justchill.tv/'; +const String CONSUMET_API = 'https://pleasedontspam.justchill.tv/'; diff --git a/lib/constants/app_constants.dart b/lib/constants/app_constants.dart index caa5b7b4..d7dc55e0 100644 --- a/lib/constants/app_constants.dart +++ b/lib/constants/app_constants.dart @@ -40,7 +40,7 @@ const kTextSmallAboutBodyStyle = TextStyle( const kTableLeftStyle = TextStyle(overflow: TextOverflow.ellipsis, fontWeight: FontWeight.bold); -const String currentAppVersion = '2.1.1'; +const String currentAppVersion = '2.1.1-bv2'; final client = HttpClient(); const retryOptions = RetryOptions( @@ -62,6 +62,7 @@ final List appNames = [ 'cinemax-v2.0.0-build-v3.apk', 'cinemax-v2.1.0.apk', 'cinemax-v2.1.1.apk', + 'cinemax-v2.1.1-bv2.apk', ]; CacheManager cacheProp() { diff --git a/lib/screens/common/about.dart b/lib/screens/common/about.dart index bf9bf661..7f501ad4 100644 --- a/lib/screens/common/about.dart +++ b/lib/screens/common/about.dart @@ -39,7 +39,7 @@ class AboutPage extends StatelessWidget { ], ), const Text( - 'Cinemax v2.1.1', + 'Cinemax v2.1.1-bv2', style: TextStyle( fontSize: 27.0, ), diff --git a/pubspec.yaml b/pubspec.yaml index 80b6140d..d5336eac 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -3,7 +3,7 @@ description: A Flutter movie app. publish_to: 'none' -version: 2.1.1+1 +version: 2.1.1-bv2+1 environment: sdk: ">=2.12.0 <3.0.0" From ab1fb16d397a9e90d712266f88d9cf861db9a02a Mon Sep 17 00:00:00 2001 From: Beamlak Aschalew Date: Thu, 17 Aug 2023 18:59:21 +0300 Subject: [PATCH 5/5] changed server --- lib/constants/api_constants.dart | 2 +- lib/constants/app_constants.dart | 3 ++- lib/screens/common/about.dart | 4 ++-- pubspec.yaml | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/constants/api_constants.dart b/lib/constants/api_constants.dart index a83856a0..9fccf125 100644 --- a/lib/constants/api_constants.dart +++ b/lib/constants/api_constants.dart @@ -16,4 +16,4 @@ const String IMDB_BASE_URL = 'https://imdb.com/title/'; const String TWOEMBED_BASE_URL = 'https://2embed.biz'; const String CINEMAX_UPDATE_URL = 'https://beamlakaschalew.github.io/cinemax/res/update.json'; -const String CONSUMET_API = 'https://pleasedontspam.justchill.tv/'; +const String CONSUMET_API = 'https://consumet-api-1p19.onrender.com/'; diff --git a/lib/constants/app_constants.dart b/lib/constants/app_constants.dart index d7dc55e0..a6b0359a 100644 --- a/lib/constants/app_constants.dart +++ b/lib/constants/app_constants.dart @@ -40,7 +40,7 @@ const kTextSmallAboutBodyStyle = TextStyle( const kTableLeftStyle = TextStyle(overflow: TextOverflow.ellipsis, fontWeight: FontWeight.bold); -const String currentAppVersion = '2.1.1-bv2'; +const String currentAppVersion = '2.1.1-bv3'; final client = HttpClient(); const retryOptions = RetryOptions( @@ -63,6 +63,7 @@ final List appNames = [ 'cinemax-v2.1.0.apk', 'cinemax-v2.1.1.apk', 'cinemax-v2.1.1-bv2.apk', + 'cinemax-v2.1.1-bv3.apk', ]; CacheManager cacheProp() { diff --git a/lib/screens/common/about.dart b/lib/screens/common/about.dart index 7f501ad4..d02970c7 100644 --- a/lib/screens/common/about.dart +++ b/lib/screens/common/about.dart @@ -39,9 +39,9 @@ class AboutPage extends StatelessWidget { ], ), const Text( - 'Cinemax v2.1.1-bv2', + 'Cinemax v2.1.1-bv3', style: TextStyle( - fontSize: 27.0, + fontSize: 24.0, ), ), const Text( diff --git a/pubspec.yaml b/pubspec.yaml index d5336eac..62d95ca9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -3,7 +3,7 @@ description: A Flutter movie app. publish_to: 'none' -version: 2.1.1-bv2+1 +version: 2.1.1-bv3+1 environment: sdk: ">=2.12.0 <3.0.0"