-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Improve state handling * Imrpove error handling in chat
- Loading branch information
Showing
29 changed files
with
1,343 additions
and
395 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
composeApp/src/androidMain/kotlin/org/cyanotic/olpaka/core/FirebaseAnalytics.android.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
package org.cyanotic.olpaka.core | ||
|
||
actual class FirebaseAnalytics { | ||
actual fun init() { | ||
actual class FirebaseAnalytics : Analytics { | ||
actual override fun init() { | ||
} | ||
|
||
actual fun screenView(screenName: String) { | ||
actual override fun screenView(screenName: String) { | ||
} | ||
|
||
actual fun event(eventName: String, properties: Map<String, Any?>) { | ||
actual override fun event(eventName: String, properties: Map<String, Any?>) { | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
composeApp/src/commonMain/kotlin/androidx/compose/desktop/ui/tooling/preview/Preview.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package androidx.compose.desktop.ui.tooling.preview | ||
|
||
// Little workaround to make the Compose preview work even in the commonMain package | ||
@OptIn(ExperimentalMultiplatform::class) | ||
@OptionalExpectation | ||
expect annotation class Preview() |
10 changes: 9 additions & 1 deletion
10
composeApp/src/commonMain/kotlin/org/cyanotic/olpaka/core/FirebaseAnalytics.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
package org.cyanotic.olpaka.core | ||
|
||
expect class FirebaseAnalytics() { | ||
interface Analytics { | ||
fun init() | ||
|
||
fun screenView(screenName: String) | ||
|
||
fun event(eventName: String, properties: Map<String,Any?> = emptyMap()) | ||
} | ||
|
||
expect class FirebaseAnalytics() : Analytics { | ||
override fun init() | ||
|
||
override fun screenView(screenName: String) | ||
|
||
override fun event(eventName: String, properties: Map<String,Any?>) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.