From d3749e2c42bfe4bda48b0a1ebcc2ce73a1ba41d9 Mon Sep 17 00:00:00 2001 From: jefry Date: Mon, 31 May 2021 10:39:39 +0700 Subject: [PATCH] fixing smal stuff --- android/app/build.gradle | 2 ++ lib/home.dart | 1 + lib/main.dart | 1 + lib/util/dbHandler.dart | 1 - pubspec.yaml | 2 +- 5 files changed, 5 insertions(+), 2 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 3c82532..cf2496a 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -63,6 +63,8 @@ android { // TODO: Add your own signing config for the release build. // Signing with the debug keys for now, so `flutter run --release` works. signingConfig signingConfigs.release + minifyEnabled false + shrinkResources false } } } diff --git a/lib/home.dart b/lib/home.dart index 4cc3a60..a0c28cf 100644 --- a/lib/home.dart +++ b/lib/home.dart @@ -435,6 +435,7 @@ class _HomeState extends State { if(isUserDefined??false){ prefs.setString(keyClass.user, sendingUser.text); util.showToast("ALERT",'Preparing Data'); + await DBHelper.database.setOpenState(); await DBHelper.database.closeDb(); file_Trans_Handler trans = new file_Trans_Handler(); util.showToast("ALERT",'Sending Data'); diff --git a/lib/main.dart b/lib/main.dart index 32d940a..f1031db 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -14,6 +14,7 @@ Util util = new Util(); SharedPreferences prefs; void main()async { WidgetsFlutterBinding.ensureInitialized(); + // SharedPreferences.setMockInitialValues({}); prefs = await SharedPreferences.getInstance(); SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]) .then((_) { diff --git a/lib/util/dbHandler.dart b/lib/util/dbHandler.dart index 35c32e0..c676615 100644 --- a/lib/util/dbHandler.dart +++ b/lib/util/dbHandler.dart @@ -38,7 +38,6 @@ class DBHelper{ String path = join(documentsDirectory.path, "assets.db"); File file = File(path); print('Database created, ${file.lengthSync()}'); - setOpenState(); } insertAsset(Asset newAsset) async{ diff --git a/pubspec.yaml b/pubspec.yaml index ac767f6..60f2125 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -13,7 +13,7 @@ description: Application to check assets # 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.0.0+1 +version: 1.0.1+2 environment: sdk: ">=2.7.0 <3.0.0"