Skip to content

Commit 661048a

Browse files
committed
trying otel.
1 parent 69013ed commit 661048a

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

firestore/app/build.gradle.kts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ android {
4949
}
5050
}
5151

52+
repositories {
53+
mavenLocal() // This line tells Gradle to look in your local Maven repository
54+
mavenCentral()
55+
}
56+
5257
dependencies {
5358
implementation(project(":internal:lintchecks"))
5459
implementation(project(":internal:chooserx"))
@@ -57,7 +62,7 @@ dependencies {
5762
implementation(platform("com.google.firebase:firebase-bom:33.3.0"))
5863

5964
// Firestore
60-
implementation("com.google.firebase:firebase-firestore")
65+
implementation("com.google.firebase:firebase-firestore:25.1.1")
6166

6267
// Firebase Authentication
6368
implementation("com.google.firebase:firebase-auth")

firestore/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
android:label="@string/app_name"
77
android:supportsRtl="true"
88
android:theme="@style/AppTheme"
9+
android:usesCleartextTraffic="true"
910
android:name="androidx.multidex.MultiDexApplication">
1011

1112
<activity android:name=".EntryChoiceActivity"

firestore/app/src/main/java/com/google/firebase/example/fireeats/java/adapter/FirestoreAdapter.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ public int getItemCount() {
9797
}
9898

9999
protected DocumentSnapshot getSnapshot(int index) {
100+
if (mQuery != null) {
101+
mQuery.get();
102+
}
100103
return mSnapshots.get(index);
101104
}
102105

0 commit comments

Comments
 (0)