Skip to content

Commit

Permalink
Update jvm demo to use 0.9.0 (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
nhachicha committed Feb 3, 2022
1 parent 56b2ad8 commit 3964dae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions JVMConsole/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
kotlin("jvm") version "1.6.10"
id("io.realm.kotlin") version "0.8.2"
id("io.realm.kotlin") version "0.9.0"
application
}
group = "io.realm.example"
Expand All @@ -13,7 +13,7 @@ repositories {
}
dependencies {
implementation("com.jakewharton.fliptables:fliptables:1.1.0")
implementation("io.realm.kotlin:library-base:0.8.2")
implementation("io.realm.kotlin:library-base:0.9.0")
testImplementation(kotlin("test-junit"))
}
tasks.withType<KotlinCompile>() {
Expand Down
4 changes: 2 additions & 2 deletions JVMConsole/src/main/kotlin/io/realm/example/main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import com.jakewharton.fliptables.FlipTableConverters
import io.realm.Realm
import io.realm.RealmConfiguration
import io.realm.RealmObject
import io.realm.objects
import io.realm.query
import io.realm.RealmResults
import kotlin.system.exitProcess

Expand Down Expand Up @@ -61,7 +61,7 @@ class AuthorsREPL(private val realm: Realm) {

private fun displayAuthors() {
val headers = arrayOf("First Name", "Last Name", "Age")
val authors: RealmResults<Author> = realm.objects<Author>()
val authors: RealmResults<Author> = realm.query<Author>().find()
if (authors.isNotEmpty()) {
val persistedAuthors = mutableListOf<Array<String>>().also { data ->
authors.map { author ->
Expand Down

0 comments on commit 3964dae

Please sign in to comment.