-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
59 additions
and
2 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
24 changes: 24 additions & 0 deletions
24
composeApp/src/commonMain/kotlin/dev/datlag/aniflow/common/ExtendFirebase.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,24 @@ | ||
package dev.datlag.aniflow.common | ||
|
||
import dev.datlag.aniflow.firebase.FirebaseFactory | ||
import dev.datlag.aniflow.model.name | ||
import dev.datlag.aniflow.other.BurningSeriesResolver | ||
import dev.datlag.aniflow.ui.navigation.Component | ||
|
||
fun FirebaseFactory.Crashlytics.screen(value: Component) { | ||
this.customKey("Screen", value::class.name) | ||
} | ||
|
||
fun FirebaseFactory.Crashlytics.bs(available: Boolean, versionCode: Int, versionName: String?) { | ||
this.customKey("BS Availability", available) | ||
if (available) { | ||
this.customKey("BS Version Code", versionCode) | ||
this.customKey("BS Version Name", versionName.toString()) | ||
} | ||
} | ||
|
||
fun FirebaseFactory.Crashlytics.bs(resolver: BurningSeriesResolver) = bs( | ||
available = resolver.isAvailable, | ||
versionCode = resolver.versionCode, | ||
versionName = resolver.versionName | ||
) |
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,5 +1,5 @@ | ||
[versions] | ||
app = "1.1.1" | ||
app = "1.0.0" | ||
aboutlibraries = "11.1.4" | ||
activity = "1.9.0" | ||
android = "8.2.2" | ||
|
5 changes: 5 additions & 0 deletions
5
model/src/commonMain/kotlin/dev/datlag/aniflow/model/PlatformExtendAny.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,5 @@ | ||
package dev.datlag.aniflow.model | ||
|
||
import kotlin.reflect.KClass | ||
|
||
expect val KClass<*>.name: String |
6 changes: 6 additions & 0 deletions
6
model/src/jsMain/kotlin/dev/datlag/aniflow/model/PlatformExtendAny.js.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 dev.datlag.aniflow.model | ||
|
||
import kotlin.reflect.KClass | ||
|
||
actual val KClass<*>.name: String | ||
get() = this.simpleName?.ifBlank { null } ?: this.js.name.ifBlank { null } ?: this.toString() |
8 changes: 8 additions & 0 deletions
8
model/src/jvmMain/kotlin/dev/datlag/aniflow/model/PlatformExtendAny.jvm.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,8 @@ | ||
package dev.datlag.aniflow.model | ||
|
||
import kotlin.reflect.KClass | ||
|
||
actual val KClass<*>.name: String | ||
get() = this.qualifiedName?.ifBlank { null } | ||
?: this.simpleName?.ifBlank { null } | ||
?: this.java.canonicalName?.ifBlank { null } ?: this.java.name.ifBlank { null } ?: this.toString() |
6 changes: 6 additions & 0 deletions
6
model/src/nativeMain/kotlin/dev/datlag/aniflow/model/PlatformExtendAny.native.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 dev.datlag.aniflow.model | ||
|
||
import kotlin.reflect.KClass | ||
|
||
actual val KClass<*>.name: String | ||
get() = this.qualifiedName?.ifBlank { null } ?: this.simpleName?.ifBlank { null } ?: this.toString() |