Skip to content

Commit 62d016f

Browse files
author
dd
committed
feat: Update iOS build process and enhance backup log navigation in settings
1 parent 2292ad3 commit 62d016f

5 files changed

Lines changed: 19 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,11 @@ jobs:
207207
if: matrix.target == 'iOS'
208208
run: |
209209
flutter build ipa --release --no-codesign
210-
cd build/ios/ipa
211-
mv CloudOTP.ipa CloudOTP-${{ steps.get_version.outputs.version }}-ios.ipa 2>/dev/null || true
210+
mkdir -p build/ios/ipa
211+
cd build/ios/archive/Runner.xcarchive/Products/Applications
212+
mkdir -p Payload
213+
mv Runner.app Payload/ 2>/dev/null || mv CloudOTP.app Payload/ 2>/dev/null || true
214+
zip -r ../../../../../../build/ios/ipa/CloudOTP-${{ steps.get_version.outputs.version }}-ios.ipa Payload
212215
213216
# Build macOS .app & .dmg
214217
- name: Disable macOS codesigning

ios/Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,6 @@ SPEC CHECKSUMS:
243243
SwiftyGif: 706c60cf65fa2bc5ee0313beece843c8eb8194d4
244244
url_launcher_ios: 694010445543906933d732453a59da0a173ae33d
245245

246-
PODFILE CHECKSUM: a833d93964cfacfb001478cf662f93736e427c23
246+
PODFILE CHECKSUM: 4bb9f7e4e6a468a9e1d07ae49e6c4cb7bed36dc1
247247

248248
COCOAPODS: 1.16.2

lib/Screens/Setting/backup_log_screen.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ class BackupLogScreenState extends BaseDynamicState<BackupLogScreen> {
6464
? _buildDesktopBody()
6565
: Scaffold(
6666
appBar: ResponsiveAppBar(
67-
backgroundColor: Colors.transparent,
67+
backgroundColor: ResponsiveUtil.isLandscapeLayout()
68+
? ChewieTheme.appBarBackgroundColor
69+
: Colors.transparent,
6870
title: appLocalizations.backupLogs,
6971
showBack: true,
7072
showBorder: true,
@@ -121,8 +123,7 @@ class BackupLogScreenState extends BaseDynamicState<BackupLogScreen> {
121123

122124
_buildBody() {
123125
return ListView(
124-
padding: EdgeInsets.symmetric(
125-
horizontal: 10, vertical: widget.isOverlay ? 10 : 0),
126+
padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 10),
126127
physics: widget.isOverlay
127128
? null
128129
: const BouncingScrollPhysics(

lib/Screens/Setting/setting_backup_screen.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import 'package:awesome_chewie/awesome_chewie.dart';
1717
import 'package:cloudotp/Database/config_dao.dart';
1818
import 'package:cloudotp/Models/cloud_service_config.dart';
1919
import 'package:cloudotp/Screens/Backup/cloud_service_screen.dart';
20+
import 'package:cloudotp/Screens/Setting/backup_log_screen.dart';
2021
import 'package:cloudotp/TokenUtils/Cloud/webdav_cloud_service.dart';
2122
import 'package:cloudotp/TokenUtils/export_token_util.dart';
2223
import 'package:cloudotp/Utils/app_provider.dart';
@@ -340,6 +341,13 @@ class _BackupSettingScreenState extends BaseDynamicState<BackupSettingScreen>
340341
},
341342
),
342343
),
344+
EntryItem(
345+
title: appLocalizations.backupLogs,
346+
trailing: Icons.history_rounded,
347+
onTap: () async {
348+
RouteUtil.pushCupertinoRoute(context, const BackupLogScreen());
349+
},
350+
),
343351
],
344352
),
345353
CaptionItem(

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: cloudotp
2-
version: 3.1.3+313
2+
version: 3.2.0+320
33
description: An awesome two-factor authenticator which supports cloud storage and multiple platforms.
44
publish_to: none
55

0 commit comments

Comments
 (0)