Skip to content

Kotlin Multiplatform and Android SDK for the Realm Mobile Database: Build Better Apps Faster.

License

Notifications You must be signed in to change notification settings

Infomaniak/realm-kotlin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Infomaniak's fork of Realm Kotlin

This is a fork of the deprecated Realm Kotlin. It has been made compatible with Kotlin 2.2.10 thanks to the work of @XilinJia on their krdb fork (we cherry-picked some of their commits).

We have reversed the rebranding so it can be used as a drop-in replacement with builds published to a local or private maven repository.

We have checked the diff between our revision and Realm's original project to be exempt from any suspicious code or reference to unchecked binaries.

Unlike the forked repo, this one can be built from source on Linux.

Project structure is changed to make Intellij IDE work. gradlew needs to be run from the root directory rather than packages.

Version compatibility

Version 3.2.9 <==> Kotlin 2.2.10 Version 3.2.8-2 <==> Kotlin 2.2.0

How to use:

Replace the io.realm.kotlin maven group with com.infomaniak.realm.kotlin, and use the 3.2.9 version.

It's all published on Maven Central. You might need to add this at the top of your settings.gradle[.kts]:

pluginManagement {
    repositories {
        mavenCentral() // Our Realm fork is published here
        gradlePluginPortal() // To keep access to other plugins
    }
}

Build the project

See the Releasing guide, or the contributing guide.

Gradle commands

./gradlew clean
./gradlew jvmTest
./gradlew publishToMavenLocal 

Setup the repository

  • in project's settings.gradle[.kts], add:
pluginManagement {
    repositories {
        gradlePluginPortal()
        mavenCentral()
        // Other repos...
        mavenLocal() // <--- 👈 Add this.
    }
}

dependencyResolutionManagement {
    // repositoriesMode...
    repositories {
        // Other repos...
        mavenLocal() // <--- 👈 Add this.
    }
}
  • in project's build.gradle[.kts], add:
buildscript {
    dependencies {
        classpath("com.infomaniak.realm.kotlin:gradle-plugin:y.y.y")
    }
}
  • remove the version in the declarations in the plugins blocks
  • and of course, change your Kotlin to 2.x.y (refer to Version compatibility)

Original Readme of Realm-Kotlin can be found here

Contributing

See CONTRIBUTING.md for more details!

License

Realm Kotlin is published under the Apache 2.0 license.

About

Kotlin Multiplatform and Android SDK for the Realm Mobile Database: Build Better Apps Faster.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Kotlin 96.0%
  • C++ 2.3%
  • Shell 0.9%
  • SWIG 0.6%
  • CMake 0.1%
  • C 0.1%