Fix reset app

This commit is contained in:
Hanh 2022-08-29 21:09:57 +08:00
parent 4bcca3f5ea
commit c22c678ab0
7 changed files with 12 additions and 4 deletions

View File

@ -54,4 +54,5 @@
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.USE_FINGERPRINT"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
</manifest>

View File

@ -2,6 +2,7 @@
<resources>
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
<item name="android:forceDarkAllowed">false</item>
<item name="android:windowFullscreen">false</item>
<item name="android:windowSplashScreenBackground">#FFFFFF</item>
</style>

View File

@ -5,6 +5,7 @@
<!-- Show a splash screen on the activity. Automatically removed when
Flutter draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
<item name="android:forceDarkAllowed">false</item>
<item name="android:windowFullscreen">false</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.

View File

@ -2,6 +2,7 @@
<resources>
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
<item name="android:forceDarkAllowed">false</item>
<item name="android:windowFullscreen">false</item>
<item name="android:windowSplashScreenBackground">#000000</item>
</style>

View File

@ -5,6 +5,7 @@
<!-- Show a splash screen on the activity. Automatically removed when
Flutter draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
<item name="android:forceDarkAllowed">false</item>
<item name="android:windowFullscreen">false</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.

View File

@ -75,9 +75,12 @@ abstract class CoinBase {
}
Future<void> delete() async {
await File(p.join(dbDir, dbName)).delete();
await File(p.join(dbDir, "${dbName}-shm")).delete();
await File(p.join(dbDir, "${dbName}-wal")).delete();
try {
await File(p.join(dbDir, dbName)).delete();
await File(p.join(dbDir, "${dbName}-shm")).delete();
await File(p.join(dbDir, "${dbName}-wal")).delete();
}
catch (e) {} // ignore failure
}
String _getFullPath(String dbPath) {

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.2.12+274
version: 1.2.12+276
environment:
sdk: ">=2.12.0 <3.0.0"