Skip to content

Commit

Permalink
Fix refactoring bug
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonC01 committed Aug 10, 2024
1 parent b612c9e commit 7f962be
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 23 deletions.
33 changes: 21 additions & 12 deletions mingle/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -516,12 +516,14 @@
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = "$(inherited)";
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 4.1.0;
DEVELOPMENT_TEAM = LPUW5AZU9U;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = LPUW5AZU9U;
ENABLE_BITCODE = NO;
FLUTTER_BUILD_NAME = 5.0.0;
FLUTTER_BUILD_NUMBER = 5.0.0;
FLUTTER_BUILD_NAME = 5.0.2;
FLUTTER_BUILD_NUMBER = 5.0.2;
INFOPLIST_FILE = Runner/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
LD_RUNPATH_SEARCH_PATHS = (
Expand All @@ -531,6 +533,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.teamingle.mingle;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = dev_profile;
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
Expand Down Expand Up @@ -716,12 +719,14 @@
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = "$(inherited)";
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 4.1.0;
DEVELOPMENT_TEAM = LPUW5AZU9U;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = LPUW5AZU9U;
ENABLE_BITCODE = NO;
FLUTTER_BUILD_NAME = 5.0.0;
FLUTTER_BUILD_NUMBER = 5.0.0;
FLUTTER_BUILD_NAME = 5.0.2;
FLUTTER_BUILD_NUMBER = 5.0.2;
INFOPLIST_FILE = Runner/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
LD_RUNPATH_SEARCH_PATHS = (
Expand All @@ -731,6 +736,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.teamingle.mingle;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = dev_profile;
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
Expand All @@ -748,12 +754,14 @@
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = "$(inherited)";
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 4.1.0;
DEVELOPMENT_TEAM = LPUW5AZU9U;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = LPUW5AZU9U;
ENABLE_BITCODE = NO;
FLUTTER_BUILD_NAME = 5.0.0;
FLUTTER_BUILD_NUMBER = 5.0.0;
FLUTTER_BUILD_NAME = 5.0.2;
FLUTTER_BUILD_NUMBER = 5.0.2;
INFOPLIST_FILE = Runner/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
LD_RUNPATH_SEARCH_PATHS = (
Expand All @@ -763,6 +771,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.teamingle.mingle;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = dev_profile;
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
Expand Down
4 changes: 2 additions & 2 deletions mingle/lib/timetable/repository/friend_repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ class AddFriendDto {

@JsonSerializable()
class GenerateCodeDto {
String friendDisplayName;
String myDisplayName;

GenerateCodeDto({required this.friendDisplayName});
GenerateCodeDto({required this.myDisplayName});

Map<String, dynamic> toJson() => _$GenerateCodeDtoToJson(this);
}
Expand Down
4 changes: 2 additions & 2 deletions mingle/lib/timetable/repository/friend_repository.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions mingle/lib/timetable/view/timetable_tab_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1250,9 +1250,10 @@ class _TimeTableHomeScreenState extends ConsumerState<TimeTableHomeScreen> {
}

Future<dynamic> secondShareCodeModal() async {
print(friendDisplayName);
String code = (await ref.watch(friendRepositoryProvider).generateCode(
GenerateCodeDto(friendDisplayName: friendDisplayName)))
print("friendDisplayName: $friendDisplayName");
String code = (await ref
.watch(friendRepositoryProvider)
.generateCode(GenerateCodeDto(myDisplayName: friendDisplayName)))
.code;
return showModalBottomSheet(
backgroundColor: Colors.transparent,
Expand Down
4 changes: 2 additions & 2 deletions mingle/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -538,10 +538,10 @@ packages:
dependency: "direct main"
description:
name: flutter_local_notifications
sha256: "55b9b229307a10974b26296ff29f2e132256ba4bd74266939118eaefa941cb00"
sha256: c500d5d9e7e553f06b61877ca6b9c8b92c570a4c8db371038702e8ce57f8a50f
url: "https://pub.dev"
source: hosted
version: "16.3.3"
version: "17.2.2"
flutter_local_notifications_linux:
dependency: transitive
description:
Expand Down
4 changes: 2 additions & 2 deletions mingle/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# 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: 5.0.1+50
version: 5.0.2+51

environment:
sdk: ">=3.4.0 <5.0.0"
Expand Down Expand Up @@ -58,7 +58,7 @@ dependencies:
page_transition: "^2.1.0"
intl: ^0.19.0
flutter_linkify: ^6.0.0
flutter_local_notifications: ^16.3.2
flutter_local_notifications: ^17.2.2
firebase_core: ^2.7.0
firebase_messaging: ^14.7.16
firebase_core_platform_interface: ^5.0.0
Expand Down

0 comments on commit 7f962be

Please sign in to comment.