Allow keep data on uninstalling

This commit is contained in:
LollipopKit
2021-11-02 19:49:29 +08:00
parent d38bad7802
commit ff76c6c539
4 changed files with 19 additions and 16 deletions

View File

@@ -31,15 +31,16 @@ A new Flutter project which provide a chart view to display server status data.
</table>
## Milestone
- [x] SSH Connect
- [x] Server Info Store
- [x] Status Chart View
- [x] SSH connect
- [x] Server info store
- [x] Status chart view
- [x] Base64/Url En/Decode
- [x] Private Key Store
- [x] Server Status Detail Page
- [x] Theme Switch
- [ ] Execute Snippet
- [x] Private key store
- [x] Server status detail page
- [x] Theme switch
- [ ] Execute snippet
- [ ] Migrate from `ssh2` to `dartssh2`
- [ ] Desktop support.
## Build
Please use `make.dart` to build.

View File

@@ -2,7 +2,10 @@
package="tech.lolli.toolbox">
<application
android:label="ServerBox"
android:icon="@mipmap/ic_launcher">
android:icon="@mipmap/ic_launcher"
android:allowBackup="true"
android:hasFragileUserData="true"
android:restoreAnyVersion="true">
<activity
android:name=".MainActivity"
android:launchMode="singleTop"

View File

@@ -39,8 +39,8 @@ Future<void> doUpdate(BuildContext context, {bool force = false}) async {
showSnackBarWithAction(
context,
update.min > BuildData.build
? '您的版本过旧,请及时更新'
: '${BuildData.name}有更新啦Ver${update.newest}\n${update.changelog}',
'更新',
? 'Your version is too old. \nPlease update to v${update.newest}.'
: 'Update: v${update.newest}available. \n${update.changelog}',
'Update',
() => openUrl(Platform.isAndroid ? update.android : update.ios));
}

View File

@@ -2,9 +2,8 @@
class BuildData {
static const String name = "ToolBox";
static const int build = 55;
static const String engine =
"Flutter 2.5.3 • channel stable • https://github.com/flutter/flutter.git\nFramework • revision 18116933e7 (3 weeks ago) • 2021-10-15 10:46:35 -0700\nEngine • revision d3ea636dc5\nTools • Dart 2.14.4\n";
static const String buildAt = "2021-11-02 15:32:29.280614";
static const int modifications = 1;
static const int build = 58;
static const String engine = "Flutter 2.5.3 • channel stable • https://github.com/flutter/flutter.git\nFramework • revision 18116933e7 (3 weeks ago) • 2021-10-15 10:46:35 -0700\nEngine • revision d3ea636dc5\nTools • Dart 2.14.4\n";
static const String buildAt = "2021-11-02 19:44:10.383544";
static const int modifications = 4;
}