From db73acdf5b2788a75f43712ed27754fa851e520a Mon Sep 17 00:00:00 2001 From: Kyaw Zayar Tun Date: Sun, 11 Jan 2026 11:51:22 +0630 Subject: [PATCH 1/2] bumps: upgrade dependencies and remove onesignal and google mobile ads --- README.md | 64 -- analysis_options.yaml | 5 +- android/app/build.gradle | 9 +- android/app/src/main/AndroidManifest.xml | 73 --- .../gradle/wrapper/gradle-wrapper.properties | 2 +- android/settings.gradle | 4 +- lib/main.dart | 2 - lib/src/app.dart | 3 +- lib/src/errors/async_error_logger.dart | 7 +- lib/src/errors/error_logger.dart | 1 - .../data/football_highlight_repository.dart | 18 +- .../feed/highlight_feed_screen.dart | 104 +-- .../widgets/football_highlights_list.dart | 134 ++-- .../feed/widgets/highlight_grid_view.dart | 150 +---- .../data/live_match_repository.dart | 30 +- .../live_match_detail_screen.dart | 163 ++--- .../live_match_list/live_match_screen.dart | 151 +---- .../widgets/live_match_list_view.dart | 75 +-- .../widgets/live_match_list_widget.dart | 2 +- .../data/onboarding_repository.dart | 1 - .../presentation/onboarding_screen.dart | 23 +- .../app_settings/settings_screen.dart | 7 +- .../privacy_policy/privacy_policy_screen.dart | 21 +- .../data/repositories/soco_repository.dart | 1 - .../data/services/api/bsl_api_client.dart | 11 +- .../soco_live_detail_screen.dart | 198 ++---- .../soco_live_list/soco_live_list_screen.dart | 71 +-- lib/src/providers/native_ad_controller.dart | 41 -- .../shared_preferences_provider.dart | 1 - lib/src/routing/app_router.dart | 103 ++- .../scaffold_with_nested_navigation.dart | 30 +- lib/src/utils/ads/ad_helper.dart | 335 ---------- lib/src/utils/ads/app_life_cycle_reactor.dart | 28 - lib/src/utils/ads/app_open_ad_manager.dart | 87 --- lib/src/utils/ads/app_open_ad_widget.dart | 45 -- lib/src/utils/ads/consent_manager.dart | 59 -- lib/src/utils/dio_client/dio_client.dart | 108 ++-- .../highlight_dio_client.dart | 1 - lib/src/utils/native_id.dart | 2 +- lib/src/utils/onesignal/onesignal.dart | 60 +- lib/src/utils/prefs_manager.dart | 3 +- lib/src/widgets/ads/banner_ad_widget.dart | 51 -- lib/src/widgets/ads/native_ad_widget.dart | 62 -- lib/src/widgets/ads/watch_ad_dialog.dart | 30 - .../staggered_grid_view_with_banner_ads.dart | 75 --- .../staggered_grid_view_with_native_ads.dart | 70 --- lib/src/widgets/masonry_grid_with_ads.dart | 63 -- .../masonry_grid_with_ads_scrollview.dart | 76 --- .../placeholder/empty_placeholder_widget.dart | 18 +- .../settings/notification_list_tile.dart | 16 +- linux/flutter/generated_plugin_registrant.cc | 4 - linux/flutter/generated_plugins.cmake | 1 - macos/Flutter/GeneratedPluginRegistrant.swift | 4 +- pubspec.lock | 592 ++++++++---------- pubspec.yaml | 63 +- .../flutter/generated_plugin_registrant.cc | 3 - windows/flutter/generated_plugins.cmake | 1 - 57 files changed, 731 insertions(+), 2631 deletions(-) delete mode 100644 lib/src/providers/native_ad_controller.dart delete mode 100644 lib/src/utils/ads/ad_helper.dart delete mode 100644 lib/src/utils/ads/app_life_cycle_reactor.dart delete mode 100644 lib/src/utils/ads/app_open_ad_manager.dart delete mode 100644 lib/src/utils/ads/app_open_ad_widget.dart delete mode 100644 lib/src/utils/ads/consent_manager.dart delete mode 100644 lib/src/widgets/ads/banner_ad_widget.dart delete mode 100644 lib/src/widgets/ads/native_ad_widget.dart delete mode 100644 lib/src/widgets/ads/watch_ad_dialog.dart delete mode 100644 lib/src/widgets/grid_view/staggered_grid_view_with_banner_ads.dart delete mode 100644 lib/src/widgets/grid_view/staggered_grid_view_with_native_ads.dart delete mode 100644 lib/src/widgets/masonry_grid_with_ads.dart delete mode 100644 lib/src/widgets/masonry_grid_with_ads_scrollview.dart diff --git a/README.md b/README.md index 6cd6244..1c0b827 100644 --- a/README.md +++ b/README.md @@ -8,67 +8,3 @@ Billion Sport Live brings you the thrill of live sports right to your fingertips - **Catch Up with Free Highlights** – Missed the match? No worries! Billion Sport Live offers free highlight videos, so you can relive every key moment. Stay connected to the sports you love, anytime, anywhere, with Billion Sport Live. Download now and never miss a game again! - -### Remote Config - -```json -{ - "live_match_list_page": "{ \"native\": true, \"banner\": true, \"interstitial\": true, \"rewarded\": true }", - "live_match_detail_page": "{ \"native\": true, \"banner\": true, \"interstitial\": true, \"rewarded\": true }", - "highlight_list_page": "{ \"native\": true, \"banner\": true, \"interstitial\": true, \"rewarded\": true }", - "latest_build": "10", - "latest_version": "1.0.9", - "force_update": "true", - "banner_ad": "ca-app-pub-7567997114394639/8648546201", - "interstitial_ad": "ca-app-pub-7567997114394639/1475405831", - "native_ad": "ca-app-pub-7567997114394639/9425876604", - "rewarded_ad": "ca-app-pub-7567997114394639/8288226195", - "show_ads": "true", - "app_open_ad": "ca-app-pub-7567997114394639/7748304172", - "show_app_open_ad": "true", - "show_banner_ad": "true", - "show_native_ad": "true", - "show_interstitial_ad": "true", - "show_rewarded_ad": "true", - "show_ads_in_match_list": "true", - "show_ads_in_match_detail": "true", - "show_ads_in_highlight_list": "true" -} -``` - - -### Test Deep Links - -Test `bsl://open.bsl.app:` - -Use ADB to simulate the custom schema: - -```bash -adb shell am start -a android.intent.action.VIEW -d "bsl://open.bsl.app" com.billion.sport_live -``` - -Test `bsl://kyawzayartun.com:` - -Use ADB for the HTTPS link: - -```bash -adb shell am start -a android.intent.action.VIEW -d "bsl://kyawzayartun.com" com.billion.sport_live -``` - -```bash -adb shell am start -a android.intent.action.VIEW -d "https://play.google.com/store/apps/details?id=com.billion.sport_live" com.billion.sport_live -``` - -### Test App Links - -**Test with ADB:** - -Run the following command to test: - -```bash -adb shell am start -a android.intent.action.VIEW -d "https://www.kyawzayartun.com/bsl" com.billion.sport_live -``` - -```bash -adb shell am start -a android.intent.action.VIEW -d "https://kyawzayartun.com/bsl" com.billion.sport_live -``` diff --git a/analysis_options.yaml b/analysis_options.yaml index 6367359..3771ab6 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -10,7 +10,10 @@ analyzer: errors: invalid_annotation_target: ignore plugins: - - custom_lint + - riverpod_lint linter: rules: + +plugins: + riverpod_lint: ^3.1.0 diff --git a/android/app/build.gradle b/android/app/build.gradle index 76b1829..b7da84a 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -18,16 +18,15 @@ if (keystorePropertiesFile.exists()) { android { namespace = "com.billion.sport_live" compileSdk = flutter.compileSdkVersion - ndkVersion = "27.0.12077973" - // ndkVersion = flutter.ndkVersion + ndkVersion = flutter.ndkVersion compileOptions { - sourceCompatibility = JavaVersion.VERSION_11 - targetCompatibility = JavaVersion.VERSION_11 + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 } kotlinOptions { - jvmTarget = JavaVersion.VERSION_11 + jvmTarget = JavaVersion.VERSION_17 } defaultConfig { diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index e70ddcf..2755350 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -4,9 +4,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -