Skip to content

Commit 6aaf3a1

Browse files
committed
Shared Preferences are no longer being used in project, Local database fully Hive.
1 parent de7e442 commit 6aaf3a1

File tree

22 files changed

+78
-94
lines changed

22 files changed

+78
-94
lines changed
-1 Bytes
Binary file not shown.
-17 Bytes
Binary file not shown.

.gradle/6.7/gc.properties

Whitespace-only changes.

.gradle/checksums/checksums.lock

-17 Bytes
Binary file not shown.

.gradle/configuration-cache/gc.properties

Whitespace-only changes.

.gradle/vcs-1/gc.properties

Whitespace-only changes.

.vscode/launch.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "ycombinator_hacker_news",
9+
"request": "launch",
10+
"type": "dart",
11+
"flutterMode": "release"
12+
}
13+
]
14+
}

android/app/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ android {
4646
// TODO: Add your own signing config for the release build.
4747
// Signing with the debug keys for now, so `flutter run --release` works.
4848
signingConfig signingConfigs.debug
49+
50+
shrinkResources false
51+
minifyEnabled false
4952
}
5053
}
5154
}

android/app/src/main/AndroidManifest.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
22
package="com.dhi13man.ycombinator_hacker_news">
3-
<uses-permission android:name="android.permission.INTERNET" />
3+
<uses-permission android:name="android.permission.INTERNET"/>
44
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
5-
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
5+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
66
<application
7-
android:label="ycombinator_hacker_news"
7+
android:label="Hacker News Client"
88
android:icon="@mipmap/ic_launcher">
99
<activity
1010
android:name=".MainActivity"

lib/UI/screens/splash_screen.dart

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import 'package:flutter/material.dart';
33
import 'package:firebase_core/firebase_core.dart';
44

55
import 'package:ycombinator_hacker_news/backend/constants.dart';
6-
import 'package:ycombinator_hacker_news/backend/hiveDatabase/shared.dart';
76

87
import 'package:ycombinator_hacker_news/UI/screens/login_screen.dart';
98

@@ -66,12 +65,9 @@ class SplashScreen extends StatelessWidget {
6665
@override
6766
Widget build(BuildContext context) {
6867
AppConstants _appConstants = context.watch<AppConstants>();
69-
Future.wait(
70-
[
71-
Firebase.initializeApp(),
72-
initializeDb(), // For Local Hive Database Working
73-
],
74-
).then(
68+
69+
// App starts after Firebase initialized.
70+
Firebase.initializeApp().then(
7571
(_) => Navigator.pushReplacementNamed(context, LoginScreen.routeName),
7672
);
7773

0 commit comments

Comments
 (0)