10 Commits

Author SHA1 Message Date
hackycy
bb4caba42b Merge branch 'dev' 2020-07-21 10:44:54 +08:00
hackycy
0ef0b596f4 build:release v1.5.3+13 2020-07-21 10:43:57 +08:00
hackycy
be8bcc3465 styles:imporve update version text 2020-07-21 10:43:44 +08:00
hackycy
70aec85c9b docs:update readme 2020-07-21 10:36:54 +08:00
hackycy
dcf36fc6f9 docs:update version.json 2020-07-21 10:33:16 +08:00
hackycy
c6865199f1 fix:fix code unuse pgyer for update 2020-07-21 10:32:00 +08:00
hackycy
66a81ac441 docs:update readme 2020-07-20 22:20:05 +08:00
hackycy
edec2215bd docs:update readme 2020-07-20 22:17:14 +08:00
hackycy
b9a96a2234 fix:update version.json api url 2020-07-20 16:16:21 +08:00
hackycy
fc30112493 docs:update version.json 2020-07-20 16:16:04 +08:00
5 changed files with 23 additions and 29 deletions

View File

@@ -26,8 +26,8 @@ Flutter-PicGo: 一个用于快速上传图片并获取图片URL链接的**手机
# 特色功能
- 长按相册列表项可同步删除图床下的图片,也可配置仅删除本地列表
- 支持扫描二维码将PicGo配置文件转换成Flutter-PicGo的配置
- 长按相册列表项可**同步删除远端的文件**,也可配置仅删除本地列表
- 支持扫描二维码将PicGo(v2.3.0-beta.2以上版本)配置文件转换成Flutter-PicGo的配置,使用请移步[链接](https://github.com/Molunerfinn/PicGo/releases/tag/v2.3.0-beta.2)
- 适配深色模式,可跟随系统或手动设置
- 支持将flutter-picgo的配置导出至剪切板
@@ -40,18 +40,17 @@ Flutter-PicGo: 一个用于快速上传图片并获取图片URL链接的**手机
# 下载安装
点击此处下载应用[releases](https://github.com/hackycy/flutter-picgo/releases)或[蒲公英](https://www.pgyer.com/flutter-picgo)。
Android版直接下载apk安装包或扫码
![](https://github.static.si-yee.com/picgo/android.png)
iOS版本请扫描二维码下载或[点击链接](https://apps.apple.com/cn/app/flutter-picgo/id1519714305)。
![](https://github.static.si-yee.com/picgo/appstore.png)
| | Android | iOS |
| :----: | :----------------------------------------------------------: | :----------------------------------------------------------: |
| 二维码 | ![](https://github.static.si-yee.com/picgo/android.png) | ![](https://github.static.si-yee.com/picgo/appstore.png) |
| 链接 | [点击链接](https://github.com/hackycy/flutter-picgo/releases) | [点击链接](https://apps.apple.com/cn/app/flutter-picgo/id1519714305) |
> 感谢[Trevor-Lan](https://github.com/Trevor-Lan)提供的苹果开发者账户
# 应用说明
目前仅支持iOS与Android端,由于部分插件例如[sqflite](https://pub.dev/packages/sqflite),所以并不支持Web端。
# 致谢
- [PicGo](https://github.com/Molunerfinn/PicGo)

View File

@@ -1,10 +1,10 @@
{
"iOS": {
"versionName": "1.5.2",
"versionCode": "12"
"versionName": "1.5.3",
"versionCode": "13"
},
"Android": {
"versionName": "1.5.1",
"versionCode": "12"
"versionName": "1.5.3",
"versionCode": "13"
}
}

View File

@@ -5,7 +5,7 @@ class PicgoApi {
/// 获取App最新版本
static Future getLatestVersion() async {
Response res = await NetUtils.getInstance().get(
'https://cdn.jsdelivr.net/gh/PicGo/flutter-picgo@dev/docs/version.json');
'https://cdn.jsdelivr.net/gh/PicGo/flutter-picgo/docs/version.json');
return res;
}
}

View File

@@ -125,7 +125,7 @@ class _PicGoSettingPageState extends State<PicGoSettingPage> {
// onTap: () {},
// ),
ListTile(
title: Text('检查更新'),
title: Text('版本更新'),
onTap: () {
_handleUpdateTap();
},
@@ -171,20 +171,15 @@ class _PicGoSettingPageState extends State<PicGoSettingPage> {
this.isNeedUpdate = true;
});
}
} catch (e) {
print(e);
}
} catch (e) {}
}
/// 无论有无更新都进行跳转,不允许放置蒲公英链接
_handleUpdateTap() async {
if (isNeedUpdate) {
if (Platform.isAndroid) {
launch('https://www.pgyer.com/flutter-picgo');
} else if (Platform.isIOS) {
launch('https://apps.apple.com/cn/app/flutter-picgo/id1519714305');
}
} else {
Toast.show('当前已经是最新版本', context);
if (Platform.isAndroid) {
launch('https://github.com/PicGo/flutter-picgo/releases');
} else if (Platform.isIOS) {
launch('https://apps.apple.com/cn/app/flutter-picgo/id1519714305');
}
}
}

View File

@@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.5.2+12
version: 1.5.3+13
environment:
sdk: ">=2.7.0 <3.0.0"