Skip to content

Commit

Permalink
Update dependencies (#100)
Browse files Browse the repository at this point in the history
* Update dependencies

- Flutter version to 2.22.1
- Other dependencies if update available

* Fix Compile time error

* Fix Compile time error

---------

Co-authored-by: Sneha Canopas <[email protected]>
  • Loading branch information
jimmy0251 and cp-sneha-s authored Oct 16, 2024
1 parent b637474 commit 64721c8
Show file tree
Hide file tree
Showing 32 changed files with 643 additions and 557 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/web_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ jobs:
- uses: subosito/flutter-action@v2
name: Set up Flutter SDK
with:
channel: 'stable'
channel: stable
flutter-version: 3.22.1

- name: Retrieve the secret and decode it to a file
env:
Expand Down
30 changes: 15 additions & 15 deletions .metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# This file should be version controlled and should not be manually edited.

version:
revision: "9e1c857886f07d342cf106f2cd588bcd5e031bb2"
revision: "a14f74ff3a1cbd521163c5f03d68113d50af93d3"
channel: "stable"

project_type: app
Expand All @@ -13,26 +13,26 @@ project_type: app
migration:
platforms:
- platform: root
create_revision: 9e1c857886f07d342cf106f2cd588bcd5e031bb2
base_revision: 9e1c857886f07d342cf106f2cd588bcd5e031bb2
create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
- platform: android
create_revision: 9e1c857886f07d342cf106f2cd588bcd5e031bb2
base_revision: 9e1c857886f07d342cf106f2cd588bcd5e031bb2
create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
- platform: ios
create_revision: 9e1c857886f07d342cf106f2cd588bcd5e031bb2
base_revision: 9e1c857886f07d342cf106f2cd588bcd5e031bb2
create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
- platform: linux
create_revision: 9e1c857886f07d342cf106f2cd588bcd5e031bb2
base_revision: 9e1c857886f07d342cf106f2cd588bcd5e031bb2
create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
- platform: macos
create_revision: 9e1c857886f07d342cf106f2cd588bcd5e031bb2
base_revision: 9e1c857886f07d342cf106f2cd588bcd5e031bb2
create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
- platform: web
create_revision: 9e1c857886f07d342cf106f2cd588bcd5e031bb2
base_revision: 9e1c857886f07d342cf106f2cd588bcd5e031bb2
create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
- platform: windows
create_revision: 9e1c857886f07d342cf106f2cd588bcd5e031bb2
base_revision: 9e1c857886f07d342cf106f2cd588bcd5e031bb2
create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3

# User provided section

Expand Down
2 changes: 1 addition & 1 deletion ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Uncomment this line to define a global platform for your project
platform :ios, '12.0'
platform :ios, '16.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
Expand Down
6 changes: 3 additions & 3 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@
INFOPLIST_FILE = Runner/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = Unity;
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities";
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down Expand Up @@ -558,7 +558,7 @@
INFOPLIST_FILE = Runner/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = Unity;
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities";
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down Expand Up @@ -592,7 +592,7 @@
INFOPLIST_FILE = Runner/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = Unity;
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities";
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down
2 changes: 1 addition & 1 deletion ios/Runner/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import UIKit
import Flutter

@UIApplicationMain
@main
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
Expand Down
6 changes: 3 additions & 3 deletions lib/data/bloc/network/network_connection_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ class NetworkConnectionBloc
});
}

void _checkNetworkConnection(ConnectivityResult result) {
if (result == ConnectivityResult.mobile ||
result == ConnectivityResult.wifi) {
void _checkNetworkConnection(List<ConnectivityResult> result) {
if (result.contains(ConnectivityResult.mobile) ||
result.contains(ConnectivityResult.wifi)) {
add(const NetworkConnectionChangeEvent(hasConnection: true));
} else {
add(const NetworkConnectionChangeEvent(hasConnection: false));
Expand Down
3 changes: 2 additions & 1 deletion lib/data/core/extensions/date_formatter.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import 'package:intl/intl.dart';
import 'package:projectunity/data/core/extensions/context_extension.dart';
import 'package:projectunity/data/core/extensions/date_time.dart';

extension DateExtension on DateTime {
String toDateWithYear() {
Expand All @@ -13,7 +14,7 @@ extension DateExtension on DateTime {

String toDateWithoutYear(BuildContext context) {
final today = DateUtils.dateOnly(DateTime.now());
if (isAtSameMomentAs(today)) {
if (dateOnly.isAtSameMomentAs(today)) {
return context.l10n.dateFormatter_today;
}
return DateFormat("MMMM d, EEE").format(this);
Expand Down
7 changes: 4 additions & 3 deletions lib/data/core/utils/date_formatter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,13 @@ class DateFormatter {
return _localization.date_format_MMMd(dt).capitalize();
}

String showBirthdays({required DateTime dateTime, required String name}) {
String showBirthdays({required DateTime birthDate, required String name}) {
final today = DateTime.now().dateOnly;
if (dateTime.dateOnly.isAtSameMomentAs(today)) {

if (birthDate.day == today.day && birthDate.month == today.month) {
return _localization.present_birthday_text(name);
} else {
return "${_localization.upcoming_birthday_text(name)} ${getEventDateRepresentation(dateTime)}!🎂🎁";
return "${_localization.upcoming_birthday_text(name)} ${getEventDateRepresentation(birthDate)}!🎂🎁";
}
}

Expand Down
Loading

0 comments on commit 64721c8

Please sign in to comment.