Skip to content

Commit 0fb10a8

Browse files
Update README
1 parent a550069 commit 0fb10a8

6 files changed

Lines changed: 46 additions & 52 deletions

File tree

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ It supports Android, Windows, and Linux, offering secure cloud backups, powerful
4747

4848
### 📱 Android
4949

50-
**Choose the correct ABI:**
50+
**Choose the correct ABI.** If unsure, use the `universal` version.
5151

5252
| Variant | Description |
5353
| ------------- | ------------------------------------------------------------ |
@@ -56,8 +56,6 @@ It supports Android, Windows, and Linux, offering secure cloud backups, powerful
5656
| `x86_64` | For Android emulators or specific x86 tablets (not for regular devices) |
5757
| `universal` | Supports **all CPU architectures**, larger file size (recommended for most) |
5858

59-
If unsure, use the `universal` version. You can use tools like [Droid Info](https://play.google.com/store/apps/details?id=com.vndnguyen.deviceinfo) to check your device's architecture.
60-
6159
### 💻 Windows
6260

6361
| Variant | Description |
@@ -85,8 +83,6 @@ flatpak run com.cloudchewie.cloudotp
8583

8684
#### 📥 Direct Downloads
8785

88-
Also available as `.deb` and `.tar.gz` packages from the [Releases](https://github.com/your-repo/releases) page.
89-
9086
| Architecture | Formats Available | Notes |
9187
| ------------ | ----------------- | ----------------------------- |
9288
| `x86_64` | `.deb`, `.tar.gz` | For most modern Linux systems |
@@ -119,7 +115,7 @@ Feel free to check the [issues page](https://github.com/Robert-Stackflow/CloudOT
119115

120116
## 📄 License
121117

122-
This project is licensed under the GPL-V3.0 License - see the [LICENSE](LICENSE) file for details.
118+
This project is licensed under the GPL-3.0 License - see the [LICENSE](LICENSE) file for details.
123119

124120
## 📷 Screenshots
125121

README_CN.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848
### 📱 Android
4949

50-
**请选择合适的 ABI 架构版本**
50+
**请选择合适的 ABI 架构版本**如不确定设备架构,建议下载 `universal` 版本
5151

5252
| 版本 | 说明 |
5353
| ------------- | ---------------------------------------------------------- |
@@ -56,8 +56,6 @@
5656
| `x86_64` | 适用于 Android 模拟器或部分 x86 平板(不推荐普通用户使用) |
5757
| `universal` | 支持所有 CPU 架构,文件体积较大(推荐大多数用户使用) |
5858

59-
如不确定设备架构,建议下载 `universal` 版本。可使用 [Droid Info](https://play.google.com/store/apps/details?id=com.vndnguyen.deviceinfo) 等工具查询设备信息
60-
6159
### 💻 Windows
6260

6361
| 版本 | 说明 |
@@ -85,8 +83,6 @@ flatpak run com.cloudchewie.cloudotp
8583

8684
#### 📥 直接下载
8785

88-
也可通过 [Releases](https://github.com/your-repo/releases) 页面下载 `.deb``.tar.gz` 包。
89-
9086
| 架构 | 提供格式 | 说明 |
9187
| -------- | ----------------- | --------------------------------- |
9288
| `x86_64` | `.deb`, `.tar.gz` | 适用于大多数现代 Linux 系统 |
@@ -119,7 +115,7 @@ flutter run -d windows # 也可指定 android、linux 等平台
119115

120116
## 📄 许可证
121117

122-
本项目遵循 GPL-V3.0 协议,详情请查阅 [LICENSE](https://chatgpt.com/c/LICENSE) 文件
118+
本项目遵循 GPL-3.0 协议,详情请查阅 [LICENSE](https://chatgpt.com/c/LICENSE) 文件
123119

124120
## 📷 截图
125121

lib/Screens/Backup/aliyundrive_service_screen.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ class _AliyunDriveServiceScreenState
196196
child: CheckboxItem(
197197
title: appLocalizations.enable + appLocalizations.cloudTypeAliyunDrive,
198198
description: appLocalizations.cloudOAuthSafeTip(
199-
appLocalizations.cloudTypeAliyunDrive, CloudService.serverEndpoint),
199+
CloudService.serverEndpoint, appLocalizations.cloudTypeAliyunDrive),
200200
value: _aliyunDriveCloudServiceConfig?.enabled ?? false,
201201
onTap: () {
202202
setState(() {

lib/Screens/Backup/box_service_screen.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ class _BoxServiceScreenState extends BaseDynamicState<BoxServiceScreen>
204204
child: CheckboxItem(
205205
title: appLocalizations.enable + appLocalizations.cloudTypeBox,
206206
description: appLocalizations.cloudOAuthSafeTip(
207-
appLocalizations.cloudTypeBox, CloudService.serverEndpoint),
207+
CloudService.serverEndpoint,appLocalizations.cloudTypeBox),
208208
value: _boxCloudServiceConfig?.enabled ?? false,
209209
onTap: () {
210210
setState(() {

lib/Screens/Backup/googledrive_service_screen.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ class _GoogleDriveServiceScreenState
189189
child: CheckboxItem(
190190
title: appLocalizations.enable + appLocalizations.cloudTypeGoogleDrive,
191191
description: appLocalizations.cloudOAuthSafeTip(
192-
appLocalizations.cloudTypeGoogleDrive, CloudService.serverEndpoint),
192+
CloudService.serverEndpoint, appLocalizations.cloudTypeGoogleDrive),
193193
value: _googledriveCloudServiceConfig?.enabled ?? false,
194194
onTap: () {
195195
setState(() {

lib/Screens/Backup/huawei_service_screen.dart

Lines changed: 39 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class _HuaweiCloudServiceScreenState
7272

7373
loadConfig() async {
7474
_huaweiCloudCloudServiceConfig =
75-
await CloudServiceConfigDao.getHuaweiCloudConfig();
75+
await CloudServiceConfigDao.getHuaweiCloudConfig();
7676
if (_huaweiCloudCloudServiceConfig != null) {
7777
_sizeController.text = _huaweiCloudCloudServiceConfig!.size;
7878
_accountController.text = _huaweiCloudCloudServiceConfig!.account ?? "";
@@ -91,9 +91,9 @@ class _HuaweiCloudServiceScreenState
9191
}
9292
if (_huaweiCloudCloudService != null) {
9393
_huaweiCloudCloudServiceConfig!.configured =
94-
await _huaweiCloudCloudService!.hasConfigured();
94+
await _huaweiCloudCloudService!.hasConfigured();
9595
_huaweiCloudCloudServiceConfig!.connected =
96-
await _huaweiCloudCloudService!.isConnected();
96+
await _huaweiCloudCloudService!.isConnected();
9797
if (_huaweiCloudCloudServiceConfig!.configured &&
9898
!_huaweiCloudCloudServiceConfig!.connected) {
9999
IToast.showTop(appLocalizations.cloudConnectionError);
@@ -121,12 +121,12 @@ class _HuaweiCloudServiceScreenState
121121
return inited
122122
? _buildBody()
123123
: ItemBuilder.buildLoadingDialog(
124-
context: context,
125-
background: Colors.transparent,
126-
text: appLocalizations.cloudConnecting,
127-
mainAxisAlignment: MainAxisAlignment.start,
128-
topPadding: 100,
129-
);
124+
context: context,
125+
background: Colors.transparent,
126+
text: appLocalizations.cloudConnecting,
127+
mainAxisAlignment: MainAxisAlignment.start,
128+
topPadding: 100,
129+
);
130130
}
131131

132132
ping({
@@ -189,12 +189,12 @@ class _HuaweiCloudServiceScreenState
189189
child: CheckboxItem(
190190
title: appLocalizations.enable + appLocalizations.cloudTypeHuaweiCloud,
191191
description: appLocalizations.cloudOAuthSafeTip(
192-
appLocalizations.cloudTypeHuaweiCloud, CloudService.serverEndpoint),
192+
CloudService.serverEndpoint, appLocalizations.cloudTypeHuaweiCloud),
193193
value: _huaweiCloudCloudServiceConfig?.enabled ?? false,
194194
onTap: () {
195195
setState(() {
196196
_huaweiCloudCloudServiceConfig!.enabled =
197-
!_huaweiCloudCloudServiceConfig!.enabled;
197+
!_huaweiCloudCloudServiceConfig!.enabled;
198198
CloudServiceConfigDao.updateConfigEnabled(
199199
_huaweiCloudCloudServiceConfig!,
200200
_huaweiCloudCloudServiceConfig!.enabled);
@@ -266,7 +266,7 @@ class _HuaweiCloudServiceScreenState
266266
title: appLocalizations.cloudPulling);
267267
try {
268268
List<HuaweiCloudFileInfo>? files =
269-
await _huaweiCloudCloudService!.listBackups();
269+
await _huaweiCloudCloudService!.listBackups();
270270
if (files == null) {
271271
CustomLoadingDialog.dismissLoading();
272272
IToast.show(appLocalizations.cloudPullFailed);
@@ -281,24 +281,26 @@ class _HuaweiCloudServiceScreenState
281281
BottomSheetBuilder.showBottomSheet(
282282
context,
283283
responsive: true,
284-
(dialogContext) => HuaweiCloudBackupsBottomSheet(
285-
files: files,
286-
cloudService: _huaweiCloudCloudService!,
287-
onSelected: (selectedFile) async {
288-
var dialog = showProgressDialog(
289-
appLocalizations.cloudPulling,
290-
showProgress: true,
291-
);
292-
Uint8List? res =
284+
(dialogContext) =>
285+
HuaweiCloudBackupsBottomSheet(
286+
files: files,
287+
cloudService: _huaweiCloudCloudService!,
288+
onSelected: (selectedFile) async {
289+
var dialog = showProgressDialog(
290+
appLocalizations.cloudPulling,
291+
showProgress: true,
292+
);
293+
Uint8List? res =
293294
await _huaweiCloudCloudService!.downloadFile(
294-
selectedFile.id,
295-
onProgress: (c, t) {
296-
dialog.updateProgress(progress: c / t);
295+
selectedFile.id,
296+
onProgress: (c, t) {
297+
dialog.updateProgress(progress: c / t);
298+
},
299+
);
300+
ImportTokenUtil.importFromCloud(
301+
context, res, dialog);
297302
},
298-
);
299-
ImportTokenUtil.importFromCloud(context, res, dialog);
300-
},
301-
),
303+
),
302304
);
303305
} else {
304306
IToast.show(appLocalizations.cloudNoBackupFile);
@@ -338,16 +340,16 @@ class _HuaweiCloudServiceScreenState
338340
title: appLocalizations.cloudLogout,
339341
message: appLocalizations.cloudLogoutMessage,
340342
onTapConfirm: () async {
341-
await _huaweiCloudCloudService!.signOut();
342-
setState(() {
343-
_huaweiCloudCloudServiceConfig!.connected = false;
344-
_huaweiCloudCloudServiceConfig!.account = "";
345-
_huaweiCloudCloudServiceConfig!.totalSize =
346-
_huaweiCloudCloudServiceConfig!.remainingSize =
343+
await _huaweiCloudCloudService!.signOut();
344+
setState(() {
345+
_huaweiCloudCloudServiceConfig!.connected = false;
346+
_huaweiCloudCloudServiceConfig!.account = "";
347+
_huaweiCloudCloudServiceConfig!.totalSize =
348+
_huaweiCloudCloudServiceConfig!.remainingSize =
347349
_huaweiCloudCloudServiceConfig!.usedSize = -1;
348-
updateConfig(_huaweiCloudCloudServiceConfig!);
349-
});
350-
});
350+
updateConfig(_huaweiCloudCloudServiceConfig!);
351+
});
352+
});
351353
},
352354
),
353355
),

0 commit comments

Comments
 (0)