realm / realm-kotlin-samples Goto Github PK
View Code? Open in Web Editor NEWSamples demonstrating the usage of Realm-Kotlin SDK
Samples demonstrating the usage of Realm-Kotlin SDK
After the log function is triggered, the console shows "WebSocket is already in CLOSING or CLOSED state."
This sample app, when minify is set to true in the android build.gradle.kts crashes on startup with the following error:
/Users/realm/workspace-realm-kotlin/releases/packages/cinterop/src/jvm/jni/java_class.cpp:49: [realm-core-11.15.0] Assertion failed: cls with (class_name) = ["io/realm/internal/interop/sync/NetworkTransport"]
Could you add some migration example on how to do it with multiplatform?Also if possible, is there any way that we can do auto migration using realm without manual steps?
declaration:
id("io.realm.kotlin") version "1.11.0" apply false
implementation ("io.realm.kotlin:library-base:1.11.0")
AGP: 8.2.2
classes used
class AppData : RealmObject {
@PrimaryKey var packageName : String = ""
var name:String = ""
val joinedGroups: RealmResults<GroupData> by backlinks(GroupData::apps)
}
class GroupData : RealmObject {
var _id: ObjectId = ObjectId()
var name: String = ""
var iconKey: String = ""
var apps: RealmSet<AppsData> = realmSetOf()
}
class MyApplication: Application() {
companion object{
lateinit var realm: Realm
}
override fun onCreate() {
super.onCreate()
realm = Realm.open(
configuration = RealmConfiguration.create(
schema = setOf(
AppData::class,
GroupData::class,
)
)
)
}
}
ERROR:
Caused by: java.lang.IllegalArgumentException: Only subclasses of RealmObject and EmbeddedRealmObject are allowed in the schema. Found: com.dhruv.angular_launcher.apps_data.model.AppData. If com.dhruv.angular_launcher.apps_data.model.AppData is a valid subclass: This class has not been modified by the Realm Compiler Plugin. Has the Realm Gradle Plugin been applied to the project with this model class?
I don't know what the problem is, I read a thread on this issue which states to resolve the issue update to AGP:7.3.0 but i can't downgrade AGP from 8.2.2.
please help.
After creating native distribution, installed apps not working. I tried Mac and Linux desktops with dmg and deb files. Adding working examples to samples would be great.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.