Skip to content

Commit

Permalink
chore: upgrade flutter packages (#1220)
Browse files Browse the repository at this point in the history
* chore: upgrade audio_service and just_audio

* chore: move http to devDeps

* chore: upgrade path_provider

* chore: upgrade sqflite packages

* chore: upgrade stacked packages

* chore: upgrade url_launcher

* chore: upgrade dio package

* chore: upgrade flutter_hooks and shared_preferences package

* chore: upgrade flutter_local_notifications

* chore: upgrade flutter_secure_storage, infinite_scroll_pagination and share_plus

* chore: upgrade auth0_flutter, device_info_plus and upgrader

* chore: upgrade quick_actions

* chore: update flutter_scroll_shadow and flutter_inappwebview

* chore: update firebase packages

* fix: disable upgrader debug options
  • Loading branch information
Nirajn2311 authored Apr 12, 2024
1 parent 76f4195 commit 52cc875
Show file tree
Hide file tree
Showing 7 changed files with 258 additions and 225 deletions.
184 changes: 95 additions & 89 deletions mobile-app/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,78 +6,80 @@ PODS:
- Auth0 (2.3.2):
- JWTDecode (~> 3.0)
- SimpleKeychain (~> 1.0)
- auth0_flutter (1.2.1):
- Auth0 (~> 2.3)
- auth0_flutter (1.4.1):
- Auth0 (= 2.3.2)
- Flutter
- JWTDecode (= 3.0.1)
- SimpleKeychain (= 1.0.1)
- device_info_plus (0.0.1):
- Flutter
- Firebase/Analytics (10.12.0):
- Firebase/Analytics (10.22.0):
- Firebase/Core
- Firebase/Core (10.12.0):
- Firebase/Core (10.22.0):
- Firebase/CoreOnly
- FirebaseAnalytics (~> 10.12.0)
- Firebase/CoreOnly (10.12.0):
- FirebaseCore (= 10.12.0)
- Firebase/Crashlytics (10.12.0):
- FirebaseAnalytics (~> 10.22.0)
- Firebase/CoreOnly (10.22.0):
- FirebaseCore (= 10.22.0)
- Firebase/Crashlytics (10.22.0):
- Firebase/CoreOnly
- FirebaseCrashlytics (~> 10.12.0)
- firebase_analytics (10.4.4):
- Firebase/Analytics (= 10.12.0)
- FirebaseCrashlytics (~> 10.22.0)
- firebase_analytics (10.8.9):
- Firebase/Analytics (= 10.22.0)
- firebase_core
- Flutter
- firebase_core (2.15.0):
- Firebase/CoreOnly (= 10.12.0)
- firebase_core (2.27.0):
- Firebase/CoreOnly (= 10.22.0)
- Flutter
- firebase_crashlytics (3.3.4):
- Firebase/Crashlytics (= 10.12.0)
- firebase_crashlytics (3.4.18):
- Firebase/Crashlytics (= 10.22.0)
- firebase_core
- Flutter
- FirebaseAnalytics (10.12.0):
- FirebaseAnalytics/AdIdSupport (= 10.12.0)
- FirebaseAnalytics (10.22.0):
- FirebaseAnalytics/AdIdSupport (= 10.22.0)
- FirebaseCore (~> 10.0)
- FirebaseInstallations (~> 10.0)
- GoogleUtilities/AppDelegateSwizzler (~> 7.11)
- GoogleUtilities/MethodSwizzler (~> 7.11)
- GoogleUtilities/Network (~> 7.11)
- "GoogleUtilities/NSData+zlib (~> 7.11)"
- nanopb (< 2.30910.0, >= 2.30908.0)
- FirebaseAnalytics/AdIdSupport (10.12.0):
- nanopb (< 2.30911.0, >= 2.30908.0)
- FirebaseAnalytics/AdIdSupport (10.22.0):
- FirebaseCore (~> 10.0)
- FirebaseInstallations (~> 10.0)
- GoogleAppMeasurement (= 10.12.0)
- GoogleAppMeasurement (= 10.22.0)
- GoogleUtilities/AppDelegateSwizzler (~> 7.11)
- GoogleUtilities/MethodSwizzler (~> 7.11)
- GoogleUtilities/Network (~> 7.11)
- "GoogleUtilities/NSData+zlib (~> 7.11)"
- nanopb (< 2.30910.0, >= 2.30908.0)
- FirebaseCore (10.12.0):
- nanopb (< 2.30911.0, >= 2.30908.0)
- FirebaseCore (10.22.0):
- FirebaseCoreInternal (~> 10.0)
- GoogleUtilities/Environment (~> 7.8)
- GoogleUtilities/Logger (~> 7.8)
- FirebaseCoreExtension (10.12.0):
- GoogleUtilities/Environment (~> 7.12)
- GoogleUtilities/Logger (~> 7.12)
- FirebaseCoreExtension (10.23.0):
- FirebaseCore (~> 10.0)
- FirebaseCoreInternal (10.12.0):
- FirebaseCoreInternal (10.23.0):
- "GoogleUtilities/NSData+zlib (~> 7.8)"
- FirebaseCrashlytics (10.12.0):
- FirebaseCrashlytics (10.22.0):
- FirebaseCore (~> 10.5)
- FirebaseInstallations (~> 10.0)
- FirebaseSessions (~> 10.5)
- GoogleDataTransport (~> 9.2)
- GoogleUtilities/Environment (~> 7.8)
- nanopb (< 2.30910.0, >= 2.30908.0)
- nanopb (< 2.30911.0, >= 2.30908.0)
- PromisesObjC (~> 2.1)
- FirebaseInstallations (10.12.0):
- FirebaseInstallations (10.23.0):
- FirebaseCore (~> 10.0)
- GoogleUtilities/Environment (~> 7.8)
- GoogleUtilities/UserDefaults (~> 7.8)
- PromisesObjC (~> 2.1)
- FirebaseSessions (10.12.0):
- FirebaseSessions (10.23.0):
- FirebaseCore (~> 10.5)
- FirebaseCoreExtension (~> 10.0)
- FirebaseInstallations (~> 10.0)
- GoogleDataTransport (~> 9.2)
- GoogleUtilities/Environment (~> 7.10)
- nanopb (< 2.30910.0, >= 2.30908.0)
- nanopb (< 2.30911.0, >= 2.30908.0)
- PromisesSwift (~> 2.1)
- fk_user_agent (2.0.0):
- Flutter
Expand All @@ -95,71 +97,77 @@ PODS:
- Flutter
- flutter_secure_storage (6.0.0):
- Flutter
- FMDB (2.7.5):
- FMDB/standard (= 2.7.5)
- FMDB/standard (2.7.5)
- GoogleAppMeasurement (10.12.0):
- GoogleAppMeasurement/AdIdSupport (= 10.12.0)
- GoogleAppMeasurement (10.22.0):
- GoogleAppMeasurement/AdIdSupport (= 10.22.0)
- GoogleUtilities/AppDelegateSwizzler (~> 7.11)
- GoogleUtilities/MethodSwizzler (~> 7.11)
- GoogleUtilities/Network (~> 7.11)
- "GoogleUtilities/NSData+zlib (~> 7.11)"
- nanopb (< 2.30910.0, >= 2.30908.0)
- GoogleAppMeasurement/AdIdSupport (10.12.0):
- GoogleAppMeasurement/WithoutAdIdSupport (= 10.12.0)
- nanopb (< 2.30911.0, >= 2.30908.0)
- GoogleAppMeasurement/AdIdSupport (10.22.0):
- GoogleAppMeasurement/WithoutAdIdSupport (= 10.22.0)
- GoogleUtilities/AppDelegateSwizzler (~> 7.11)
- GoogleUtilities/MethodSwizzler (~> 7.11)
- GoogleUtilities/Network (~> 7.11)
- "GoogleUtilities/NSData+zlib (~> 7.11)"
- nanopb (< 2.30910.0, >= 2.30908.0)
- GoogleAppMeasurement/WithoutAdIdSupport (10.12.0):
- nanopb (< 2.30911.0, >= 2.30908.0)
- GoogleAppMeasurement/WithoutAdIdSupport (10.22.0):
- GoogleUtilities/AppDelegateSwizzler (~> 7.11)
- GoogleUtilities/MethodSwizzler (~> 7.11)
- GoogleUtilities/Network (~> 7.11)
- "GoogleUtilities/NSData+zlib (~> 7.11)"
- nanopb (< 2.30910.0, >= 2.30908.0)
- GoogleDataTransport (9.2.3):
- nanopb (< 2.30911.0, >= 2.30908.0)
- GoogleDataTransport (9.4.1):
- GoogleUtilities/Environment (~> 7.7)
- nanopb (< 2.30910.0, >= 2.30908.0)
- nanopb (< 2.30911.0, >= 2.30908.0)
- PromisesObjC (< 3.0, >= 1.2)
- GoogleUtilities/AppDelegateSwizzler (7.11.4):
- GoogleUtilities/AppDelegateSwizzler (7.13.0):
- GoogleUtilities/Environment
- GoogleUtilities/Logger
- GoogleUtilities/Network
- GoogleUtilities/Environment (7.11.4):
- GoogleUtilities/Privacy
- GoogleUtilities/Environment (7.13.0):
- GoogleUtilities/Privacy
- PromisesObjC (< 3.0, >= 1.2)
- GoogleUtilities/Logger (7.11.4):
- GoogleUtilities/Logger (7.13.0):
- GoogleUtilities/Environment
- GoogleUtilities/MethodSwizzler (7.11.4):
- GoogleUtilities/Privacy
- GoogleUtilities/MethodSwizzler (7.13.0):
- GoogleUtilities/Logger
- GoogleUtilities/Network (7.11.4):
- GoogleUtilities/Privacy
- GoogleUtilities/Network (7.13.0):
- GoogleUtilities/Logger
- "GoogleUtilities/NSData+zlib"
- GoogleUtilities/Privacy
- GoogleUtilities/Reachability
- "GoogleUtilities/NSData+zlib (7.11.4)"
- GoogleUtilities/Reachability (7.11.4):
- "GoogleUtilities/NSData+zlib (7.13.0)":
- GoogleUtilities/Privacy
- GoogleUtilities/Privacy (7.13.0)
- GoogleUtilities/Reachability (7.13.0):
- GoogleUtilities/Logger
- GoogleUtilities/UserDefaults (7.11.4):
- GoogleUtilities/Privacy
- GoogleUtilities/UserDefaults (7.13.0):
- GoogleUtilities/Logger
- GoogleUtilities/Privacy
- integration_test (0.0.1):
- Flutter
- just_audio (0.0.1):
- Flutter
- JWTDecode (3.0.1)
- nanopb (2.30909.0):
- nanopb/decode (= 2.30909.0)
- nanopb/encode (= 2.30909.0)
- nanopb/decode (2.30909.0)
- nanopb/encode (2.30909.0)
- nanopb (2.30910.0):
- nanopb/decode (= 2.30910.0)
- nanopb/encode (= 2.30910.0)
- nanopb/decode (2.30910.0)
- nanopb/encode (2.30910.0)
- OrderedSet (5.0.0)
- package_info_plus (0.4.5):
- Flutter
- path_provider_foundation (0.0.1):
- Flutter
- FlutterMacOS
- PromisesObjC (2.3.1)
- PromisesSwift (2.3.1):
- PromisesObjC (= 2.3.1)
- PromisesObjC (2.4.0)
- PromisesSwift (2.4.0):
- PromisesObjC (= 2.4.0)
- quick_actions_ios (0.0.1):
- Flutter
- share_plus (0.0.1):
Expand All @@ -170,7 +178,7 @@ PODS:
- SimpleKeychain (1.0.1)
- sqflite (0.0.3):
- Flutter
- FMDB (>= 2.7.5)
- FlutterMacOS
- url_launcher_ios (0.0.1):
- Flutter
- webview_flutter_wkwebview (0.0.1):
Expand All @@ -197,7 +205,7 @@ DEPENDENCIES:
- quick_actions_ios (from `.symlinks/plugins/quick_actions_ios/ios`)
- share_plus (from `.symlinks/plugins/share_plus/ios`)
- shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`)
- sqflite (from `.symlinks/plugins/sqflite/ios`)
- sqflite (from `.symlinks/plugins/sqflite/darwin`)
- url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)
- webview_flutter_wkwebview (from `.symlinks/plugins/webview_flutter_wkwebview/ios`)

Expand All @@ -212,7 +220,6 @@ SPEC REPOS:
- FirebaseCrashlytics
- FirebaseInstallations
- FirebaseSessions
- FMDB
- GoogleAppMeasurement
- GoogleDataTransport
- GoogleUtilities
Expand Down Expand Up @@ -265,7 +272,7 @@ EXTERNAL SOURCES:
shared_preferences_foundation:
:path: ".symlinks/plugins/shared_preferences_foundation/darwin"
sqflite:
:path: ".symlinks/plugins/sqflite/ios"
:path: ".symlinks/plugins/sqflite/darwin"
url_launcher_ios:
:path: ".symlinks/plugins/url_launcher_ios/ios"
webview_flutter_wkwebview:
Expand All @@ -275,46 +282,45 @@ SPEC CHECKSUMS:
audio_service: f509d65da41b9521a61f1c404dd58651f265a567
audio_session: 4f3e461722055d21515cf3261b64c973c062f345
Auth0: 64da28fdc5cd499aa516dc4bfd0ace8efae2c1da
auth0_flutter: ce053409c0a080736e341c3b94084c96cc8d4136
device_info_plus: 7545d84d8d1b896cb16a4ff98c19f07ec4b298ea
Firebase: 07150e75d142fb9399f6777fa56a187b17f833a0
firebase_analytics: 3ff822ee2e90f95b61f0da300df20b378d380fbb
firebase_core: e477125798fc37cd4ab43ca6a8536bf7e0929c00
firebase_crashlytics: 6043ce85800f96e53f15ee5051f9cfad10cce73d
FirebaseAnalytics: 0270389efbe3022b54ec4588862dabec3477ee98
FirebaseCore: f86a1394906b97ac445ae49c92552a9425831bed
FirebaseCoreExtension: 0ce5ac36042001cfa233ce7bfa28e5c313cf80f4
FirebaseCoreInternal: 950500ad8a08963657f6d8c67b579740c06d6aa1
FirebaseCrashlytics: c4d111b7430c49744c74bcc6346ea00868661ac8
FirebaseInstallations: 7b99ef103f013624444c614397038219c45f8e63
FirebaseSessions: a4ee211eeb31a2224cd8d9d4e30a0fccde9aa00c
auth0_flutter: cc9689234a67336292f576a070da32ab7dffe42a
device_info_plus: c6fb39579d0f423935b0c9ce7ee2f44b71b9fce6
Firebase: 797fd7297b7e1be954432743a0b3f90038e45a71
firebase_analytics: b9ce200bfc2c54629076bb22d6a510f31c296ab8
firebase_core: 100945864b4aedce3cfef0c62ab864858bf013cf
firebase_crashlytics: 2b9ca6246501a03427eb43280be7615027e32142
FirebaseAnalytics: 8d0ff929c63b7f72260f332b86ccf569776b75d3
FirebaseCore: 0326ec9b05fbed8f8716cddbf0e36894a13837f7
FirebaseCoreExtension: cb88851781a24e031d1b58e0bd01eb1f46b044b5
FirebaseCoreInternal: 6a292e6f0bece1243a737e81556e56e5e19282e3
FirebaseCrashlytics: e568d68ce89117c80cddb04073ab9018725fbb8c
FirebaseInstallations: 42d6ead4605d6eafb3b6683674e80e18eb6f2c35
FirebaseSessions: f06853e30f99fe42aa511014d7ee6c8c319f08a3
fk_user_agent: 1f47ec39291e8372b1d692b50084b0d54103c545
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
flutter_custom_tabs: 7a10a08686955cb748e5d26e0ae586d30689bf89
flutter_inappwebview: 3d32228f1304635e7c028b0d4252937730bbc6cf
flutter_local_notifications: 0c0b1ae97e741e1521e4c1629a459d04b9aec743
flutter_local_notifications: 4cde75091f6327eb8517fa068a0a5950212d2086
flutter_secure_storage: 23fc622d89d073675f2eaa109381aefbcf5a49be
FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a
GoogleAppMeasurement: 2d800fab85e7848b1e66a6f8ce5bca06c5aad892
GoogleDataTransport: f0308f5905a745f94fb91fea9c6cbaf3831cb1bd
GoogleUtilities: c63691989bf362ba0505507da00eeb326192e83e
GoogleAppMeasurement: ccefe3eac9b0aa27f96066809fb1a7fe4b462626
GoogleDataTransport: 6c09b596d841063d76d4288cc2d2f42cc36e1e2a
GoogleUtilities: d053d902a8edaa9904e1bd00c37535385b8ed152
integration_test: 13825b8a9334a850581300559b8839134b124670
just_audio: baa7252489dbcf47a4c7cc9ca663e9661c99aafa
JWTDecode: 2eed97c2fa46ccaf3049a787004eedf0be474a87
nanopb: b552cce312b6c8484180ef47159bc0f65a1f0431
nanopb: 438bc412db1928dac798aa6fd75726007be04262
OrderedSet: aaeb196f7fef5a9edf55d89760da9176ad40b93c
package_info_plus: fd030dabf36271f146f1f3beacd48f564b0f17f7
path_provider_foundation: 29f094ae23ebbca9d3d0cec13889cd9060c0e943
PromisesObjC: c50d2056b5253dadbd6c2bea79b0674bd5a52fa4
PromisesSwift: 28dca69a9c40779916ac2d6985a0192a5cb4a265
PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47
PromisesSwift: 9d77319bbe72ebf6d872900551f7eeba9bce2851
quick_actions_ios: 9e80dcfadfbc5d47d9cf8f47bcf428b11cf383d4
share_plus: 599aa54e4ea31d4b4c0e9c911bcc26c55e791028
share_plus: c3fef564749587fc939ef86ffb283ceac0baf9f5
shared_preferences_foundation: 5b919d13b803cadd15ed2dc053125c68730e5126
SimpleKeychain: 130211269f88f038d7dc5254cf0b1b9ce978c398
sqflite: 31f7eba61e3074736dff8807a9b41581e4f7f15a
url_launcher_ios: 08a3dfac5fb39e8759aeb0abbd5d9480f30fc8b4
sqflite: 673a0e54cc04b7d6dba8d24fb8095b31c3a99eec
url_launcher_ios: 6116280ddcfe98ab8820085d8d76ae7449447586
webview_flutter_wkwebview: 2e2d318f21a5e036e2c3f26171342e95908bd60a

PODFILE CHECKSUM: a74b8704f768957a23e2d804b55390ecc9fffc9d

COCOAPODS: 1.14.3
COCOAPODS: 1.15.2
8 changes: 5 additions & 3 deletions mobile-app/lib/service/firebase/analytics_observer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class AnalyticsObserver extends RouteObserver {

final FirebaseAnalytics analytics;

void _sendScreenView(Route<dynamic> route) {
void _sendScreenView(Route<dynamic> route) async {
String screenName = route.settings.name ?? 'could-not-find-view';

if (route.settings.arguments != null) {
Expand Down Expand Up @@ -37,8 +37,10 @@ class AnalyticsObserver extends RouteObserver {
}
}
log('Setting screen to $screenName');
analytics.setCurrentScreen(
screenName: screenName, screenClassOverride: screenName);
await analytics.logScreenView(
screenName: screenName,
screenClass: screenName,
);
}

@override
Expand Down
5 changes: 5 additions & 0 deletions mobile-app/lib/service/podcast/notification_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ class NotificationService {
iOS: iosInitializationSettings,
);

await _flutterLocalNotificationsPlugin
.resolvePlatformSpecificImplementation<
AndroidFlutterLocalNotificationsPlugin>()
?.requestNotificationsPermission();

await _flutterLocalNotificationsPlugin.initialize(initializationSettings);
}

Expand Down
15 changes: 12 additions & 3 deletions mobile-app/lib/ui/views/learn/landing/landing_view.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'dart:io';

import 'package:flutter/material.dart';
import 'package:freecodecamp/extensions/i18n_extension.dart';
import 'package:freecodecamp/models/learn/curriculum_model.dart';
Expand All @@ -23,11 +25,18 @@ class LearnLandingView extends StatelessWidget {
drawer: const DrawerWidgetView(
key: Key('drawer'),
),
// TODO: Check why upgrade alert is not showing up
body: UpgradeAlert(
dialogStyle: Platform.isIOS
? UpgradeDialogStyle.cupertino
: UpgradeDialogStyle.material,
showIgnore: false,
showLater: false,
upgrader: Upgrader(
dialogStyle: UpgradeDialogStyle.material,
showIgnore: false,
showLater: false,
// debugLogging: true,
// debugDisplayAlways: true,
// TODO: We have to start using this in the future and not force the user to update the app always
// minAppVersion: '4.1.8'
),
child: RefreshIndicator(
backgroundColor: const Color(0xFF0a0a23),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ class DrawerWidgetView extends StatelessWidget {
children: [
Expanded(
child: ScrollShadow(
controller: model.scrollController,
color: Colors.black,
child: ListView(
controller: model.scrollController,
Expand Down
Loading

0 comments on commit 52cc875

Please sign in to comment.