Skip to content

Commit bb4caba

Browse files
committed
Merge branch 'dev'
2 parents 807e941 + 0ef0b59 commit bb4caba

File tree

5 files changed

+22
-28
lines changed

5 files changed

+22
-28
lines changed

README.md

+9-10
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ Flutter-PicGo: 一个用于快速上传图片并获取图片URL链接的**手机
2626
2727
# 特色功能
2828

29-
- 长按相册列表项可同步删除图床下的图片,也可配置仅删除本地列表
30-
- 支持扫描二维码将PicGo配置文件转换成Flutter-PicGo的配置
29+
- 长按相册列表项可**同步删除远端的文件**,也可配置仅删除本地列表
30+
- 支持扫描二维码将PicGo(v2.3.0-beta.2以上版本)配置文件转换成Flutter-PicGo的配置,使用请移步[链接](https://github.com/Molunerfinn/PicGo/releases/tag/v2.3.0-beta.2)
3131
- 适配深色模式,可跟随系统或手动设置
3232
- 支持将flutter-picgo的配置导出至剪切板
3333

@@ -40,17 +40,16 @@ Flutter-PicGo: 一个用于快速上传图片并获取图片URL链接的**手机
4040

4141
# 下载安装
4242

43-
点击此处下载应用[releases](https://github.com/hackycy/flutter-picgo/releases)[蒲公英](https://www.pgyer.com/flutter-picgo)
43+
| | Android | iOS |
44+
| :----: | :----------------------------------------------------------: | :----------------------------------------------------------: |
45+
| 二维码 | ![](https://github.static.si-yee.com/picgo/android.png) | ![](https://github.static.si-yee.com/picgo/appstore.png) |
46+
| 链接 | [点击链接](https://github.com/hackycy/flutter-picgo/releases) | [点击链接](https://apps.apple.com/cn/app/flutter-picgo/id1519714305) |
4447

45-
Android版直接下载apk安装包或扫码
46-
47-
![](https://github.static.si-yee.com/picgo/android.png)
48-
49-
iOS版本请扫描二维码下载或[点击链接](https://apps.apple.com/cn/app/flutter-picgo/id1519714305)
48+
> 感谢[Trevor-Lan](https://github.com/Trevor-Lan)提供的苹果开发者账户
5049
51-
![](https://github.static.si-yee.com/picgo/appstore.png)
50+
# 应用说明
5251

53-
> 感谢[Trevor-Lan](https://github.com/Trevor-Lan)提供的苹果开发者账户
52+
目前仅支持iOS与Android端,由于部分插件例如[sqflite](https://pub.dev/packages/sqflite),所以并不支持Web端。
5453

5554
# 致谢
5655

docs/version.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"iOS": {
3-
"versionName": "1.5.2",
4-
"versionCode": "12"
3+
"versionName": "1.5.3",
4+
"versionCode": "13"
55
},
66
"Android": {
7-
"versionName": "1.5.1",
8-
"versionCode": "12"
7+
"versionName": "1.5.3",
8+
"versionCode": "13"
99
}
1010
}

lib/api/picgo_api.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class PicgoApi {
55
/// 获取App最新版本
66
static Future getLatestVersion() async {
77
Response res = await NetUtils.getInstance().get(
8-
'https://cdn.jsdelivr.net/gh/PicGo/flutter-picgo@dev/docs/version.json');
8+
'https://cdn.jsdelivr.net/gh/PicGo/flutter-picgo/docs/version.json');
99
return res;
1010
}
1111
}

lib/views/picgo_setting_page/picgo_setting_page.dart

+7-12
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class _PicGoSettingPageState extends State<PicGoSettingPage> {
125125
// onTap: () {},
126126
// ),
127127
ListTile(
128-
title: Text('检查更新'),
128+
title: Text('版本更新'),
129129
onTap: () {
130130
_handleUpdateTap();
131131
},
@@ -171,20 +171,15 @@ class _PicGoSettingPageState extends State<PicGoSettingPage> {
171171
this.isNeedUpdate = true;
172172
});
173173
}
174-
} catch (e) {
175-
print(e);
176-
}
174+
} catch (e) {}
177175
}
178176

177+
/// 无论有无更新都进行跳转,不允许放置蒲公英链接
179178
_handleUpdateTap() async {
180-
if (isNeedUpdate) {
181-
if (Platform.isAndroid) {
182-
launch('https://www.pgyer.com/flutter-picgo');
183-
} else if (Platform.isIOS) {
184-
launch('https://apps.apple.com/cn/app/flutter-picgo/id1519714305');
185-
}
186-
} else {
187-
Toast.show('当前已经是最新版本', context);
179+
if (Platform.isAndroid) {
180+
launch('https://github.com/PicGo/flutter-picgo/releases');
181+
} else if (Platform.isIOS) {
182+
launch('https://apps.apple.com/cn/app/flutter-picgo/id1519714305');
188183
}
189184
}
190185
}

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
1515
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
1616
# Read more about iOS versioning at
1717
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
18-
version: 1.5.2+12
18+
version: 1.5.3+13
1919

2020
environment:
2121
sdk: ">=2.7.0 <3.0.0"

0 commit comments

Comments
 (0)