-
-
Notifications
You must be signed in to change notification settings - Fork 184
Firestore: Aggregate Queries and SnapshotListenerOptions #785
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
e376414
95a8eb2
6cb1317
8844930
1bc6201
c539d03
befcc36
6f4aee6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,6 +9,7 @@ import dev.gitlive.firebase.FirebaseOptions | |
| import dev.gitlive.firebase.apps | ||
| import dev.gitlive.firebase.initialize | ||
| import dev.gitlive.firebase.runBlockingTest | ||
| import kotlin.random.Random | ||
| import kotlin.test.AfterTest | ||
| import kotlin.test.BeforeTest | ||
| import kotlin.test.Test | ||
|
|
@@ -27,7 +28,7 @@ class FirebaseAnalyticsTest { | |
| val app = Firebase.apps(context).firstOrNull() ?: Firebase.initialize( | ||
| context, | ||
| FirebaseOptions( | ||
| applicationId = "1:846484016111:ios:dd1f6688bad7af768c841a", | ||
| applicationId = "1:${Random.nextInt()}:ios:dd1f6688bad7af768c841a", | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On Android, the |
||
| apiKey = "AIzaSyCK87dcMFhzCz_kJVs2cT2AVlqOTLuyWV0", | ||
| databaseUrl = "https://fir-kotlin-sdk.firebaseio.com", | ||
| storageBucket = "fir-kotlin-sdk.appspot.com", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,7 +29,7 @@ public actual data class FirebaseApp internal constructor(internal val ios: FIRA | |
| actual val name: String | ||
| get() = ios.name | ||
| actual val options: FirebaseOptions | ||
| get() = ios.options.run { FirebaseOptions(bundleID, APIKey!!, databaseURL!!, trackingID, storageBucket, projectID, GCMSenderID) } | ||
| get() = ios.options.run { FirebaseOptions(bundleID, APIKey!!, databaseURL!!, null, storageBucket, projectID, GCMSenderID) } | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed on the iOS SDK |
||
|
|
||
| public actual suspend fun delete() { | ||
| val deleted = CompletableDeferred<Unit>() | ||
|
|
@@ -46,7 +46,6 @@ public actual fun Firebase.apps(context: Any?): List<FirebaseApp> = FIRApp.allAp | |
| private fun FirebaseOptions.toIos() = FIROptions(this@toIos.applicationId, this@toIos.gcmSenderId ?: "").apply { | ||
| APIKey = this@toIos.apiKey | ||
| databaseURL = this@toIos.databaseUrl | ||
| trackingID = this@toIos.gaTrackingId | ||
| storageBucket = this@toIos.storageBucket | ||
| projectID = this@toIos.projectId | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Required By Android FB 34+