diff --git a/app/build.gradle b/app/build.gradle index 1595c1e..df0d212 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -25,6 +25,7 @@ android { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + signingConfig signingConfigs.debug } } compileOptions { diff --git a/app/src/main/java/com/dowerx/quack/service/PostService.java b/app/src/main/java/com/dowerx/quack/service/PostService.java index 8136e82..dedabaa 100644 --- a/app/src/main/java/com/dowerx/quack/service/PostService.java +++ b/app/src/main/java/com/dowerx/quack/service/PostService.java @@ -42,7 +42,7 @@ public class PostService { FirebaseFirestore db = FirebaseFirestore.getInstance(); try { - for (QueryDocumentSnapshot post : Tasks.await(db.collection("/post").limit(10).get())) { + for (QueryDocumentSnapshot post : Tasks.await(db.collection("/post").get())) { DocumentSnapshot user = Tasks.await(post.getDocumentReference("user").get()); String username = user.get("username", String.class); String email = user.get("email", String.class); diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 98cf674..fca2da1 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -1,70 +1,74 @@ - + android:layout_height="match_parent"> - + tools:context=".activity.MainActivity"> - + - + -