File tree Expand file tree Collapse file tree 6 files changed +19
-20
lines changed
core/src/commonMain/kotlin/com/pega/constellation/sdk/kmp/core/components/fields
android-cmp-app/src/androidMain/kotlin/com/pega/constellation/sdk/kmp/samples/androidcmpapp
base-cmp-app/src/commonMain/kotlin/com/pega/constellation/sdk/kmp/samples/basecmpapp/auth
ui-renderer-cmp/src/commonMain/kotlin/com/pega/constellation/sdk/kmp/ui/renderer/cmp Expand file tree Collapse file tree 6 files changed +19
-20
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,10 @@ import androidx.compose.runtime.setValue
66import com.pega.constellation.sdk.kmp.core.Log
77import com.pega.constellation.sdk.kmp.core.api.ComponentContext
88import com.pega.constellation.sdk.kmp.core.components.getString
9- import kotlinx.datetime.Clock
109import kotlinx.datetime.TimeZone
1110import kotlinx.datetime.offsetAt
1211import kotlinx.serialization.json.JsonObject
12+ import kotlin.time.Clock
1313
1414class DateTimeComponent (context : ComponentContext ) : FieldComponent(context) {
1515 var clockFormat: String by mutableStateOf(" " )
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ abstract class FieldComponent(context: ComponentContext) : BaseComponent(context
2121 private set
2222 var label: String by mutableStateOf(" " )
2323 private set
24- override var visible: Boolean by mutableStateOf(false )
24+ final override var visible: Boolean by mutableStateOf(false )
2525 private set
2626 var required: Boolean by mutableStateOf(false )
2727 private set
Original file line number Diff line number Diff line change 11[versions ]
2- agp = " 8.12.3 "
2+ agp = " 8.13.2 "
33android-compileSdk = " 36"
44android-minSdk = " 26"
55android-targetSdk = " 36"
6- androidx-activity = " 1.11.0 "
6+ androidx-activity = " 1.12.4 "
77androidx-core-runtime = " 2.2.0"
88androidx-customview-poolingcontainer = " 1.1.0"
99androidx-emoji2 = " 1.6.0"
10- androidx-lifecycle = " 2.9.5 "
10+ androidx-lifecycle = " 2.9.6 "
1111androidx-test = " 1.7.0"
1212androidx-test-junit = " 1.3.0"
1313compose-hot-reload = " 1.0.0"
14- compose-multiplatform = " 1.9.0 " # warning: update bumps kotlinx-datetime, which breaks iOS
15- compose-navigation = " 2.9.1 "
14+ compose-multiplatform = " 1.10.1 "
15+ compose-navigation = " 2.9.2 "
1616htmlconverter = " 1.1.0"
17- kotlin = " 2.2.21 "
17+ kotlin = " 2.3.10 "
1818kotlinx-coroutines = " 1.10.2"
19- kotlinx-datetime = " 0.6.2 " # warning: update breaks iOS compilation
20- kotlinx-serialization-json = " 1.9 .0"
21- ktor = " 3.3.2 "
22- ksoup = " 0.2.5 "
23- oidc = " 0.15.3 "
24- okhttp = " 4.12.0 "
19+ kotlinx-datetime = " 0.7.1 "
20+ kotlinx-serialization-json = " 1.10 .0"
21+ ktor = " 3.4.0 "
22+ ksoup = " 0.2.6 "
23+ oidc = " 0.16.5 "
24+ okhttp = " 5.3.2 "
2525table = " 0.2.3"
2626uiautomator = " 2.3.0"
27- webkit = " 1.14 .0"
28- dnd = " 0.3 .0"
27+ webkit = " 1.15 .0"
28+ dnd = " 0.4 .0"
2929
3030[libraries ]
3131androidx-activity-compose = { module = " androidx.activity:activity-compose" , version.ref = " androidx-activity" }
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import okhttp3.Interceptor
1515import okhttp3.Response
1616import org.publicvalue.multiplatform.oidc.ExperimentalOpenIdConnect
1717import org.publicvalue.multiplatform.oidc.appsupport.AndroidCodeAuthFlowFactory
18- import org.publicvalue.multiplatform.oidc.appsupport .CodeAuthFlowFactory
18+ import org.publicvalue.multiplatform.oidc.flows .CodeAuthFlowFactory
1919import org.publicvalue.multiplatform.oidc.tokenstore.AndroidSettingsTokenStore
2020
2121class MediaCoActivity : ComponentActivity () {
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import kotlinx.coroutines.launch
2020import kotlinx.coroutines.runBlocking
2121import org.publicvalue.multiplatform.oidc.ExperimentalOpenIdConnect
2222import org.publicvalue.multiplatform.oidc.OpenIdConnectClient
23- import org.publicvalue.multiplatform.oidc.appsupport .CodeAuthFlowFactory
23+ import org.publicvalue.multiplatform.oidc.flows .CodeAuthFlowFactory
2424import org.publicvalue.multiplatform.oidc.tokenstore.TokenStore
2525import org.publicvalue.multiplatform.oidc.tokenstore.removeTokens
2626import org.publicvalue.multiplatform.oidc.tokenstore.saveTokens
Original file line number Diff line number Diff line change @@ -45,8 +45,7 @@ fun <C : Component> C.Render() {
4545@Composable
4646@Suppress(" unchecked_cast" )
4747private fun <C : Component > ComponentRenderer <* >.Render (component : C ) {
48- (this as ComponentRenderer <C >).runCatching { component.Render () }
49- .onFailure { Log .e(TAG , " Component rendering failed: $component " , it) }
48+ with (this as ComponentRenderer <C >) { component.Render () }
5049}
5150
5251/* *
You can’t perform that action at this time.
0 commit comments