Skip to content
Snippets Groups Projects
Verified Commit b51175a3 authored by Mikolai Gütschow's avatar Mikolai Gütschow
Browse files

update Compose to 1.2.0

parent 584a8dd9
No related branches found
No related tags found
1 merge request!255Update Compose to 1.2.0
Pipeline #12572 passed
......@@ -18,14 +18,13 @@
@file:Suppress("HardCodedStringLiteral")
import org.jetbrains.compose.compose
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.6.10"
kotlin("kapt") version "1.6.10"
id("org.jetbrains.compose") version "1.1.1"
kotlin("jvm") version "1.7.20"
kotlin("kapt") version "1.7.20"
id("org.jetbrains.compose") version "1.2.0"
id("java")
id("idea")
id("org.jlleitschuh.gradle.ktlint") version "10.1.0"
......@@ -45,7 +44,7 @@ dependencies {
implementation(compose.desktop.currentOs)
implementation(compose.materialIconsExtended)
// needed to access Dispatchers.Swing for EventExecutor
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-swing:1.6.1")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-swing:1.6.4")
implementation("com.github.ajalt.clikt:clikt:3.4.0")
implementation("com.ibm.icu:icu4j:70.1")
......@@ -67,6 +66,15 @@ dependencies {
kaptTest("com.google.dagger:dagger-compiler:$daggerVersion")
}
// hacky fix for upstream issue when selecting skiko in gradle
// see https://github.com/JetBrains/skiko/issues/547
// and https://github.com/JetBrains/compose-jb/issues/1404
configurations.all {
attributes {
attribute(Attribute.of("ui", String::class.java), "awt")
}
}
tasks.test {
useTestNG()
}
......
......@@ -25,8 +25,8 @@ import org.briarproject.briar.desktop.introduction.ContactDrawerMakeIntro
// Right drawer state
enum class ContactInfoDrawerState {
MakeIntro,
ConnectBT,
ConnectRD
/*ConnectBT,
ConnectRD*/
}
@Composable
......
......@@ -104,6 +104,7 @@ class LoginSubViewModel(
when (e.decryptionResult) {
INVALID_PASSWORD -> _passwordInvalidError.value = true
KEY_STRENGTHENER_ERROR -> _decryptionFailedError.value = true
else -> {}
}
_password.value = ""
_state.value = SIGNED_OUT
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment