Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
# Conflicts:
#	lib/common/pubspec.yaml.g.dart
  • Loading branch information
w568w committed Feb 21, 2022
2 parents 0439c45 + 33b9927 commit e00a621
Show file tree
Hide file tree
Showing 13 changed files with 279 additions and 263 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/ci_ios.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: CI-iOS
name: Automated-CI-iOS-Beta

on:
push:
tags:
- '*'
workflow_dispatch:

jobs:
Expand Down
18 changes: 9 additions & 9 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CODE_SIGN_IDENTITY = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 151;
CURRENT_PROJECT_VERSION = 155;
DEVELOPMENT_TEAM = QZ9KCS2T78;
ENABLE_BITCODE = YES;
INFOPLIST_FILE = Runner/Info.plist;
Expand Down Expand Up @@ -692,7 +692,7 @@
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_IDENTITY = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 151;
CURRENT_PROJECT_VERSION = 155;
DEVELOPMENT_TEAM = QZ9KCS2T78;
GCC_C_LANGUAGE_STANDARD = gnu11;
IBSC_MODULE = nano_Extension;
Expand Down Expand Up @@ -727,7 +727,7 @@
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_IDENTITY = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 151;
CURRENT_PROJECT_VERSION = 155;
DEVELOPMENT_TEAM = QZ9KCS2T78;
GCC_C_LANGUAGE_STANDARD = gnu11;
IBSC_MODULE = nano_Extension;
Expand Down Expand Up @@ -759,7 +759,7 @@
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_IDENTITY = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 151;
CURRENT_PROJECT_VERSION = 155;
DEVELOPMENT_TEAM = QZ9KCS2T78;
GCC_C_LANGUAGE_STANDARD = gnu11;
IBSC_MODULE = nano_Extension;
Expand Down Expand Up @@ -790,7 +790,7 @@
CODE_SIGN_ENTITLEMENTS = "nano Extension/nano Extension.entitlements";
CODE_SIGN_IDENTITY = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 151;
CURRENT_PROJECT_VERSION = 155;
DEVELOPMENT_ASSET_PATHS = "\"nano Extension/Preview Content\"";
DEVELOPMENT_TEAM = QZ9KCS2T78;
ENABLE_PREVIEWS = YES;
Expand Down Expand Up @@ -830,7 +830,7 @@
CODE_SIGN_ENTITLEMENTS = "nano Extension/nano Extension.entitlements";
CODE_SIGN_IDENTITY = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 151;
CURRENT_PROJECT_VERSION = 155;
DEVELOPMENT_ASSET_PATHS = "\"nano Extension/Preview Content\"";
DEVELOPMENT_TEAM = QZ9KCS2T78;
ENABLE_PREVIEWS = YES;
Expand Down Expand Up @@ -867,7 +867,7 @@
CODE_SIGN_ENTITLEMENTS = "nano Extension/nano Extension.entitlements";
CODE_SIGN_IDENTITY = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 151;
CURRENT_PROJECT_VERSION = 155;
DEVELOPMENT_ASSET_PATHS = "\"nano Extension/Preview Content\"";
DEVELOPMENT_TEAM = QZ9KCS2T78;
ENABLE_PREVIEWS = YES;
Expand Down Expand Up @@ -1015,7 +1015,7 @@
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CODE_SIGN_IDENTITY = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 151;
CURRENT_PROJECT_VERSION = 155;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = QZ9KCS2T78;
ENABLE_BITCODE = YES;
Expand Down Expand Up @@ -1050,7 +1050,7 @@
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CODE_SIGN_IDENTITY = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 151;
CURRENT_PROJECT_VERSION = 155;
DEVELOPMENT_TEAM = QZ9KCS2T78;
ENABLE_BITCODE = YES;
INFOPLIST_FILE = Runner/Info.plist;
Expand Down
4 changes: 2 additions & 2 deletions ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.3.5</string>
<string>1.3.6</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>151</string>
<string>155</string>
<key>GADApplicationIdentifier</key>
<string>ca-app-pub-3940256099942544~1458002511</string>
<key>ITSAppUsesNonExemptEncryption</key>
Expand Down
4 changes: 2 additions & 2 deletions ios/nano Extension/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.3.5</string>
<string>1.3.6</string>
<key>CFBundleVersion</key>
<string>151</string>
<string>155</string>
<key>CLKComplicationPrincipalClass</key>
<string>$(PRODUCT_MODULE_NAME).ComplicationController</string>
<key>NSExtension</key>
Expand Down
4 changes: 2 additions & 2 deletions ios/nano/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.3.5</string>
<string>1.3.6</string>
<key>CFBundleVersion</key>
<string>151</string>
<string>155</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
Expand Down
9 changes: 4 additions & 5 deletions lib/common/pubspec.yaml.g.dart

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

17 changes: 11 additions & 6 deletions lib/feature/fudan_daily_warning_notification.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,22 @@ class FudanDailyWarningNotification extends Feature {
bool get removable => true;

@override
Widget get icon => PlatformX.isMaterial(context!)
? const Icon(Icons.cloud_off)
: const Icon(CupertinoIcons.xmark_circle);
Widget get icon => Icon(
PlatformX.isMaterial(context!)
? Icons.cloud_off
: CupertinoIcons.arrow_up_doc,
color: Theme.of(context!).errorColor,
);

@override
Widget get trailing {
Widget get customSubtitle {
return Row(mainAxisAlignment: MainAxisAlignment.end, children: [
PlatformTextButton(
padding: EdgeInsets.zero,
child: Text(S.of(context!).fudan_daily_warning_notification_action),
// User needs to download the vpn software. Open an external browser.
child: Text(
S.of(context!).fudan_daily_warning_notification_action,
style: TextStyle(color: Theme.of(context!).errorColor),
),
onPressed: () => FudanDailyFeature.pushFudanDailyWebPage(context!),
),
]);
Expand Down
23 changes: 18 additions & 5 deletions lib/feature/welcome_feature.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import 'package:dan_xi/repository/fdu/data_center_repository.dart';
import 'package:dan_xi/util/noticing.dart';
import 'package:dan_xi/util/platform_universal.dart';
import 'package:dan_xi/widget/libraries/scale_transform.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_platform_widgets/flutter_platform_widgets.dart';

Expand Down Expand Up @@ -118,12 +119,22 @@ class WelcomeFeature extends Feature {
_infoText = "";
break;
case ConnectionStatus.DONE:
if (_cardInfos?.any((element) => element.permission.contains("")) ??
if (_cardInfos?.any((element) => !element.permission.contains("")) ??
false) {
status = const Icon(Icons.block);
status = Icon(
PlatformX.isMaterial(context!)
? Icons.block
: CupertinoIcons.xmark_circle,
color: Theme.of(context!).errorColor,
);
_infoText = S.of(context!).abnormal_entry_permission;
} else {
status = const Icon(Icons.verified);
status = Icon(
PlatformX.isMaterial(context!)
? Icons.verified
: CupertinoIcons.checkmark_alt_circle,
color: Colors.green,
);
_infoText = S.of(context!).everything_is_ok;
}
break;
Expand All @@ -140,10 +151,12 @@ class WelcomeFeature extends Feature {
crossAxisAlignment: CrossAxisAlignment.center,
children: [
status,
if (_infoText.isNotEmpty) ...[
/*if (_infoText.isNotEmpty) ...[
const SizedBox(height: 2),
Text(_infoText, textScaleFactor: 0.8)
]
]*/
const SizedBox(height: 2),
Text(S.of(context!).entry_permission, textScaleFactor: 0.8)
],
),
onTap: () {
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/intl_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,6 @@
"everything_is_ok": "All Okay",
"entry_permission": "Entry Permission",
"diagnostic_information": "Diagnostics",
"failed_exam_no_grade": "Please check jwfw for make-up exam grades.",
"failed_exam_no_grade": "Please check JWFW for make-up exam grades.",
"set_semester_start_date": "Set Start Date"
}
3 changes: 1 addition & 2 deletions lib/page/dashboard/exam_detail.dart
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,7 @@ class _ExamListState extends State<ExamList> {
),
],
),
if (!value.type.contains("补考") &&
!value.type.contains("缓考")) ...[
if (!value.type.contains("补") && !value.type.contains("缓")) ...[
Align(
alignment: Alignment.centerLeft,
child: FutureWidget<List<ExamScore>?>(
Expand Down
11 changes: 7 additions & 4 deletions lib/page/subpage_timetable.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_platform_widgets/flutter_platform_widgets.dart';
import 'package:google_mobile_ads/google_mobile_ads.dart';
import 'package:intl/intl.dart';
import 'package:open_file/open_file.dart';
import 'package:path_provider/path_provider.dart';
import 'package:provider/provider.dart';
Expand Down Expand Up @@ -500,15 +501,17 @@ class StartDateSelectionButton extends StatelessWidget {
});
return PlatformIconButton(
padding: PlatformX.isCupertino(context) ? EdgeInsets.zero : null,
icon: PlatformX.isCupertino(context)
? AutoSizeText(S.of(context).semester_start_date, minFontSize: 10)
: const Icon(Icons.event),
icon: AutoSizeText(DateFormat("yyyy-MM-dd").format(startTime), minFontSize: 10),
onPressed: () async {
DateTime? newDate = await showPlatformDatePicker(
context: context,
cupertino: (context, __) => CupertinoDatePickerData(
doneLabel: S.of(context).ok,
cancelLabel: S.of(context).cancel
)
material: (context, __) => MaterialDatePickerData(
helpText: S.of(context).semester_start_date,
confirmText: S.of(context).set_semester_start_date),
confirmText: S.of(context).ok),
initialDate: startTime,
firstDate: DateTime.fromMillisecondsSinceEpoch(0),
lastDate: startTime.add(const Duration(days: 365 * 100)));
Expand Down

0 comments on commit e00a621

Please sign in to comment.