Skip to content

Commit cf4dd06

Browse files
committed
merge
2 parents 25ca1fa + c628356 commit cf4dd06

File tree

10 files changed

+19
-4
lines changed

10 files changed

+19
-4
lines changed

.java-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
17

client-addons/build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ android {
2828
}
2929
}
3030
compileOptions {
31+
isCoreLibraryDesugaringEnabled = true
32+
3133
sourceCompatibility = Constants.sourceCompatibilityVersion
3234
targetCompatibility = Constants.targetCompatibilityVersion
3335
}
@@ -46,6 +48,8 @@ android {
4648
}
4749

4850
dependencies {
51+
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.0")
52+
4953
implementation(project(Constants.moduleClient))
5054
implementation(platform(libs.androidx.compose.bom))
5155
implementation(libs.androidx.compose.ui)

client/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ android {
4949
}
5050

5151
compileOptions {
52+
isCoreLibraryDesugaringEnabled = true
5253
sourceCompatibility = Constants.sourceCompatibilityVersion
5354
targetCompatibility = Constants.targetCompatibilityVersion
5455
}
@@ -85,6 +86,7 @@ android {
8586
}
8687

8788
dependencies {
89+
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.0")
8890
// These dependencies are used internally, and not exposed to consumers on their own compile classpath.
8991
implementation(platform(libs.androidx.compose.bom))
9092
implementation(libs.androidx.compose.ui)

client/src/main/java/org/phoenixframework/liveview/foundation/data/mappers/DocumentParser.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class DocumentParser(
2626
}
2727
}
2828

29-
override fun handle(
29+
override fun handleDocumentChange(
3030
changeType: ChangeType,
3131
nodeRef: NodeRef,
3232
nodeData: NodeData,
Binary file not shown.
Binary file not shown.
Binary file not shown.

gradle/libs.versions.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ antlr4 = "4.13.1"
1212
com-google-android-material = "1.12.0"
1313
com-google-code-gson = "2.10.1"
1414
com-strumenta-antlr-kotlin = "1.0.0-RC4"
15+
desugar_jdk_libs = "2.1.5"
1516
io-coil-kt = "2.5.0"
1617
java-phoenix-client = "1.3.0"
1718
junit = "4.13.2"
18-
jna = "5.14.0" # remember to update the jniLibs folder with updated *.so files
19-
koin-bom= "4.0.0-RC1"
19+
jna = "5.16.0" # remember to update the jniLibs folder with updated *.so files
20+
koin-bom = "4.0.0-RC1"
2021
kotlin = "1.9.21"
2122
kotlin-immutable-collections = "0.3.7"
2223
kotlinx-serialization-json = "1.6.3"
@@ -48,6 +49,7 @@ com-github-liveview-native-core-jetpack = { group = "com.github.liveview-native"
4849
com-google-android-material = { group = "com.google.android.material", name = "material", version.ref = "com-google-android-material" }
4950
com-google-code-gson = { group = "com.google.code.gson", name = "gson", version.ref = "com-google-code-gson" }
5051
com-strumenta-antlr-kotlin-runtime = { group = "com.strumenta", name = "antlr-kotlin-runtime", version.ref = "com-strumenta-antlr-kotlin" }
52+
desugar_jdk_libs = { module = "com.android.tools:desugar_jdk_libs", version.ref = "desugar_jdk_libs" }
5153
io-coil-kt = { group = "io.coil-kt", name = "coil", version.ref = "io-coil-kt" }
5254
io-coil-kt-coil-compose = { group = "io.coil-kt", name = "coil-compose", version.ref = "io-coil-kt" }
5355
io-coil-kt-coil-svg = { group = "io.coil-kt", name = "coil-svg", version.ref = "io-coil-kt" }
@@ -82,3 +84,4 @@ kotlinx-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", vers
8284
roborazzi = { id = "io.github.takahirom.roborazzi", version.ref = "roborazzi" }
8385
org-jetbrains-kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "org-jetbrains-kotlin-jvm" }
8486
com-strumenta-antlr-kotlin = { id = "com.strumenta.antlr-kotlin", version.ref = "com-strumenta-antlr-kotlin" }
87+
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }

sample/build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ android {
2525
}
2626
}
2727
compileOptions {
28+
isCoreLibraryDesugaringEnabled = true
2829
sourceCompatibility = Constants.sourceCompatibilityVersion
2930
targetCompatibility = Constants.targetCompatibilityVersion
3031
}
@@ -51,4 +52,6 @@ dependencies {
5152
isChanging = true
5253
exclude(group = Constants.publishGroupId, module = Constants.publishArtifactClientId)
5354
}
55+
56+
coreLibraryDesugaring(libs.desugar.jdk.libs)
5457
}

sample/src/main/java/com/dockyard/android/liveviewsample/ui/MainActivity.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ class MainActivity : ComponentActivity() {
1919
}
2020
LiveForm.registerComponents()
2121
setContent {
22-
LiveView(url = "http://10.0.2.2:4000/users/log_in")
22+
// Points to the thermostat example from the core library tests.
23+
// Change this URL to point at your local LVN app.
24+
LiveView(url = "http://10.0.2.2:4001/thermostat")
2325
}
2426
}
2527
}

0 commit comments

Comments
 (0)