-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Christian Melchior
committed
Jan 30, 2024
1 parent
20387a0
commit 4412237
Showing
26 changed files
with
254 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# Version of MongoDB Realm used by integration tests | ||
# See https://github.com/realm/ci/packages/147854 for available versions | ||
MONGODB_REALM_SERVER=2023-12-15 | ||
MONGODB_REALM_SERVER=2024-01-22 | ||
|
||
# `BAAS` and `BAAS-UI` projects commit hashes matching MONGODB_REALM_SERVER image version | ||
# note that the MONGODB_REALM_SERVER image is a nightly build, find the matching commits | ||
# for that date within the following repositories: | ||
# https://github.com/10gen/baas/ | ||
# https://github.com/10gen/baas-ui/ | ||
REALM_BAAS_GIT_HASH=47d9f6170ab1ac2aa64e7b5046e85247f3ac6d30 | ||
REALM_BAAS_UI_GIT_HASH=49157ef4a6af1c1de4dfbad5d7d02543776b25eb | ||
REALM_BAAS_GIT_HASH=97b7445b1634c7a93fbabefc50967b41ce3cc330 | ||
REALM_BAAS_UI_GIT_HASH=f5f5d71e634c2a64d08b2f911e2d7bf91d9cceda |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule core
updated
99 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
.../test-sync/src/commonMain/kotlin/io/realm/kotlin/test/mongodb/common/AsymmetricSchemas.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
package io.realm.kotlin.test.mongodb.common | ||
|
||
import io.realm.kotlin.ext.realmListOf | ||
import io.realm.kotlin.types.AsymmetricRealmObject | ||
import io.realm.kotlin.types.EmbeddedRealmObject | ||
import io.realm.kotlin.types.RealmList | ||
import io.realm.kotlin.types.RealmObject | ||
import io.realm.kotlin.types.annotations.PersistedName | ||
import io.realm.kotlin.types.annotations.PrimaryKey | ||
import org.mongodb.kbson.BsonObjectId | ||
import org.mongodb.kbson.ObjectId | ||
|
||
class DeviceParent : RealmObject { | ||
@PersistedName("_id") | ||
@PrimaryKey | ||
var id: ObjectId = BsonObjectId() | ||
var device: Device? = null | ||
} | ||
|
||
class Measurement : AsymmetricRealmObject { | ||
@PersistedName("_id") | ||
@PrimaryKey | ||
var id: ObjectId = BsonObjectId() | ||
var type: String = "temperature" | ||
var value: Float = 0.0f | ||
var device: Device? = null | ||
var backups: RealmList<BackupDevice> = realmListOf() | ||
} | ||
|
||
class BackupDevice() : EmbeddedRealmObject { | ||
constructor(name: String, serialNumber: String) : this() { | ||
this.name = name | ||
this.serialNumber = serialNumber | ||
} | ||
var name: String = "" | ||
var serialNumber: String = "" | ||
} | ||
|
||
class Device() : EmbeddedRealmObject { | ||
constructor(name: String, serialNumber: String) : this() { | ||
this.name = name | ||
this.serialNumber = serialNumber | ||
} | ||
var name: String = "" | ||
var serialNumber: String = "" | ||
var backupDevice: BackupDevice? = null | ||
} | ||
|
||
class AsymmetricA : AsymmetricRealmObject { | ||
@PrimaryKey | ||
var _id: ObjectId = ObjectId() | ||
var child: EmbeddedB? = null | ||
} | ||
|
||
class EmbeddedB : EmbeddedRealmObject { | ||
var child: StandardC? = null | ||
} | ||
|
||
class StandardC : RealmObject { | ||
@PrimaryKey | ||
var _id: ObjectId = ObjectId() | ||
var name: String = "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.