Merge pull request #62 from ouchadam/feature/dep-updates
Dependency updates
This commit is contained in:
commit
d9953d840c
|
@ -61,7 +61,7 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
|
coreLibraryDesugaring Dependencies.google.jdkLibs
|
||||||
|
|
||||||
implementation project(":features:home")
|
implementation project(":features:home")
|
||||||
implementation project(":features:directory")
|
implementation project(":features:directory")
|
||||||
|
|
|
@ -9,7 +9,7 @@ buildscript {
|
||||||
classpath Dependencies.mavenCentral.kotlinGradlePlugin
|
classpath Dependencies.mavenCentral.kotlinGradlePlugin
|
||||||
classpath Dependencies.mavenCentral.sqldelightGradlePlugin
|
classpath Dependencies.mavenCentral.sqldelightGradlePlugin
|
||||||
classpath Dependencies.mavenCentral.kotlinSerializationGradlePlugin
|
classpath Dependencies.mavenCentral.kotlinSerializationGradlePlugin
|
||||||
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.8.1'
|
classpath Dependencies.google.firebaseCrashlyticsPlugin
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -31,10 +31,12 @@ class SingletonFlows(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Suppress("UNCHECKED_CAST")
|
||||||
fun <T> get(key: String): Flow<T> {
|
fun <T> get(key: String): Flow<T> {
|
||||||
return cache[key]!! as Flow<T>
|
return cache[key]!! as Flow<T>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Suppress("UNCHECKED_CAST")
|
||||||
suspend fun <T> update(key: String, value: T) {
|
suspend fun <T> update(key: String, value: T) {
|
||||||
(cache[key] as? MutableSharedFlow<T>)?.emit(value)
|
(cache[key] as? MutableSharedFlow<T>)?.emit(value)
|
||||||
}
|
}
|
||||||
|
|
|
@ -88,7 +88,7 @@ ext.Dependencies.with {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
def kotlinVer = "1.6.10"
|
def kotlinVer = "1.7.0"
|
||||||
def sqldelightVer = "1.5.3"
|
def sqldelightVer = "1.5.3"
|
||||||
def composeVer = "1.1.1"
|
def composeVer = "1.1.1"
|
||||||
def ktorVer = "2.0.3"
|
def ktorVer = "2.0.3"
|
||||||
|
@ -102,7 +102,10 @@ ext.Dependencies.with {
|
||||||
androidxComposeMaterial = "androidx.compose.material:material:${composeVer}"
|
androidxComposeMaterial = "androidx.compose.material:material:${composeVer}"
|
||||||
androidxComposeIconsExtended = "androidx.compose.material:material-icons-extended:${composeVer}"
|
androidxComposeIconsExtended = "androidx.compose.material:material-icons-extended:${composeVer}"
|
||||||
androidxActivityCompose = "androidx.activity:activity-compose:1.4.0"
|
androidxActivityCompose = "androidx.activity:activity-compose:1.4.0"
|
||||||
kotlinCompilerExtensionVersion = "${composeVer}"
|
kotlinCompilerExtensionVersion = "1.2.0"
|
||||||
|
|
||||||
|
firebaseCrashlyticsPlugin = "com.google.firebase:firebase-crashlytics-gradle:2.9.1"
|
||||||
|
jdkLibs = "com.android.tools:desugar_jdk_libs:1.1.5"
|
||||||
}
|
}
|
||||||
|
|
||||||
mavenCentral = new DependenciesContainer()
|
mavenCentral = new DependenciesContainer()
|
||||||
|
|
|
@ -41,6 +41,9 @@ fun LifecycleEffect(onStart: () -> Unit = {}, onStop: () -> Unit = {}) {
|
||||||
when (event) {
|
when (event) {
|
||||||
Lifecycle.Event.ON_START -> onStart()
|
Lifecycle.Event.ON_START -> onStart()
|
||||||
Lifecycle.Event.ON_STOP -> onStop()
|
Lifecycle.Event.ON_STOP -> onStop()
|
||||||
|
else -> {
|
||||||
|
// ignored
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
@file:JvmName("SnapshotStateKt")
|
@file:JvmName("SnapshotStateKt")
|
||||||
|
@file:Suppress("UNUSED")
|
||||||
package androidx.compose.runtime
|
package androidx.compose.runtime
|
||||||
|
|
||||||
import kotlin.reflect.KProperty
|
import kotlin.reflect.KProperty
|
||||||
|
|
|
@ -6,6 +6,7 @@ import kotlinx.coroutines.test.runTest
|
||||||
import kotlinx.coroutines.test.setMain
|
import kotlinx.coroutines.test.setMain
|
||||||
import test.ExpectTest
|
import test.ExpectTest
|
||||||
|
|
||||||
|
@Suppress("UNCHECKED_CAST")
|
||||||
class ViewModelTest {
|
class ViewModelTest {
|
||||||
|
|
||||||
var instance: TestMutableState<Any>? = null
|
var instance: TestMutableState<Any>? = null
|
||||||
|
|
|
@ -84,8 +84,7 @@ internal fun MessengerScreen(roomId: RoomId, viewModel: MessengerViewModel, navi
|
||||||
private fun MessengerViewModel.ObserveEvents() {
|
private fun MessengerViewModel.ObserveEvents() {
|
||||||
StartObserving {
|
StartObserving {
|
||||||
this@ObserveEvents.events.launch {
|
this@ObserveEvents.events.launch {
|
||||||
when (it) {
|
// TODO()
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -429,6 +428,10 @@ private fun ReplyBubbleContent(content: BubbleContent<RoomEvent.Reply>) {
|
||||||
)
|
)
|
||||||
Spacer(modifier = Modifier.height(4.dp))
|
Spacer(modifier = Modifier.height(4.dp))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
is RoomEvent.Reply -> {
|
||||||
|
// TODO - a reply to a reply
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -466,6 +469,10 @@ private fun ReplyBubbleContent(content: BubbleContent<RoomEvent.Reply>) {
|
||||||
)
|
)
|
||||||
Spacer(modifier = Modifier.height(4.dp))
|
Spacer(modifier = Modifier.height(4.dp))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
is RoomEvent.Reply -> {
|
||||||
|
// TODO - a reply to a reply
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Spacer(modifier = Modifier.height(2.dp))
|
Spacer(modifier = Modifier.height(2.dp))
|
||||||
|
|
|
@ -199,6 +199,13 @@ private fun RootSettings(page: Page.Root, onClick: (SettingItem) -> Unit) {
|
||||||
item { Spacer(Modifier.height(12.dp)) }
|
item { Spacer(Modifier.height(12.dp)) }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
is Lce.Error -> {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
is Lce.Loading -> {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -42,6 +42,13 @@ fun EventLogScreen(viewModel: EventLoggerViewModel) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
is Lce.Error -> {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
is Lce.Loading -> {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue