From 92894b236ee8eba3f6326f7ab97829128003f613 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=B3ricz=20Gerg=C5=91?= Date: Sat, 27 May 2023 10:39:52 +0200 Subject: [PATCH 1/4] fix(fix-pub.sh): add filcnaplo_premium --- fix-pub.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/fix-pub.sh b/fix-pub.sh index 0bb31c9..27e50db 100755 --- a/fix-pub.sh +++ b/fix-pub.sh @@ -2,5 +2,6 @@ cd filcnaplo && flutter clean && flutter pub get && cd .. cd filcnaplo_kreta_api && flutter clean && flutter pub get && cd .. cd filcnaplo_mobile_ui && flutter clean && flutter pub get && cd .. cd filcnaplo_desktop_ui && flutter clean && flutter pub get && cd .. +cd filcnaplo_premium && flutter clean && flutter pub get && cd .. echo Fixed pub. \ No newline at end of file From 30218b9ad8146f3fd64a9a6f450db100a5d593b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=B3ricz=20Gerg=C5=91?= Date: Sat, 27 May 2023 10:51:57 +0200 Subject: [PATCH 2/4] chore(ios): update signing team --- filcnaplo/ios/Podfile.lock | 6 ++++++ filcnaplo/ios/Runner.xcodeproj/project.pbxproj | 12 ++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/filcnaplo/ios/Podfile.lock b/filcnaplo/ios/Podfile.lock index bf12ea5..28ab956 100644 --- a/filcnaplo/ios/Podfile.lock +++ b/filcnaplo/ios/Podfile.lock @@ -52,6 +52,8 @@ PODS: - Flutter - flutter_native_image (0.0.1): - Flutter + - flutter_native_splash (0.0.1): + - Flutter - FMDB (2.7.5): - FMDB/standard (= 2.7.5) - FMDB/standard (2.7.5) @@ -113,6 +115,7 @@ DEPENDENCIES: - flutter_image_compress (from `.symlinks/plugins/flutter_image_compress/ios`) - flutter_local_notifications (from `.symlinks/plugins/flutter_local_notifications/ios`) - flutter_native_image (from `.symlinks/plugins/flutter_native_image/ios`) + - flutter_native_splash (from `.symlinks/plugins/flutter_native_splash/ios`) - home_widget (from `.symlinks/plugins/home_widget/ios`) - image_picker_ios (from `.symlinks/plugins/image_picker_ios/ios`) - live_activities (from `.symlinks/plugins/live_activities/ios`) @@ -158,6 +161,8 @@ EXTERNAL SOURCES: :path: ".symlinks/plugins/flutter_local_notifications/ios" flutter_native_image: :path: ".symlinks/plugins/flutter_native_image/ios" + flutter_native_splash: + :path: ".symlinks/plugins/flutter_native_splash/ios" home_widget: :path: ".symlinks/plugins/home_widget/ios" image_picker_ios: @@ -200,6 +205,7 @@ SPEC CHECKSUMS: flutter_image_compress: 5a5e9aee05b6553048b8df1c3bc456d0afaac433 flutter_local_notifications: 0c0b1ae97e741e1521e4c1629a459d04b9aec743 flutter_native_image: 9c0b7451838484458e5b0fae007b86a4c2d4bdfe + flutter_native_splash: 52501b97d1c0a5f898d687f1646226c1f93c56ef FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a home_widget: 2829415127ee92e876f816cbbe44c0b6601b8a37 image_picker_ios: 4a8aadfbb6dc30ad5141a2ce3832af9214a705b5 diff --git a/filcnaplo/ios/Runner.xcodeproj/project.pbxproj b/filcnaplo/ios/Runner.xcodeproj/project.pbxproj index 08dfd60..26e6629 100644 --- a/filcnaplo/ios/Runner.xcodeproj/project.pbxproj +++ b/filcnaplo/ios/Runner.xcodeproj/project.pbxproj @@ -478,7 +478,7 @@ CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; CURRENT_PROJECT_VERSION = 195; - DEVELOPMENT_TEAM = 48XS7JAZB7; + DEVELOPMENT_TEAM = JWGEQSC9U7; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = reFilc; @@ -510,7 +510,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = 48XS7JAZB7; + DEVELOPMENT_TEAM = JWGEQSC9U7; GCC_C_LANGUAGE_STANDARD = gnu11; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = livecard/Info.plist; @@ -552,7 +552,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = 48XS7JAZB7; + DEVELOPMENT_TEAM = JWGEQSC9U7; GCC_C_LANGUAGE_STANDARD = gnu11; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = livecard/Info.plist; @@ -592,7 +592,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = 48XS7JAZB7; + DEVELOPMENT_TEAM = JWGEQSC9U7; GCC_C_LANGUAGE_STANDARD = gnu11; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = livecard/Info.plist; @@ -736,7 +736,7 @@ CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; CURRENT_PROJECT_VERSION = 195; - DEVELOPMENT_TEAM = 48XS7JAZB7; + DEVELOPMENT_TEAM = JWGEQSC9U7; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = reFilc; @@ -764,7 +764,7 @@ CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; CURRENT_PROJECT_VERSION = 195; - DEVELOPMENT_TEAM = 48XS7JAZB7; + DEVELOPMENT_TEAM = JWGEQSC9U7; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = reFilc; From d00a7b8787fa33a226340e70b72a94ca63a0f00b Mon Sep 17 00:00:00 2001 From: Peti Date: Sat, 27 May 2023 10:53:00 +0200 Subject: [PATCH 3/4] more theme fix --- filcnaplo/lib/theme/colors/accent.dart | 4 +- filcnaplo/lib/theme/colors/dark_desktop.dart | 2 +- filcnaplo/lib/theme/colors/dark_mobile.dart | 4 +- filcnaplo/lib/theme/colors/light_desktop.dart | 2 +- filcnaplo/lib/theme/colors/light_mobile.dart | 4 +- .../lib/ui/widgets/grade/grade_tile.dart | 66 +++++++++++++------ 6 files changed, 53 insertions(+), 29 deletions(-) diff --git a/filcnaplo/lib/theme/colors/accent.dart b/filcnaplo/lib/theme/colors/accent.dart index a5ef31b..73d25f9 100644 --- a/filcnaplo/lib/theme/colors/accent.dart +++ b/filcnaplo/lib/theme/colors/accent.dart @@ -24,6 +24,6 @@ Map accentColorMap = { AccentColor.red: Colors.red.shade300, AccentColor.pink: Colors.pink.shade300, AccentColor.purple: Colors.purple.shade300, - AccentColor.adaptive: const Color(0x003d7bf4), - AccentColor.custom: const Color(0x003d7bf4), + AccentColor.adaptive: const Color(0xff3d7bf4), + AccentColor.custom: const Color(0xff3d7bf4), }; diff --git a/filcnaplo/lib/theme/colors/dark_desktop.dart b/filcnaplo/lib/theme/colors/dark_desktop.dart index 9396c21..f03f492 100644 --- a/filcnaplo/lib/theme/colors/dark_desktop.dart +++ b/filcnaplo/lib/theme/colors/dark_desktop.dart @@ -19,7 +19,7 @@ class DarkDesktopAppColors implements ThemeAppColors { @override final green = const Color(0xff32D74B); @override - final filc = const Color(0xff29826F); + final filc = const Color(0xff3d7bf4); @override final teal = const Color(0xff64D2FF); @override diff --git a/filcnaplo/lib/theme/colors/dark_mobile.dart b/filcnaplo/lib/theme/colors/dark_mobile.dart index 4239144..8062240 100644 --- a/filcnaplo/lib/theme/colors/dark_mobile.dart +++ b/filcnaplo/lib/theme/colors/dark_mobile.dart @@ -19,11 +19,11 @@ class DarkMobileAppColors implements ThemeAppColors { @override final green = const Color(0xff32D74B); @override - final filc = const Color(0x003d7bf4); + final filc = const Color(0xff3d7bf4); @override final teal = const Color(0xff64D2FF); @override - final blue = Color.fromARGB(255, 255, 10, 10); + final blue = const Color(0xff0A84FF); @override final indigo = const Color(0xff5E5CE6); @override diff --git a/filcnaplo/lib/theme/colors/light_desktop.dart b/filcnaplo/lib/theme/colors/light_desktop.dart index 106a7c0..4a150b1 100644 --- a/filcnaplo/lib/theme/colors/light_desktop.dart +++ b/filcnaplo/lib/theme/colors/light_desktop.dart @@ -19,7 +19,7 @@ class LightDesktopAppColors implements ThemeAppColors { @override final green = const Color(0xff34C759); @override - final filc = const Color(0xff247665); + final filc = const Color(0xff3d7bf4); @override final teal = const Color(0xff5AC8FA); @override diff --git a/filcnaplo/lib/theme/colors/light_mobile.dart b/filcnaplo/lib/theme/colors/light_mobile.dart index b93b17c..46766eb 100644 --- a/filcnaplo/lib/theme/colors/light_mobile.dart +++ b/filcnaplo/lib/theme/colors/light_mobile.dart @@ -5,7 +5,7 @@ class LightMobileAppColors implements ThemeAppColors { @override final shadow = const Color(0xffE8E8E8); @override - final text = Colors.black; + final text = const Color(0xFF000000); @override final background = const Color(0xffF4F9FF); @override @@ -19,7 +19,7 @@ class LightMobileAppColors implements ThemeAppColors { @override final green = const Color(0xff34C759); @override - final filc = const Color(0x003d7bf4); + final filc = const Color(0xff3d7bf4); @override final teal = const Color(0xff5AC8FA); @override diff --git a/filcnaplo/lib/ui/widgets/grade/grade_tile.dart b/filcnaplo/lib/ui/widgets/grade/grade_tile.dart index affb00c..aa16b06 100644 --- a/filcnaplo/lib/ui/widgets/grade/grade_tile.dart +++ b/filcnaplo/lib/ui/widgets/grade/grade_tile.dart @@ -10,7 +10,9 @@ import 'package:flutter_feather_icons/flutter_feather_icons.dart'; import 'package:provider/provider.dart'; class GradeTile extends StatelessWidget { - const GradeTile(this.grade, {Key? key, this.onTap, this.padding, this.censored = false}) : super(key: key); + const GradeTile(this.grade, + {Key? key, this.onTap, this.padding, this.censored = false}) + : super(key: key); final Grade grade; final void Function()? onTap; @@ -23,11 +25,13 @@ class GradeTile extends StatelessWidget { String subtitle; EdgeInsets leadingPadding = EdgeInsets.zero; bool isSubjectView = SubjectGradesContainer.of(context) != null; - String subjectName = grade.subject.renamedTo ?? grade.subject.name.capital(); + String subjectName = + grade.subject.renamedTo ?? grade.subject.name.capital(); String modeDescription = grade.mode.description.capital(); String description = grade.description.capital(); - GradeCalculatorProvider calculatorProvider = Provider.of(context, listen: false); + GradeCalculatorProvider calculatorProvider = + Provider.of(context, listen: false); // Test order: // description @@ -37,7 +41,9 @@ class GradeTile extends StatelessWidget { if (grade.description != "") { title = description; } else { - title = modeDescription != "" ? modeDescription : grade.value.valueName.split("(")[0]; + title = modeDescription != "" + ? modeDescription + : grade.value.valueName.split("(")[0]; } } else { title = subjectName; @@ -71,7 +77,8 @@ class GradeTile extends StatelessWidget { : const EdgeInsets.only(left: 8.0, right: 12.0), onTap: onTap, // onLongPress: kDebugMode ? () => log(jsonEncode(grade.json)) : null, - shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(14.0)), + shape: + RoundedRectangleBorder(borderRadius: BorderRadius.circular(14.0)), leading: isSubjectView ? GradeValueWidget(grade.value) : SizedBox( @@ -80,7 +87,7 @@ class GradeTile extends StatelessWidget { child: censored ? Container( decoration: BoxDecoration( - color: AppColors.of(context).text.withOpacity(.55), + color: AppColors.of(context).text, borderRadius: BorderRadius.circular(60.0), ), ) @@ -88,9 +95,10 @@ class GradeTile extends StatelessWidget { child: Padding( padding: leadingPadding, child: Icon( - SubjectIcon.resolveVariant(subject: grade.subject, context: context), + SubjectIcon.resolveVariant( + subject: grade.subject, context: context), size: 28.0, - color: AppColors.of(context).text.withOpacity(.75), + color: AppColors.of(context).text, ), ), ), @@ -102,7 +110,7 @@ class GradeTile extends StatelessWidget { width: 110, height: 15, decoration: BoxDecoration( - color: AppColors.of(context).text.withOpacity(.85), + color: AppColors.of(context).text, borderRadius: BorderRadius.circular(8.0), ), ), @@ -112,7 +120,11 @@ class GradeTile extends StatelessWidget { title, maxLines: 2, overflow: TextOverflow.ellipsis, - style: TextStyle(fontWeight: FontWeight.w600, fontStyle: grade.subject.isRenamed && title == subjectName ? FontStyle.italic : null), + style: TextStyle( + fontWeight: FontWeight.w600, + fontStyle: grade.subject.isRenamed && title == subjectName + ? FontStyle.italic + : null), ), subtitle: subtitle != "" ? censored @@ -122,7 +134,7 @@ class GradeTile extends StatelessWidget { width: 50, height: 10, decoration: BoxDecoration( - color: AppColors.of(context).text.withOpacity(.45), + color: AppColors.of(context).text, borderRadius: BorderRadius.circular(8.0), ), ), @@ -137,10 +149,12 @@ class GradeTile extends StatelessWidget { : null, trailing: isSubjectView ? grade.type != GradeType.ghost - ? Text(grade.date.format(context), style: const TextStyle(fontWeight: FontWeight.w500)) + ? Text(grade.date.format(context), + style: const TextStyle(fontWeight: FontWeight.w500)) : IconButton( splashRadius: 24.0, - icon: Icon(FeatherIcons.trash2, color: AppColors.of(context).red), + icon: Icon(FeatherIcons.trash2, + color: AppColors.of(context).red), onPressed: () { calculatorProvider.removeGrade(grade); }, @@ -150,7 +164,7 @@ class GradeTile extends StatelessWidget { width: 15, height: 15, decoration: BoxDecoration( - color: AppColors.of(context).text.withOpacity(.45), + color: AppColors.of(context).text, borderRadius: BorderRadius.circular(8.0), ), ) @@ -189,7 +203,8 @@ class GradeValueWidget extends StatelessWidget { GradeValue value = this.value; bool isSubjectView = SubjectGradesContainer.of(context) != null; - Color color = gradeColor(context: context, value: value.value, nocolor: nocolor); + Color color = + gradeColor(context: context, value: value.value, nocolor: nocolor); Widget valueText; final percentage = value.percentage; @@ -204,10 +219,16 @@ class GradeValueWidget extends StatelessWidget { children: [ TextSpan( text: "\n%", - style: TextStyle(fontWeight: FontWeight.w700, fontSize: size / 2.5 * multiplier, height: 0.7), + style: TextStyle( + fontWeight: FontWeight.w700, + fontSize: size / 2.5 * multiplier, + height: 0.7), ), ], - style: TextStyle(fontWeight: FontWeight.w700, fontSize: size / 1 * multiplier, height: 1), + style: TextStyle( + fontWeight: FontWeight.w700, + fontSize: size / 1 * multiplier, + height: 1), ), textAlign: TextAlign.center, ); @@ -221,7 +242,8 @@ class GradeValueWidget extends StatelessWidget { value.value.toString(), textAlign: TextAlign.center, style: TextStyle( - fontWeight: value.weight == 50 ? FontWeight.w500 : FontWeight.bold, + fontWeight: + value.weight == 50 ? FontWeight.w500 : FontWeight.bold, fontSize: size, color: contrast ? Colors.white : color, shadows: [ @@ -239,7 +261,8 @@ class GradeValueWidget extends StatelessWidget { offset: const Offset(9, 1), child: Text( "*", - style: TextStyle(fontSize: size / 1.6, fontWeight: FontWeight.bold), + style: + TextStyle(fontSize: size / 1.6, fontWeight: FontWeight.bold), ), ), ]); @@ -266,7 +289,8 @@ class GradeValueWidget extends StatelessWidget { } } -Color gradeColor({required BuildContext context, required num value, bool nocolor = false}) { +Color gradeColor( + {required BuildContext context, required num value, bool nocolor = false}) { int valueInt = 0; var settings = Provider.of(context, listen: false); @@ -287,7 +311,7 @@ Color gradeColor({required BuildContext context, required num value, bool nocolo switch (valueInt) { case 5: - return settings.gradeColors[4]; + return Color(0xff3d7bf4); case 4: return settings.gradeColors[3]; case 3: From c7dfa7e0850577140c531455a4bb2f263112dfd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=B3ricz=20Gerg=C5=91?= Date: Sat, 27 May 2023 10:59:38 +0200 Subject: [PATCH 4/4] fix(ios): change bundle identifier to hu.reflic.* --- filcnaplo/ios/Runner.xcodeproj/project.pbxproj | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/filcnaplo/ios/Runner.xcodeproj/project.pbxproj b/filcnaplo/ios/Runner.xcodeproj/project.pbxproj index 26e6629..b4bcb5a 100644 --- a/filcnaplo/ios/Runner.xcodeproj/project.pbxproj +++ b/filcnaplo/ios/Runner.xcodeproj/project.pbxproj @@ -488,7 +488,7 @@ "@executable_path/Frameworks", ); MARKETING_VERSION = 3.6.0; - PRODUCT_BUNDLE_IDENTIFIER = com.refilc.naplo; + PRODUCT_BUNDLE_IDENTIFIER = hu.refilc.naplo; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_VERSION = 5.0; @@ -526,7 +526,7 @@ MARKETING_VERSION = 1.0; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; - PRODUCT_BUNDLE_IDENTIFIER = com.refilc.naplo.livecardpro; + PRODUCT_BUNDLE_IDENTIFIER = hu.refilc.naplo.livecardpro; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; SKIP_INSTALL = YES; @@ -567,7 +567,7 @@ ); MARKETING_VERSION = 1.0; MTL_FAST_MATH = YES; - PRODUCT_BUNDLE_IDENTIFIER = com.refilc.naplo.livecardpro; + PRODUCT_BUNDLE_IDENTIFIER = hu.refilc.naplo.livecardpro; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; SKIP_INSTALL = YES; @@ -607,7 +607,7 @@ ); MARKETING_VERSION = 1.0; MTL_FAST_MATH = YES; - PRODUCT_BUNDLE_IDENTIFIER = com.refilc.naplo.livecardpro; + PRODUCT_BUNDLE_IDENTIFIER = hu.refilc.naplo.livecardpro; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; SKIP_INSTALL = YES; @@ -746,7 +746,7 @@ "@executable_path/Frameworks", ); MARKETING_VERSION = 3.6.0; - PRODUCT_BUNDLE_IDENTIFIER = com.refilc.naplo; + PRODUCT_BUNDLE_IDENTIFIER = hu.refilc.naplo; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; @@ -774,7 +774,7 @@ "@executable_path/Frameworks", ); MARKETING_VERSION = 3.6.0; - PRODUCT_BUNDLE_IDENTIFIER = com.refilc.naplo; + PRODUCT_BUNDLE_IDENTIFIER = hu.refilc.naplo; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_VERSION = 5.0;